1 |
commit: bb55175d5ed9a22c9bed3bb687a4927ccc80c7ad |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 31 12:06:34 2015 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 31 12:06:34 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb55175d |
7 |
|
8 |
Remove hardmasked package |
9 |
|
10 |
net-p2p/bittorrent/Manifest | 1 - |
11 |
net-p2p/bittorrent/bittorrent-4.4.0-r2.ebuild | 87 ------------- |
12 |
net-p2p/bittorrent/bittorrent-4.4.0-r3.ebuild | 86 ------------- |
13 |
.../files/bittorrent-4.4.0-bencode-float.patch | 75 ----------- |
14 |
.../files/bittorrent-4.4.0-fastresume.patch | 23 ---- |
15 |
.../files/bittorrent-4.4.0-hashlib.patch | 142 --------------------- |
16 |
.../files/bittorrent-4.4.0-keyerror.patch | 15 --- |
17 |
.../files/bittorrent-4.4.0-no-version-check.patch | 14 -- |
18 |
.../bittorrent/files/bittorrent-4.4.0-pkidir.patch | 13 -- |
19 |
.../bittorrent-4.4.0-pygtk-thread-warnings.patch | 81 ------------ |
20 |
.../files/bittorrent-4.4.0-python26-syntax.patch | 45 ------- |
21 |
net-p2p/bittorrent/files/bittorrent-tracker.confd | 15 --- |
22 |
net-p2p/bittorrent/files/bittorrent-tracker.initd | 23 ---- |
23 |
net-p2p/bittorrent/files/bittorrent.desktop | 10 -- |
24 |
net-p2p/bittorrent/metadata.xml | 9 -- |
25 |
15 files changed, 639 deletions(-) |
26 |
|
27 |
diff --git a/net-p2p/bittorrent/Manifest b/net-p2p/bittorrent/Manifest |
28 |
deleted file mode 100644 |
29 |
index 693530b..0000000 |
30 |
--- a/net-p2p/bittorrent/Manifest |
31 |
+++ /dev/null |
32 |
@@ -1 +0,0 @@ |
33 |
-DIST BitTorrent-4.4.0.tar.gz 1255281 SHA256 1c9338ed384240258b5733a814670e2dee8ca2fb65babf3f0ca07978707301e0 SHA512 04ac6690fe11225c182c10dd3e7a84b53d84fd795efdc8a8d502835bc1c728a95c6cb12cc42173aadc483eff39bfaaba3df418fc86114c240748631e91d6ddd8 WHIRLPOOL 99e38f8da90e9eadaa0e3d14cc4bf102964443e951da98a423383d5d428b253a736bbee4ed6c4475e8a0ba5456f515e28346c1ea2328b5ed8c642cf50a13b15c |
34 |
|
35 |
diff --git a/net-p2p/bittorrent/bittorrent-4.4.0-r2.ebuild b/net-p2p/bittorrent/bittorrent-4.4.0-r2.ebuild |
36 |
deleted file mode 100644 |
37 |
index bda46fc..0000000 |
38 |
--- a/net-p2p/bittorrent/bittorrent-4.4.0-r2.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,87 +0,0 @@ |
41 |
-# Copyright 1999-2012 Gentoo Foundation |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
-# $Id$ |
44 |
- |
45 |
-EAPI="3" |
46 |
- |
47 |
-PYTHON_DEPEND="2:2.5" |
48 |
-PYTHON_USE_WITH="threads" |
49 |
- |
50 |
-# Maintainer note: |
51 |
-# keep this package at 4.4.0. |
52 |
-# 5.x - requires wxpython-2.6 which we don't carry |
53 |
-# 6.x - binary-only non-free crap |
54 |
-# Fedora has also frozen bittorrent at 4.4.0 and is a good source of patches |
55 |
-# http://pkgs.fedoraproject.org/gitweb/?p=bittorrent.git |
56 |
- |
57 |
-inherit distutils eutils fdo-mime python |
58 |
- |
59 |
-MY_P="${P/bittorrent/BitTorrent}" |
60 |
- |
61 |
-DESCRIPTION="Tool for distributing files via a distributed network of nodes" |
62 |
-HOMEPAGE="http://www.bittorrent.com/" |
63 |
-SRC_URI="http://www.bittorrent.com/dl/${MY_P}.tar.gz" |
64 |
- |
65 |
-LICENSE="BitTorrent" |
66 |
-SLOT="0" |
67 |
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" |
68 |
-IUSE="aqua gtk" |
69 |
- |
70 |
-RDEPEND=">=dev-python/pycrypto-2.0 |
71 |
- gtk? ( >=x11-libs/gtk+-2.6:2 |
72 |
- >=dev-python/pygtk-2.6:2 )" |
73 |
-DEPEND="${RDEPEND}" |
74 |
-# dev-python/dnspython" |
75 |
- |
76 |
-S=${WORKDIR}/${MY_P} |
77 |
- |
78 |
-DOCS="README.txt TRACKERLESS.txt" |
79 |
-PYTHON_MODNAME="BitTorrent khashmir" |
80 |
- |
81 |
-pkg_setup() { |
82 |
- python_set_active_version 2 |
83 |
- python_pkg_setup |
84 |
-} |
85 |
- |
86 |
-src_prepare() { |
87 |
- distutils_src_prepare |
88 |
- |
89 |
- epatch "${FILESDIR}"/${P}-no-version-check.patch |
90 |
- epatch "${FILESDIR}"/${P}-pkidir.patch |
91 |
- epatch "${FILESDIR}"/${P}-fastresume.patch |
92 |
- epatch "${FILESDIR}"/${P}-pygtk-thread-warnings.patch |
93 |
- epatch "${FILESDIR}"/${P}-python26-syntax.patch |
94 |
- epatch "${FILESDIR}"/${P}-bencode-float.patch |
95 |
- epatch "${FILESDIR}"/${P}-keyerror.patch |
96 |
- epatch "${FILESDIR}"/${P}-hashlib.patch |
97 |
- |
98 |
- # fix doc path #109743 |
99 |
- sed -i -e "/dp.*appdir/ s:appdir:'${PF}':" BitTorrent/platform.py |
100 |
-} |
101 |
- |
102 |
-src_install() { |
103 |
- distutils_src_install |
104 |
- |
105 |
- if use gtk; then |
106 |
- doicon images/bittorrent.ico |
107 |
- domenu "${FILESDIR}"/${PN}.desktop |
108 |
- elif use !aqua; then |
109 |
- rm -f "${ED}"usr/bin/{bit,make}torrent |
110 |
- fi |
111 |
- |
112 |
- insinto /etc/pki/bittorrent/ |
113 |
- doins public.key |
114 |
- |
115 |
- newinitd "${FILESDIR}"/bittorrent-tracker.initd bittorrent-tracker |
116 |
- newconfd "${FILESDIR}"/bittorrent-tracker.confd bittorrent-tracker |
117 |
-} |
118 |
- |
119 |
-pkg_postinst() { |
120 |
- distutils_pkg_postinst |
121 |
- use gtk && fdo-mime_desktop_database_update |
122 |
-} |
123 |
- |
124 |
-pkg_postrm() { |
125 |
- distutils_pkg_postrm |
126 |
- use gtk && fdo-mime_desktop_database_update |
127 |
-} |
128 |
|
129 |
diff --git a/net-p2p/bittorrent/bittorrent-4.4.0-r3.ebuild b/net-p2p/bittorrent/bittorrent-4.4.0-r3.ebuild |
130 |
deleted file mode 100644 |
131 |
index 2652019..0000000 |
132 |
--- a/net-p2p/bittorrent/bittorrent-4.4.0-r3.ebuild |
133 |
+++ /dev/null |
134 |
@@ -1,86 +0,0 @@ |
135 |
-# Copyright 1999-2014 Gentoo Foundation |
136 |
-# Distributed under the terms of the GNU General Public License v2 |
137 |
-# $Id$ |
138 |
- |
139 |
-EAPI=5 |
140 |
- |
141 |
-PYTHON_COMPAT=( python2_7 ) |
142 |
-PYTHON_REQ_USE='threads' |
143 |
- |
144 |
-# Maintainer note: |
145 |
-# keep this package at 4.4.0. |
146 |
-# 5.x - requires wxpython-2.6 which we don't carry |
147 |
-# 6.x - binary-only non-free crap |
148 |
-# Fedora has also frozen bittorrent at 4.4.0 and is a good source of patches |
149 |
-# http://pkgs.fedoraproject.org/gitweb/?p=bittorrent.git |
150 |
- |
151 |
-inherit distutils-r1 eutils fdo-mime |
152 |
- |
153 |
-MY_P="${P/bittorrent/BitTorrent}" |
154 |
- |
155 |
-DESCRIPTION="Tool for distributing files via a distributed network of nodes" |
156 |
-HOMEPAGE="http://www.bittorrent.com/" |
157 |
-SRC_URI="http://www.bittorrent.com/dl/${MY_P}.tar.gz" |
158 |
- |
159 |
-LICENSE="BitTorrent" |
160 |
-SLOT="0" |
161 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" |
162 |
-IUSE="aqua gtk" |
163 |
- |
164 |
-RDEPEND=">=dev-python/pycrypto-2.0[${PYTHON_USEDEP}] |
165 |
- gtk? ( >=x11-libs/gtk+-2.6:2 |
166 |
- >=dev-python/pygtk-2.6:2[${PYTHON_USEDEP}] )" |
167 |
-DEPEND="${RDEPEND}" |
168 |
-# dev-python/dnspython" |
169 |
- |
170 |
-S=${WORKDIR}/${MY_P} |
171 |
- |
172 |
-DOCS=( credits.txt credits-l10n.txt README.txt TRACKERLESS.txt ) |
173 |
- |
174 |
-python_prepare_all() { |
175 |
- epatch "${FILESDIR}"/${P}-no-version-check.patch |
176 |
- epatch "${FILESDIR}"/${P}-pkidir.patch |
177 |
- epatch "${FILESDIR}"/${P}-fastresume.patch |
178 |
- epatch "${FILESDIR}"/${P}-pygtk-thread-warnings.patch |
179 |
- epatch "${FILESDIR}"/${P}-python26-syntax.patch |
180 |
- epatch "${FILESDIR}"/${P}-bencode-float.patch |
181 |
- epatch "${FILESDIR}"/${P}-keyerror.patch |
182 |
- epatch "${FILESDIR}"/${P}-hashlib.patch |
183 |
- |
184 |
- # fix doc path #109743 |
185 |
- sed -i -e "/dp.*appdir/ s:appdir:'${PF}':" BitTorrent/platform.py || die |
186 |
- |
187 |
- distutils-r1_python_prepare_all |
188 |
-} |
189 |
- |
190 |
-python_install() { |
191 |
- distutils-r1_python_install |
192 |
- |
193 |
- if ! use gtk && ! use aqua; then |
194 |
- rm -f "${ED}"usr/bn/{bit,make}torrent || die |
195 |
- rm -f "${D}$(python_get_scriptdir)"/{bit,make}torrent || die |
196 |
- fi |
197 |
-} |
198 |
- |
199 |
-python_install_all() { |
200 |
- distutils-r1_python_install_all |
201 |
- |
202 |
- if use gtk; then |
203 |
- doicon images/bittorrent.ico |
204 |
- domenu "${FILESDIR}"/${PN}.desktop |
205 |
- fi |
206 |
- |
207 |
- insinto /etc/pki/bittorrent/ |
208 |
- doins public.key |
209 |
- |
210 |
- newinitd "${FILESDIR}"/bittorrent-tracker.initd bittorrent-tracker |
211 |
- newconfd "${FILESDIR}"/bittorrent-tracker.confd bittorrent-tracker |
212 |
-} |
213 |
- |
214 |
-pkg_postinst() { |
215 |
- use gtk && fdo-mime_desktop_database_update |
216 |
-} |
217 |
- |
218 |
-pkg_postrm() { |
219 |
- use gtk && fdo-mime_desktop_database_update |
220 |
-} |
221 |
|
222 |
diff --git a/net-p2p/bittorrent/files/bittorrent-4.4.0-bencode-float.patch b/net-p2p/bittorrent/files/bittorrent-4.4.0-bencode-float.patch |
223 |
deleted file mode 100644 |
224 |
index c14a7b6..0000000 |
225 |
--- a/net-p2p/bittorrent/files/bittorrent-4.4.0-bencode-float.patch |
226 |
+++ /dev/null |
227 |
@@ -1,75 +0,0 @@ |
228 |
-Add bencode support for floating point values. |
229 |
- |
230 |
-https://bugzilla.redhat.com/451496 |
231 |
- |
232 |
---- a/BitTorrent/bencode.py |
233 |
-+++ b/BitTorrent/bencode.py |
234 |
-@@ -14,6 +14,8 @@ from BitTorrent.obsoletepythonsupport import * |
235 |
- |
236 |
- from BitTorrent import BTFailure |
237 |
- |
238 |
-+import string |
239 |
-+ |
240 |
- def decode_int(x, f): |
241 |
- f += 1 |
242 |
- newf = x.index('e', f) |
243 |
-@@ -25,6 +27,23 @@ def decode_int(x, f): |
244 |
- raise ValueError |
245 |
- return (n, newf+1) |
246 |
- |
247 |
-+def assert_finite(n): |
248 |
-+ """Raises ValueError if n is NaN or infinite.""" |
249 |
-+ |
250 |
-+ valid_chars = '0123456789.-+eE' |
251 |
-+ if repr(n).translate(string.maketrans('',''), valid_chars) != '': |
252 |
-+ raise ValueError('encountered NaN or infinite') |
253 |
-+ |
254 |
-+def decode_float(x, f): |
255 |
-+ f += 1 |
256 |
-+ newf = x.index('e', f) |
257 |
-+ try: |
258 |
-+ n = float(x[f:newf].replace('E', 'e')) |
259 |
-+ assert_finite(n) |
260 |
-+ except (OverflowError, ValueError): |
261 |
-+ raise ValueError('encountered NaN or infinite') |
262 |
-+ return (n, newf+1) |
263 |
-+ |
264 |
- def decode_string(x, f): |
265 |
- colon = x.index(':', f) |
266 |
- n = int(x[f:colon]) |
267 |
-@@ -55,6 +74,7 @@ decode_func = {} |
268 |
- decode_func['l'] = decode_list |
269 |
- decode_func['d'] = decode_dict |
270 |
- decode_func['i'] = decode_int |
271 |
-+decode_func['f'] = decode_float |
272 |
- decode_func['0'] = decode_string |
273 |
- decode_func['1'] = decode_string |
274 |
- decode_func['2'] = decode_string |
275 |
-@@ -75,7 +95,7 @@ def bdecode(x): |
276 |
- raise BTFailure, _("invalid bencoded value (data after valid prefix)") |
277 |
- return r |
278 |
- |
279 |
--from types import StringType, IntType, LongType, DictType, ListType, TupleType |
280 |
-+from types import StringType, IntType, LongType, DictType, ListType, TupleType, FloatType |
281 |
- |
282 |
- |
283 |
- class Bencached(object): |
284 |
-@@ -91,6 +111,10 @@ def encode_bencached(x,r): |
285 |
- def encode_int(x, r): |
286 |
- r.extend(('i', str(x), 'e')) |
287 |
- |
288 |
-+def encode_float(x, r): |
289 |
-+ assert_finite(x) |
290 |
-+ r.extend(('f', repr(x).replace('e', 'E'), 'e')) |
291 |
-+ |
292 |
- def encode_bool(x, r): |
293 |
- if x: |
294 |
- encode_int(1, r) |
295 |
-@@ -119,6 +143,7 @@ encode_func = {} |
296 |
- encode_func[Bencached] = encode_bencached |
297 |
- encode_func[IntType] = encode_int |
298 |
- encode_func[LongType] = encode_int |
299 |
-+encode_func[FloatType] = encode_float |
300 |
- encode_func[StringType] = encode_string |
301 |
- encode_func[ListType] = encode_list |
302 |
- encode_func[TupleType] = encode_list |
303 |
|
304 |
diff --git a/net-p2p/bittorrent/files/bittorrent-4.4.0-fastresume.patch b/net-p2p/bittorrent/files/bittorrent-4.4.0-fastresume.patch |
305 |
deleted file mode 100644 |
306 |
index b282afd..0000000 |
307 |
--- a/net-p2p/bittorrent/files/bittorrent-4.4.0-fastresume.patch |
308 |
+++ /dev/null |
309 |
@@ -1,23 +0,0 @@ |
310 |
-"Could not load fastresume data: invalid literal for int() with base 10: '1300250602.1' |
311 |
-Will perform full hash check." |
312 |
- |
313 |
---- a/BitTorrent/Storage.py |
314 |
-+++ b/BitTorrent/Storage.py |
315 |
-@@ -213,7 +213,7 @@ class Storage(object): |
316 |
- resumefile.write(str(amount_done) + '\n') |
317 |
- for x, x, filename in self.ranges: |
318 |
- resumefile.write(str(os.path.getsize(filename)) + ' ' + |
319 |
-- str(os.path.getmtime(filename)) + '\n') |
320 |
-+ str(int(os.path.getmtime(filename))) + '\n') |
321 |
- |
322 |
- def check_fastresume(self, resumefile, return_filelist=False, |
323 |
- piece_size=None, numpieces=None, allfiles=None): |
324 |
-@@ -237,7 +237,7 @@ class Storage(object): |
325 |
- else: |
326 |
- raise BTFailure(_("Another program appears to have moved, renamed, or deleted the file, " |
327 |
- "or %s may have crashed last time it was run.") % app_name) |
328 |
-- if fsize > 0 and mtime != os.path.getmtime(filename): |
329 |
-+ if fsize > 0 and mtime != int(os.path.getmtime(filename)): |
330 |
- raise BTFailure(_("Another program appears to have modified the file, " |
331 |
- "or %s may have crashed last time it was run.") % app_name) |
332 |
- if size != fsize: |
333 |
|
334 |
diff --git a/net-p2p/bittorrent/files/bittorrent-4.4.0-hashlib.patch b/net-p2p/bittorrent/files/bittorrent-4.4.0-hashlib.patch |
335 |
deleted file mode 100644 |
336 |
index 28bfaa7..0000000 |
337 |
--- a/net-p2p/bittorrent/files/bittorrent-4.4.0-hashlib.patch |
338 |
+++ /dev/null |
339 |
@@ -1,142 +0,0 @@ |
340 |
-DeprecationWarning: the sha module is deprecated; use the hashlib module instead |
341 |
- |
342 |
---- a/BitTorrent/ConvertedMetainfo.py |
343 |
-+++ b/BitTorrent/ConvertedMetainfo.py |
344 |
-@@ -15,7 +15,10 @@ from __future__ import generators |
345 |
- |
346 |
- import os |
347 |
- import sys |
348 |
--from sha import sha |
349 |
-+try: |
350 |
-+ from hashlib import sha1 as sha |
351 |
-+except ImportError: |
352 |
-+ from sha import sha |
353 |
- |
354 |
- from BitTorrent.obsoletepythonsupport import * |
355 |
- |
356 |
---- a/BitTorrent/NewVersion.py |
357 |
-+++ b/BitTorrent/NewVersion.py |
358 |
-@@ -15,7 +15,10 @@ import sys |
359 |
- import zurllib |
360 |
- import pickle |
361 |
- import threading |
362 |
--from sha import sha |
363 |
-+try: |
364 |
-+ from hashlib import sha1 as sha |
365 |
-+except ImportError: |
366 |
-+ from sha import sha |
367 |
- |
368 |
- DEBUG = False |
369 |
- |
370 |
---- a/BitTorrent/PeerID.py |
371 |
-+++ b/BitTorrent/PeerID.py |
372 |
-@@ -11,7 +11,10 @@ |
373 |
- # Written by Matt Chisholm |
374 |
- |
375 |
- import os |
376 |
--from sha import sha |
377 |
-+try: |
378 |
-+ from hashlib import sha1 as sha |
379 |
-+except ImportError: |
380 |
-+ from sha import sha |
381 |
- from time import time |
382 |
- try: |
383 |
- getpid = os.getpid |
384 |
---- a/BitTorrent/StorageWrapper.py |
385 |
-+++ b/BitTorrent/StorageWrapper.py |
386 |
-@@ -12,7 +12,10 @@ |
387 |
- |
388 |
- from __future__ import division |
389 |
- |
390 |
--from sha import sha |
391 |
-+try: |
392 |
-+ from hashlib import sha1 as sha |
393 |
-+except ImportError: |
394 |
-+ from sha import sha |
395 |
- from array import array |
396 |
- from binascii import b2a_hex |
397 |
- |
398 |
---- a/BitTorrent/download.py |
399 |
-+++ b/BitTorrent/download.py |
400 |
-@@ -19,7 +19,10 @@ import sys |
401 |
- import threading |
402 |
- import errno |
403 |
- import gc |
404 |
--from sha import sha |
405 |
-+try: |
406 |
-+ from hashlib import sha1 as sha |
407 |
-+except ImportError: |
408 |
-+ from sha import sha |
409 |
- from socket import error as socketerror |
410 |
- from random import seed |
411 |
- from time import time |
412 |
---- a/BitTorrent/makemetafile.py |
413 |
-+++ b/BitTorrent/makemetafile.py |
414 |
-@@ -16,7 +16,10 @@ from __future__ import division |
415 |
- |
416 |
- import os |
417 |
- import sys |
418 |
--from sha import sha |
419 |
-+try: |
420 |
-+ from hashlib import sha1 as sha |
421 |
-+except ImportError: |
422 |
-+ from sha import sha |
423 |
- from time import time |
424 |
- from threading import Event |
425 |
- |
426 |
---- a/BitTorrent/parsedir.py |
427 |
-+++ b/BitTorrent/parsedir.py |
428 |
-@@ -11,7 +11,10 @@ |
429 |
- # Written by John Hoffman and Uoti Urpala |
430 |
- |
431 |
- import os |
432 |
--from sha import sha |
433 |
-+try: |
434 |
-+ from hashlib import sha1 as sha |
435 |
-+except ImportError: |
436 |
-+ from sha import sha |
437 |
- |
438 |
- from BitTorrent.bencode import bencode, bdecode |
439 |
- from BitTorrent.btformats import check_message |
440 |
---- a/khashmir/khash.py |
441 |
-+++ b/khashmir/khash.py |
442 |
-@@ -8,7 +8,10 @@ |
443 |
- # for the specific language governing rights and limitations under the |
444 |
- # License. |
445 |
- |
446 |
--from sha import sha |
447 |
-+try: |
448 |
-+ from hashlib import sha1 as sha |
449 |
-+except ImportError: |
450 |
-+ from sha import sha |
451 |
- from random import randint |
452 |
- |
453 |
- #this is ugly, hopefully os.entropy will be in 2.4 |
454 |
---- a/khashmir/khashmir.py |
455 |
-+++ b/khashmir/khashmir.py |
456 |
-@@ -13,7 +13,10 @@ from socket import gethostbyname |
457 |
- |
458 |
- from BitTorrent.platform import bttime as time |
459 |
- |
460 |
--from sha import sha |
461 |
-+try: |
462 |
-+ from hashlib import sha1 as sha |
463 |
-+except ImportError: |
464 |
-+ from sha import sha |
465 |
- import re |
466 |
- from BitTorrent.defaultargs import common_options, rare_options |
467 |
- from BitTorrent.RawServer_magic import RawServer |
468 |
---- a/khashmir/utkhashmir.py |
469 |
-+++ b/khashmir/utkhashmir.py |
470 |
-@@ -13,7 +13,10 @@ from actions import * |
471 |
- from khash import newID |
472 |
- from krpc import KRPCProtocolError, KRPCFailSilently |
473 |
- from cache import Cache |
474 |
--from sha import sha |
475 |
-+try: |
476 |
-+ from hashlib import sha1 as sha |
477 |
-+except ImportError: |
478 |
-+ from sha import sha |
479 |
- from util import * |
480 |
- from threading import Thread |
481 |
- from socket import gethostbyname |
482 |
|
483 |
diff --git a/net-p2p/bittorrent/files/bittorrent-4.4.0-keyerror.patch b/net-p2p/bittorrent/files/bittorrent-4.4.0-keyerror.patch |
484 |
deleted file mode 100644 |
485 |
index c2730d1..0000000 |
486 |
--- a/net-p2p/bittorrent/files/bittorrent-4.4.0-keyerror.patch |
487 |
+++ /dev/null |
488 |
@@ -1,15 +0,0 @@ |
489 |
-Fix bug with error: KeyError: <type 'float'> |
490 |
- |
491 |
-https://bugzilla.redhat.com/451496 |
492 |
- |
493 |
---- a/BitTorrent/track.py |
494 |
-+++ b/BitTorrent/track.py |
495 |
-@@ -107,6 +107,8 @@ defaults = [ |
496 |
- _("scrape access allowed (can be none, specific or full)")), |
497 |
- ('max_give', 200, |
498 |
- _("maximum number of peers to give with any one request")), |
499 |
-+ ('max_incomplete', 100, |
500 |
-+ _("max number of outgoing incomplete connections")), |
501 |
- ('twisted', -1, |
502 |
- _("Use Twisted network libraries for network connections. 1 means use twisted, 0 means do not use twisted, -1 means autodetect, and prefer twisted")), |
503 |
- ('pid', '/var/run/bittorrent-tracker.pid', |
504 |
|
505 |
diff --git a/net-p2p/bittorrent/files/bittorrent-4.4.0-no-version-check.patch b/net-p2p/bittorrent/files/bittorrent-4.4.0-no-version-check.patch |
506 |
deleted file mode 100644 |
507 |
index b0c20fd..0000000 |
508 |
--- a/net-p2p/bittorrent/files/bittorrent-4.4.0-no-version-check.patch |
509 |
+++ /dev/null |
510 |
@@ -1,14 +0,0 @@ |
511 |
-Disable check for new versions. |
512 |
- |
513 |
---- a/BitTorrent/NewVersion.py |
514 |
-+++ b/BitTorrent/NewVersion.py |
515 |
-@@ -128,6 +128,9 @@ class Updater(object): |
516 |
- |
517 |
- |
518 |
- def get(self): |
519 |
-+ self.debug('Skipping version check') |
520 |
-+ return |
521 |
-+ |
522 |
- try: |
523 |
- self.get_available() |
524 |
- except BTFailure, e: |
525 |
|
526 |
diff --git a/net-p2p/bittorrent/files/bittorrent-4.4.0-pkidir.patch b/net-p2p/bittorrent/files/bittorrent-4.4.0-pkidir.patch |
527 |
deleted file mode 100644 |
528 |
index 98f9f81..0000000 |
529 |
--- a/net-p2p/bittorrent/files/bittorrent-4.4.0-pkidir.patch |
530 |
+++ /dev/null |
531 |
@@ -1,13 +0,0 @@ |
532 |
-Install public key in standard place. |
533 |
- |
534 |
---- a/BitTorrent/NewVersion.py |
535 |
-+++ b/BitTorrent/NewVersion.py |
536 |
-@@ -163,7 +163,7 @@ class Updater(object): |
537 |
- self.threadwrap(self.errorfunc, WARNING, '\n'.join(terrors)) |
538 |
- |
539 |
- if torrentfile and signature: |
540 |
-- public_key_file = open(os.path.join(doc_root, 'public.key'), 'rb') |
541 |
-+ public_key_file = open('/etc/pki/bittorrent/public.key', 'rb') |
542 |
- public_key = pickle.load(public_key_file) |
543 |
- h = sha(torrentfile).digest() |
544 |
- if public_key.verify(h, signature): |
545 |
|
546 |
diff --git a/net-p2p/bittorrent/files/bittorrent-4.4.0-pygtk-thread-warnings.patch b/net-p2p/bittorrent/files/bittorrent-4.4.0-pygtk-thread-warnings.patch |
547 |
deleted file mode 100644 |
548 |
index c4a2326..0000000 |
549 |
--- a/net-p2p/bittorrent/files/bittorrent-4.4.0-pygtk-thread-warnings.patch |
550 |
+++ /dev/null |
551 |
@@ -1,81 +0,0 @@ |
552 |
-GtkDeprecationWarning: gtk.threads_leave is deprecated, use gtk.gdk.threads_leave instead |
553 |
- |
554 |
---- a/BitTorrent/GUI.py |
555 |
-+++ b/BitTorrent/GUI.py |
556 |
-@@ -25,9 +25,9 @@ from BitTorrent import app_name, FAQ_URL, languages, language_names |
557 |
- from BitTorrent.platform import image_root, read_language_file, write_language_file |
558 |
- |
559 |
- def lock_wrap(function, *args): |
560 |
-- gtk.threads_enter() |
561 |
-+ gtk.gdk.threads_enter() |
562 |
- function(*args) |
563 |
-- gtk.threads_leave() |
564 |
-+ gtk.gdk.threads_leave() |
565 |
- |
566 |
- def gtk_wrap(function, *args): |
567 |
- gobject.idle_add(lock_wrap, function, *args) |
568 |
-@@ -377,10 +377,10 @@ class AutoScrollingWindow(ScrolledWindow): |
569 |
- |
570 |
- def scroll_and_wait(self, amount, lock_held): |
571 |
- if not lock_held: |
572 |
-- gtk.threads_enter() |
573 |
-+ gtk.gdk.threads_enter() |
574 |
- self.scroll_by(0, amount) |
575 |
- if not lock_held: |
576 |
-- gtk.threads_leave() |
577 |
-+ gtk.gdk.threads_leave() |
578 |
- if self.vscrolltimeout is not None: |
579 |
- gobject.source_remove(self.vscrolltimeout) |
580 |
- self.vscrolltimeout = gobject.timeout_add(100, self.scroll_and_wait, amount, False) |
581 |
---- a/bittorrent.py |
582 |
-+++ b/bittorrent.py |
583 |
-@@ -2742,7 +2742,7 @@ class DownloadInfoFrame(object): |
584 |
- if self.config['start_minimized']: |
585 |
- self.mainwindow.iconify() |
586 |
- |
587 |
-- gtk.threads_enter() |
588 |
-+ gtk.gdk.threads_enter() |
589 |
- |
590 |
- self.mainwindow.set_border_width(0) |
591 |
- |
592 |
-@@ -2942,7 +2942,7 @@ class DownloadInfoFrame(object): |
593 |
- |
594 |
- self.nag() |
595 |
- |
596 |
-- gtk.threads_leave() |
597 |
-+ gtk.gdk.threads_leave() |
598 |
- |
599 |
- def window_event(self, widget, event, *args): |
600 |
- if event.changed_mask == gtk.gdk.WINDOW_STATE_ICONIFIED: |
601 |
-@@ -3758,14 +3758,14 @@ class MainLoop: |
602 |
- self.mainwindow = None |
603 |
- self.started = 0 |
604 |
- |
605 |
-- gtk.threads_init() |
606 |
-+ gtk.gdk.threads_init() |
607 |
- |
608 |
- def set_mainwindow(self, mainwindow): |
609 |
- self.mainwindow = mainwindow |
610 |
- |
611 |
- def run(self): |
612 |
- self.mainwindow.traythread.start() |
613 |
-- gtk.threads_enter() |
614 |
-+ gtk.gdk.threads_enter() |
615 |
- |
616 |
- if self.mainwindow: |
617 |
- self.mainwindow.ssbutton.set_paused(self.mainwindow.config['pause']) |
618 |
-@@ -3777,12 +3777,12 @@ class MainLoop: |
619 |
- self.started = 1 |
620 |
- gtk.main() |
621 |
- except KeyboardInterrupt: |
622 |
-- gtk.threads_leave() |
623 |
-+ gtk.gdk.threads_leave() |
624 |
- if self.mainwindow: |
625 |
- self.mainwindow.torrentqueue.set_done() |
626 |
- raise |
627 |
- |
628 |
-- gtk.threads_leave() |
629 |
-+ gtk.gdk.threads_leave() |
630 |
- |
631 |
- def quit(self): |
632 |
- if self.mainwindow: |
633 |
|
634 |
diff --git a/net-p2p/bittorrent/files/bittorrent-4.4.0-python26-syntax.patch b/net-p2p/bittorrent/files/bittorrent-4.4.0-python26-syntax.patch |
635 |
deleted file mode 100644 |
636 |
index 1ad8751..0000000 |
637 |
--- a/net-p2p/bittorrent/files/bittorrent-4.4.0-python26-syntax.patch |
638 |
+++ /dev/null |
639 |
@@ -1,45 +0,0 @@ |
640 |
-Fix syntax errors with python 2.6. |
641 |
- |
642 |
-https://bugs.gentoo.org/265784 |
643 |
- |
644 |
---- a/khashmir/inserter.py |
645 |
-+++ b/khashmir/inserter.py |
646 |
-@@ -28,7 +28,6 @@ def d(n): |
647 |
- done = done+1 |
648 |
- |
649 |
- if __name__=="__main__": |
650 |
-- global done |
651 |
- host, port = sys.argv[1:] |
652 |
- x = UTKhashmir("", 22038, "/tmp/cgcgcgc") |
653 |
- x.addContact(host, int(port)) |
654 |
---- a/khashmir/test_krpc.py |
655 |
-+++ b/khashmir/test_krpc.py |
656 |
-@@ -44,20 +44,20 @@ class KRPCTests(TestCase): |
657 |
- self.r = RawServer(Event(), d) |
658 |
- |
659 |
- addr = ('127.0.0.1', 1180) |
660 |
-- self.as = self.r.create_udpsocket(addr[1], addr[0], True) |
661 |
-+ self.asock = self.r.create_udpsocket(addr[1], addr[0], True) |
662 |
- self.af = Receiver(addr) |
663 |
-- self.a = hostbroker(self.af, addr, self.as, self.r.add_task) |
664 |
-- self.r.start_listening_udp(self.as, self.a) |
665 |
-+ self.a = hostbroker(self.af, addr, self.asock, self.r.add_task) |
666 |
-+ self.r.start_listening_udp(self.asock, self.a) |
667 |
- |
668 |
- addr = ('127.0.0.1', 1181) |
669 |
-- self.bs = self.r.create_udpsocket(addr[1], addr[0], True) |
670 |
-+ self.bsock = self.r.create_udpsocket(addr[1], addr[0], True) |
671 |
- self.bf = Receiver(addr) |
672 |
-- self.b = hostbroker(self.bf, addr, self.bs, self.r.add_task) |
673 |
-- self.r.start_listening_udp(self.bs, self.b) |
674 |
-+ self.b = hostbroker(self.bf, addr, self.bsock, self.r.add_task) |
675 |
-+ self.r.start_listening_udp(self.bsock, self.b) |
676 |
- |
677 |
- def tearDown(self): |
678 |
-- self.as.close() |
679 |
-- self.bs.close() |
680 |
-+ self.asock.close() |
681 |
-+ self.bsock.close() |
682 |
- |
683 |
- def testSimpleMessage(self): |
684 |
- self.noisy = 0 |
685 |
|
686 |
diff --git a/net-p2p/bittorrent/files/bittorrent-tracker.confd b/net-p2p/bittorrent/files/bittorrent-tracker.confd |
687 |
deleted file mode 100644 |
688 |
index 71e29cb..0000000 |
689 |
--- a/net-p2p/bittorrent/files/bittorrent-tracker.confd |
690 |
+++ /dev/null |
691 |
@@ -1,15 +0,0 @@ |
692 |
-# /etc/conf.d/bittorrent-tracker: config file for /etc/init.d/bittorrent-tracker |
693 |
- |
694 |
-# Change this to this to the port you would like to connect to for the tracker. |
695 |
-# It is accessible at http://localhost:PORT/ from any web browser. |
696 |
-PORT=8082 |
697 |
- |
698 |
-# where to store recent downloader info |
699 |
-DFILE=/usr/share/bittorrent/tracker.dfile |
700 |
- |
701 |
-# path to favicon.ico which many popular web browsers can use |
702 |
-FAVICON=/usr/share/pixmaps/bittorrent.ico |
703 |
- |
704 |
-# Connection logs are sent to stdout by default, so they should be sent to a |
705 |
-# file when using this script. |
706 |
-LOGFILE=/var/log/bttrack.log |
707 |
|
708 |
diff --git a/net-p2p/bittorrent/files/bittorrent-tracker.initd b/net-p2p/bittorrent/files/bittorrent-tracker.initd |
709 |
deleted file mode 100644 |
710 |
index 49de33b..0000000 |
711 |
--- a/net-p2p/bittorrent/files/bittorrent-tracker.initd |
712 |
+++ /dev/null |
713 |
@@ -1,23 +0,0 @@ |
714 |
-#!/sbin/runscript |
715 |
-# Copyright 1999-2006 Gentoo Foundation |
716 |
-# Distributed under the terms of the GNU General Public License v2 |
717 |
-# $Id$ |
718 |
- |
719 |
-depend() { |
720 |
- need net |
721 |
-} |
722 |
- |
723 |
-start() { |
724 |
- ebegin "Starting bttrack" |
725 |
- start-stop-daemon --start --quiet --background --make-pidfile \ |
726 |
- --pidfile /var/run/bttrack.pid \ |
727 |
- --exec /usr/bin/bittorrent-tracker -- --port ${PORT} \ |
728 |
- --dfile ${DFILE} --favicon ${FAVICON} --logfile ${LOGFILE} |
729 |
- eend $? |
730 |
-} |
731 |
- |
732 |
-stop() { |
733 |
- ebegin "Stopping bttrack" |
734 |
- start-stop-daemon --stop --quiet --pidfile /var/run/bttrack.pid |
735 |
- eend $? |
736 |
-} |
737 |
|
738 |
diff --git a/net-p2p/bittorrent/files/bittorrent.desktop b/net-p2p/bittorrent/files/bittorrent.desktop |
739 |
deleted file mode 100644 |
740 |
index a6a5312..0000000 |
741 |
--- a/net-p2p/bittorrent/files/bittorrent.desktop |
742 |
+++ /dev/null |
743 |
@@ -1,10 +0,0 @@ |
744 |
-[Desktop Entry] |
745 |
-Name=BitTorrent File Transfer |
746 |
-Comment=Distributed download of files from the Internet |
747 |
-Exec=bittorrent |
748 |
-Icon=/usr/share/pixmaps/bittorrent.ico |
749 |
-Terminal=false |
750 |
-Type=Application |
751 |
-StartupNotify=true |
752 |
-Categories=Network;FileTransfer;P2P; |
753 |
-MimeType=application/x-bittorrent; |
754 |
|
755 |
diff --git a/net-p2p/bittorrent/metadata.xml b/net-p2p/bittorrent/metadata.xml |
756 |
deleted file mode 100644 |
757 |
index 2a0f322..0000000 |
758 |
--- a/net-p2p/bittorrent/metadata.xml |
759 |
+++ /dev/null |
760 |
@@ -1,9 +0,0 @@ |
761 |
-<?xml version="1.0" encoding="UTF-8"?> |
762 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
763 |
-<pkgmetadata> |
764 |
- <herd>net-p2p</herd> |
765 |
- <maintainer> |
766 |
- <email>rhill@g.o</email> |
767 |
- <name>Ryan Hill</name> |
768 |
- </maintainer> |
769 |
-</pkgmetadata> |