summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sautier.louis@gmail.com>2016-08-01 12:00:23 +0200
committerGöktürk Yüksek <gokturk@gentoo.org>2016-08-04 01:07:03 -0400
commit19b7e844a90d923dfe062b7236391151830dbf2f (patch)
treef4c3a6599e376454eb194da304625d1de3116118 /net-nntp
parentsys-process/procexp: drop python from maintainers (diff)
downloadgentoo-19b7e844a90d923dfe062b7236391151830dbf2f.tar.gz
gentoo-19b7e844a90d923dfe062b7236391151830dbf2f.tar.bz2
gentoo-19b7e844a90d923dfe062b7236391151830dbf2f.zip
net-nntp/nzbget: bump to 17.0, update LICENSE
Package-Manager: portage-2.3.0
Diffstat (limited to 'net-nntp')
-rw-r--r--net-nntp/nzbget/Manifest1
-rw-r--r--net-nntp/nzbget/nzbget-17.0.ebuild109
2 files changed, 110 insertions, 0 deletions
diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest
index 166d242350a0..3b16352965a4 100644
--- a/net-nntp/nzbget/Manifest
+++ b/net-nntp/nzbget/Manifest
@@ -1,4 +1,5 @@
DIST nzbget-14.1.tar.gz 1332334 SHA256 a16b816b61f7035cc373e9b77094ca474d5b7b7f7ceff5fa8818249181db4b18 SHA512 fae938529bb3968c0161f63ec3af07f844a8128b61abf6298457a4878ac0d47541d76730c8a068509fa091b102de07c9d28dcd668a8192fcfac60980f69be56d WHIRLPOOL 9e9636b67d0af7780d2cc8f897465f5a2e23cd8695b3bd982e3e9f78d68adb34f84faf59253044c7b2f95db737cf59207b35cf312d1f1825fe4b9ecce2e4014f
DIST nzbget-16.4-src.tar.gz 1585908 SHA256 8e9e3ee75d2d08a8e438b2809f504a627a9334ed239579a540b75fa97bff4d0f SHA512 12ebde277abac5f719f374861013fa391f4698d850ac57c55787609fec54490fb09437c6a803fc0ca935c482ed5ccd16c525e17ba40a514f7a54316dc04ee874 WHIRLPOOL 2d1c21d45a74eaea7dcb1c99c9b409f506547189c832b432331ae2b64ee67050245acb8ff1cd522bd64460d9d7ac806b344fd0f3bbc21de4bfca12dcc815692d
+DIST nzbget-17.0.tar.gz 1608851 SHA256 795c830344dcc8751a2234a8344190b3f3e48e1ce92dcff02ee0af95a5fa46ae SHA512 18a3839447baec8137b9763f93031086fa740b3fe6e5a3342a28d51eee128b808b117737cfa15e39ee3586d2c6fc5a736563580cb4abe23b0ad29b55790c132c WHIRLPOOL fe65628fd517bd2ec99bb37b3d08e014e06ac03370f4e65e0ce771a34031f7a99d561b0180b5e3cafe0c07974e59636339722684c476794283688c20b2afc809
DIST nzbget-17.0_pre1686.tar.gz 1600950 SHA256 3c3ade8ad0cd6a3013e541c7cdc771fcf186f12cc30866db8e6bccc658846042 SHA512 4c7e64e44534e3a4df816ba359ccff59e409d6641fc6eb87d66a743572728ab6f62cfab5135b83de52f41fff737ef4519160a8929bab826e97230ab63e196669 WHIRLPOOL 92f205faeb027ab1467296c6d44ad5df8afc0009541006df0f50bdefe8b9ee987ac5fcf62432a43b028aed705dbb9730eba7d1faf58e666fc14e8879f79686ce
DIST nzbget-17.0_pre1726.tar.gz 1606506 SHA256 ef3b2414af5a41534a9b1a5f80bce201e2b3501dbc554e7661f883cf04f2682f SHA512 434c6a43973e44393bdb786872d601d1039c4d6177d2613f474b72f092c05c360ce1cf9d6558d265b202e8074a451ab7151a92a3ac0a03820dd5a1b4eef30923 WHIRLPOOL 8a4c575c3ec14c451b6cad8712a07f3eb1a542c2151947432ac8c9f03363160021e49215be3591de2f0b0bc950dd76d8eac4147b4498c81047a3a91d53b65c64
diff --git a/net-nntp/nzbget/nzbget-17.0.ebuild b/net-nntp/nzbget/nzbget-17.0.ebuild
new file mode 100644
index 000000000000..4c54fbb56d1d
--- /dev/null
+++ b/net-nntp/nzbget/nzbget-17.0.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit 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="http://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 )
+ !gnutls? ( dev-libs/openssl:0= )
+ )
+ zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+DOCS=( ChangeLog README nzbget.conf )
+
+S=${WORKDIR}/${PN}-${PV/_pre*/-testing}
+
+pkg_pretend() {
+ 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
+}
+
+src_prepare() {
+ default
+ 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
+}