diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
commit | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (patch) | |
tree | c85d72f6f31f21f178069c9d41d41a7c1ff4b362 /net-nntp/nzbget | |
parent | 0706fc6986773f4e4d391deff4ad5143c464ea4e (diff) |
gentoo resync : 05.04.2019
Diffstat (limited to 'net-nntp/nzbget')
-rw-r--r-- | net-nntp/nzbget/Manifest | 2 | ||||
-rw-r--r-- | net-nntp/nzbget/nzbget-21.0_pre2302.ebuild | 129 |
2 files changed, 131 insertions, 0 deletions
diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest index 9aef0cde9040..effecde382d0 100644 --- a/net-nntp/nzbget/Manifest +++ b/net-nntp/nzbget/Manifest @@ -3,6 +3,8 @@ AUX nzbget.initd-r1 742 BLAKE2B eef074b7e25cd085b92850892ee8917772451b0f58a7f7c3 AUX nzbget.service 466 BLAKE2B 928ff8fd5f48b9190324ccaa98f1215aa35e30eb9959278fe2b9d77f175ee97a28e0efe3ac034ceb2da023c9d7737aa3f803861489284578412559e257700003 SHA512 5a59562580596bc5524086dcb2b2550b242a5f62750fd42a5b2e9ecb786b40107a21fcab7496d0cd396434da7ed3ee5d1046059d94f5f2bcb76ad496862d19e1 DIST nzbget-20.0.tar.gz 1925665 BLAKE2B 4c4e93bb0fa170b4b6433cbb7d27f3fa67ed033c462711b19e179f42c18dfed044c937e6a7ce4b08a620f4d7af7d3ec9245de16f15d4db8005d3d8dc4f8f46d4 SHA512 8b0fe8ea41b64be9a2f624ef0fa2a8b8987bee412db68a0e8f1b607ce6be7bfd03f60ecc5e49807f4c726e136bc5a355c44559b215fea2bd290c2eb62a0b5927 DIST nzbget-21.0_pre2220.tar.gz 1985190 BLAKE2B e19e1c997615f61895a26ca24ff1eb66e6caf99cecf3f3b0eccc2c0f67ebc61c20cdd24d869d8c2a1d2f0d5c53f5222cc3b151720e3a6d1398507fd252586cf5 SHA512 73cd24628ab224d62b4619ca6b9014edb08ac14f02850def3123db640c785fd8836ba4ee4be40a0cf918ba6c25bf19683e67d05aaa0f96c71ad23b6a30284fa0 +DIST nzbget-21.0_pre2302.tar.gz 1989357 BLAKE2B bf937b48c8f26e1144d4b09467a29b96984b9d0a777f6e6728a1922b7718dd2f2847ba51a9baf4cca0cebb7add60807f0f285e5dbeca871d99f0cd279fb292a3 SHA512 672f15df910e79ff39090f812a5925d15efb46c9538b7ca193266a159c95e7487fb31ef4780370532bbc9de8478cd927c461dee1f46cd0bf1d294420f796001e EBUILD nzbget-20.0.ebuild 3034 BLAKE2B 5a33c79601047ab7ef4928a7b8b5b3663a2bfca0bb606bc4f0d36a22067617840207564844c063e75b8ed03e379d4a0ccbf406a95e35462980047d59c1a22f54 SHA512 13d2111e0f51275175d4b854e4934dd784e26749299c3609f8de85565454ee1f966695d2d773d0f53bdbb859301ffd00628dabaefbb2446e6d401ed218d9b324 EBUILD nzbget-21.0_pre2220.ebuild 3089 BLAKE2B 42bf207099fc5e6a0baeffd62fd064fc49a4ecf7fc7b83ea9cf54415204458365c3de924ddef69e81efad2a01b44bc31dce838857cd009996d620aeba1c41944 SHA512 51e15bac64e4bba7925f1f80b61f471c86dacc0d28e91ce92dea7855c7b8db1ec0db115f71c52b0ca403ba78a52f1cfee77e402ced459bb775479f7255d1e670 +EBUILD nzbget-21.0_pre2302.ebuild 3089 BLAKE2B d7e6f24d5f5d31d25ac63ee0d212b8aa67d152f1604652a9f3632066241be5aa6cae18a209e69719f36775b262dc40c2f7ed06be14e246b37a9a3cc9aa8d9188 SHA512 cd39487e82f6cc90c9c955d5dea6b8f5b482a9728b44c6e64d51427cd09597c8a585a9a20b4eb904ca6494f71ba530380bfcafed9a5b9150c129c0dcf5db4c61 MISC metadata.xml 729 BLAKE2B 41b592fbee92ce1e5d10eccc51296732bb8e6ee9aeba2cbf0207c649fc7c0c21ee6a550f01a5023d07fd2c007131641d9ef94275efe2a71e28b759cdc5579dd3 SHA512 93af36b9010a937f80c7c7ed2cf5379437e669c23dfc3e122a3b1699af42f2e9655ea639456e251bd1c04fefd60075543b6a7321e17cba8f82324f556f3f2125 diff --git a/net-nntp/nzbget/nzbget-21.0_pre2302.ebuild b/net-nntp/nzbget/nzbget-21.0_pre2302.ebuild new file mode 100644 index 000000000000..86b157a22442 --- /dev/null +++ b/net-nntp/nzbget/nzbget-21.0_pre2302.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools eutils flag-o-matic user systemd + +MY_PV=${PV/_pre/-r} +MY_P=${PN}-${PV/_pre/-testing-r} + +DESCRIPTION="A command-line based binary newsgrabber supporting .nzb files" +HOMEPAGE="https://nzbget.net/" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}-src.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="debug gnutls ncurses +parcheck ssl test zlib" + +RDEPEND="dev-libs/libxml2:= + ncurses? ( sys-libs/ncurses:0= ) + ssl? ( + gnutls? ( + net-libs/gnutls:= + dev-libs/nettle:= + ) + !gnutls? ( dev-libs/openssl:0=[-bindist] ) + ) + zlib? ( sys-libs/zlib:= )" +DEPEND="${RDEPEND} + test? ( + || ( + =app-arch/rar-5* + =app-arch/unrar-5* + ) + ) + virtual/pkgconfig" +DOCS=( ChangeLog README nzbget.conf ) + +S=${WORKDIR}/${PN}-${PV/_pre*/-testing} + +check_compiler() { + if [[ ${MERGE_TYPE} != binary ]] && ! test-flag-CXX -std=c++14; then + eerror "${P} requires a C++14-capable compiler. Your current compiler" + eerror "does not seem to support the -std=c++14 option. Please" + eerror "upgrade to gcc-4.9 or an equivalent version supporting C++14." + die "The currently active compiler does not support -std=c++14" + fi +} + +pkg_pretend() { + check_compiler +} + +pkg_setup() { + check_compiler +} + +src_prepare() { + default + eautoreconf + + sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die + + sed \ + -e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \ + -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \ + -e 's:^WebDir=.*:WebDir=/usr/share/nzbget/webui:' \ + -e 's:^ConfigTemplate=.*:ConfigTemplate=/usr/share/nzbget/nzbget.conf:' \ + -e 's:^DaemonUsername=.*:DaemonUsername=nzbget:' \ + nzbget.conf > nzbgetd.conf || die +} + +src_configure() { + local myconf=( + $(use_enable debug) + $(use_enable ncurses curses) + $(use_enable parcheck) + $(use_enable ssl tls) + $(use_enable zlib gzip) + $(use_enable test tests) + --with-tlslib=$(usex gnutls GnuTLS OpenSSL) + ) + econf "${myconf[@]}" +} + +src_test() { + ./nzbget --tests || die "Tests failed" +} + +src_install() { + default + + insinto /etc + doins nzbget.conf + doins nzbgetd.conf + + keepdir /var/lib/nzbget/{dst,nzb,queue,tmp} + keepdir /var/log/nzbget + + newinitd "${FILESDIR}"/nzbget.initd-r1 nzbget + newconfd "${FILESDIR}"/nzbget.confd nzbget + systemd_dounit "${FILESDIR}"/nzbget.service +} + +pkg_preinst() { + enewgroup nzbget + enewuser nzbget -1 -1 /var/lib/nzbget nzbget + + fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp} + fperms 750 /var/lib/nzbget/{queue,tmp} + fperms 770 /var/lib/nzbget/{dst,nzb} + + fowners nzbget:nzbget /var/log/nzbget + fperms 750 /var/log/nzbget + + fowners nzbget:nzbget /etc/nzbgetd.conf + fperms 640 /etc/nzbgetd.conf +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog + elog "Please add users that you want to be able to use the system-wide" + elog "nzbget daemon to the nzbget group. To access the daemon, run nzbget" + elog "with the --configfile /etc/nzbgetd.conf option." + elog + fi +} |