1 |
commit: 2d8e069aa56743472f8bb6191c7bc86d58ae1630 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 6 11:50:43 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 6 13:49:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d8e069a |
7 |
|
8 |
net-nntp/sabnzbd: drop old |
9 |
|
10 |
Closes: https://bugs.gentoo.org/708958 |
11 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
net-nntp/sabnzbd/Manifest | 3 - |
15 |
.../files/patches/0001-use-system-configobj.patch | 28 ---- |
16 |
.../files/patches/0002-use-system-feedparser.patch | 34 ----- |
17 |
.../0003-cfg-disable-NtfOSD-by-default.patch | 25 ---- |
18 |
net-nntp/sabnzbd/files/sabnzbd.ini | 14 -- |
19 |
net-nntp/sabnzbd/files/sabnzbd.initd | 71 ---------- |
20 |
net-nntp/sabnzbd/sabnzbd-2.3.9-r1.ebuild | 148 --------------------- |
21 |
net-nntp/sabnzbd/sabnzbd-3.0.0_rc1.ebuild | 121 ----------------- |
22 |
net-nntp/sabnzbd/sabnzbd-3.0.0_rc2.ebuild | 121 ----------------- |
23 |
9 files changed, 565 deletions(-) |
24 |
|
25 |
diff --git a/net-nntp/sabnzbd/Manifest b/net-nntp/sabnzbd/Manifest |
26 |
index ef487847a5a..3ae60cbba5b 100644 |
27 |
--- a/net-nntp/sabnzbd/Manifest |
28 |
+++ b/net-nntp/sabnzbd/Manifest |
29 |
@@ -1,4 +1 @@ |
30 |
-DIST SABnzbd-2.3.9-src.tar.gz 2738773 BLAKE2B fbb765732c0aab6a47a4d4827d21b1b029c6d40c1c6c335692964210dc4c389e94cd1cdca45bfb3fb8c2fa9adc84f33df0fe3d23a0e4f9143a095eec042a5cf0 SHA512 10a39db9ad7f6d441166da97194b7a281aacd1900f7687bca72c6c2b555114bc2bbdaaba51cb9fcec57aa1b782f20609a07528484ad911ffd9f9eabb54a324fa |
31 |
DIST SABnzbd-3.0.0-src.tar.gz 2673275 BLAKE2B 418ffd55c395c9d31e80f087c5e8c47e30bd86dbd8783afc173c9c54c6259b0d4607f5377ff3d83673f8e8ba24f46d5ad923a933a415097a7e48739f01039b45 SHA512 70441d76ad2e6cba33b033a85a29815fc50e9c714a275120bc7010e5e0cfb885f7b3d42f497c4ce46123c9bce2d33f778865d9a17878f6fe5811849faa6fe215 |
32 |
-DIST SABnzbd-3.0.0RC1-src.tar.gz 2762495 BLAKE2B 5b623e8cc141426459f3d62c3652df41559946a0fd691163428e7b10dfda5518e9701b1a250ed0a7cda6bfda705869ee6a038184ba8f86cfea70d9ea2d09d613 SHA512 00205b1cb4a74455fc48b0ce0579e6849d08b1cedb28ab01f53da8f37bd75268ced201c9e0510ffdf7b51eee6e666e73bec01f537e1ecbdb7f3f6115422b3074 |
33 |
-DIST SABnzbd-3.0.0RC2-src.tar.gz 2673573 BLAKE2B be45d4dae2d51b2f9ae6e9693a0c61482892b2e9c7fdf09b727af3efaeb26d385cef469c9ab1a13b8456794de7d5c8d9e9252b551eeda190943df68eed3ccafc SHA512 d556beb84a6bb9c20a29d17fab1caee092f7d00688301c22d4286cdcc76dd34d36c7d9453367aa3def3a2833f22f7b85c573558f2806877c8c2606d44824eb5c |
34 |
|
35 |
diff --git a/net-nntp/sabnzbd/files/patches/0001-use-system-configobj.patch b/net-nntp/sabnzbd/files/patches/0001-use-system-configobj.patch |
36 |
deleted file mode 100644 |
37 |
index 0f89dcd1341..00000000000 |
38 |
--- a/net-nntp/sabnzbd/files/patches/0001-use-system-configobj.patch |
39 |
+++ /dev/null |
40 |
@@ -1,28 +0,0 @@ |
41 |
-From db9a217dd5a02b5be72d47b7618f877f39cb31bc Mon Sep 17 00:00:00 2001 |
42 |
-From: Justin Bronder <jsbronder@×××××.com> |
43 |
-Date: Mon, 13 Feb 2017 18:20:39 -0500 |
44 |
-Subject: [PATCH 1/3] use system configobj |
45 |
- |
46 |
---- |
47 |
- sabnzbd/config.py | 3 ++- |
48 |
- 1 file changed, 2 insertions(+), 1 deletion(-) |
49 |
- |
50 |
-diff --git a/sabnzbd/config.py b/sabnzbd/config.py |
51 |
-index 2f58ffd..04bfaab 100644 |
52 |
---- a/sabnzbd/config.py |
53 |
-+++ b/sabnzbd/config.py |
54 |
-@@ -30,9 +30,10 @@ from hashlib import md5 |
55 |
- from urlparse import urlparse |
56 |
- import sabnzbd.misc |
57 |
- from sabnzbd.constants import CONFIG_VERSION, NORMAL_PRIORITY, DEFAULT_PRIORITY, MAX_WIN_DFOLDER |
58 |
--from sabnzbd.utils import configobj |
59 |
- from sabnzbd.decorators import synchronized |
60 |
- |
61 |
-+import configobj |
62 |
-+ |
63 |
- CONFIG_LOCK = threading.Lock() |
64 |
- SAVE_CONFIG_LOCK = threading.Lock() |
65 |
- |
66 |
--- |
67 |
-2.13.0 |
68 |
- |
69 |
|
70 |
diff --git a/net-nntp/sabnzbd/files/patches/0002-use-system-feedparser.patch b/net-nntp/sabnzbd/files/patches/0002-use-system-feedparser.patch |
71 |
deleted file mode 100644 |
72 |
index 68e39a975e7..00000000000 |
73 |
--- a/net-nntp/sabnzbd/files/patches/0002-use-system-feedparser.patch |
74 |
+++ /dev/null |
75 |
@@ -1,34 +0,0 @@ |
76 |
-From b8540c4c71e917623290f3ca8d4091228fab8903 Mon Sep 17 00:00:00 2001 |
77 |
-From: Justin Bronder <jsbronder@×××××.com> |
78 |
-Date: Mon, 13 Feb 2017 18:21:28 -0500 |
79 |
-Subject: [PATCH 2/3] use system feedparser |
80 |
- |
81 |
---- |
82 |
- sabnzbd/rss.py | 4 ++-- |
83 |
- 1 file changed, 2 insertions(+), 2 deletions(-) |
84 |
- |
85 |
-diff --git a/sabnzbd/rss.py b/sabnzbd/rss.py |
86 |
-index 0315fca..18ac828 100644 |
87 |
---- a/sabnzbd/rss.py |
88 |
-+++ b/sabnzbd/rss.py |
89 |
-@@ -25,6 +25,8 @@ import time |
90 |
- import datetime |
91 |
- import threading |
92 |
- |
93 |
-+import feedparser |
94 |
-+ |
95 |
- import sabnzbd |
96 |
- from sabnzbd.constants import RSS_FILE_NAME, DEFAULT_PRIORITY, NORMAL_PRIORITY, DUP_PRIORITY |
97 |
- from sabnzbd.decorators import synchronized |
98 |
-@@ -35,8 +37,6 @@ from sabnzbd.misc import cat_convert, wildcard_to_re, cat_to_opts, \ |
99 |
- import sabnzbd.emailer as emailer |
100 |
- from sabnzbd.encoding import unicoder, xml_name |
101 |
- |
102 |
--import sabnzbd.utils.feedparser as feedparser |
103 |
-- |
104 |
- __RSS = None # Global pointer to RSS-scanner instance |
105 |
- |
106 |
- |
107 |
--- |
108 |
-2.13.0 |
109 |
- |
110 |
|
111 |
diff --git a/net-nntp/sabnzbd/files/patches/0003-cfg-disable-NtfOSD-by-default.patch b/net-nntp/sabnzbd/files/patches/0003-cfg-disable-NtfOSD-by-default.patch |
112 |
deleted file mode 100644 |
113 |
index 064d523a1e1..00000000000 |
114 |
--- a/net-nntp/sabnzbd/files/patches/0003-cfg-disable-NtfOSD-by-default.patch |
115 |
+++ /dev/null |
116 |
@@ -1,25 +0,0 @@ |
117 |
-From 459111cb4f6937d58de480cf06743474f5c1dd3d Mon Sep 17 00:00:00 2001 |
118 |
-From: Justin Bronder <jsbronder@×××××.com> |
119 |
-Date: Sat, 5 Aug 2017 17:38:03 -0400 |
120 |
-Subject: [PATCH 3/3] cfg: disable NtfOSD by default |
121 |
- |
122 |
---- |
123 |
- sabnzbd/cfg.py | 2 +- |
124 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
125 |
- |
126 |
-diff --git a/sabnzbd/cfg.py b/sabnzbd/cfg.py |
127 |
-index d8867db..59a341c 100644 |
128 |
---- a/sabnzbd/cfg.py |
129 |
-+++ b/sabnzbd/cfg.py |
130 |
-@@ -322,7 +322,7 @@ acenter_prio_queue_done = OptionBool('acenter', 'acenter_prio_queue_done', True) |
131 |
- acenter_prio_other = OptionBool('acenter', 'acenter_prio_other', False) |
132 |
- |
133 |
- # [ntfosd] |
134 |
--ntfosd_enable = OptionBool('ntfosd', 'ntfosd_enable', not sabnzbd.WIN32 and not sabnzbd.DARWIN) |
135 |
-+ntfosd_enable = OptionBool('ntfosd', 'ntfosd_enable', False) |
136 |
- ntfosd_cats = OptionList('ntfosd', 'ntfosd_cats', ['*']) |
137 |
- ntfosd_prio_startup = OptionBool('ntfosd', 'ntfosd_prio_startup', True) |
138 |
- ntfosd_prio_download = OptionBool('ntfosd', 'ntfosd_prio_download', False) |
139 |
--- |
140 |
-2.13.0 |
141 |
- |
142 |
|
143 |
diff --git a/net-nntp/sabnzbd/files/sabnzbd.ini b/net-nntp/sabnzbd/files/sabnzbd.ini |
144 |
deleted file mode 100644 |
145 |
index c5ff04854e1..00000000000 |
146 |
--- a/net-nntp/sabnzbd/files/sabnzbd.ini |
147 |
+++ /dev/null |
148 |
@@ -1,14 +0,0 @@ |
149 |
-__version__ = 19 |
150 |
-[misc] |
151 |
-log_dir = /var/log/sabnzbd |
152 |
-admin_dir = /var/lib/sabnzbd/admin |
153 |
-cache_dir = /var/lib/sabnzbd/cache |
154 |
-complete_dir = /var/lib/sabnzbd/complete |
155 |
-download_dir = /var/lib/sabnzbd/download |
156 |
-dirscan_dir = /var/lib/sabnzbd/dirscan |
157 |
-nzb_backup_dir = /var/lib/sabnzbd/backup |
158 |
-auto_browser = 0 |
159 |
-host = :: |
160 |
-port = 8080 |
161 |
-[growl] |
162 |
-growl_enable = 0 |
163 |
|
164 |
diff --git a/net-nntp/sabnzbd/files/sabnzbd.initd b/net-nntp/sabnzbd/files/sabnzbd.initd |
165 |
deleted file mode 100644 |
166 |
index b3dca979756..00000000000 |
167 |
--- a/net-nntp/sabnzbd/files/sabnzbd.initd |
168 |
+++ /dev/null |
169 |
@@ -1,71 +0,0 @@ |
170 |
-#!/sbin/openrc-run |
171 |
-# Copyright 1999-2016 Gentoo Foundation |
172 |
-# Distributed under the terms of the GNU General Public License v2 |
173 |
- |
174 |
-PIDFILE="/run/sabnzbd/sabnzbd.pid" |
175 |
- |
176 |
-depend() { |
177 |
- need net |
178 |
-} |
179 |
- |
180 |
-get_var() { |
181 |
- grep -P -o -m 1 "(?<=^${1} = ).*" "${SABNZBD_CONFIGFILE}" || echo 0 |
182 |
-} |
183 |
- |
184 |
-start() { |
185 |
- ebegin "Starting SABnzbd" |
186 |
- |
187 |
- checkpath -q -d -o ${SABNZBD_USER}:${SABNZBD_GROUP} -m 0770 "$(dirname "${PIDFILE}")" |
188 |
- |
189 |
- start-stop-daemon \ |
190 |
- --quiet \ |
191 |
- --start \ |
192 |
- --user ${SABNZBD_USER} \ |
193 |
- --group ${SABNZBD_GROUP} \ |
194 |
- --pidfile "${PIDFILE}" \ |
195 |
- --wait 1000 \ |
196 |
- --exec /usr/share/sabnzbd/SABnzbd.py \ |
197 |
- -- \ |
198 |
- --config-file "${SABNZBD_CONFIGFILE}" \ |
199 |
- --logging "${SABNZBD_LOGGING}" \ |
200 |
- --daemon \ |
201 |
- --pidfile "${PIDFILE}" |
202 |
- |
203 |
- eend $? |
204 |
-} |
205 |
- |
206 |
-stop() { |
207 |
- local protocol="http" |
208 |
- local host="$(get_var "host")" |
209 |
- local port="$(get_var "port")" |
210 |
- |
211 |
- if [ $(get_var "enable_https") -eq 1 ]; then |
212 |
- protocol="https" |
213 |
- port="$(get_var "https_port")" |
214 |
- fi |
215 |
- |
216 |
- case "${host}" in |
217 |
- *:*) host="[${host}]" ;; |
218 |
- esac |
219 |
- |
220 |
- local url="${protocol}://${host}:${port}/sabnzbd/api?mode=shutdown" |
221 |
- |
222 |
- if [ $(get_var "disable_api_key") -eq 0 ]; then |
223 |
- url="${url}&apikey=$(get_var "api_key")" |
224 |
- fi |
225 |
- |
226 |
- local signals="TERM/1/KILL/1" |
227 |
- |
228 |
- ebegin "Stopping SABnzbd" |
229 |
- |
230 |
- if [ "$(wget -o /dev/null -t 1 -O - -T 10 "${url}")" = "ok" ]; then |
231 |
- signals="NULL/5/${signals}" |
232 |
- fi |
233 |
- |
234 |
- start-stop-daemon \ |
235 |
- --stop \ |
236 |
- --pidfile "${PIDFILE}" \ |
237 |
- --retry "${signals}" |
238 |
- |
239 |
- eend $? |
240 |
-} |
241 |
|
242 |
diff --git a/net-nntp/sabnzbd/sabnzbd-2.3.9-r1.ebuild b/net-nntp/sabnzbd/sabnzbd-2.3.9-r1.ebuild |
243 |
deleted file mode 100644 |
244 |
index 725ecf31daf..00000000000 |
245 |
--- a/net-nntp/sabnzbd/sabnzbd-2.3.9-r1.ebuild |
246 |
+++ /dev/null |
247 |
@@ -1,148 +0,0 @@ |
248 |
-# Copyright 1999-2020 Gentoo Authors |
249 |
-# Distributed under the terms of the GNU General Public License v2 |
250 |
- |
251 |
-EAPI="6" |
252 |
- |
253 |
-# Require python-2 with sqlite USE flag |
254 |
-PYTHON_COMPAT=( python2_7 ) |
255 |
-PYTHON_REQ_USE="sqlite" |
256 |
- |
257 |
-inherit python-single-r1 user systemd |
258 |
- |
259 |
-MY_P="${P/sab/SAB}" |
260 |
- |
261 |
-DESCRIPTION="Binary newsgrabber with web-interface" |
262 |
-HOMEPAGE="https://sabnzbd.org/" |
263 |
-SRC_URI="https://github.com/sabnzbd/sabnzbd/releases/download/${PV}/${MY_P}-src.tar.gz" |
264 |
- |
265 |
-# Sabnzbd is GPL-2 but bundles software with the following licenses. |
266 |
-LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1" |
267 |
-SLOT="0" |
268 |
-KEYWORDS="~amd64" |
269 |
-IUSE="+7za +rar unzip" |
270 |
- |
271 |
-# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not |
272 |
-# be in python's sitedir. See: http://wiki.sabnzbd.org/unix-packaging |
273 |
- |
274 |
-# TODO: still bundled but not in portage: |
275 |
-# kronos, rsslib, ssmtplib, listquote, json-py, msgfmt, happyeyeballs |
276 |
-# pynewsleecher |
277 |
-# |
278 |
-# dev-python/rarfile is bundled as of 2.0.1 because sabnzbd is modifying it |
279 |
-# https://github.com/sabnzbd/sabnzbd/commit/de6d642b0dc6eaed63199a99d9a1a8b2e3d0018b |
280 |
-# |
281 |
-# Also note that cherrypy is still bundled. It's near impossible to find |
282 |
-# out where the bundled and heavily patched version came from (pulled from |
283 |
-# cherrypy subversion, patched somewhere, then imported to sabnzbd and patched |
284 |
-# further. Upstream is planning on making this easier with 0.8.0. |
285 |
-# https://github.com/sabnzbd/sabnzbd/issues/47 |
286 |
- |
287 |
-RDEPEND=" |
288 |
- ${PYTHON_DEPS} |
289 |
- >=app-arch/par2cmdline-0.4 |
290 |
- $(python_gen_cond_dep ' |
291 |
- >=dev-python/cheetah-2.0.1[${PYTHON_MULTI_USEDEP}] |
292 |
- dev-python/configobj[${PYTHON_MULTI_USEDEP}] |
293 |
- dev-python/cryptography[${PYTHON_MULTI_USEDEP}] |
294 |
- dev-python/feedparser[${PYTHON_MULTI_USEDEP}] |
295 |
- dev-python/gntp[${PYTHON_MULTI_USEDEP}] |
296 |
- dev-python/pythonutils[${PYTHON_MULTI_USEDEP}] |
297 |
- >=dev-python/sabyenc-3.3.1[${PYTHON_MULTI_USEDEP}] |
298 |
- ') |
299 |
- net-misc/wget |
300 |
- 7za? ( app-arch/p7zip ) |
301 |
- rar? ( || ( app-arch/unrar app-arch/rar ) ) |
302 |
- unzip? ( >=app-arch/unzip-5.5.2 ) |
303 |
-" |
304 |
-DEPEND="${PYTHON_DEPS}" |
305 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
306 |
- |
307 |
-S="${WORKDIR}/${MY_P}" |
308 |
- |
309 |
-pkg_setup() { |
310 |
- HOMEDIR="/var/lib/${PN}" |
311 |
- python-single-r1_pkg_setup |
312 |
- |
313 |
- # Create sabnzbd group |
314 |
- enewgroup "${PN}" |
315 |
- # Create sabnzbd user, put in sabnzbd group |
316 |
- enewuser "${PN}" -1 -1 "${HOMEDIR}" "${PN}" |
317 |
-} |
318 |
- |
319 |
-src_prepare() { |
320 |
- eapply "${FILESDIR}"/patches |
321 |
- |
322 |
- # remove bundled modules |
323 |
- rm -r sabnzbd/utils/{feedparser,configobj}.py || die |
324 |
- rm -r gntp || die |
325 |
- rm licenses/License-{feedparser,configobj,gntp}.txt || die |
326 |
- |
327 |
- eapply_user |
328 |
-} |
329 |
- |
330 |
-src_install() { |
331 |
- local d |
332 |
- |
333 |
- for d in cherrypy email icons interfaces locale po sabnzbd tools util; do |
334 |
- insinto "/usr/share/${PN}/${d}" |
335 |
- doins -r ${d}/* |
336 |
- done |
337 |
- |
338 |
- exeinto "/usr/share/${PN}" |
339 |
- doexe SABnzbd.py |
340 |
- |
341 |
- python_fix_shebang "${ED%/}/usr/share/${PN}" |
342 |
- python_optimize "${ED%/}/usr/share/${PN}" |
343 |
- |
344 |
- newinitd "${FILESDIR}/${PN}.initd" "${PN}" |
345 |
- newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
346 |
- |
347 |
- diropts -o "${PN}" -g "${PN}" |
348 |
- dodir "/etc/${PN}" |
349 |
- dodir "/var/log/${PN}" |
350 |
- |
351 |
- insinto "/etc/${PN}" |
352 |
- insopts -m 0600 -o "${PN}" -g "${PN}" |
353 |
- doins "${FILESDIR}/${PN}.ini" |
354 |
- |
355 |
- dodoc {ABOUT,ISSUES,README}.txt licenses/* |
356 |
- |
357 |
- systemd_newunit "${FILESDIR}"/sabnzbd_at.service 'sabnzbd@.service' |
358 |
-} |
359 |
- |
360 |
-pkg_postinst() { |
361 |
- einfo "Default directory: ${HOMEDIR}" |
362 |
- einfo |
363 |
- einfo "To add a user to the sabnzbd group so it can edit SABnzbd+ files, run:" |
364 |
- einfo |
365 |
- einfo " gpasswd -a <user> sabnzbd" |
366 |
- einfo |
367 |
- einfo "By default, SABnzbd+ will listen on TCP port 8080." |
368 |
- einfo |
369 |
- einfo "As Growl is not the default notification system on Gentoo, we disable it." |
370 |
- |
371 |
- local replacing |
372 |
- local major |
373 |
- local minor |
374 |
- for replacing in ${REPLACING_VERSIONS}; do |
375 |
- major=$(get_major_version ${replacing}) |
376 |
- minor=$(get_version_component_range 2 ${replacing}) |
377 |
- |
378 |
- if [ "${major}" == "1" ]; then |
379 |
- ewarn |
380 |
- ewarn "Upgrading to ${PN}-2.x.y converts schedule items to a format" |
381 |
- ewarn "that is not compatible with earlier ${PN}-1.x.y releases." |
382 |
- ewarn |
383 |
- break |
384 |
- elif [ "${major}" == "2" ] && [ ${minor} -lt 2 ]; then |
385 |
- ewarn |
386 |
- ewarn "Due to changes in this release, the queue will be converted when ${PN}" |
387 |
- ewarn "is started for the first time. Job order, settings and data will be" |
388 |
- ewarn "preserved, but all jobs will be unpaused and URLs that did not finish" |
389 |
- ewarn "fetching before the upgrade will be lost!" |
390 |
- ewarn |
391 |
- break |
392 |
- fi |
393 |
- |
394 |
- done |
395 |
-} |
396 |
|
397 |
diff --git a/net-nntp/sabnzbd/sabnzbd-3.0.0_rc1.ebuild b/net-nntp/sabnzbd/sabnzbd-3.0.0_rc1.ebuild |
398 |
deleted file mode 100644 |
399 |
index afa365fd3af..00000000000 |
400 |
--- a/net-nntp/sabnzbd/sabnzbd-3.0.0_rc1.ebuild |
401 |
+++ /dev/null |
402 |
@@ -1,121 +0,0 @@ |
403 |
-# Copyright 1999-2020 Gentoo Authors |
404 |
-# Distributed under the terms of the GNU General Public License v2 |
405 |
- |
406 |
-EAPI="7" |
407 |
- |
408 |
-# Require python-2 with sqlite USE flag |
409 |
-PYTHON_COMPAT=( python3_{6..8} ) |
410 |
-PYTHON_REQ_USE="sqlite" |
411 |
- |
412 |
-inherit python-single-r1 systemd |
413 |
- |
414 |
-MY_PV="${PV/_rc/RC}" |
415 |
-MY_PV="${MY_PV//_pre*}" |
416 |
- |
417 |
-MY_P="${PN/sab/SAB}-${MY_PV}" |
418 |
- |
419 |
-DESCRIPTION="Binary newsgrabber with web-interface" |
420 |
-HOMEPAGE="https://sabnzbd.org/" |
421 |
-SRC_URI="https://github.com/sabnzbd/sabnzbd/releases/download/${MY_PV}/${MY_P}-src.tar.gz" |
422 |
- |
423 |
-# Sabnzbd is GPL-2 but bundles software with the following licenses. |
424 |
-LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1" |
425 |
-SLOT="0" |
426 |
-KEYWORDS="~amd64" |
427 |
-IUSE="+7za +rar unzip" |
428 |
- |
429 |
-# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not |
430 |
-# be in python's sitedir. See: https://sabnzbd.org/wiki/advanced/unix-packaging |
431 |
- |
432 |
-COMMON_DEPS=" |
433 |
- acct-user/sabnzbd |
434 |
- acct-group/sabnzbd |
435 |
- ${PYTHON_DEPS} |
436 |
- $(python_gen_cond_dep ' |
437 |
- dev-python/chardet[${PYTHON_MULTI_USEDEP}] |
438 |
- dev-python/cheetah3[${PYTHON_MULTI_USEDEP}] |
439 |
- dev-python/cherrypy[${PYTHON_MULTI_USEDEP}] |
440 |
- dev-python/configobj[${PYTHON_MULTI_USEDEP}] |
441 |
- dev-python/cryptography[${PYTHON_MULTI_USEDEP}] |
442 |
- dev-python/feedparser[${PYTHON_MULTI_USEDEP}] |
443 |
- dev-python/notify2[${PYTHON_MULTI_USEDEP}] |
444 |
- dev-python/portend[${PYTHON_MULTI_USEDEP}] |
445 |
- >=dev-python/sabyenc-3.3.1[${PYTHON_MULTI_USEDEP}] |
446 |
- ') |
447 |
-" |
448 |
- |
449 |
-DEPEND="${COMMON_DEPS}" |
450 |
- |
451 |
-RDEPEND=" |
452 |
- ${COMMON_DEPS} |
453 |
- >=app-arch/par2cmdline-0.4 |
454 |
- net-misc/wget |
455 |
- 7za? ( app-arch/p7zip ) |
456 |
- rar? ( || ( app-arch/unrar app-arch/rar ) ) |
457 |
- unzip? ( >=app-arch/unzip-5.5.2 ) |
458 |
-" |
459 |
- |
460 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
461 |
- |
462 |
-S="${WORKDIR}/${MY_P}" |
463 |
- |
464 |
-pkg_setup() { |
465 |
- MY_HOMEDIR="/var/lib/${PN}" |
466 |
- python-single-r1_pkg_setup |
467 |
-} |
468 |
- |
469 |
-src_install() { |
470 |
- local d |
471 |
- |
472 |
- for d in email icons interfaces locale po sabnzbd scripts tools; do |
473 |
- insinto "/usr/share/${PN}/${d}" |
474 |
- doins -r ${d}/* |
475 |
- done |
476 |
- |
477 |
- exeinto "/usr/share/${PN}" |
478 |
- doexe SABnzbd.py |
479 |
- |
480 |
- python_fix_shebang "${ED}/usr/share/${PN}" |
481 |
- python_optimize "${ED}/usr/share/${PN}" |
482 |
- |
483 |
- newinitd "${FILESDIR}/${PN}-r1.initd" "${PN}" |
484 |
- newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
485 |
- |
486 |
- diropts -o "${PN}" -g "${PN}" |
487 |
- dodir "/etc/${PN}" |
488 |
- keepdir "/var/log/${PN}" |
489 |
- |
490 |
- insinto "/etc/${PN}" |
491 |
- insopts -m 0600 -o "${PN}" -g "${PN}" |
492 |
- newins "${FILESDIR}"/${PN}-r1.ini ${PN}.ini |
493 |
- |
494 |
- dodoc {ABOUT,ISSUES}.txt README.mkd licenses/* |
495 |
- |
496 |
- systemd_newunit "${FILESDIR}"/sabnzbd_at.service 'sabnzbd@.service' |
497 |
-} |
498 |
- |
499 |
-pkg_postinst() { |
500 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
501 |
- # This is a new installation |
502 |
- einfo "Default directory: ${MY_HOMEDIR}" |
503 |
- einfo |
504 |
- einfo "To add a user to the sabnzbd group so it can edit SABnzbd+ files, run:" |
505 |
- einfo |
506 |
- einfo " usermod -a -G sabnzbd <user>" |
507 |
- einfo |
508 |
- einfo "By default, SABnzbd will listen on TCP port 8080." |
509 |
- else |
510 |
- local v |
511 |
- for v in ${REPLACING_VERSIONS}; do |
512 |
- if ver_test "${v}" -lt 3; then |
513 |
- ewarn |
514 |
- ewarn "Due to changes in this release, the queue will be converted when ${PN}" |
515 |
- ewarn "is started for the first time. Job order, settings and data will be" |
516 |
- ewarn "preserved, but all jobs will be unpaused and URLs that did not finish" |
517 |
- ewarn "fetching before the upgrade will be lost!" |
518 |
- ewarn |
519 |
- break |
520 |
- fi |
521 |
- done |
522 |
- fi |
523 |
-} |
524 |
|
525 |
diff --git a/net-nntp/sabnzbd/sabnzbd-3.0.0_rc2.ebuild b/net-nntp/sabnzbd/sabnzbd-3.0.0_rc2.ebuild |
526 |
deleted file mode 100644 |
527 |
index afa365fd3af..00000000000 |
528 |
--- a/net-nntp/sabnzbd/sabnzbd-3.0.0_rc2.ebuild |
529 |
+++ /dev/null |
530 |
@@ -1,121 +0,0 @@ |
531 |
-# Copyright 1999-2020 Gentoo Authors |
532 |
-# Distributed under the terms of the GNU General Public License v2 |
533 |
- |
534 |
-EAPI="7" |
535 |
- |
536 |
-# Require python-2 with sqlite USE flag |
537 |
-PYTHON_COMPAT=( python3_{6..8} ) |
538 |
-PYTHON_REQ_USE="sqlite" |
539 |
- |
540 |
-inherit python-single-r1 systemd |
541 |
- |
542 |
-MY_PV="${PV/_rc/RC}" |
543 |
-MY_PV="${MY_PV//_pre*}" |
544 |
- |
545 |
-MY_P="${PN/sab/SAB}-${MY_PV}" |
546 |
- |
547 |
-DESCRIPTION="Binary newsgrabber with web-interface" |
548 |
-HOMEPAGE="https://sabnzbd.org/" |
549 |
-SRC_URI="https://github.com/sabnzbd/sabnzbd/releases/download/${MY_PV}/${MY_P}-src.tar.gz" |
550 |
- |
551 |
-# Sabnzbd is GPL-2 but bundles software with the following licenses. |
552 |
-LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1" |
553 |
-SLOT="0" |
554 |
-KEYWORDS="~amd64" |
555 |
-IUSE="+7za +rar unzip" |
556 |
- |
557 |
-# Sabnzbd is installed to /usr/share/ as upstream makes it clear they should not |
558 |
-# be in python's sitedir. See: https://sabnzbd.org/wiki/advanced/unix-packaging |
559 |
- |
560 |
-COMMON_DEPS=" |
561 |
- acct-user/sabnzbd |
562 |
- acct-group/sabnzbd |
563 |
- ${PYTHON_DEPS} |
564 |
- $(python_gen_cond_dep ' |
565 |
- dev-python/chardet[${PYTHON_MULTI_USEDEP}] |
566 |
- dev-python/cheetah3[${PYTHON_MULTI_USEDEP}] |
567 |
- dev-python/cherrypy[${PYTHON_MULTI_USEDEP}] |
568 |
- dev-python/configobj[${PYTHON_MULTI_USEDEP}] |
569 |
- dev-python/cryptography[${PYTHON_MULTI_USEDEP}] |
570 |
- dev-python/feedparser[${PYTHON_MULTI_USEDEP}] |
571 |
- dev-python/notify2[${PYTHON_MULTI_USEDEP}] |
572 |
- dev-python/portend[${PYTHON_MULTI_USEDEP}] |
573 |
- >=dev-python/sabyenc-3.3.1[${PYTHON_MULTI_USEDEP}] |
574 |
- ') |
575 |
-" |
576 |
- |
577 |
-DEPEND="${COMMON_DEPS}" |
578 |
- |
579 |
-RDEPEND=" |
580 |
- ${COMMON_DEPS} |
581 |
- >=app-arch/par2cmdline-0.4 |
582 |
- net-misc/wget |
583 |
- 7za? ( app-arch/p7zip ) |
584 |
- rar? ( || ( app-arch/unrar app-arch/rar ) ) |
585 |
- unzip? ( >=app-arch/unzip-5.5.2 ) |
586 |
-" |
587 |
- |
588 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
589 |
- |
590 |
-S="${WORKDIR}/${MY_P}" |
591 |
- |
592 |
-pkg_setup() { |
593 |
- MY_HOMEDIR="/var/lib/${PN}" |
594 |
- python-single-r1_pkg_setup |
595 |
-} |
596 |
- |
597 |
-src_install() { |
598 |
- local d |
599 |
- |
600 |
- for d in email icons interfaces locale po sabnzbd scripts tools; do |
601 |
- insinto "/usr/share/${PN}/${d}" |
602 |
- doins -r ${d}/* |
603 |
- done |
604 |
- |
605 |
- exeinto "/usr/share/${PN}" |
606 |
- doexe SABnzbd.py |
607 |
- |
608 |
- python_fix_shebang "${ED}/usr/share/${PN}" |
609 |
- python_optimize "${ED}/usr/share/${PN}" |
610 |
- |
611 |
- newinitd "${FILESDIR}/${PN}-r1.initd" "${PN}" |
612 |
- newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
613 |
- |
614 |
- diropts -o "${PN}" -g "${PN}" |
615 |
- dodir "/etc/${PN}" |
616 |
- keepdir "/var/log/${PN}" |
617 |
- |
618 |
- insinto "/etc/${PN}" |
619 |
- insopts -m 0600 -o "${PN}" -g "${PN}" |
620 |
- newins "${FILESDIR}"/${PN}-r1.ini ${PN}.ini |
621 |
- |
622 |
- dodoc {ABOUT,ISSUES}.txt README.mkd licenses/* |
623 |
- |
624 |
- systemd_newunit "${FILESDIR}"/sabnzbd_at.service 'sabnzbd@.service' |
625 |
-} |
626 |
- |
627 |
-pkg_postinst() { |
628 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
629 |
- # This is a new installation |
630 |
- einfo "Default directory: ${MY_HOMEDIR}" |
631 |
- einfo |
632 |
- einfo "To add a user to the sabnzbd group so it can edit SABnzbd+ files, run:" |
633 |
- einfo |
634 |
- einfo " usermod -a -G sabnzbd <user>" |
635 |
- einfo |
636 |
- einfo "By default, SABnzbd will listen on TCP port 8080." |
637 |
- else |
638 |
- local v |
639 |
- for v in ${REPLACING_VERSIONS}; do |
640 |
- if ver_test "${v}" -lt 3; then |
641 |
- ewarn |
642 |
- ewarn "Due to changes in this release, the queue will be converted when ${PN}" |
643 |
- ewarn "is started for the first time. Job order, settings and data will be" |
644 |
- ewarn "preserved, but all jobs will be unpaused and URLs that did not finish" |
645 |
- ewarn "fetching before the upgrade will be lost!" |
646 |
- ewarn |
647 |
- break |
648 |
- fi |
649 |
- done |
650 |
- fi |
651 |
-} |