xartin

lidarr-0.6.2.883.ebuild

Jun 25th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. $ ls -l /usr/local/portage/usenet-overlay/net-nntp/lidarr/
  2. total 16
  3. -rw-r--r-- 1 root root 2110 Jun 23 22:25 Manifest
  4. drwxr-xr-x 2 root root 4096 Jun 23 21:00 files
  5. -rw-r--r-- 1 root root 1220 Jun 23 22:25 lidarr-0.6.2.883.ebuild
  6. -rw-r--r-- 1 root root 542 Jun 23 21:05 metadata.xml
  7.  
  8.  
  9. # Copyright 1999-2018 Gentoo Foundation
  10. # Distributed under the terms of the GNU General Public License v2
  11.  
  12. EAPI=7
  13.  
  14. inherit user systemd
  15.  
  16. SRC_URI="https://github.com/lidarr/Lidarr/releases/download/v${PV}/Lidarr.develop.${PV}.linux.tar.gz"
  17.  
  18. DESCRIPTION="Lidarr is a music collection manager for Usenet and BitTorrent users."
  19. HOMEPAGE="https://github.com/lidarr/Lidarr"
  20.  
  21. LICENSE="GPL-3"
  22. SLOT="0"
  23. KEYWORDS="~amd64 ~x86"
  24. IUSE="tools"
  25. RDEPEND="
  26. >=dev-lang/mono-4.4.1.0
  27. media-video/mediainfo
  28. dev-db/sqlite
  29. tools? ( media-libs/chromaprint )"
  30.  
  31. MY_PN=lidarr
  32. S="${WORKDIR}/Lidarr"
  33.  
  34. pkg_setup() {
  35. enewgroup ${PN}
  36. enewuser ${PN} -1 -1 /var/lib/lidarr ${PN}
  37. }
  38.  
  39. src_install() {
  40. newconfd "${FILESDIR}/${PN}.conf" ${PN}
  41. newinitd "${FILESDIR}/${PN}.init" ${PN}
  42.  
  43. keepdir /var/lib/${PN}
  44. fowners -R ${PN}:${PN} /var/lib/${PN}
  45.  
  46. insinto /etc/${PN}
  47. insopts -m0660 -o ${PN} -g ${PN}
  48.  
  49. insinto /etc/logrotate.d
  50. insopts -m0644 -o root -g root
  51. newins "${FILESDIR}/${PN}.logrotate" ${PN}
  52.  
  53. dodir "/usr/share/${PN}"
  54. cp -R "${WORKDIR}/Lidarr/." "${D}/usr/share/lidarr" || die "Install failed!"
  55.  
  56. systemd_dounit "${FILESDIR}/lidarr.service"
  57. systemd_newunit "${FILESDIR}/lidarr.service" "${PN}@.service"
  58. }
Add Comment
Please, Sign In to add comment