1 |
commit: c4f527463800f321c7affdeb052613ac1cb352a4 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 2 03:55:16 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 2 03:55:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4f52746 |
7 |
|
8 |
net-p2p/deluge: drop versions |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-p2p/deluge/Manifest | 2 - |
13 |
net-p2p/deluge/deluge-2.0.3-r10.ebuild | 148 --------------------------------- |
14 |
net-p2p/deluge/deluge-2.0.3-r11.ebuild | 145 -------------------------------- |
15 |
net-p2p/deluge/deluge-2.0.3-r8.ebuild | 144 -------------------------------- |
16 |
net-p2p/deluge/deluge-2.0.3-r9.ebuild | 143 ------------------------------- |
17 |
net-p2p/deluge/deluge-2.0.4.ebuild | 142 ------------------------------- |
18 |
net-p2p/deluge/deluge-2.0.5.ebuild | 142 ------------------------------- |
19 |
net-p2p/deluge/files/deluge-web.init | 53 ------------ |
20 |
8 files changed, 919 deletions(-) |
21 |
|
22 |
diff --git a/net-p2p/deluge/Manifest b/net-p2p/deluge/Manifest |
23 |
index 1a6b3e148191..35c526df0cbb 100644 |
24 |
--- a/net-p2p/deluge/Manifest |
25 |
+++ b/net-p2p/deluge/Manifest |
26 |
@@ -1,3 +1 @@ |
27 |
-DIST deluge-2.0.3.tar.xz 1777624 BLAKE2B d090e63e7e18c7b420e1c4239c833512a04a72e8b2c494bc8a3a03a3b7a03050eed894de84d7a26a416417b0c874a82809398fcaf57972b1056e2fcceb9d092d SHA512 3abec24495b22ec10649865c7ce7c3271224c7d25c0647b43f3c177b7ccb45d4c5c593f8c89d8bc8eac85ae5dc737f9960827587912dd527bb96100304a7d480 |
28 |
-DIST deluge-2.0.4.tar.xz 1866260 BLAKE2B cce7c9bfb81ec8c8d61072f74ca939fd07093ce553a755970ff010bb0674b82a4072596d008ea9330e4450f7cc9e190f6b61c6e6023565cd0da198fb82bcaae5 SHA512 3dc3602d8b04f3e4fd2797ea72ce1d2043d9e6e256903b6403369fef075de0281e78c049af049fa8e27b249dd0a5e5071472a73e9905781081f148b29d93bf7b |
29 |
DIST deluge-2.0.5.tar.xz 1895268 BLAKE2B 2c815aa9dbbbed5ba780d694b0518f224577b9c370a03712b15c706eda6de55e34b834f624ec18001c9d41b925677b6a001a384691a7ffd9f29c16731a735d4b SHA512 6c2994ca2906fdb92e96aa3534a4ffd5199e9ab6a1b5b12de94c94ec29850cad0cef7546ae1bea5188075fd16a07e584a17bf2f8b5eb1d2b91dee2da1e494588 |
30 |
|
31 |
diff --git a/net-p2p/deluge/deluge-2.0.3-r10.ebuild b/net-p2p/deluge/deluge-2.0.3-r10.ebuild |
32 |
deleted file mode 100644 |
33 |
index 9880f014ec4b..000000000000 |
34 |
--- a/net-p2p/deluge/deluge-2.0.3-r10.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,148 +0,0 @@ |
37 |
-# Copyright 1999-2021 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI="7" |
41 |
- |
42 |
-PYTHON_COMPAT=( python3_{8,9} ) |
43 |
-DISTUTILS_SINGLE_IMPL=1 |
44 |
-inherit xdg distutils-r1 systemd |
45 |
- |
46 |
-DESCRIPTION="BitTorrent client with a client/server model" |
47 |
-HOMEPAGE="https://deluge-torrent.org/" |
48 |
- |
49 |
-if [[ ${PV} == 9999 ]]; then |
50 |
- inherit git-r3 |
51 |
- EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}" |
52 |
-else |
53 |
- SRC_URI="http://download.deluge-torrent.org/source/2.0/${P}.tar.xz" |
54 |
- KEYWORDS="amd64 ~arm ~ppc ~sparc x86" |
55 |
-fi |
56 |
- |
57 |
-LICENSE="GPL-2" |
58 |
-SLOT="0" |
59 |
-IUSE="console geoip gtk libnotify sound webinterface" |
60 |
-REQUIRED_USE=" |
61 |
- ${PYTHON_REQUIRED_USE} |
62 |
- libnotify? ( gtk ) |
63 |
- sound? ( gtk ) |
64 |
-" |
65 |
- |
66 |
-# Note: if/when Deluge supports newer libtorrent-rasterbar >= 2, please |
67 |
-# move the dependency *outside* of gen_cond_dep and use PYTHON_SINGLE_USEDEP |
68 |
-# instead. It doesn't seem like Deluge supports >= 2 right now. |
69 |
-DEPEND=" |
70 |
- $(python_gen_cond_dep ' |
71 |
- <net-libs/libtorrent-rasterbar-2.0.0[python,${PYTHON_USEDEP}] |
72 |
- dev-python/wheel[${PYTHON_USEDEP}] |
73 |
- ') |
74 |
- dev-util/intltool |
75 |
- acct-group/deluge |
76 |
- acct-user/deluge" |
77 |
-RDEPEND=" |
78 |
- $(python_gen_cond_dep ' |
79 |
- dev-python/chardet[${PYTHON_USEDEP}] |
80 |
- dev-python/distro[${PYTHON_USEDEP}] |
81 |
- dev-python/pillow[${PYTHON_USEDEP}] |
82 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
83 |
- dev-python/pyxdg[${PYTHON_USEDEP}] |
84 |
- dev-python/rencode[${PYTHON_USEDEP}] |
85 |
- dev-python/setproctitle[${PYTHON_USEDEP}] |
86 |
- dev-python/six[${PYTHON_USEDEP}] |
87 |
- >=dev-python/twisted-17.1.0[crypt,${PYTHON_USEDEP}] |
88 |
- >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] |
89 |
- <net-libs/libtorrent-rasterbar-2.0.0[python,${PYTHON_USEDEP}] |
90 |
- geoip? ( dev-python/geoip-python[${PYTHON_USEDEP}] ) |
91 |
- gtk? ( |
92 |
- sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) |
93 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
94 |
- gnome-base/librsvg |
95 |
- libnotify? ( x11-libs/libnotify ) |
96 |
- ) |
97 |
- dev-python/mako[${PYTHON_USEDEP}] |
98 |
- ')" |
99 |
- |
100 |
-PATCHES=( |
101 |
- "${FILESDIR}/${PN}-2.0.3-setup.py.patch" |
102 |
- "${FILESDIR}/${PN}-2.0.3-UI-status.patch" |
103 |
- "${FILESDIR}/${PN}-2.0.3-gettext.patch" |
104 |
- "${FILESDIR}/${P}-fix-pickle.patch" |
105 |
- "${FILESDIR}/${P}-log.patch" |
106 |
-) |
107 |
- |
108 |
-python_prepare_all() { |
109 |
- local args=( |
110 |
- -e "/Compiling po file/a \\\tuptoDate = False" |
111 |
- ) |
112 |
- sed -i "${args[@]}" -- 'setup.py' || die |
113 |
- args=( |
114 |
- -e 's|"new_release_check": True|"new_release_check": False|' |
115 |
- -e 's|"check_new_releases": True|"check_new_releases": False|' |
116 |
- -e 's|"show_new_releases": True|"show_new_releases": False|' |
117 |
- ) |
118 |
- sed -i "${args[@]}" -- 'deluge/core/preferencesmanager.py' || die |
119 |
- |
120 |
- distutils-r1_python_prepare_all |
121 |
-} |
122 |
- |
123 |
-esetup.py() { |
124 |
- # bug 531370: deluge has its own plugin system. No need to relocate its egg info files. |
125 |
- # Override this call from the distutils-r1 eclass. |
126 |
- # This does not respect the distutils-r1 API. DONOT copy this example. |
127 |
- set -- "${PYTHON}" setup.py "$@" |
128 |
- echo "$@" |
129 |
- "$@" || die |
130 |
-} |
131 |
- |
132 |
-python_install_all() { |
133 |
- distutils-r1_python_install_all |
134 |
- if ! use console ; then |
135 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/console/" || die |
136 |
- rm "${ED}/usr/bin/deluge-console" || die |
137 |
- rm "${ED}/usr/share/man/man1/deluge-console.1" ||die |
138 |
- fi |
139 |
- if ! use gtk ; then |
140 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/gtk3/" || die |
141 |
- rm -r "${ED}/usr/share/icons/" || die |
142 |
- rm "${ED}/usr/bin/deluge-gtk" || die |
143 |
- rm "${ED}/usr/share/man/man1/deluge-gtk.1" || die |
144 |
- rm "${ED}/usr/share/applications/deluge.desktop" || die |
145 |
- fi |
146 |
- if use webinterface; then |
147 |
- newinitd "${FILESDIR}/deluge-web.init-2" deluge-web |
148 |
- newconfd "${FILESDIR}/deluge-web.conf" deluge-web |
149 |
- systemd_newunit "${FILESDIR}/deluge-web.service-3" deluge-web.service |
150 |
- systemd_install_serviced "${FILESDIR}/deluge-web.service.conf" |
151 |
- else |
152 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/web/" || die |
153 |
- rm "${ED}/usr/bin/deluge-web" || die |
154 |
- rm "${ED}/usr/share/man/man1/deluge-web.1" || die |
155 |
- fi |
156 |
- newinitd "${FILESDIR}"/deluged.init-2 deluged |
157 |
- newconfd "${FILESDIR}"/deluged.conf-2 deluged |
158 |
- systemd_newunit "${FILESDIR}"/deluged.service-2 deluged.service |
159 |
- systemd_install_serviced "${FILESDIR}"/deluged.service.conf |
160 |
- |
161 |
- python_optimize |
162 |
-} |
163 |
- |
164 |
-pkg_postinst() { |
165 |
- xdg_pkg_postinst |
166 |
- |
167 |
- elog |
168 |
- elog "If, after upgrading, deluge doesn't work, please remove the" |
169 |
- elog "'~/.config/deluge' directory and try again, but make a backup" |
170 |
- elog "first!" |
171 |
- elog |
172 |
- elog "To start the daemon either run 'deluged' as user" |
173 |
- elog "or modify /etc/conf.d/deluged and run" |
174 |
- elog "/etc/init.d/deluged start as root" |
175 |
- elog "You can still use deluge the old way" |
176 |
- elog |
177 |
- elog "Systemd unit files for deluged and deluge-web no longer source" |
178 |
- elog "/etc/conf.d/deluge* files. Environment variable customization now" |
179 |
- elog "happens in /etc/systemd/system/deluged.service.d/00gentoo.conf" |
180 |
- elog "and /etc/systemd/system/deluge-web.service.d/00gentoo.conf" |
181 |
- elog |
182 |
- elog "For more information look at https://dev.deluge-torrent.org/wiki/Faq" |
183 |
- elog |
184 |
-} |
185 |
|
186 |
diff --git a/net-p2p/deluge/deluge-2.0.3-r11.ebuild b/net-p2p/deluge/deluge-2.0.3-r11.ebuild |
187 |
deleted file mode 100644 |
188 |
index ee3ceb2e58a8..000000000000 |
189 |
--- a/net-p2p/deluge/deluge-2.0.3-r11.ebuild |
190 |
+++ /dev/null |
191 |
@@ -1,145 +0,0 @@ |
192 |
-# Copyright 1999-2022 Gentoo Authors |
193 |
-# Distributed under the terms of the GNU General Public License v2 |
194 |
- |
195 |
-EAPI="7" |
196 |
- |
197 |
-PYTHON_COMPAT=( python3_{8,9} ) |
198 |
-DISTUTILS_SINGLE_IMPL=1 |
199 |
-inherit xdg distutils-r1 systemd |
200 |
- |
201 |
-DESCRIPTION="BitTorrent client with a client/server model" |
202 |
-HOMEPAGE="https://deluge-torrent.org/" |
203 |
- |
204 |
-if [[ ${PV} == 9999 ]]; then |
205 |
- inherit git-r3 |
206 |
- EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}" |
207 |
-else |
208 |
- SRC_URI="http://download.deluge-torrent.org/source/2.0/${P}.tar.xz" |
209 |
- KEYWORDS="amd64 ~arm ~ppc ~sparc x86" |
210 |
-fi |
211 |
- |
212 |
-LICENSE="GPL-2" |
213 |
-SLOT="0" |
214 |
-IUSE="console geoip gtk libnotify sound webinterface" |
215 |
-REQUIRED_USE=" |
216 |
- ${PYTHON_REQUIRED_USE} |
217 |
- libnotify? ( gtk ) |
218 |
- sound? ( gtk ) |
219 |
-" |
220 |
- |
221 |
-DEPEND=" |
222 |
- <net-libs/libtorrent-rasterbar-2.0.0:=[python,${PYTHON_SINGLE_USEDEP}] |
223 |
- $(python_gen_cond_dep ' |
224 |
- dev-python/wheel[${PYTHON_USEDEP}] |
225 |
- ') |
226 |
- dev-util/intltool |
227 |
- acct-group/deluge |
228 |
- acct-user/deluge" |
229 |
-RDEPEND=" |
230 |
- <net-libs/libtorrent-rasterbar-2.0.0:=[python,${PYTHON_SINGLE_USEDEP}] |
231 |
- $(python_gen_cond_dep ' |
232 |
- dev-python/chardet[${PYTHON_USEDEP}] |
233 |
- dev-python/distro[${PYTHON_USEDEP}] |
234 |
- dev-python/pillow[${PYTHON_USEDEP}] |
235 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
236 |
- dev-python/pyxdg[${PYTHON_USEDEP}] |
237 |
- dev-python/rencode[${PYTHON_USEDEP}] |
238 |
- dev-python/setproctitle[${PYTHON_USEDEP}] |
239 |
- dev-python/six[${PYTHON_USEDEP}] |
240 |
- >=dev-python/twisted-17.1.0[crypt,${PYTHON_USEDEP}] |
241 |
- >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] |
242 |
- geoip? ( dev-python/geoip-python[${PYTHON_USEDEP}] ) |
243 |
- gtk? ( |
244 |
- sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) |
245 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
246 |
- gnome-base/librsvg |
247 |
- libnotify? ( x11-libs/libnotify ) |
248 |
- ) |
249 |
- dev-python/mako[${PYTHON_USEDEP}] |
250 |
- ')" |
251 |
- |
252 |
-PATCHES=( |
253 |
- "${FILESDIR}/${PN}-2.0.3-setup.py.patch" |
254 |
- "${FILESDIR}/${PN}-2.0.3-UI-status.patch" |
255 |
- "${FILESDIR}/${PN}-2.0.3-gettext.patch" |
256 |
- "${FILESDIR}/${P}-fix-pickle.patch" |
257 |
- "${FILESDIR}/${P}-log.patch" |
258 |
-) |
259 |
- |
260 |
-python_prepare_all() { |
261 |
- local args=( |
262 |
- -e "/Compiling po file/a \\\tuptoDate = False" |
263 |
- ) |
264 |
- sed -i "${args[@]}" -- 'setup.py' || die |
265 |
- args=( |
266 |
- -e 's|"new_release_check": True|"new_release_check": False|' |
267 |
- -e 's|"check_new_releases": True|"check_new_releases": False|' |
268 |
- -e 's|"show_new_releases": True|"show_new_releases": False|' |
269 |
- ) |
270 |
- sed -i "${args[@]}" -- 'deluge/core/preferencesmanager.py' || die |
271 |
- |
272 |
- distutils-r1_python_prepare_all |
273 |
-} |
274 |
- |
275 |
-esetup.py() { |
276 |
- # bug 531370: deluge has its own plugin system. No need to relocate its egg info files. |
277 |
- # Override this call from the distutils-r1 eclass. |
278 |
- # This does not respect the distutils-r1 API. DONOT copy this example. |
279 |
- set -- "${PYTHON}" setup.py "$@" |
280 |
- echo "$@" |
281 |
- "$@" || die |
282 |
-} |
283 |
- |
284 |
-python_install_all() { |
285 |
- distutils-r1_python_install_all |
286 |
- if ! use console ; then |
287 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/console/" || die |
288 |
- rm "${ED}/usr/bin/deluge-console" || die |
289 |
- rm "${ED}/usr/share/man/man1/deluge-console.1" ||die |
290 |
- fi |
291 |
- if ! use gtk ; then |
292 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/gtk3/" || die |
293 |
- rm -r "${ED}/usr/share/icons/" || die |
294 |
- rm "${ED}/usr/bin/deluge-gtk" || die |
295 |
- rm "${ED}/usr/share/man/man1/deluge-gtk.1" || die |
296 |
- rm "${ED}/usr/share/applications/deluge.desktop" || die |
297 |
- fi |
298 |
- if use webinterface; then |
299 |
- newinitd "${FILESDIR}/deluge-web.init-2" deluge-web |
300 |
- newconfd "${FILESDIR}/deluge-web.conf" deluge-web |
301 |
- systemd_newunit "${FILESDIR}/deluge-web.service-3" deluge-web.service |
302 |
- systemd_install_serviced "${FILESDIR}/deluge-web.service.conf" |
303 |
- else |
304 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/web/" || die |
305 |
- rm "${ED}/usr/bin/deluge-web" || die |
306 |
- rm "${ED}/usr/share/man/man1/deluge-web.1" || die |
307 |
- fi |
308 |
- newinitd "${FILESDIR}"/deluged.init-2 deluged |
309 |
- newconfd "${FILESDIR}"/deluged.conf-2 deluged |
310 |
- systemd_newunit "${FILESDIR}"/deluged.service-2 deluged.service |
311 |
- systemd_install_serviced "${FILESDIR}"/deluged.service.conf |
312 |
- |
313 |
- python_optimize |
314 |
-} |
315 |
- |
316 |
-pkg_postinst() { |
317 |
- xdg_pkg_postinst |
318 |
- |
319 |
- elog |
320 |
- elog "If, after upgrading, deluge doesn't work, please remove the" |
321 |
- elog "'~/.config/deluge' directory and try again, but make a backup" |
322 |
- elog "first!" |
323 |
- elog |
324 |
- elog "To start the daemon either run 'deluged' as user" |
325 |
- elog "or modify /etc/conf.d/deluged and run" |
326 |
- elog "/etc/init.d/deluged start as root" |
327 |
- elog "You can still use deluge the old way" |
328 |
- elog |
329 |
- elog "Systemd unit files for deluged and deluge-web no longer source" |
330 |
- elog "/etc/conf.d/deluge* files. Environment variable customization now" |
331 |
- elog "happens in /etc/systemd/system/deluged.service.d/00gentoo.conf" |
332 |
- elog "and /etc/systemd/system/deluge-web.service.d/00gentoo.conf" |
333 |
- elog |
334 |
- elog "For more information look at https://dev.deluge-torrent.org/wiki/Faq" |
335 |
- elog |
336 |
-} |
337 |
|
338 |
diff --git a/net-p2p/deluge/deluge-2.0.3-r8.ebuild b/net-p2p/deluge/deluge-2.0.3-r8.ebuild |
339 |
deleted file mode 100644 |
340 |
index 19ea2735dafa..000000000000 |
341 |
--- a/net-p2p/deluge/deluge-2.0.3-r8.ebuild |
342 |
+++ /dev/null |
343 |
@@ -1,144 +0,0 @@ |
344 |
-# Copyright 1999-2021 Gentoo Authors |
345 |
-# Distributed under the terms of the GNU General Public License v2 |
346 |
- |
347 |
-EAPI="7" |
348 |
- |
349 |
-PYTHON_COMPAT=( python3_{8,9} ) |
350 |
-DISTUTILS_SINGLE_IMPL=1 |
351 |
-inherit xdg distutils-r1 systemd |
352 |
- |
353 |
-DESCRIPTION="BitTorrent client with a client/server model" |
354 |
-HOMEPAGE="https://deluge-torrent.org/" |
355 |
- |
356 |
-if [[ ${PV} == 9999 ]]; then |
357 |
- inherit git-r3 |
358 |
- EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}" |
359 |
-else |
360 |
- SRC_URI="http://download.deluge-torrent.org/source/2.0/${P}.tar.xz" |
361 |
- KEYWORDS="amd64 ~arm ~ppc ~sparc x86" |
362 |
-fi |
363 |
- |
364 |
-LICENSE="GPL-2" |
365 |
-SLOT="0" |
366 |
-IUSE="console geoip gtk libnotify sound webinterface" |
367 |
-REQUIRED_USE=" |
368 |
- ${PYTHON_REQUIRED_USE} |
369 |
- libnotify? ( gtk ) |
370 |
- sound? ( gtk ) |
371 |
-" |
372 |
- |
373 |
-DEPEND=" |
374 |
- $(python_gen_cond_dep ' |
375 |
- net-libs/libtorrent-rasterbar[python,${PYTHON_USEDEP}] |
376 |
- dev-python/wheel[${PYTHON_USEDEP}] |
377 |
- ') |
378 |
- dev-util/intltool |
379 |
- acct-group/deluge |
380 |
- acct-user/deluge" |
381 |
-RDEPEND=" |
382 |
- $(python_gen_cond_dep ' |
383 |
- dev-python/chardet[${PYTHON_USEDEP}] |
384 |
- dev-python/distro[${PYTHON_USEDEP}] |
385 |
- dev-python/pillow[${PYTHON_USEDEP}] |
386 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
387 |
- dev-python/pyxdg[${PYTHON_USEDEP}] |
388 |
- dev-python/rencode[${PYTHON_USEDEP}] |
389 |
- dev-python/setproctitle[${PYTHON_USEDEP}] |
390 |
- dev-python/six[${PYTHON_USEDEP}] |
391 |
- >=dev-python/twisted-17.1.0[crypt,${PYTHON_USEDEP}] |
392 |
- >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] |
393 |
- geoip? ( dev-python/geoip-python[${PYTHON_USEDEP}] ) |
394 |
- gtk? ( |
395 |
- sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) |
396 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
397 |
- gnome-base/librsvg |
398 |
- libnotify? ( x11-libs/libnotify ) |
399 |
- ) |
400 |
- net-libs/libtorrent-rasterbar[python,${PYTHON_USEDEP}] |
401 |
- dev-python/mako[${PYTHON_USEDEP}] |
402 |
- ')" |
403 |
- |
404 |
-PATCHES=( |
405 |
- "${FILESDIR}/${PN}-2.0.3-setup.py.patch" |
406 |
- "${FILESDIR}/${PN}-2.0.3-UI-status.patch" |
407 |
- "${FILESDIR}/${PN}-2.0.3-gettext.patch" |
408 |
- "${FILESDIR}/${P}-fix-pickle.patch" |
409 |
-) |
410 |
- |
411 |
-python_prepare_all() { |
412 |
- local args=( |
413 |
- -e "/Compiling po file/a \\\tuptoDate = False" |
414 |
- ) |
415 |
- sed -i "${args[@]}" -- 'setup.py' || die |
416 |
- args=( |
417 |
- -e 's|"new_release_check": True|"new_release_check": False|' |
418 |
- -e 's|"check_new_releases": True|"check_new_releases": False|' |
419 |
- -e 's|"show_new_releases": True|"show_new_releases": False|' |
420 |
- ) |
421 |
- sed -i "${args[@]}" -- 'deluge/core/preferencesmanager.py' || die |
422 |
- |
423 |
- distutils-r1_python_prepare_all |
424 |
-} |
425 |
- |
426 |
-esetup.py() { |
427 |
- # bug 531370: deluge has its own plugin system. No need to relocate its egg info files. |
428 |
- # Override this call from the distutils-r1 eclass. |
429 |
- # This does not respect the distutils-r1 API. DONOT copy this example. |
430 |
- set -- "${PYTHON}" setup.py "$@" |
431 |
- echo "$@" |
432 |
- "$@" || die |
433 |
-} |
434 |
- |
435 |
-python_install_all() { |
436 |
- distutils-r1_python_install_all |
437 |
- if ! use console ; then |
438 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/console/" || die |
439 |
- rm "${ED}/usr/bin/deluge-console" || die |
440 |
- rm "${ED}/usr/share/man/man1/deluge-console.1" ||die |
441 |
- fi |
442 |
- if ! use gtk ; then |
443 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/gtk3/" || die |
444 |
- rm -r "${ED}/usr/share/icons/" || die |
445 |
- rm "${ED}/usr/bin/deluge-gtk" || die |
446 |
- rm "${ED}/usr/share/man/man1/deluge-gtk.1" || die |
447 |
- rm "${ED}/usr/share/applications/deluge.desktop" || die |
448 |
- fi |
449 |
- if use webinterface; then |
450 |
- newinitd "${FILESDIR}/deluge-web.init-2" deluge-web |
451 |
- newconfd "${FILESDIR}/deluge-web.conf" deluge-web |
452 |
- systemd_newunit "${FILESDIR}/deluge-web.service-3" deluge-web.service |
453 |
- systemd_install_serviced "${FILESDIR}/deluge-web.service.conf" |
454 |
- else |
455 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/web/" || die |
456 |
- rm "${ED}/usr/bin/deluge-web" || die |
457 |
- rm "${ED}/usr/share/man/man1/deluge-web.1" || die |
458 |
- fi |
459 |
- newinitd "${FILESDIR}"/deluged.init-2 deluged |
460 |
- newconfd "${FILESDIR}"/deluged.conf-2 deluged |
461 |
- systemd_newunit "${FILESDIR}"/deluged.service-2 deluged.service |
462 |
- systemd_install_serviced "${FILESDIR}"/deluged.service.conf |
463 |
- |
464 |
- python_optimize |
465 |
-} |
466 |
- |
467 |
-pkg_postinst() { |
468 |
- xdg_pkg_postinst |
469 |
- |
470 |
- elog |
471 |
- elog "If, after upgrading, deluge doesn't work, please remove the" |
472 |
- elog "'~/.config/deluge' directory and try again, but make a backup" |
473 |
- elog "first!" |
474 |
- elog |
475 |
- elog "To start the daemon either run 'deluged' as user" |
476 |
- elog "or modify /etc/conf.d/deluged and run" |
477 |
- elog "/etc/init.d/deluged start as root" |
478 |
- elog "You can still use deluge the old way" |
479 |
- elog |
480 |
- elog "Systemd unit files for deluged and deluge-web no longer source" |
481 |
- elog "/etc/conf.d/deluge* files. Environment variable customization now" |
482 |
- elog "happens in /etc/systemd/system/deluged.service.d/00gentoo.conf" |
483 |
- elog "and /etc/systemd/system/deluge-web.service.d/00gentoo.conf" |
484 |
- elog |
485 |
- elog "For more information look at https://dev.deluge-torrent.org/wiki/Faq" |
486 |
- elog |
487 |
-} |
488 |
|
489 |
diff --git a/net-p2p/deluge/deluge-2.0.3-r9.ebuild b/net-p2p/deluge/deluge-2.0.3-r9.ebuild |
490 |
deleted file mode 100644 |
491 |
index 6878f1f82c5f..000000000000 |
492 |
--- a/net-p2p/deluge/deluge-2.0.3-r9.ebuild |
493 |
+++ /dev/null |
494 |
@@ -1,143 +0,0 @@ |
495 |
-# Copyright 1999-2021 Gentoo Authors |
496 |
-# Distributed under the terms of the GNU General Public License v2 |
497 |
- |
498 |
-EAPI="7" |
499 |
- |
500 |
-PYTHON_COMPAT=( python3_{8,9} ) |
501 |
-DISTUTILS_SINGLE_IMPL=1 |
502 |
-inherit distutils-r1 systemd |
503 |
- |
504 |
-DESCRIPTION="BitTorrent client with a client/server model" |
505 |
-HOMEPAGE="https://deluge-torrent.org/" |
506 |
- |
507 |
-if [[ ${PV} == 9999 ]]; then |
508 |
- inherit git-r3 |
509 |
- EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}" |
510 |
-else |
511 |
- SRC_URI="http://download.deluge-torrent.org/source/2.0/${P}.tar.xz" |
512 |
- KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" |
513 |
-fi |
514 |
- |
515 |
-LICENSE="GPL-2" |
516 |
-SLOT="0" |
517 |
-IUSE="console geoip gtk libnotify sound webinterface" |
518 |
-REQUIRED_USE=" |
519 |
- ${PYTHON_REQUIRED_USE} |
520 |
- libnotify? ( gtk ) |
521 |
- sound? ( gtk ) |
522 |
-" |
523 |
- |
524 |
-DEPEND=" |
525 |
- $(python_gen_cond_dep ' |
526 |
- net-libs/libtorrent-rasterbar[python,${PYTHON_USEDEP}] |
527 |
- dev-python/wheel[${PYTHON_USEDEP}] |
528 |
- ') |
529 |
- dev-util/intltool |
530 |
- acct-group/deluge |
531 |
- acct-user/deluge" |
532 |
-RDEPEND=" |
533 |
- $(python_gen_cond_dep ' |
534 |
- dev-python/chardet[${PYTHON_USEDEP}] |
535 |
- dev-python/distro[${PYTHON_USEDEP}] |
536 |
- dev-python/pillow[${PYTHON_USEDEP}] |
537 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
538 |
- dev-python/pyxdg[${PYTHON_USEDEP}] |
539 |
- dev-python/rencode[${PYTHON_USEDEP}] |
540 |
- dev-python/setproctitle[${PYTHON_USEDEP}] |
541 |
- dev-python/six[${PYTHON_USEDEP}] |
542 |
- >=dev-python/twisted-17.1.0[crypt,${PYTHON_USEDEP}] |
543 |
- >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] |
544 |
- geoip? ( dev-python/geoip-python[${PYTHON_USEDEP}] ) |
545 |
- gtk? ( |
546 |
- sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) |
547 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
548 |
- gnome-base/librsvg |
549 |
- libnotify? ( x11-libs/libnotify ) |
550 |
- ) |
551 |
- net-libs/libtorrent-rasterbar[python,${PYTHON_USEDEP}] |
552 |
- dev-python/mako[${PYTHON_USEDEP}] |
553 |
- ')" |
554 |
- |
555 |
-PATCHES=( |
556 |
- "${FILESDIR}/${PN}-2.0.3-setup.py.patch" |
557 |
- "${FILESDIR}/${PN}-2.0.3-UI-status.patch" |
558 |
- "${FILESDIR}/${PN}-2.0.3-gettext.patch" |
559 |
- "${FILESDIR}/${P}-fix-pickle.patch" |
560 |
- "${FILESDIR}/${P}-log.patch" |
561 |
-) |
562 |
- |
563 |
-python_prepare_all() { |
564 |
- local args=( |
565 |
- -e "/Compiling po file/a \\\tuptoDate = False" |
566 |
- ) |
567 |
- sed -i "${args[@]}" -- 'setup.py' || die |
568 |
- args=( |
569 |
- -e 's|"new_release_check": True|"new_release_check": False|' |
570 |
- -e 's|"check_new_releases": True|"check_new_releases": False|' |
571 |
- -e 's|"show_new_releases": True|"show_new_releases": False|' |
572 |
- ) |
573 |
- sed -i "${args[@]}" -- 'deluge/core/preferencesmanager.py' || die |
574 |
- |
575 |
- distutils-r1_python_prepare_all |
576 |
-} |
577 |
- |
578 |
-esetup.py() { |
579 |
- # bug 531370: deluge has its own plugin system. No need to relocate its egg info files. |
580 |
- # Override this call from the distutils-r1 eclass. |
581 |
- # This does not respect the distutils-r1 API. DONOT copy this example. |
582 |
- set -- "${PYTHON}" setup.py "$@" |
583 |
- echo "$@" |
584 |
- "$@" || die |
585 |
-} |
586 |
- |
587 |
-python_install_all() { |
588 |
- distutils-r1_python_install_all |
589 |
- if ! use console ; then |
590 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/console/" || die |
591 |
- rm "${ED}/usr/bin/deluge-console" || die |
592 |
- rm "${ED}/usr/share/man/man1/deluge-console.1" ||die |
593 |
- fi |
594 |
- if ! use gtk ; then |
595 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/gtk3/" || die |
596 |
- rm -r "${ED}/usr/share/icons/" || die |
597 |
- rm "${ED}/usr/bin/deluge-gtk" || die |
598 |
- rm "${ED}/usr/share/man/man1/deluge-gtk.1" || die |
599 |
- rm "${ED}/usr/share/applications/deluge.desktop" || die |
600 |
- fi |
601 |
- if use webinterface; then |
602 |
- newinitd "${FILESDIR}/deluge-web.init-2" deluge-web |
603 |
- newconfd "${FILESDIR}/deluge-web.conf" deluge-web |
604 |
- systemd_newunit "${FILESDIR}/deluge-web.service-3" deluge-web.service |
605 |
- systemd_install_serviced "${FILESDIR}/deluge-web.service.conf" |
606 |
- else |
607 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/web/" || die |
608 |
- rm "${ED}/usr/bin/deluge-web" || die |
609 |
- rm "${ED}/usr/share/man/man1/deluge-web.1" || die |
610 |
- fi |
611 |
- newinitd "${FILESDIR}"/deluged.init-2 deluged |
612 |
- newconfd "${FILESDIR}"/deluged.conf-2 deluged |
613 |
- systemd_newunit "${FILESDIR}"/deluged.service-2 deluged.service |
614 |
- systemd_install_serviced "${FILESDIR}"/deluged.service.conf |
615 |
- |
616 |
- python_optimize |
617 |
-} |
618 |
- |
619 |
-pkg_postinst() { |
620 |
- elog |
621 |
- elog "If, after upgrading, deluge doesn't work, please remove the" |
622 |
- elog "'~/.config/deluge' directory and try again, but make a backup" |
623 |
- elog "first!" |
624 |
- elog |
625 |
- elog "To start the daemon either run 'deluged' as user" |
626 |
- elog "or modify /etc/conf.d/deluged and run" |
627 |
- elog "/etc/init.d/deluged start as root" |
628 |
- elog "You can still use deluge the old way" |
629 |
- elog |
630 |
- elog "Systemd unit files for deluged and deluge-web no longer source" |
631 |
- elog "/etc/conf.d/deluge* files. Environment variable customization now" |
632 |
- elog "happens in /etc/systemd/system/deluged.service.d/00gentoo.conf" |
633 |
- elog "and /etc/systemd/system/deluge-web.service.d/00gentoo.conf" |
634 |
- elog |
635 |
- elog "For more information look at https://dev.deluge-torrent.org/wiki/Faq" |
636 |
- elog |
637 |
-} |
638 |
|
639 |
diff --git a/net-p2p/deluge/deluge-2.0.4.ebuild b/net-p2p/deluge/deluge-2.0.4.ebuild |
640 |
deleted file mode 100644 |
641 |
index 567df54ba964..000000000000 |
642 |
--- a/net-p2p/deluge/deluge-2.0.4.ebuild |
643 |
+++ /dev/null |
644 |
@@ -1,142 +0,0 @@ |
645 |
-# Copyright 1999-2021 Gentoo Authors |
646 |
-# Distributed under the terms of the GNU General Public License v2 |
647 |
- |
648 |
-EAPI="7" |
649 |
- |
650 |
-PYTHON_COMPAT=( python3_{8,9,10} ) |
651 |
-DISTUTILS_SINGLE_IMPL=1 |
652 |
-inherit xdg distutils-r1 systemd |
653 |
- |
654 |
-DESCRIPTION="BitTorrent client with a client/server model" |
655 |
-HOMEPAGE="https://deluge-torrent.org/" |
656 |
- |
657 |
-if [[ ${PV} == 9999 ]]; then |
658 |
- inherit git-r3 |
659 |
- EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}" |
660 |
-else |
661 |
- SRC_URI="http://download.deluge-torrent.org/source/2.0/${P}.tar.xz" |
662 |
- KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" |
663 |
-fi |
664 |
- |
665 |
-LICENSE="GPL-2" |
666 |
-SLOT="0" |
667 |
-IUSE="console geoip gtk libnotify sound webinterface" |
668 |
-REQUIRED_USE=" |
669 |
- ${PYTHON_REQUIRED_USE} |
670 |
- libnotify? ( gtk ) |
671 |
- sound? ( gtk ) |
672 |
-" |
673 |
- |
674 |
-DEPEND=" |
675 |
- <net-libs/libtorrent-rasterbar-2.0.0:=[python,${PYTHON_SINGLE_USEDEP}] |
676 |
- $(python_gen_cond_dep ' |
677 |
- dev-python/wheel[${PYTHON_USEDEP}] |
678 |
- ') |
679 |
- dev-util/intltool |
680 |
- acct-group/deluge |
681 |
- acct-user/deluge" |
682 |
-RDEPEND=" |
683 |
- <net-libs/libtorrent-rasterbar-2.0.0:=[python,${PYTHON_SINGLE_USEDEP}] |
684 |
- $(python_gen_cond_dep ' |
685 |
- dev-python/chardet[${PYTHON_USEDEP}] |
686 |
- dev-python/distro[${PYTHON_USEDEP}] |
687 |
- dev-python/pillow[${PYTHON_USEDEP}] |
688 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
689 |
- dev-python/pyxdg[${PYTHON_USEDEP}] |
690 |
- dev-python/rencode[${PYTHON_USEDEP}] |
691 |
- dev-python/setproctitle[${PYTHON_USEDEP}] |
692 |
- dev-python/six[${PYTHON_USEDEP}] |
693 |
- >=dev-python/twisted-17.1.0[crypt,${PYTHON_USEDEP}] |
694 |
- >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] |
695 |
- geoip? ( dev-python/geoip-python[${PYTHON_USEDEP}] ) |
696 |
- gtk? ( |
697 |
- sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) |
698 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
699 |
- gnome-base/librsvg |
700 |
- libnotify? ( x11-libs/libnotify ) |
701 |
- ) |
702 |
- dev-python/mako[${PYTHON_USEDEP}] |
703 |
- ')" |
704 |
- |
705 |
-PATCHES=( |
706 |
- "${FILESDIR}/${PN}-2.0.3-setup.py.patch" |
707 |
- "${FILESDIR}/${PN}-2.0.3-UI-status.patch" |
708 |
-) |
709 |
- |
710 |
-python_prepare_all() { |
711 |
- local args=( |
712 |
- -e "/Compiling po file/a \\\tuptoDate = False" |
713 |
- ) |
714 |
- sed -i "${args[@]}" -- 'setup.py' || die |
715 |
- args=( |
716 |
- -e 's|"new_release_check": True|"new_release_check": False|' |
717 |
- -e 's|"check_new_releases": True|"check_new_releases": False|' |
718 |
- -e 's|"show_new_releases": True|"show_new_releases": False|' |
719 |
- ) |
720 |
- sed -i "${args[@]}" -- 'deluge/core/preferencesmanager.py' || die |
721 |
- |
722 |
- distutils-r1_python_prepare_all |
723 |
-} |
724 |
- |
725 |
-esetup.py() { |
726 |
- # bug 531370: deluge has its own plugin system. No need to relocate its egg info files. |
727 |
- # Override this call from the distutils-r1 eclass. |
728 |
- # This does not respect the distutils-r1 API. DONOT copy this example. |
729 |
- set -- "${PYTHON}" setup.py "$@" |
730 |
- echo "$@" |
731 |
- "$@" || die |
732 |
-} |
733 |
- |
734 |
-python_install_all() { |
735 |
- distutils-r1_python_install_all |
736 |
- if ! use console ; then |
737 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/console/" || die |
738 |
- rm "${ED}/usr/bin/deluge-console" || die |
739 |
- rm "${ED}/usr/share/man/man1/deluge-console.1" ||die |
740 |
- fi |
741 |
- if ! use gtk ; then |
742 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/gtk3/" || die |
743 |
- rm -r "${ED}/usr/share/icons/" || die |
744 |
- rm "${ED}/usr/bin/deluge-gtk" || die |
745 |
- rm "${ED}/usr/share/man/man1/deluge-gtk.1" || die |
746 |
- rm "${ED}/usr/share/applications/deluge.desktop" || die |
747 |
- fi |
748 |
- if use webinterface; then |
749 |
- newinitd "${FILESDIR}/deluge-web.init-2" deluge-web |
750 |
- newconfd "${FILESDIR}/deluge-web.conf" deluge-web |
751 |
- systemd_newunit "${FILESDIR}/deluge-web.service-3" deluge-web.service |
752 |
- systemd_install_serviced "${FILESDIR}/deluge-web.service.conf" |
753 |
- else |
754 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/web/" || die |
755 |
- rm "${ED}/usr/bin/deluge-web" || die |
756 |
- rm "${ED}/usr/share/man/man1/deluge-web.1" || die |
757 |
- fi |
758 |
- newinitd "${FILESDIR}"/deluged.init-2 deluged |
759 |
- newconfd "${FILESDIR}"/deluged.conf-2 deluged |
760 |
- systemd_newunit "${FILESDIR}"/deluged.service-2 deluged.service |
761 |
- systemd_install_serviced "${FILESDIR}"/deluged.service.conf |
762 |
- |
763 |
- python_optimize |
764 |
-} |
765 |
- |
766 |
-pkg_postinst() { |
767 |
- xdg_pkg_postinst |
768 |
- |
769 |
- elog |
770 |
- elog "If, after upgrading, deluge doesn't work, please remove the" |
771 |
- elog "'~/.config/deluge' directory and try again, but make a backup" |
772 |
- elog "first!" |
773 |
- elog |
774 |
- elog "To start the daemon either run 'deluged' as user" |
775 |
- elog "or modify /etc/conf.d/deluged and run" |
776 |
- elog "/etc/init.d/deluged start as root" |
777 |
- elog "You can still use deluge the old way" |
778 |
- elog |
779 |
- elog "Systemd unit files for deluged and deluge-web no longer source" |
780 |
- elog "/etc/conf.d/deluge* files. Environment variable customization now" |
781 |
- elog "happens in /etc/systemd/system/deluged.service.d/00gentoo.conf" |
782 |
- elog "and /etc/systemd/system/deluge-web.service.d/00gentoo.conf" |
783 |
- elog |
784 |
- elog "For more information look at https://dev.deluge-torrent.org/wiki/Faq" |
785 |
- elog |
786 |
-} |
787 |
|
788 |
diff --git a/net-p2p/deluge/deluge-2.0.5.ebuild b/net-p2p/deluge/deluge-2.0.5.ebuild |
789 |
deleted file mode 100644 |
790 |
index 567df54ba964..000000000000 |
791 |
--- a/net-p2p/deluge/deluge-2.0.5.ebuild |
792 |
+++ /dev/null |
793 |
@@ -1,142 +0,0 @@ |
794 |
-# Copyright 1999-2021 Gentoo Authors |
795 |
-# Distributed under the terms of the GNU General Public License v2 |
796 |
- |
797 |
-EAPI="7" |
798 |
- |
799 |
-PYTHON_COMPAT=( python3_{8,9,10} ) |
800 |
-DISTUTILS_SINGLE_IMPL=1 |
801 |
-inherit xdg distutils-r1 systemd |
802 |
- |
803 |
-DESCRIPTION="BitTorrent client with a client/server model" |
804 |
-HOMEPAGE="https://deluge-torrent.org/" |
805 |
- |
806 |
-if [[ ${PV} == 9999 ]]; then |
807 |
- inherit git-r3 |
808 |
- EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}" |
809 |
-else |
810 |
- SRC_URI="http://download.deluge-torrent.org/source/2.0/${P}.tar.xz" |
811 |
- KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" |
812 |
-fi |
813 |
- |
814 |
-LICENSE="GPL-2" |
815 |
-SLOT="0" |
816 |
-IUSE="console geoip gtk libnotify sound webinterface" |
817 |
-REQUIRED_USE=" |
818 |
- ${PYTHON_REQUIRED_USE} |
819 |
- libnotify? ( gtk ) |
820 |
- sound? ( gtk ) |
821 |
-" |
822 |
- |
823 |
-DEPEND=" |
824 |
- <net-libs/libtorrent-rasterbar-2.0.0:=[python,${PYTHON_SINGLE_USEDEP}] |
825 |
- $(python_gen_cond_dep ' |
826 |
- dev-python/wheel[${PYTHON_USEDEP}] |
827 |
- ') |
828 |
- dev-util/intltool |
829 |
- acct-group/deluge |
830 |
- acct-user/deluge" |
831 |
-RDEPEND=" |
832 |
- <net-libs/libtorrent-rasterbar-2.0.0:=[python,${PYTHON_SINGLE_USEDEP}] |
833 |
- $(python_gen_cond_dep ' |
834 |
- dev-python/chardet[${PYTHON_USEDEP}] |
835 |
- dev-python/distro[${PYTHON_USEDEP}] |
836 |
- dev-python/pillow[${PYTHON_USEDEP}] |
837 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
838 |
- dev-python/pyxdg[${PYTHON_USEDEP}] |
839 |
- dev-python/rencode[${PYTHON_USEDEP}] |
840 |
- dev-python/setproctitle[${PYTHON_USEDEP}] |
841 |
- dev-python/six[${PYTHON_USEDEP}] |
842 |
- >=dev-python/twisted-17.1.0[crypt,${PYTHON_USEDEP}] |
843 |
- >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] |
844 |
- geoip? ( dev-python/geoip-python[${PYTHON_USEDEP}] ) |
845 |
- gtk? ( |
846 |
- sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) |
847 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
848 |
- gnome-base/librsvg |
849 |
- libnotify? ( x11-libs/libnotify ) |
850 |
- ) |
851 |
- dev-python/mako[${PYTHON_USEDEP}] |
852 |
- ')" |
853 |
- |
854 |
-PATCHES=( |
855 |
- "${FILESDIR}/${PN}-2.0.3-setup.py.patch" |
856 |
- "${FILESDIR}/${PN}-2.0.3-UI-status.patch" |
857 |
-) |
858 |
- |
859 |
-python_prepare_all() { |
860 |
- local args=( |
861 |
- -e "/Compiling po file/a \\\tuptoDate = False" |
862 |
- ) |
863 |
- sed -i "${args[@]}" -- 'setup.py' || die |
864 |
- args=( |
865 |
- -e 's|"new_release_check": True|"new_release_check": False|' |
866 |
- -e 's|"check_new_releases": True|"check_new_releases": False|' |
867 |
- -e 's|"show_new_releases": True|"show_new_releases": False|' |
868 |
- ) |
869 |
- sed -i "${args[@]}" -- 'deluge/core/preferencesmanager.py' || die |
870 |
- |
871 |
- distutils-r1_python_prepare_all |
872 |
-} |
873 |
- |
874 |
-esetup.py() { |
875 |
- # bug 531370: deluge has its own plugin system. No need to relocate its egg info files. |
876 |
- # Override this call from the distutils-r1 eclass. |
877 |
- # This does not respect the distutils-r1 API. DONOT copy this example. |
878 |
- set -- "${PYTHON}" setup.py "$@" |
879 |
- echo "$@" |
880 |
- "$@" || die |
881 |
-} |
882 |
- |
883 |
-python_install_all() { |
884 |
- distutils-r1_python_install_all |
885 |
- if ! use console ; then |
886 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/console/" || die |
887 |
- rm "${ED}/usr/bin/deluge-console" || die |
888 |
- rm "${ED}/usr/share/man/man1/deluge-console.1" ||die |
889 |
- fi |
890 |
- if ! use gtk ; then |
891 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/gtk3/" || die |
892 |
- rm -r "${ED}/usr/share/icons/" || die |
893 |
- rm "${ED}/usr/bin/deluge-gtk" || die |
894 |
- rm "${ED}/usr/share/man/man1/deluge-gtk.1" || die |
895 |
- rm "${ED}/usr/share/applications/deluge.desktop" || die |
896 |
- fi |
897 |
- if use webinterface; then |
898 |
- newinitd "${FILESDIR}/deluge-web.init-2" deluge-web |
899 |
- newconfd "${FILESDIR}/deluge-web.conf" deluge-web |
900 |
- systemd_newunit "${FILESDIR}/deluge-web.service-3" deluge-web.service |
901 |
- systemd_install_serviced "${FILESDIR}/deluge-web.service.conf" |
902 |
- else |
903 |
- rm -r "${D}/$(python_get_sitedir)/deluge/ui/web/" || die |
904 |
- rm "${ED}/usr/bin/deluge-web" || die |
905 |
- rm "${ED}/usr/share/man/man1/deluge-web.1" || die |
906 |
- fi |
907 |
- newinitd "${FILESDIR}"/deluged.init-2 deluged |
908 |
- newconfd "${FILESDIR}"/deluged.conf-2 deluged |
909 |
- systemd_newunit "${FILESDIR}"/deluged.service-2 deluged.service |
910 |
- systemd_install_serviced "${FILESDIR}"/deluged.service.conf |
911 |
- |
912 |
- python_optimize |
913 |
-} |
914 |
- |
915 |
-pkg_postinst() { |
916 |
- xdg_pkg_postinst |
917 |
- |
918 |
- elog |
919 |
- elog "If, after upgrading, deluge doesn't work, please remove the" |
920 |
- elog "'~/.config/deluge' directory and try again, but make a backup" |
921 |
- elog "first!" |
922 |
- elog |
923 |
- elog "To start the daemon either run 'deluged' as user" |
924 |
- elog "or modify /etc/conf.d/deluged and run" |
925 |
- elog "/etc/init.d/deluged start as root" |
926 |
- elog "You can still use deluge the old way" |
927 |
- elog |
928 |
- elog "Systemd unit files for deluged and deluge-web no longer source" |
929 |
- elog "/etc/conf.d/deluge* files. Environment variable customization now" |
930 |
- elog "happens in /etc/systemd/system/deluged.service.d/00gentoo.conf" |
931 |
- elog "and /etc/systemd/system/deluge-web.service.d/00gentoo.conf" |
932 |
- elog |
933 |
- elog "For more information look at https://dev.deluge-torrent.org/wiki/Faq" |
934 |
- elog |
935 |
-} |
936 |
|
937 |
diff --git a/net-p2p/deluge/files/deluge-web.init b/net-p2p/deluge/files/deluge-web.init |
938 |
deleted file mode 100644 |
939 |
index 1e0b4833f072..000000000000 |
940 |
--- a/net-p2p/deluge/files/deluge-web.init |
941 |
+++ /dev/null |
942 |
@@ -1,53 +0,0 @@ |
943 |
-#!/sbin/openrc-run |
944 |
-# Copyright 1999-2013 Gentoo Foundation |
945 |
-# Distributed under the terms of the GNU General Public License, v2 or later |
946 |
- |
947 |
-depend() { |
948 |
- need net |
949 |
-} |
950 |
- |
951 |
-checkconfig() { |
952 |
- if [ "${DELUGE_WEB_USER}" = "" ] ; then |
953 |
- eerror "Please edit /etc/conf.d/deluge-web" |
954 |
- eerror "You have to specify a user to run deluge-web as, as we will not run it as root!" |
955 |
- eerror "Modify DELUGE_WEB_USER to your needs (you can also add a group, after a colon)" |
956 |
- return 1 |
957 |
- fi |
958 |
- if ! getent passwd "${DELUGE_WEB_USER%:*}" >/dev/null ; then |
959 |
- eerror "Please edit /etc/conf.d/deluge-web" |
960 |
- eerror "Your user has to exist!" |
961 |
- return 1 |
962 |
- fi |
963 |
- if [ "${DELUGE_WEB_USER%:*}" = "${DELUGE_WEB_USER}" ] ; then |
964 |
- return 0 |
965 |
- else |
966 |
- if ! getent group "${DELUGE_WEB_USER#*:}" >/dev/null ; then |
967 |
- eerror "Please edit /etc/conf.d/deluge-web" |
968 |
- eerror "Your group has to exist too!" |
969 |
- return 1 |
970 |
- fi |
971 |
- fi |
972 |
- return 0 |
973 |
-} |
974 |
- |
975 |
-start() { |
976 |
- checkconfig || return $? |
977 |
- if [ "${DELUGE_WEB_HOME}" = "" ] ; then |
978 |
- DELUGE_WEB_USER_HOME=$(getent passwd "${DELUGE_WEB_USER%:*}" | cut -d ':' -f 6) |
979 |
- else |
980 |
- DELUGE_WEB_USER_HOME=${DELUGE_WEB_HOME} |
981 |
- fi |
982 |
- ebegin "Starting Deluge-Web" |
983 |
- start-stop-daemon --start --background --pidfile \ |
984 |
- /run/deluge-web.pid --make-pidfile \ |
985 |
- --exec /usr/bin/deluge-web --user "${DELUGE_WEB_USER%:*}" \ |
986 |
- -e HOME="${DELUGE_WEB_USER_HOME}" -- ${DELUGE_WEB_OPTS} |
987 |
- eend $? |
988 |
-} |
989 |
- |
990 |
-stop() { |
991 |
- ebegin "Stopping Deluge-Web" |
992 |
- start-stop-daemon --stop --user "${DELUGE_WEB_USER%:*}" \ |
993 |
- --pidfile /run/deluge-web.pid |
994 |
- eend $? |
995 |
-} |