summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sautier.louis@gmail.com>2017-01-29 14:17:06 +0100
committerDavid Seifert <soap@gentoo.org>2017-01-29 23:54:40 +0100
commit9bfa3d19e85113c32c3fe290921d0c6cd9bb57b8 (patch)
treecad396d5c019ecf0a0421e54aa97032ea14090fb /net-nntp/nzbget
parentmedia-video/mpv: disable broken cross-builds with raspberry-pi in 9999 (diff)
downloadgentoo-9bfa3d19e85113c32c3fe290921d0c6cd9bb57b8.tar.gz
gentoo-9bfa3d19e85113c32c3fe290921d0c6cd9bb57b8.tar.bz2
gentoo-9bfa3d19e85113c32c3fe290921d0c6cd9bb57b8.zip
net-nntp/nzbget: bump to 18.0_pre1865, remove dead upstream from metadata.xml
Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/3713
Diffstat (limited to 'net-nntp/nzbget')
-rw-r--r--net-nntp/nzbget/Manifest1
-rw-r--r--net-nntp/nzbget/metadata.xml1
-rw-r--r--net-nntp/nzbget/nzbget-18.0_pre1865.ebuild122
3 files changed, 123 insertions, 1 deletions
diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest
index fee5db1dbf4..69f4d12d13b 100644
--- a/net-nntp/nzbget/Manifest
+++ b/net-nntp/nzbget/Manifest
@@ -2,3 +2,4 @@ DIST nzbget-14.1.tar.gz 1332334 SHA256 a16b816b61f7035cc373e9b77094ca474d5b7b7f7
DIST nzbget-16.4-src.tar.gz 1585908 SHA256 8e9e3ee75d2d08a8e438b2809f504a627a9334ed239579a540b75fa97bff4d0f SHA512 12ebde277abac5f719f374861013fa391f4698d850ac57c55787609fec54490fb09437c6a803fc0ca935c482ed5ccd16c525e17ba40a514f7a54316dc04ee874 WHIRLPOOL 2d1c21d45a74eaea7dcb1c99c9b409f506547189c832b432331ae2b64ee67050245acb8ff1cd522bd64460d9d7ac806b344fd0f3bbc21de4bfca12dcc815692d
DIST nzbget-17.1.tar.gz 1609931 SHA256 4b3cf500d9bb6e9ab65b2c8451358e6c93af0368176f193eebafca17d7209c39 SHA512 5fde874b68423bb6d4cf63fc68aee0087b4d801a73a05124c1b3d0e883877cd585400001191e58386e115b2664906f16e67f5f7d5a0ece93bf51f55ec1e7309b WHIRLPOOL bcae41e87e8cb6ce429dd065fe7904cc04b36da4435de43c3424afd1a37f3e5da55769d2684df368687fb8ee6d6f72ff80452c54a07ffa09fbe9918c7d40c167
DIST nzbget-18.0_pre1820.tar.gz 1775316 SHA256 f31fed20ed5329cba1e9bcd533657de878a0b090badc7c08f0b0534e5177c3aa SHA512 004c8729b7ffed16e06c54c71f6ca0c69543d3a208bee6dae1e2bfccbc25952dc8a9f0ef0899663cca13d95ea4424f2b2bb96ee3358bf49c645076275d9cd3a4 WHIRLPOOL cf9c759a517f93d4a88f795cf3eab6858dac47be1392140b8e7f86eb09cfb8f59df57976f956db2d07b2f2f0aab117198b71d58b3705e5147759f5c352f6a125
+DIST nzbget-18.0_pre1865.tar.gz 1781151 SHA256 5dba945d5d53cab4602b91d7e465524943fb762db05831c0d3b4c8c171f98add SHA512 df114a424f896a57f80e205a6cf8be8d24eeecff8a4cce7febdb5f78ced9868f1fad7090c75901f8df2cff190382dd912457924d0fe8abc460825cbb31525530 WHIRLPOOL e204ffbbe5bf92570a3bb2aee26cc2194bc458391ee0641d03be5c645a3689666255c4e28a788b0cbc43fa24d6e5586de55b88cb8e50d7881d58969cd36cebfb
diff --git a/net-nntp/nzbget/metadata.xml b/net-nntp/nzbget/metadata.xml
index 933a5cf92ec..315568d5bc7 100644
--- a/net-nntp/nzbget/metadata.xml
+++ b/net-nntp/nzbget/metadata.xml
@@ -10,7 +10,6 @@
<flag name="parcheck">Enable support for checking PAR archives</flag>
</use>
<upstream>
- <remote-id type="sourceforge">nzbget</remote-id>
<remote-id type="github">nzbget/nzbget</remote-id>
<bugs-to>https://github.com/nzbget/nzbget/issues</bugs-to>
</upstream>
diff --git a/net-nntp/nzbget/nzbget-18.0_pre1865.ebuild b/net-nntp/nzbget/nzbget-18.0_pre1865.ebuild
new file mode 100644
index 00000000000..3bd619583da
--- /dev/null
+++ b/net-nntp/nzbget/nzbget-18.0_pre1865.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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:=
+ 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
+}