diff options
Diffstat (limited to 'net-nntp/nzbget')
-rw-r--r-- | net-nntp/nzbget/Manifest | 15 | ||||
-rw-r--r-- | net-nntp/nzbget/files/nzbget-14.0_pre1145-tinfo.patch | 18 | ||||
-rw-r--r-- | net-nntp/nzbget/files/nzbget.confd | 15 | ||||
-rw-r--r-- | net-nntp/nzbget/files/nzbget.initd | 28 | ||||
-rw-r--r-- | net-nntp/nzbget/files/nzbget.initd-r1 | 28 | ||||
-rw-r--r-- | net-nntp/nzbget/metadata.xml | 25 | ||||
-rw-r--r-- | net-nntp/nzbget/nzbget-14.1.ebuild | 106 | ||||
-rw-r--r-- | net-nntp/nzbget/nzbget-19.1.ebuild | 121 | ||||
-rw-r--r-- | net-nntp/nzbget/nzbget-20.0_pre2075.ebuild | 121 | ||||
-rw-r--r-- | net-nntp/nzbget/nzbget-20.0_pre2108-r1.ebuild | 120 |
10 files changed, 597 insertions, 0 deletions
diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest new file mode 100644 index 000000000000..c3a11e073c05 --- /dev/null +++ b/net-nntp/nzbget/Manifest @@ -0,0 +1,15 @@ +AUX nzbget-14.0_pre1145-tinfo.patch 469 SHA256 76740e82b987fe9206fb44035aa69af41345089d2f8d33cfe1019b7940e4faae SHA512 b431fa3a620988fe69ff40f05f5c3ade970f2bf895cf0c6d3b8ac58b722627ee772e62a48270cab8243e043dcdac9ac2d2923579c73e24049db67fcdbbe65669 WHIRLPOOL 5f2ec9d9166edb6171d7c711801a29f9c3f61c13f6cf26e3b238ffb21a91a0cf86e8486bff04bc533c49389d7c25d6e8565da1124b6848df7168f835aeea2f47 +AUX nzbget.confd 337 SHA256 a2a305dc1ef482d82041c5261dba235f6faae229d894785f528d87c9c0e452b8 SHA512 0f9a0d62ac6ea35703ebd64ec68057596d63fd5957afa2d3bcd18b4e8db4b24e78d060dc36cf90dbd2f604b4c6f107fb8e59ff779b6865cd362e71a0666d6c56 WHIRLPOOL 220c7638c0f62f4cf4314e40b022c34c41a7124d6bf41bdf455948e2e862715413d62cc4750db63967b24f3cbf1b5d13cd3bcea4c016ee5611f5226a9f1bd750 +AUX nzbget.initd 764 SHA256 3788a716112ed8929feec56e7ee4116afca4e3edfbb961316d43d43c5dbbbf5e SHA512 731e3b2fe4bb9da9927dd15ce8f2358e391746917f3825009b58026a41beda0bb1827e6fb22a3637b7e7e3bee16ea470fef3b3d7f027d48631307f4f818006fc WHIRLPOOL 4f7bb1ff0121e3d1967a654e7e24187c32a817c93f47519a1339c70d168c20ccd9938c7885be05404b2b9ceebabaea3d979c52c9312ea88253bec248bc1d6322 +AUX nzbget.initd-r1 742 SHA256 8243c4b44d18a56d8158d8339d6a1069371c2b427ee39600e7de5ac5fc1156cf SHA512 df4965d25a221c033586da85596584a712bc5c5d9c2e0950850f96fa872f29a04571649e7add504d9fe8be3639654e5653a766a6accf4dea344ca771088b432a WHIRLPOOL f7130278050f957dbbffa3048b50d3d6cf55958f777967530dddfc304ea5ae110dc3c104f072a0cc94eaf92f0c69002da01957787a735709835d0aadf73a4047 +DIST nzbget-14.1.tar.gz 1332334 SHA256 a16b816b61f7035cc373e9b77094ca474d5b7b7f7ceff5fa8818249181db4b18 SHA512 fae938529bb3968c0161f63ec3af07f844a8128b61abf6298457a4878ac0d47541d76730c8a068509fa091b102de07c9d28dcd668a8192fcfac60980f69be56d WHIRLPOOL 9e9636b67d0af7780d2cc8f897465f5a2e23cd8695b3bd982e3e9f78d68adb34f84faf59253044c7b2f95db737cf59207b35cf312d1f1825fe4b9ecce2e4014f +DIST nzbget-19.1.tar.gz 1809849 SHA256 06df42356ac2d63bbc9f7861abe9c3216df56fa06802e09e8a50b05f4ad95ce6 SHA512 3ba7cd7f7fec28e29129be0a1ca5879a0593bc54be49e3776e84eeb7804377eec47106aa2371b31dec7d9152301d68b199ce9e66db714195defc8e15ef636532 WHIRLPOOL 157168fde3152a02d4f1d8b257998851b05b6c1dcb0a839868f0d85859ae9539ef6281035c44ccdbc981ec6f093f28f8333cc40c4871e4d7f415658a5599f5aa +DIST nzbget-20.0_pre2075.tar.gz 1817105 SHA256 0fcb83077c878db13e13590690a873d14c5ef62df777bb80ac9f105034388750 SHA512 d386b61dee32e3f30d580eba484f1431fb29ced31e63adc6135f88e603993502e3d93f2d36a3ce654492a014a51c07451361c1954c62e7ccc439d2a3fc48554f WHIRLPOOL e37b53aa596b094e3b2e783b365e4bc421d0a8b35bb8aaea5de201da55d3fd0b9c3c25122476313900ff02fa982b8a56261af0cd467a385bae7791c437ed5172 +DIST nzbget-20.0_pre2108.tar.gz 1820172 SHA256 6889079774f847334dbecf0c4e700eaab51bb61025df06c3a372947e85e0aee1 SHA512 4abdab3d45829eb5574d2cb6b532372ba0a9c62a701acdebe498b71466f7ac8c7b47aa85ed80c1132c10e86b829c48dd6df4826d20f542a7a935aaa958ba0222 WHIRLPOOL 723e3da5d6d16002539f792f3a4a78b8e3ba821839093b667470c2ae94e6b3c7ee62994a5ee8630eb7362825a04d4d16ae3100f149b8ba182cf6928fc214109c +EBUILD nzbget-14.1.ebuild 2575 SHA256 508be9c30d98e788e319108eb5c19a0cdaf92292244c07e2b0c984e11ecb4929 SHA512 a263b13e0884c4848a762d4bb739da5e8eae5b7dfac96feb5812fc4f81928d4e600d3cdb9dbf35c407dc81ed1dfa0ce1341bb595f488c4ece75c5feb967660d4 WHIRLPOOL f6601ba182c4774dde2094df62ae44cfa94adca58a7425107d37dee534963334d4e12713c737d2a0c19d41e25dacec8361001cba9fd9f968ed66880487127dd2 +EBUILD nzbget-19.1.ebuild 2992 SHA256 35fd39fcd7e1742d85360a298b6f796a5558d63c5e989fc9449cbf6d61c76bad SHA512 a8ad9f64f7520f2e2174124676cd6764ebfa063408e2c45861dbcf49919b5b1b028df4d9db2601a0399cf315637a0b297cac24f54befb878c7a78691e4f658a1 WHIRLPOOL b604ca5481b151e036a2effbe5e45773afe9f90d12445da80ef165d2c9ec81adb4d61bbeaeb15c59a5ab1891d4c81f896d163584c67f68ddcc405e6f84986830 +EBUILD nzbget-20.0_pre2075.ebuild 2992 SHA256 35fd39fcd7e1742d85360a298b6f796a5558d63c5e989fc9449cbf6d61c76bad SHA512 a8ad9f64f7520f2e2174124676cd6764ebfa063408e2c45861dbcf49919b5b1b028df4d9db2601a0399cf315637a0b297cac24f54befb878c7a78691e4f658a1 WHIRLPOOL b604ca5481b151e036a2effbe5e45773afe9f90d12445da80ef165d2c9ec81adb4d61bbeaeb15c59a5ab1891d4c81f896d163584c67f68ddcc405e6f84986830 +EBUILD nzbget-20.0_pre2108-r1.ebuild 2938 SHA256 405c7bff2fcbce3bb3089d6963dce9972f21ccfe3099c65cd4ee01541e2bd570 SHA512 617b7e19686ad09e3fd93457c764efef48bfeaeca048f5496885aac83cacdc82754748c5e11d9b3fb785e45c6b4375d78c2cd098189366ffe84eacd44a0d9cbb WHIRLPOOL d335df369d7b10bad72a9b28cb3363d338fc82d88209fa0d5fd3620e20a3754567ab0c60457a64c7d9a0f00e82fda6f3f5a82da74025ed9976b6c062b5e67776 +MISC ChangeLog 8446 SHA256 f62b61b41d42de0b4def3400945521f82f8fa9b0541e584054bf2f555e0303c6 SHA512 5d024a50de0f9bd590b0cadeb418d8cf5aa9bca80e61d67e1a527580cd4597a9c120d568265742723fb0f69430b76460937c99fe7e364970b17fcade3d294a21 WHIRLPOOL 28cd2da9f67d690c7c2aa2013556910cda3164391a54a9ffe37e1650849e3646a601994d1be7aedd19e65ec50842346eb2f16a7b3064c267e90b6f92c124dfbf +MISC ChangeLog-2015 14706 SHA256 15d07db9cc64825833ed79c7ba89033625004e7085af3572ea61697c4514ae31 SHA512 8ec273509759582f56d0adaa0c2ba046ecc50c11658e56a05afc8d63cb0eba30e2573435c245c67c901b52376107a632c7e508b9eaebc94e22cadc5575aa1caf WHIRLPOOL aae0c6bc74b61fa6415912c6828c2ac7bb4a84abef53dc2ad2928c36befb3442b19ede802fb9291cf3d5470398ec5d410e386d5caf512436d1db089ac69f38b1 +MISC metadata.xml 853 SHA256 f2eea21f51150e93ffaea82958e32bd2d20586a347457305a65795cfd52cc1a4 SHA512 c35eaebbf56d6809e91f62440fb3b4f09911d10a2798741647b063074c77aed9079a6a6d2355d229571d82eb5be9f65f21ce449547e7ea05183d583e9bcf1ae2 WHIRLPOOL a74a60f5d3b3549ace1619e0ff6503376d76716913a64014cf7c6a06d396f29d180d76c6cfcf64fd93edb0a7954c0dee097772efff032cf8390325ce7c4d313b diff --git a/net-nntp/nzbget/files/nzbget-14.0_pre1145-tinfo.patch b/net-nntp/nzbget/files/nzbget-14.0_pre1145-tinfo.patch new file mode 100644 index 000000000000..e6cd13f6ffc1 --- /dev/null +++ b/net-nntp/nzbget/files/nzbget-14.0_pre1145-tinfo.patch @@ -0,0 +1,18 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -46,6 +46,7 @@ + AC_PATH_PROG(MAKE, make, $FALSE) + AC_PROG_INSTALL + ++PKG_PROG_PKG_CONFIG() + + dnl + dnl Do all tests with c++ compiler. +@@ -291,6 +292,7 @@ + if test "$FOUND" = "no"; then + AC_MSG_ERROR([Couldn't find curses headers (ncurses.h or curses.h)]) + fi ++ PKG_CHECK_MODULES(ncurses,ncurses,LIBS="$LIBS $ncurses_LIBS",) + AC_SEARCH_LIBS([refresh], [ncurses curses],, + AC_ERROR([Couldn't find curses library])) + else diff --git a/net-nntp/nzbget/files/nzbget.confd b/net-nntp/nzbget/files/nzbget.confd new file mode 100644 index 000000000000..ee8f38c1aefd --- /dev/null +++ b/net-nntp/nzbget/files/nzbget.confd @@ -0,0 +1,15 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# /etc/conf.d/nzbget +# Config file for nzbget init script + +# Which user to run nzbget as +NZBGET_USER="nzbget" +NZBGET_GROUP="nzbget" + +# Location of config file +NZBGET_CONFIGFILE="/etc/nzbgetd.conf" + +# Other options +NZBGET_OPTS="" diff --git a/net-nntp/nzbget/files/nzbget.initd b/net-nntp/nzbget/files/nzbget.initd new file mode 100644 index 000000000000..06f75596e438 --- /dev/null +++ b/net-nntp/nzbget/files/nzbget.initd @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +start() { + ebegin "Starting ${RC_SVCNAME}" + checkpath -d -m 0755 -o "${NZBGET_USER}":"${NZBGET_GROUP}" /run/nzbget + start-stop-daemon --quiet --start --user "${NZBGET_USER}" \ + --group "${NZBGET_GROUP}" --exec /usr/bin/nzbget -- \ + --configfile "${NZBGET_CONFIGFILE}" --daemon \ + ${NZBGET_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${RC_SVCNAME}" + start-stop-daemon --stop --exec /usr/bin/nzbget -- \ + --configfile "${NZBGET_CONFIGFILE}" --daemon \ + ${NZBGET_OPTS} +} + +reload() { + ebegin "Reloading ${RC_SVCNAME}" + /usr/bin/nzbget --configfile "${NZBGET_CONFIGFILE}" --reload >/dev/null + eend $? +} diff --git a/net-nntp/nzbget/files/nzbget.initd-r1 b/net-nntp/nzbget/files/nzbget.initd-r1 new file mode 100644 index 000000000000..2a9fae6c32b4 --- /dev/null +++ b/net-nntp/nzbget/files/nzbget.initd-r1 @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +description="A command-line based binary newsgrabber supporting .nzb files" +pidfile=/run/nzbget/nzbget.pid +command=/usr/bin/nzbget +command_args="--configfile \"${NZBGET_CONFIGFILE}\" \ + --daemon --option LockFile=${pidfile} \ + ${NZBGET_OPTS}" +start_stop_daemon_args="--user \"${NZBGET_USER}\" \ + --group \"${NZBGET_GROUP}\"" + +depend() { + need localmount net +} + +start_pre() { + checkpath -d -m 0755 -o "${NZBGET_USER}":"${NZBGET_GROUP}" /run/nzbget +} + +reload() { + ebegin "Reloading ${RC_SVCNAME}" + ${command} --configfile "${NZBGET_CONFIGFILE}" --reload >/dev/null + eend $? +} diff --git a/net-nntp/nzbget/metadata.xml b/net-nntp/nzbget/metadata.xml new file mode 100644 index 000000000000..b60b9c998c71 --- /dev/null +++ b/net-nntp/nzbget/metadata.xml @@ -0,0 +1,25 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>swegener@gentoo.org</email> + <name>Sven Wegener</name> + </maintainer> + <maintainer type="person"> + <email>sautier.louis@gmail.com</email> + <name>Louis Sautier</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription>A command-line based binary newsgrabber supporting .nzb files.</longdescription> + <use> + <flag name="parcheck">Enable support for checking PAR archives</flag> + </use> + <upstream> + <remote-id type="github">nzbget/nzbget</remote-id> + <bugs-to>https://github.com/nzbget/nzbget/issues</bugs-to> + <remote-id type="sourceforge">nzbget</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-nntp/nzbget/nzbget-14.1.ebuild b/net-nntp/nzbget/nzbget-14.1.ebuild new file mode 100644 index 000000000000..11b50ac963d3 --- /dev/null +++ b/net-nntp/nzbget/nzbget-14.1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils user + +MY_P=${P/_pre/-testing-r} + +DESCRIPTION="A command-line based binary newsgrabber supporting .nzb files" +HOMEPAGE="http://nzbget.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="debug gnutls ncurses parcheck ssl zlib" + +RDEPEND="dev-libs/libxml2 + ncurses? ( sys-libs/ncurses ) + parcheck? ( + app-arch/libpar2 + dev-libs/libsigc++:2 + ) + ssl? ( + gnutls? ( net-libs/gnutls ) + !gnutls? ( dev-libs/openssl ) + ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS ChangeLog README nzbget.conf ) + +S=${WORKDIR}/${P/_pre*/-testing} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-14.0_pre1145-tinfo.patch + + sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die + + sed \ + -e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \ + -e 's:^LockFile=.*:LockFile=/run/nzbget/nzbget.pid:' \ + -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:' \ + "${S}"/nzbget.conf > "${S}"/nzbgetd.conf || die + + sed -i "/^dist_doc_DATA/d" Makefile.am || die + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable debug) \ + $(use_enable ncurses curses) \ + $(use_enable parcheck) \ + $(use_enable ssl tls) \ + $(use_enable zlib gzip) \ + --with-tlslib=$(usex gnutls GnuTLS OpenSSL) +} + +src_install() { + default + + # remove unneeded service script + rm "${D}"/usr/sbin/nzbgetd || die + + insinto /etc + doins nzbget.conf + doins nzbgetd.conf + + keepdir /var/lib/nzbget/{dst,nzb,queue,tmp} + keepdir /var/log/nzbget + + newinitd "${FILESDIR}"/nzbget.initd nzbget + newconfd "${FILESDIR}"/nzbget.confd nzbget +} + +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 +} diff --git a/net-nntp/nzbget/nzbget-19.1.ebuild b/net-nntp/nzbget/nzbget-19.1.ebuild new file mode 100644 index 000000000000..c6d86f04383d --- /dev/null +++ b/net-nntp/nzbget/nzbget-19.1.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic user + +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= ) + ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + 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:^LockFile=.*:LockFile=/run/nzbget/nzbget.pid:' \ + -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() { + econf \ + $(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) +} + +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 nzbget + newconfd "${FILESDIR}"/nzbget.confd nzbget +} + +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 +} diff --git a/net-nntp/nzbget/nzbget-20.0_pre2075.ebuild b/net-nntp/nzbget/nzbget-20.0_pre2075.ebuild new file mode 100644 index 000000000000..c6d86f04383d --- /dev/null +++ b/net-nntp/nzbget/nzbget-20.0_pre2075.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic user + +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= ) + ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + 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:^LockFile=.*:LockFile=/run/nzbget/nzbget.pid:' \ + -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() { + econf \ + $(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) +} + +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 nzbget + newconfd "${FILESDIR}"/nzbget.confd nzbget +} + +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 +} diff --git a/net-nntp/nzbget/nzbget-20.0_pre2108-r1.ebuild b/net-nntp/nzbget/nzbget-20.0_pre2108-r1.ebuild new file mode 100644 index 000000000000..3e119a13d9e8 --- /dev/null +++ b/net-nntp/nzbget/nzbget-20.0_pre2108-r1.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic user + +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= ) + ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + 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() { + econf \ + $(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) +} + +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 +} + +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 +} |