summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sautier.louis@gmail.com>2017-06-22 00:40:20 +0200
committerSven Wegener <swegener@gentoo.org>2017-06-22 20:37:05 +0000
commit1c45fef9a1b804b28a913fb8322d247ecf1693a6 (patch)
tree06841a3eec9f07c36708b769fe990c6cbe6efc92 /net-nntp
parentnet-nntp/nzbget: bump to 18.1 (diff)
downloadgentoo-1c45fef9a1b804b28a913fb8322d247ecf1693a6.tar.gz
gentoo-1c45fef9a1b804b28a913fb8322d247ecf1693a6.tar.bz2
gentoo-1c45fef9a1b804b28a913fb8322d247ecf1693a6.zip
net-nntp/nzbget: bump to 19.0_pre2021
Package-Manager: Portage-2.3.6, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/4967
Diffstat (limited to 'net-nntp')
-rw-r--r--net-nntp/nzbget/Manifest1
-rw-r--r--net-nntp/nzbget/nzbget-19.0_pre2021.ebuild121
2 files changed, 122 insertions, 0 deletions
diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest
index cb1fc9a82362..9fc25a16c7b7 100644
--- a/net-nntp/nzbget/Manifest
+++ b/net-nntp/nzbget/Manifest
@@ -3,3 +3,4 @@ DIST nzbget-17.1.tar.gz 1609931 SHA256 4b3cf500d9bb6e9ab65b2c8451358e6c93af03681
DIST nzbget-18.0_pre1865.tar.gz 1781151 SHA256 5dba945d5d53cab4602b91d7e465524943fb762db05831c0d3b4c8c171f98add SHA512 df114a424f896a57f80e205a6cf8be8d24eeecff8a4cce7febdb5f78ced9868f1fad7090c75901f8df2cff190382dd912457924d0fe8abc460825cbb31525530 WHIRLPOOL e204ffbbe5bf92570a3bb2aee26cc2194bc458391ee0641d03be5c645a3689666255c4e28a788b0cbc43fa24d6e5586de55b88cb8e50d7881d58969cd36cebfb
DIST nzbget-18.1.tar.gz 1784894 SHA256 ddf7f9eda1cc4d6f01cd28a5ee4362ef7a399085cda45a82ffdf250d56393819 SHA512 ef7749a024eee9639e2dbd50ab9d57996e7a95a81dd4b9b29b9fdc98a717b053ce43902e638b119d43a8826a83218ccfbd7a6bbd4ea50f3cbf4425ef06df141d WHIRLPOOL 29e96393945d039e8572de4e1be50ab3cb2259d905db934923eb27ccfe1e30b88448e505243689d5e10b8a05f8bd159605fca464352315d6761eeffa4157e76d
DIST nzbget-19.0_pre1903.tar.gz 1784803 SHA256 ddb1ac3d90f6cef2cbc84c20e5505662836f32d6e4d9aa50b7b5b9778122d3e3 SHA512 e03c2927ca07272c8179eb417cbc0b6b95a570aed52cab050914d5351754dd8114166f2837c39e621f819741a0b31e8d78c2fb200f1aeb9f31a963b14d430244 WHIRLPOOL 9b7ab22fafc61087d36a31a2ebc062476151ea30e1c337638bea3b79579e054bc060b6a0dac8cd5d036488993e7ea0551c94ec035754f772ecef707e50dbee91
+DIST nzbget-19.0_pre2021.tar.gz 1808479 SHA256 8c4392e8582a12fa980f217b31183032e12010f4ca7ff324599839771e4f2582 SHA512 a3c1a164267400fff55255fbda353648aa35fa9ebea2b909864706f3680f5767f8b35d80a176c7fbdde6a73f80d2645bb8a8a551742689a484a64c8337af8abf WHIRLPOOL 1ee382145996867746449bf3c5d49502c81801d9d5d873bea8b2a6285ae4855fd028dff61212ff90d44f26c517e248178ce7337cf8b13607129317bdc759e919
diff --git a/net-nntp/nzbget/nzbget-19.0_pre2021.ebuild b/net-nntp/nzbget/nzbget-19.0_pre2021.ebuild
new file mode 100644
index 000000000000..c6d86f04383d
--- /dev/null
+++ b/net-nntp/nzbget/nzbget-19.0_pre2021.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
+}