Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/nzbget/
Date: Sat, 28 Apr 2018 21:03:19
Message-Id: 1524949377.29d4277b0d0122ffd5b02e33c2008a01049c7ded.monsieurp@gentoo
1 commit: 29d4277b0d0122ffd5b02e33c2008a01049c7ded
2 Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com>
3 AuthorDate: Sat Apr 28 16:04:57 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 28 21:02:57 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29d4277b
7
8 net-nntp/nzbget: bump to 20.0_pre2176.
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11 Closes: https://github.com/gentoo/gentoo/pull/8192
12
13 net-nntp/nzbget/Manifest | 1 +
14 net-nntp/nzbget/nzbget-20.0_pre2176.ebuild | 126 +++++++++++++++++++++++++++++
15 2 files changed, 127 insertions(+)
16
17 diff --git a/net-nntp/nzbget/Manifest b/net-nntp/nzbget/Manifest
18 index 1e7e53f0a05..7d1db55325f 100644
19 --- a/net-nntp/nzbget/Manifest
20 +++ b/net-nntp/nzbget/Manifest
21 @@ -2,3 +2,4 @@ DIST nzbget-14.1.tar.gz 1332334 BLAKE2B cbb633993ffd4c7a9cf6556ef833838296bb4d64
22 DIST nzbget-19.1.tar.gz 1809849 BLAKE2B 30740c22e06f9b794485bb5c0c28cd95f9953863203a9055bf453a9adfe1e58adcf69dcddc3640c13aefb90bb26cd444070af2d9f0f6fadee676af453cdb23c2 SHA512 3ba7cd7f7fec28e29129be0a1ca5879a0593bc54be49e3776e84eeb7804377eec47106aa2371b31dec7d9152301d68b199ce9e66db714195defc8e15ef636532
23 DIST nzbget-20.0_pre2159.tar.gz 1840392 BLAKE2B 88362e6d6f76cbe0deb028c0b78ab11573359bac05ea5e7539ff46644562f804b20b518fa1ed59b6698905b104f47c3193d15175420945f74c3897fd13aefebb SHA512 31799b2164db748389b7a2895d8571543aaf2e4324017b1adcb4eb44ad2046a0b488fb29a2c77b1d4963b858f7ec614d78eb541090b0889bef634d6d0461a50c
24 DIST nzbget-20.0_pre2171.tar.gz 1942642 BLAKE2B 7df73755fa6a6571bdce22830f3e18c9b7b41b1c4c75f139e390719e92b6afef065e18fab8222d5a08d88c6240e8a96448d7df1db025d97b7c2a4f17f1098f60 SHA512 3a2506148607e59dc73eafeeab6847868761c4a6c26504fe9a0b3043716f8fb542bb6b5f06696ec49d9d7a04df0b73005e12d71588a54b82d8dca19c04944dd5
25 +DIST nzbget-20.0_pre2176.tar.gz 1923841 BLAKE2B ba6ba301013b160f4dcaf21257dc2c1ceac3c64c645bde556ed45e8dca5011b8d9b9ce76fbaf42b78f6400b530c4c0baa94ad34fe09daa86619506dd76333ca2 SHA512 7be68999cc284a53100c0892f7558e3e1d2ac7d83019c933ae0596de56a8c9bec78571aaf34983103a30563dcdd6387987f7a13404e0ffac48007e0d44efa525
26
27 diff --git a/net-nntp/nzbget/nzbget-20.0_pre2176.ebuild b/net-nntp/nzbget/nzbget-20.0_pre2176.ebuild
28 new file mode 100644
29 index 00000000000..604c8daa06d
30 --- /dev/null
31 +++ b/net-nntp/nzbget/nzbget-20.0_pre2176.ebuild
32 @@ -0,0 +1,126 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit autotools eutils flag-o-matic user
39 +
40 +MY_PV=${PV/_pre/-r}
41 +MY_P=${PN}-${PV/_pre/-testing-r}
42 +
43 +DESCRIPTION="A command-line based binary newsgrabber supporting .nzb files"
44 +HOMEPAGE="https://nzbget.net/"
45 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}-src.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="GPL-2+"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~ppc ~x86"
50 +IUSE="debug gnutls ncurses +parcheck ssl test zlib"
51 +
52 +RDEPEND="dev-libs/libxml2:=
53 + ncurses? ( sys-libs/ncurses:0= )
54 + ssl? (
55 + gnutls? (
56 + net-libs/gnutls:=
57 + dev-libs/nettle:=
58 + )
59 + !gnutls? ( dev-libs/openssl:0=[-bindist] )
60 + )
61 + zlib? ( sys-libs/zlib:= )"
62 +DEPEND="${RDEPEND}
63 + test? (
64 + || (
65 + =app-arch/rar-5*
66 + =app-arch/unrar-5*
67 + )
68 + )
69 + virtual/pkgconfig"
70 +DOCS=( ChangeLog README nzbget.conf )
71 +
72 +S=${WORKDIR}/${PN}-${PV/_pre*/-testing}
73 +
74 +check_compiler() {
75 + if [[ ${MERGE_TYPE} != binary ]] && ! test-flag-CXX -std=c++14; then
76 + eerror "${P} requires a C++14-capable compiler. Your current compiler"
77 + eerror "does not seem to support the -std=c++14 option. Please"
78 + eerror "upgrade to gcc-4.9 or an equivalent version supporting C++14."
79 + die "The currently active compiler does not support -std=c++14"
80 + fi
81 +}
82 +
83 +pkg_pretend() {
84 + check_compiler
85 +}
86 +
87 +pkg_setup() {
88 + check_compiler
89 +}
90 +
91 +src_prepare() {
92 + default
93 + eautoreconf
94 +
95 + sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die
96 +
97 + sed \
98 + -e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \
99 + -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \
100 + -e 's:^WebDir=.*:WebDir=/usr/share/nzbget/webui:' \
101 + -e 's:^ConfigTemplate=.*:ConfigTemplate=/usr/share/nzbget/nzbget.conf:' \
102 + -e 's:^DaemonUsername=.*:DaemonUsername=nzbget:' \
103 + nzbget.conf > nzbgetd.conf || die
104 +}
105 +
106 +src_configure() {
107 + econf \
108 + $(use_enable debug) \
109 + $(use_enable ncurses curses) \
110 + $(use_enable parcheck) \
111 + $(use_enable ssl tls) \
112 + $(use_enable zlib gzip) \
113 + $(use_enable test tests) \
114 + --with-tlslib=$(usex gnutls GnuTLS OpenSSL)
115 +}
116 +
117 +src_test() {
118 + ./nzbget --tests || die "Tests failed"
119 +}
120 +
121 +src_install() {
122 + default
123 +
124 + insinto /etc
125 + doins nzbget.conf
126 + doins nzbgetd.conf
127 +
128 + keepdir /var/lib/nzbget/{dst,nzb,queue,tmp}
129 + keepdir /var/log/nzbget
130 +
131 + newinitd "${FILESDIR}"/nzbget.initd-r1 nzbget
132 + newconfd "${FILESDIR}"/nzbget.confd nzbget
133 +}
134 +
135 +pkg_preinst() {
136 + enewgroup nzbget
137 + enewuser nzbget -1 -1 /var/lib/nzbget nzbget
138 +
139 + fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp}
140 + fperms 750 /var/lib/nzbget/{queue,tmp}
141 + fperms 770 /var/lib/nzbget/{dst,nzb}
142 +
143 + fowners nzbget:nzbget /var/log/nzbget
144 + fperms 750 /var/log/nzbget
145 +
146 + fowners nzbget:nzbget /etc/nzbgetd.conf
147 + fperms 640 /etc/nzbgetd.conf
148 +}
149 +
150 +pkg_postinst() {
151 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
152 + elog
153 + elog "Please add users that you want to be able to use the system-wide"
154 + elog "nzbget daemon to the nzbget group. To access the daemon run nzbget"
155 + elog "with the --configfile /etc/nzbgetd.conf option."
156 + elog
157 + fi
158 +}