1 |
commit: 6cd58c834c373f9419fbe603ef77d84e848efcb4 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 1 17:59:31 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 1 17:59:31 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cd58c83 |
7 |
|
8 |
net-nntp/sabnzbd: drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.16, Repoman-3.0.2 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
net-nntp/sabnzbd/Manifest | 4 - |
14 |
net-nntp/sabnzbd/sabnzbd-3.0.0-r1.ebuild | 121 ------------------------------- |
15 |
net-nntp/sabnzbd/sabnzbd-3.0.1.ebuild | 121 ------------------------------- |
16 |
net-nntp/sabnzbd/sabnzbd-3.0.2.ebuild | 121 ------------------------------- |
17 |
net-nntp/sabnzbd/sabnzbd-3.1.0.ebuild | 121 ------------------------------- |
18 |
5 files changed, 488 deletions(-) |
19 |
|
20 |
diff --git a/net-nntp/sabnzbd/Manifest b/net-nntp/sabnzbd/Manifest |
21 |
index 9b9c8d156a8..698ab45289c 100644 |
22 |
--- a/net-nntp/sabnzbd/Manifest |
23 |
+++ b/net-nntp/sabnzbd/Manifest |
24 |
@@ -1,5 +1 @@ |
25 |
-DIST SABnzbd-3.0.0-src.tar.gz 2673275 BLAKE2B 418ffd55c395c9d31e80f087c5e8c47e30bd86dbd8783afc173c9c54c6259b0d4607f5377ff3d83673f8e8ba24f46d5ad923a933a415097a7e48739f01039b45 SHA512 70441d76ad2e6cba33b033a85a29815fc50e9c714a275120bc7010e5e0cfb885f7b3d42f497c4ce46123c9bce2d33f778865d9a17878f6fe5811849faa6fe215 |
26 |
-DIST SABnzbd-3.0.1-src.tar.gz 2674117 BLAKE2B 8143e449e70e0d17cc29437ed11a01d2d006f9840eb218d35a72d0da3dfe64d698ea239bbacc11d341b1a82b96e68dd10cff8145b46d41f85d3c3087779695e8 SHA512 0eefff2c9b64ba92b7f550a22aef21a718b603e5aa1f46818d7516e95c446e9edc556d0e2e16d69f9abad1a6f49146dd90331396f4858e8d7a2903890931e8cf |
27 |
-DIST SABnzbd-3.0.2-src.tar.gz 2687984 BLAKE2B 47719c247a1bf7bf16a3df0a0fea430c0cf335598ad8f34e6c7c8e9bd762afafc9fdda76c542d4327f9608ea8a845effa57090e07c511906bd782bf93373bb9c SHA512 023eb5f6ae31dab177584bff7f087269f50079e283d3d7873fc29d5f3438fdf2d0d0d49c8e4844d2b11e214510e1f7a60e635e0c37ca74b153f9ee2a9dede238 |
28 |
-DIST SABnzbd-3.1.0-src.tar.gz 2735263 BLAKE2B b01f381c79287db2559176af6bd2409947d0c509e8aa48faf6ac614644e66b4090042eeac3d86b82d8d9b4e2bf92f3f360743d88f45db05f0969de189ac91fd5 SHA512 fb8ccbe82aff763847592668e5423f96dae6e0c70e42e2c7a58de1eb99ff552401df9178b4245d3a09968da1550948e382f65ada9341faeccd58f9b98eb4a680 |
29 |
DIST SABnzbd-3.1.1-src.tar.gz 2735624 BLAKE2B 411963a49468cb0654be2f586790baaf1f0657491f7f1da848afe2d0fa89750cde8dc06c8a748fe6cb120d27a961881befb1100a234a28d7ec211b4435011576 SHA512 4e8debd2a0ef7379789df035f7d929e2b3dbf13d9394dfebb6075d8b877e610d4ef8953e98eeafd6048952738046bb6b9539e85516f8783c5e06bda1470b3c7e |
30 |
|
31 |
diff --git a/net-nntp/sabnzbd/sabnzbd-3.0.0-r1.ebuild b/net-nntp/sabnzbd/sabnzbd-3.0.0-r1.ebuild |
32 |
deleted file mode 100644 |
33 |
index 4ddc240f0d8..00000000000 |
34 |
--- a/net-nntp/sabnzbd/sabnzbd-3.0.0-r1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,121 +0,0 @@ |
37 |
-# Copyright 1999-2020 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI="7" |
41 |
- |
42 |
-# Require python-2 with sqlite USE flag |
43 |
-PYTHON_COMPAT=( python3_{7..8} ) |
44 |
-PYTHON_REQ_USE="sqlite" |
45 |
- |
46 |
-inherit python-single-r1 systemd |
47 |
- |
48 |
-MY_PV="${PV/_rc/RC}" |
49 |
-MY_PV="${MY_PV//_pre*}" |
50 |
- |
51 |
-MY_P="${PN/sab/SAB}-${MY_PV}" |
52 |
- |
53 |
-DESCRIPTION="Binary newsgrabber with web-interface" |
54 |
-HOMEPAGE="https://sabnzbd.org/" |
55 |
-SRC_URI="https://github.com/sabnzbd/sabnzbd/releases/download/${MY_PV}/${MY_P}-src.tar.gz" |
56 |
- |
57 |
-# Sabnzbd is GPL-2 but bundles software with the following licenses. |
58 |
-LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1" |
59 |
-SLOT="0" |
60 |
-KEYWORDS="~amd64" |
61 |
-IUSE="+7za +rar unzip" |
62 |
- |
63 |
-# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not |
64 |
-# be in python's sitedir. See: https://sabnzbd.org/wiki/advanced/unix-packaging |
65 |
- |
66 |
-COMMON_DEPS=" |
67 |
- acct-user/sabnzbd |
68 |
- acct-group/sabnzbd |
69 |
- ${PYTHON_DEPS} |
70 |
- $(python_gen_cond_dep ' |
71 |
- dev-python/chardet[${PYTHON_MULTI_USEDEP}] |
72 |
- dev-python/cheetah3[${PYTHON_MULTI_USEDEP}] |
73 |
- dev-python/cherrypy[${PYTHON_MULTI_USEDEP}] |
74 |
- dev-python/configobj[${PYTHON_MULTI_USEDEP}] |
75 |
- dev-python/cryptography[${PYTHON_MULTI_USEDEP}] |
76 |
- <dev-python/feedparser-6[${PYTHON_MULTI_USEDEP}] |
77 |
- dev-python/notify2[${PYTHON_MULTI_USEDEP}] |
78 |
- dev-python/portend[${PYTHON_MULTI_USEDEP}] |
79 |
- >=dev-python/sabyenc-3.3.1[${PYTHON_MULTI_USEDEP}] |
80 |
- ') |
81 |
-" |
82 |
- |
83 |
-DEPEND="${COMMON_DEPS}" |
84 |
- |
85 |
-RDEPEND=" |
86 |
- ${COMMON_DEPS} |
87 |
- >=app-arch/par2cmdline-0.4 |
88 |
- net-misc/wget |
89 |
- 7za? ( app-arch/p7zip ) |
90 |
- rar? ( || ( app-arch/unrar app-arch/rar ) ) |
91 |
- unzip? ( >=app-arch/unzip-5.5.2 ) |
92 |
-" |
93 |
- |
94 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
95 |
- |
96 |
-S="${WORKDIR}/${MY_P}" |
97 |
- |
98 |
-pkg_setup() { |
99 |
- MY_HOMEDIR="/var/lib/${PN}" |
100 |
- python-single-r1_pkg_setup |
101 |
-} |
102 |
- |
103 |
-src_install() { |
104 |
- local d |
105 |
- |
106 |
- for d in email icons interfaces locale po sabnzbd scripts tools; do |
107 |
- insinto "/usr/share/${PN}/${d}" |
108 |
- doins -r ${d}/* |
109 |
- done |
110 |
- |
111 |
- exeinto "/usr/share/${PN}" |
112 |
- doexe SABnzbd.py |
113 |
- |
114 |
- python_fix_shebang "${ED}/usr/share/${PN}" |
115 |
- python_optimize "${ED}/usr/share/${PN}" |
116 |
- |
117 |
- newinitd "${FILESDIR}/${PN}-r1.initd" "${PN}" |
118 |
- newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
119 |
- |
120 |
- diropts -o "${PN}" -g "${PN}" |
121 |
- dodir "/etc/${PN}" |
122 |
- keepdir "/var/log/${PN}" |
123 |
- |
124 |
- insinto "/etc/${PN}" |
125 |
- insopts -m 0600 -o "${PN}" -g "${PN}" |
126 |
- newins "${FILESDIR}"/${PN}-r1.ini ${PN}.ini |
127 |
- |
128 |
- dodoc {ABOUT,ISSUES}.txt README.mkd licenses/* |
129 |
- |
130 |
- systemd_newunit "${FILESDIR}"/sabnzbd_at.service 'sabnzbd@.service' |
131 |
-} |
132 |
- |
133 |
-pkg_postinst() { |
134 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
135 |
- # This is a new installation |
136 |
- einfo "Default directory: ${MY_HOMEDIR}" |
137 |
- einfo |
138 |
- einfo "To add a user to the sabnzbd group so it can edit SABnzbd+ files, run:" |
139 |
- einfo |
140 |
- einfo " usermod -a -G sabnzbd <user>" |
141 |
- einfo |
142 |
- einfo "By default, SABnzbd will listen on TCP port 8080." |
143 |
- else |
144 |
- local v |
145 |
- for v in ${REPLACING_VERSIONS}; do |
146 |
- if ver_test "${v}" -lt 3; then |
147 |
- ewarn |
148 |
- ewarn "Due to changes in this release, the queue will be converted when ${PN}" |
149 |
- ewarn "is started for the first time. Job order, settings and data will be" |
150 |
- ewarn "preserved, but all jobs will be unpaused and URLs that did not finish" |
151 |
- ewarn "fetching before the upgrade will be lost!" |
152 |
- ewarn |
153 |
- break |
154 |
- fi |
155 |
- done |
156 |
- fi |
157 |
-} |
158 |
|
159 |
diff --git a/net-nntp/sabnzbd/sabnzbd-3.0.1.ebuild b/net-nntp/sabnzbd/sabnzbd-3.0.1.ebuild |
160 |
deleted file mode 100644 |
161 |
index 4ddc240f0d8..00000000000 |
162 |
--- a/net-nntp/sabnzbd/sabnzbd-3.0.1.ebuild |
163 |
+++ /dev/null |
164 |
@@ -1,121 +0,0 @@ |
165 |
-# Copyright 1999-2020 Gentoo Authors |
166 |
-# Distributed under the terms of the GNU General Public License v2 |
167 |
- |
168 |
-EAPI="7" |
169 |
- |
170 |
-# Require python-2 with sqlite USE flag |
171 |
-PYTHON_COMPAT=( python3_{7..8} ) |
172 |
-PYTHON_REQ_USE="sqlite" |
173 |
- |
174 |
-inherit python-single-r1 systemd |
175 |
- |
176 |
-MY_PV="${PV/_rc/RC}" |
177 |
-MY_PV="${MY_PV//_pre*}" |
178 |
- |
179 |
-MY_P="${PN/sab/SAB}-${MY_PV}" |
180 |
- |
181 |
-DESCRIPTION="Binary newsgrabber with web-interface" |
182 |
-HOMEPAGE="https://sabnzbd.org/" |
183 |
-SRC_URI="https://github.com/sabnzbd/sabnzbd/releases/download/${MY_PV}/${MY_P}-src.tar.gz" |
184 |
- |
185 |
-# Sabnzbd is GPL-2 but bundles software with the following licenses. |
186 |
-LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1" |
187 |
-SLOT="0" |
188 |
-KEYWORDS="~amd64" |
189 |
-IUSE="+7za +rar unzip" |
190 |
- |
191 |
-# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not |
192 |
-# be in python's sitedir. See: https://sabnzbd.org/wiki/advanced/unix-packaging |
193 |
- |
194 |
-COMMON_DEPS=" |
195 |
- acct-user/sabnzbd |
196 |
- acct-group/sabnzbd |
197 |
- ${PYTHON_DEPS} |
198 |
- $(python_gen_cond_dep ' |
199 |
- dev-python/chardet[${PYTHON_MULTI_USEDEP}] |
200 |
- dev-python/cheetah3[${PYTHON_MULTI_USEDEP}] |
201 |
- dev-python/cherrypy[${PYTHON_MULTI_USEDEP}] |
202 |
- dev-python/configobj[${PYTHON_MULTI_USEDEP}] |
203 |
- dev-python/cryptography[${PYTHON_MULTI_USEDEP}] |
204 |
- <dev-python/feedparser-6[${PYTHON_MULTI_USEDEP}] |
205 |
- dev-python/notify2[${PYTHON_MULTI_USEDEP}] |
206 |
- dev-python/portend[${PYTHON_MULTI_USEDEP}] |
207 |
- >=dev-python/sabyenc-3.3.1[${PYTHON_MULTI_USEDEP}] |
208 |
- ') |
209 |
-" |
210 |
- |
211 |
-DEPEND="${COMMON_DEPS}" |
212 |
- |
213 |
-RDEPEND=" |
214 |
- ${COMMON_DEPS} |
215 |
- >=app-arch/par2cmdline-0.4 |
216 |
- net-misc/wget |
217 |
- 7za? ( app-arch/p7zip ) |
218 |
- rar? ( || ( app-arch/unrar app-arch/rar ) ) |
219 |
- unzip? ( >=app-arch/unzip-5.5.2 ) |
220 |
-" |
221 |
- |
222 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
223 |
- |
224 |
-S="${WORKDIR}/${MY_P}" |
225 |
- |
226 |
-pkg_setup() { |
227 |
- MY_HOMEDIR="/var/lib/${PN}" |
228 |
- python-single-r1_pkg_setup |
229 |
-} |
230 |
- |
231 |
-src_install() { |
232 |
- local d |
233 |
- |
234 |
- for d in email icons interfaces locale po sabnzbd scripts tools; do |
235 |
- insinto "/usr/share/${PN}/${d}" |
236 |
- doins -r ${d}/* |
237 |
- done |
238 |
- |
239 |
- exeinto "/usr/share/${PN}" |
240 |
- doexe SABnzbd.py |
241 |
- |
242 |
- python_fix_shebang "${ED}/usr/share/${PN}" |
243 |
- python_optimize "${ED}/usr/share/${PN}" |
244 |
- |
245 |
- newinitd "${FILESDIR}/${PN}-r1.initd" "${PN}" |
246 |
- newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
247 |
- |
248 |
- diropts -o "${PN}" -g "${PN}" |
249 |
- dodir "/etc/${PN}" |
250 |
- keepdir "/var/log/${PN}" |
251 |
- |
252 |
- insinto "/etc/${PN}" |
253 |
- insopts -m 0600 -o "${PN}" -g "${PN}" |
254 |
- newins "${FILESDIR}"/${PN}-r1.ini ${PN}.ini |
255 |
- |
256 |
- dodoc {ABOUT,ISSUES}.txt README.mkd licenses/* |
257 |
- |
258 |
- systemd_newunit "${FILESDIR}"/sabnzbd_at.service 'sabnzbd@.service' |
259 |
-} |
260 |
- |
261 |
-pkg_postinst() { |
262 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
263 |
- # This is a new installation |
264 |
- einfo "Default directory: ${MY_HOMEDIR}" |
265 |
- einfo |
266 |
- einfo "To add a user to the sabnzbd group so it can edit SABnzbd+ files, run:" |
267 |
- einfo |
268 |
- einfo " usermod -a -G sabnzbd <user>" |
269 |
- einfo |
270 |
- einfo "By default, SABnzbd will listen on TCP port 8080." |
271 |
- else |
272 |
- local v |
273 |
- for v in ${REPLACING_VERSIONS}; do |
274 |
- if ver_test "${v}" -lt 3; then |
275 |
- ewarn |
276 |
- ewarn "Due to changes in this release, the queue will be converted when ${PN}" |
277 |
- ewarn "is started for the first time. Job order, settings and data will be" |
278 |
- ewarn "preserved, but all jobs will be unpaused and URLs that did not finish" |
279 |
- ewarn "fetching before the upgrade will be lost!" |
280 |
- ewarn |
281 |
- break |
282 |
- fi |
283 |
- done |
284 |
- fi |
285 |
-} |
286 |
|
287 |
diff --git a/net-nntp/sabnzbd/sabnzbd-3.0.2.ebuild b/net-nntp/sabnzbd/sabnzbd-3.0.2.ebuild |
288 |
deleted file mode 100644 |
289 |
index dc51dbd417a..00000000000 |
290 |
--- a/net-nntp/sabnzbd/sabnzbd-3.0.2.ebuild |
291 |
+++ /dev/null |
292 |
@@ -1,121 +0,0 @@ |
293 |
-# Copyright 1999-2020 Gentoo Authors |
294 |
-# Distributed under the terms of the GNU General Public License v2 |
295 |
- |
296 |
-EAPI="7" |
297 |
- |
298 |
-# Require python-2 with sqlite USE flag |
299 |
-PYTHON_COMPAT=( python3_{7..8} ) |
300 |
-PYTHON_REQ_USE="sqlite" |
301 |
- |
302 |
-inherit python-single-r1 systemd |
303 |
- |
304 |
-MY_PV="${PV/_rc/RC}" |
305 |
-MY_PV="${MY_PV//_pre*}" |
306 |
- |
307 |
-MY_P="${PN/sab/SAB}-${MY_PV}" |
308 |
- |
309 |
-DESCRIPTION="Binary newsgrabber with web-interface" |
310 |
-HOMEPAGE="https://sabnzbd.org/" |
311 |
-SRC_URI="https://github.com/sabnzbd/sabnzbd/releases/download/${MY_PV}/${MY_P}-src.tar.gz" |
312 |
- |
313 |
-# Sabnzbd is GPL-2 but bundles software with the following licenses. |
314 |
-LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1" |
315 |
-SLOT="0" |
316 |
-KEYWORDS="~amd64" |
317 |
-IUSE="+7za +rar unzip" |
318 |
- |
319 |
-# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not |
320 |
-# be in python's sitedir. See: https://sabnzbd.org/wiki/advanced/unix-packaging |
321 |
- |
322 |
-COMMON_DEPS=" |
323 |
- acct-user/sabnzbd |
324 |
- acct-group/sabnzbd |
325 |
- ${PYTHON_DEPS} |
326 |
- $(python_gen_cond_dep ' |
327 |
- dev-python/chardet[${PYTHON_MULTI_USEDEP}] |
328 |
- dev-python/cheetah3[${PYTHON_MULTI_USEDEP}] |
329 |
- dev-python/cherrypy[${PYTHON_MULTI_USEDEP}] |
330 |
- dev-python/configobj[${PYTHON_MULTI_USEDEP}] |
331 |
- dev-python/cryptography[${PYTHON_MULTI_USEDEP}] |
332 |
- <dev-python/feedparser-6[${PYTHON_MULTI_USEDEP}] |
333 |
- dev-python/notify2[${PYTHON_MULTI_USEDEP}] |
334 |
- dev-python/portend[${PYTHON_MULTI_USEDEP}] |
335 |
- >=dev-python/sabyenc-3.3.1[${PYTHON_MULTI_USEDEP}] |
336 |
- ') |
337 |
-" |
338 |
- |
339 |
-DEPEND="${COMMON_DEPS}" |
340 |
- |
341 |
-RDEPEND=" |
342 |
- ${COMMON_DEPS} |
343 |
- >=app-arch/par2cmdline-0.4 |
344 |
- net-misc/wget |
345 |
- 7za? ( app-arch/p7zip ) |
346 |
- rar? ( || ( app-arch/unrar app-arch/rar ) ) |
347 |
- unzip? ( >=app-arch/unzip-5.5.2 ) |
348 |
-" |
349 |
- |
350 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
351 |
- |
352 |
-S="${WORKDIR}/${MY_P}" |
353 |
- |
354 |
-pkg_setup() { |
355 |
- MY_HOMEDIR="/var/lib/${PN}" |
356 |
- python-single-r1_pkg_setup |
357 |
-} |
358 |
- |
359 |
-src_install() { |
360 |
- local d |
361 |
- |
362 |
- for d in email icons interfaces locale po sabnzbd scripts tools; do |
363 |
- insinto "/usr/share/${PN}/${d}" |
364 |
- doins -r ${d}/* |
365 |
- done |
366 |
- |
367 |
- exeinto "/usr/share/${PN}" |
368 |
- doexe SABnzbd.py |
369 |
- |
370 |
- python_fix_shebang "${ED}/usr/share/${PN}" |
371 |
- python_optimize "${ED}/usr/share/${PN}" |
372 |
- |
373 |
- newinitd "${FILESDIR}/${PN}-r1.initd" "${PN}" |
374 |
- newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
375 |
- |
376 |
- diropts -o "${PN}" -g "${PN}" |
377 |
- dodir "/etc/${PN}" |
378 |
- keepdir "/var/log/${PN}" |
379 |
- |
380 |
- insinto "/etc/${PN}" |
381 |
- insopts -m 0600 -o "${PN}" -g "${PN}" |
382 |
- newins "${FILESDIR}"/${PN}-r1.ini ${PN}.ini |
383 |
- |
384 |
- dodoc ISSUES.txt README.mkd |
385 |
- |
386 |
- systemd_newunit "${FILESDIR}"/sabnzbd_at.service 'sabnzbd@.service' |
387 |
-} |
388 |
- |
389 |
-pkg_postinst() { |
390 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
391 |
- # This is a new installation |
392 |
- einfo "Default directory: ${MY_HOMEDIR}" |
393 |
- einfo |
394 |
- einfo "To add a user to the sabnzbd group so it can edit SABnzbd+ files, run:" |
395 |
- einfo |
396 |
- einfo " usermod -a -G sabnzbd <user>" |
397 |
- einfo |
398 |
- einfo "By default, SABnzbd will listen on TCP port 8080." |
399 |
- else |
400 |
- local v |
401 |
- for v in ${REPLACING_VERSIONS}; do |
402 |
- if ver_test "${v}" -lt 3; then |
403 |
- ewarn |
404 |
- ewarn "Due to changes in this release, the queue will be converted when ${PN}" |
405 |
- ewarn "is started for the first time. Job order, settings and data will be" |
406 |
- ewarn "preserved, but all jobs will be unpaused and URLs that did not finish" |
407 |
- ewarn "fetching before the upgrade will be lost!" |
408 |
- ewarn |
409 |
- break |
410 |
- fi |
411 |
- done |
412 |
- fi |
413 |
-} |
414 |
|
415 |
diff --git a/net-nntp/sabnzbd/sabnzbd-3.1.0.ebuild b/net-nntp/sabnzbd/sabnzbd-3.1.0.ebuild |
416 |
deleted file mode 100644 |
417 |
index 1377f8e25f2..00000000000 |
418 |
--- a/net-nntp/sabnzbd/sabnzbd-3.1.0.ebuild |
419 |
+++ /dev/null |
420 |
@@ -1,121 +0,0 @@ |
421 |
-# Copyright 1999-2020 Gentoo Authors |
422 |
-# Distributed under the terms of the GNU General Public License v2 |
423 |
- |
424 |
-EAPI="7" |
425 |
- |
426 |
-# Require python-2 with sqlite USE flag |
427 |
-PYTHON_COMPAT=( python3_{7..8} ) |
428 |
-PYTHON_REQ_USE="sqlite" |
429 |
- |
430 |
-inherit python-single-r1 systemd |
431 |
- |
432 |
-MY_PV="${PV/_rc/RC}" |
433 |
-MY_PV="${MY_PV//_pre*}" |
434 |
- |
435 |
-MY_P="${PN/sab/SAB}-${MY_PV}" |
436 |
- |
437 |
-DESCRIPTION="Binary newsgrabber with web-interface" |
438 |
-HOMEPAGE="https://sabnzbd.org/" |
439 |
-SRC_URI="https://github.com/sabnzbd/sabnzbd/releases/download/${MY_PV}/${MY_P}-src.tar.gz" |
440 |
- |
441 |
-# Sabnzbd is GPL-2 but bundles software with the following licenses. |
442 |
-LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1" |
443 |
-SLOT="0" |
444 |
-KEYWORDS="~amd64" |
445 |
-IUSE="+7za +rar unzip" |
446 |
- |
447 |
-# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not |
448 |
-# be in python's sitedir. See: https://sabnzbd.org/wiki/advanced/unix-packaging |
449 |
- |
450 |
-COMMON_DEPS=" |
451 |
- acct-user/sabnzbd |
452 |
- acct-group/sabnzbd |
453 |
- ${PYTHON_DEPS} |
454 |
- $(python_gen_cond_dep ' |
455 |
- dev-python/chardet[${PYTHON_MULTI_USEDEP}] |
456 |
- dev-python/cheetah3[${PYTHON_MULTI_USEDEP}] |
457 |
- dev-python/cherrypy[${PYTHON_MULTI_USEDEP}] |
458 |
- dev-python/configobj[${PYTHON_MULTI_USEDEP}] |
459 |
- dev-python/cryptography[${PYTHON_MULTI_USEDEP}] |
460 |
- >=dev-python/feedparser-6[${PYTHON_MULTI_USEDEP}] |
461 |
- dev-python/notify2[${PYTHON_MULTI_USEDEP}] |
462 |
- dev-python/portend[${PYTHON_MULTI_USEDEP}] |
463 |
- >=dev-python/sabyenc-4[${PYTHON_MULTI_USEDEP}] |
464 |
- ') |
465 |
-" |
466 |
- |
467 |
-DEPEND="${COMMON_DEPS}" |
468 |
- |
469 |
-RDEPEND=" |
470 |
- ${COMMON_DEPS} |
471 |
- >=app-arch/par2cmdline-0.4 |
472 |
- net-misc/wget |
473 |
- 7za? ( app-arch/p7zip ) |
474 |
- rar? ( || ( app-arch/unrar app-arch/rar ) ) |
475 |
- unzip? ( >=app-arch/unzip-5.5.2 ) |
476 |
-" |
477 |
- |
478 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
479 |
- |
480 |
-S="${WORKDIR}/${MY_P}" |
481 |
- |
482 |
-pkg_setup() { |
483 |
- MY_HOMEDIR="/var/lib/${PN}" |
484 |
- python-single-r1_pkg_setup |
485 |
-} |
486 |
- |
487 |
-src_install() { |
488 |
- local d |
489 |
- |
490 |
- for d in email icons interfaces locale po sabnzbd scripts tools; do |
491 |
- insinto "/usr/share/${PN}/${d}" |
492 |
- doins -r ${d}/* |
493 |
- done |
494 |
- |
495 |
- exeinto "/usr/share/${PN}" |
496 |
- doexe SABnzbd.py |
497 |
- |
498 |
- python_fix_shebang "${ED}/usr/share/${PN}" |
499 |
- python_optimize "${ED}/usr/share/${PN}" |
500 |
- |
501 |
- newinitd "${FILESDIR}/${PN}-r1.initd" "${PN}" |
502 |
- newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
503 |
- |
504 |
- diropts -o "${PN}" -g "${PN}" |
505 |
- dodir "/etc/${PN}" |
506 |
- keepdir "/var/log/${PN}" |
507 |
- |
508 |
- insinto "/etc/${PN}" |
509 |
- insopts -m 0600 -o "${PN}" -g "${PN}" |
510 |
- newins "${FILESDIR}"/${PN}-r1.ini ${PN}.ini |
511 |
- |
512 |
- dodoc ISSUES.txt README.mkd |
513 |
- |
514 |
- systemd_newunit "${FILESDIR}"/sabnzbd_at.service 'sabnzbd@.service' |
515 |
-} |
516 |
- |
517 |
-pkg_postinst() { |
518 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
519 |
- # This is a new installation |
520 |
- einfo "Default directory: ${MY_HOMEDIR}" |
521 |
- einfo |
522 |
- einfo "To add a user to the sabnzbd group so it can edit SABnzbd+ files, run:" |
523 |
- einfo |
524 |
- einfo " usermod -a -G sabnzbd <user>" |
525 |
- einfo |
526 |
- einfo "By default, SABnzbd will listen on TCP port 8080." |
527 |
- else |
528 |
- local v |
529 |
- for v in ${REPLACING_VERSIONS}; do |
530 |
- if ver_test "${v}" -lt 3; then |
531 |
- ewarn |
532 |
- ewarn "Due to changes in this release, the queue will be converted when ${PN}" |
533 |
- ewarn "is started for the first time. Job order, settings and data will be" |
534 |
- ewarn "preserved, but all jobs will be unpaused and URLs that did not finish" |
535 |
- ewarn "fetching before the upgrade will be lost!" |
536 |
- ewarn |
537 |
- break |
538 |
- fi |
539 |
- done |
540 |
- fi |
541 |
-} |