1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

Update to 4.1.6 with devel/py-twistedCore support

This commit is contained in:
Mario Sergio Fujikawa Ferreira 2005-10-12 12:28:54 +00:00
parent 282c97a3b5
commit adf6f31761
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145104
28 changed files with 278 additions and 294 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= BitTorrent
PORTVERSION= 4.1.4
PORTREVISION= 1
PORTVERSION= 4.1.6
PORTEPOCH= 1
CATEGORIES?= net python
MASTER_SITES= http://www.bittorrent.com/dl/ \
@ -20,6 +19,7 @@ MAINTAINER= lioux@FreeBSD.org
COMMENT?= A peer-to-peer tool for distributing files written in Python
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython \
${PYTHON_SITELIBDIR}/twisted/plugins/__init__.py:${PORTSDIR}/devel/py-twistedCore \
${PYTHON_SITELIBDIR}/Crypto/__init__.py:${PORTSDIR}/security/py-pycrypto
USE_PYTHON= yes
@ -56,8 +56,6 @@ WITHOUT_PSYCO= yes
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pygtk.py:${PORTSDIR}/x11-toolkits/py-gtk2
PLIST_FILES+= \
bin/maketorrent \
bin/bittorrent \
share/pixmaps/BitTorrent/bittorrent.ico \
share/pixmaps/BitTorrent/broken.png \
share/pixmaps/BitTorrent/finished.png \
@ -69,7 +67,10 @@ PLIST_FILES+= \
share/pixmaps/BitTorrent/play.png \
share/pixmaps/BitTorrent/queued.png \
share/pixmaps/BitTorrent/remove.png \
share/pixmaps/BitTorrent/running.png
share/pixmaps/BitTorrent/running.png \
share/pixmaps/BitTorrent/status-natted.png \
share/pixmaps/BitTorrent/status-running.png \
share/pixmaps/BitTorrent/status-stopped.png
PLIST_SUB+= GUI=""
.else
@ -81,7 +82,7 @@ PLIST_SUB+= GUI="@comment "
.ifndef(WITHOUT_PSYCO)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
EXTRA_PATCHES+= \
EXTRA_PATCHES+= \
${FILESDIR}/extra-psyco-patch-bittorrent-console.py \
${FILESDIR}/extra-psyco-patch-bittorrent-curses.py \
${FILESDIR}/extra-psyco-patch-bittorrent-tracker.py \
@ -92,11 +93,6 @@ EXTRA_PATCHES+= \
${FILESDIR}/extra-psyco-patch-maketorrent-console.py \
${FILESDIR}/extra-psyco-patch-maketorrent.py \
${FILESDIR}/extra-psyco-patch-torrentinfo-console.py
PLIST_FILES+= \
${PYTHON_SITELIBDIR:S|^${PYTHONBASE}/||}/BitTorrent/PSYCO.py \
${PYTHON_SITELIBDIR:S|^${PYTHONBASE}/||}/BitTorrent/PSYCO.pyc \
${PYTHON_SITELIBDIR:S|^${PYTHONBASE}/||}/BitTorrent/PSYCO.pyo
.endif
pre-everything::
@ -113,11 +109,8 @@ post-patch:
${XARGS} -x -n 10 \
${REINPLACE_CMD} -E \
-e 's|whrandom|random|' \
-e 's|reuse=False|reuse=True|' \
-e 's|/usr/bin/env python.*|${LOCALBASE}/bin/python|'
.ifndef(WITHOUT_PSYCO)
# activate psyco optimization
@${ECHO_CMD} 'psyco = 1' > ${WRKSRC}/BitTorrent/PSYCO.py
.endif
post-install:
# set proper permissions

View File

@ -1,2 +1,2 @@
MD5 (BitTorrent-4.1.4.tar.gz) = 1d0f85eb5cd4ac219853e2e6709f5847
SIZE (BitTorrent-4.1.4.tar.gz) = 2016856
MD5 (BitTorrent-4.1.6.tar.gz) = ba371b39ee6bce98775e6c346d5e8b58
SIZE (BitTorrent-4.1.6.tar.gz) = 2313097

View File

@ -1,18 +1,16 @@
--- bittorrent-console.py.orig Tue Aug 23 22:49:16 2005
+++ bittorrent-console.py Tue Aug 23 22:49:55 2005
@@ -14,6 +14,15 @@
--- bittorrent-console.py Wed Oct 12 01:08:15 2005
+++ bittorrent-console.py Wed Oct 12 07:57:46 2005
@@ -14,6 +14,13 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- bittorrent-curses.py.orig Tue Aug 23 22:49:16 2005
+++ bittorrent-curses.py Tue Aug 23 22:49:59 2005
@@ -15,6 +15,15 @@
--- bittorrent-curses.py Wed Oct 12 01:08:15 2005
+++ bittorrent-curses.py Wed Oct 12 07:57:28 2005
@@ -15,6 +15,13 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- bittorrent-tracker.py.orig Tue Aug 23 22:49:16 2005
+++ bittorrent-tracker.py Tue Aug 23 22:50:14 2005
@@ -12,6 +12,15 @@
--- bittorrent-tracker.py Wed Oct 12 01:08:15 2005
+++ bittorrent-tracker.py Wed Oct 12 07:57:55 2005
@@ -12,6 +12,13 @@
# Written by Bram Cohen
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
if __name__ == '__main__':
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- bittorrent.py.orig Tue Aug 23 22:49:16 2005
+++ bittorrent.py Tue Aug 23 22:50:20 2005
@@ -14,6 +14,15 @@
--- bittorrent.py Wed Oct 12 01:08:18 2005
+++ bittorrent.py Wed Oct 12 07:58:12 2005
@@ -14,6 +14,13 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
from BitTorrent.platform import locale_root
from BitTorrent.platform import install_translation
install_translation()
import gettext

View File

@ -1,18 +1,16 @@
--- changetracker-console.py.orig Tue Aug 23 22:49:16 2005
+++ changetracker-console.py Tue Aug 23 22:50:25 2005
@@ -12,6 +12,15 @@
--- changetracker-console.py Wed Oct 12 01:08:18 2005
+++ changetracker-console.py Wed Oct 12 07:58:18 2005
@@ -12,6 +12,13 @@
# Written by Henry 'Pi' James and Bram Cohen
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- launchmany-console.py.orig Tue Aug 23 22:49:16 2005
+++ launchmany-console.py Tue Aug 23 22:50:30 2005
@@ -12,6 +12,15 @@
--- launchmany-console.py Wed Oct 12 01:08:27 2005
+++ launchmany-console.py Wed Oct 12 07:58:23 2005
@@ -12,6 +12,13 @@
# Written by John Hoffman
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
if __name__ == '__main__':
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- launchmany-curses.py.orig Tue Aug 23 22:49:16 2005
+++ launchmany-curses.py Tue Aug 23 22:50:36 2005
@@ -14,6 +14,15 @@
--- launchmany-curses.py Wed Oct 12 01:08:27 2005
+++ launchmany-curses.py Wed Oct 12 07:58:27 2005
@@ -14,6 +14,13 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- maketorrent-console.py.orig Tue Aug 23 22:49:16 2005
+++ maketorrent-console.py Tue Aug 23 22:50:41 2005
@@ -12,6 +12,15 @@
--- maketorrent-console.py Wed Oct 12 01:08:27 2005
+++ maketorrent-console.py Wed Oct 12 07:58:31 2005
@@ -12,6 +12,13 @@
# Written by Bram Cohen
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
if __name__ == '__main__':
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- maketorrent.py.orig Tue Aug 23 22:49:16 2005
+++ maketorrent.py Tue Aug 23 22:50:45 2005
@@ -14,6 +14,15 @@
--- maketorrent.py Wed Oct 12 01:08:27 2005
+++ maketorrent.py Wed Oct 12 07:58:35 2005
@@ -14,6 +14,13 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- torrentinfo-console.py.orig Tue Aug 23 22:49:16 2005
+++ torrentinfo-console.py Tue Aug 23 22:50:55 2005
@@ -12,6 +12,15 @@
--- torrentinfo-console.py Wed Oct 12 01:08:50 2005
+++ torrentinfo-console.py Wed Oct 12 07:58:48 2005
@@ -12,6 +12,13 @@
# Written by Henry 'Pi' James, Loring Holden and Matt Chisholm
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -0,0 +1,11 @@
--- BitTorrent/RawServer_twisted.py.orig Wed Oct 12 08:56:50 2005
+++ BitTorrent/RawServer_twisted.py Wed Oct 12 09:01:36 2005
@@ -565,7 +565,7 @@
bindaddr = None
if do_bind:
bindaddr = self.config['bind']
- if bindaddr and len(binadder) >= 0:
+ if bindaddr and len(bindaddr) >= 0:
bindaddr = (bindaddr, 0)
else:
bindaddr = None

View File

@ -1,9 +1,11 @@
bin/bittorrent
bin/bittorrent-console
bin/bittorrent-curses
bin/bittorrent-tracker
bin/changetracker-console
bin/launchmany-console
bin/launchmany-curses
bin/maketorrent
bin/maketorrent-console
bin/torrentinfo-console
%%PYTHON_SITELIBDIR%%/BitTorrent/Choker.py
@ -63,6 +65,12 @@ bin/torrentinfo-console
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer.py
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer_magic.py
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer_magic.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer_magic.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer_twisted.py
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer_twisted.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer_twisted.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/Rerequester.py
%%PYTHON_SITELIBDIR%%/BitTorrent/Rerequester.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/Rerequester.pyo

View File

@ -6,8 +6,7 @@
#
PORTNAME= BitTorrent
PORTVERSION= 4.1.4
PORTREVISION= 1
PORTVERSION= 4.1.6
PORTEPOCH= 1
CATEGORIES?= net python
MASTER_SITES= http://www.bittorrent.com/dl/ \
@ -20,6 +19,7 @@ MAINTAINER= lioux@FreeBSD.org
COMMENT?= A peer-to-peer tool for distributing files written in Python
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython \
${PYTHON_SITELIBDIR}/twisted/plugins/__init__.py:${PORTSDIR}/devel/py-twistedCore \
${PYTHON_SITELIBDIR}/Crypto/__init__.py:${PORTSDIR}/security/py-pycrypto
USE_PYTHON= yes
@ -56,8 +56,6 @@ WITHOUT_PSYCO= yes
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pygtk.py:${PORTSDIR}/x11-toolkits/py-gtk2
PLIST_FILES+= \
bin/maketorrent \
bin/bittorrent \
share/pixmaps/BitTorrent/bittorrent.ico \
share/pixmaps/BitTorrent/broken.png \
share/pixmaps/BitTorrent/finished.png \
@ -69,7 +67,10 @@ PLIST_FILES+= \
share/pixmaps/BitTorrent/play.png \
share/pixmaps/BitTorrent/queued.png \
share/pixmaps/BitTorrent/remove.png \
share/pixmaps/BitTorrent/running.png
share/pixmaps/BitTorrent/running.png \
share/pixmaps/BitTorrent/status-natted.png \
share/pixmaps/BitTorrent/status-running.png \
share/pixmaps/BitTorrent/status-stopped.png
PLIST_SUB+= GUI=""
.else
@ -81,7 +82,7 @@ PLIST_SUB+= GUI="@comment "
.ifndef(WITHOUT_PSYCO)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
EXTRA_PATCHES+= \
EXTRA_PATCHES+= \
${FILESDIR}/extra-psyco-patch-bittorrent-console.py \
${FILESDIR}/extra-psyco-patch-bittorrent-curses.py \
${FILESDIR}/extra-psyco-patch-bittorrent-tracker.py \
@ -92,11 +93,6 @@ EXTRA_PATCHES+= \
${FILESDIR}/extra-psyco-patch-maketorrent-console.py \
${FILESDIR}/extra-psyco-patch-maketorrent.py \
${FILESDIR}/extra-psyco-patch-torrentinfo-console.py
PLIST_FILES+= \
${PYTHON_SITELIBDIR:S|^${PYTHONBASE}/||}/BitTorrent/PSYCO.py \
${PYTHON_SITELIBDIR:S|^${PYTHONBASE}/||}/BitTorrent/PSYCO.pyc \
${PYTHON_SITELIBDIR:S|^${PYTHONBASE}/||}/BitTorrent/PSYCO.pyo
.endif
pre-everything::
@ -113,11 +109,8 @@ post-patch:
${XARGS} -x -n 10 \
${REINPLACE_CMD} -E \
-e 's|whrandom|random|' \
-e 's|reuse=False|reuse=True|' \
-e 's|/usr/bin/env python.*|${LOCALBASE}/bin/python|'
.ifndef(WITHOUT_PSYCO)
# activate psyco optimization
@${ECHO_CMD} 'psyco = 1' > ${WRKSRC}/BitTorrent/PSYCO.py
.endif
post-install:
# set proper permissions

View File

@ -1,2 +1,2 @@
MD5 (BitTorrent-4.1.4.tar.gz) = 1d0f85eb5cd4ac219853e2e6709f5847
SIZE (BitTorrent-4.1.4.tar.gz) = 2016856
MD5 (BitTorrent-4.1.6.tar.gz) = ba371b39ee6bce98775e6c346d5e8b58
SIZE (BitTorrent-4.1.6.tar.gz) = 2313097

View File

@ -1,18 +1,16 @@
--- bittorrent-console.py.orig Tue Aug 23 22:49:16 2005
+++ bittorrent-console.py Tue Aug 23 22:49:55 2005
@@ -14,6 +14,15 @@
--- bittorrent-console.py Wed Oct 12 01:08:15 2005
+++ bittorrent-console.py Wed Oct 12 07:57:46 2005
@@ -14,6 +14,13 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- bittorrent-curses.py.orig Tue Aug 23 22:49:16 2005
+++ bittorrent-curses.py Tue Aug 23 22:49:59 2005
@@ -15,6 +15,15 @@
--- bittorrent-curses.py Wed Oct 12 01:08:15 2005
+++ bittorrent-curses.py Wed Oct 12 07:57:28 2005
@@ -15,6 +15,13 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- bittorrent-tracker.py.orig Tue Aug 23 22:49:16 2005
+++ bittorrent-tracker.py Tue Aug 23 22:50:14 2005
@@ -12,6 +12,15 @@
--- bittorrent-tracker.py Wed Oct 12 01:08:15 2005
+++ bittorrent-tracker.py Wed Oct 12 07:57:55 2005
@@ -12,6 +12,13 @@
# Written by Bram Cohen
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
if __name__ == '__main__':
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- bittorrent.py.orig Tue Aug 23 22:49:16 2005
+++ bittorrent.py Tue Aug 23 22:50:20 2005
@@ -14,6 +14,15 @@
--- bittorrent.py Wed Oct 12 01:08:18 2005
+++ bittorrent.py Wed Oct 12 07:58:12 2005
@@ -14,6 +14,13 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
from BitTorrent.platform import locale_root
from BitTorrent.platform import install_translation
install_translation()
import gettext

View File

@ -1,18 +1,16 @@
--- changetracker-console.py.orig Tue Aug 23 22:49:16 2005
+++ changetracker-console.py Tue Aug 23 22:50:25 2005
@@ -12,6 +12,15 @@
--- changetracker-console.py Wed Oct 12 01:08:18 2005
+++ changetracker-console.py Wed Oct 12 07:58:18 2005
@@ -12,6 +12,13 @@
# Written by Henry 'Pi' James and Bram Cohen
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- launchmany-console.py.orig Tue Aug 23 22:49:16 2005
+++ launchmany-console.py Tue Aug 23 22:50:30 2005
@@ -12,6 +12,15 @@
--- launchmany-console.py Wed Oct 12 01:08:27 2005
+++ launchmany-console.py Wed Oct 12 07:58:23 2005
@@ -12,6 +12,13 @@
# Written by John Hoffman
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
if __name__ == '__main__':
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- launchmany-curses.py.orig Tue Aug 23 22:49:16 2005
+++ launchmany-curses.py Tue Aug 23 22:50:36 2005
@@ -14,6 +14,15 @@
--- launchmany-curses.py Wed Oct 12 01:08:27 2005
+++ launchmany-curses.py Wed Oct 12 07:58:27 2005
@@ -14,6 +14,13 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- maketorrent-console.py.orig Tue Aug 23 22:49:16 2005
+++ maketorrent-console.py Tue Aug 23 22:50:41 2005
@@ -12,6 +12,15 @@
--- maketorrent-console.py Wed Oct 12 01:08:27 2005
+++ maketorrent-console.py Wed Oct 12 07:58:31 2005
@@ -12,6 +12,13 @@
# Written by Bram Cohen
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
if __name__ == '__main__':
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- maketorrent.py.orig Tue Aug 23 22:49:16 2005
+++ maketorrent.py Tue Aug 23 22:50:45 2005
@@ -14,6 +14,15 @@
--- maketorrent.py Wed Oct 12 01:08:27 2005
+++ maketorrent.py Wed Oct 12 07:58:35 2005
@@ -14,6 +14,13 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -1,18 +1,16 @@
--- torrentinfo-console.py.orig Tue Aug 23 22:49:16 2005
+++ torrentinfo-console.py Tue Aug 23 22:50:55 2005
@@ -12,6 +12,15 @@
--- torrentinfo-console.py Wed Oct 12 01:08:50 2005
+++ torrentinfo-console.py Wed Oct 12 07:58:48 2005
@@ -12,6 +12,13 @@
# Written by Henry 'Pi' James, Loring Holden and Matt Chisholm
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')
from BitTorrent.platform import install_translation
install_translation()

View File

@ -0,0 +1,11 @@
--- BitTorrent/RawServer_twisted.py.orig Wed Oct 12 08:56:50 2005
+++ BitTorrent/RawServer_twisted.py Wed Oct 12 09:01:36 2005
@@ -565,7 +565,7 @@
bindaddr = None
if do_bind:
bindaddr = self.config['bind']
- if bindaddr and len(binadder) >= 0:
+ if bindaddr and len(bindaddr) >= 0:
bindaddr = (bindaddr, 0)
else:
bindaddr = None

View File

@ -1,9 +1,11 @@
bin/bittorrent
bin/bittorrent-console
bin/bittorrent-curses
bin/bittorrent-tracker
bin/changetracker-console
bin/launchmany-console
bin/launchmany-curses
bin/maketorrent
bin/maketorrent-console
bin/torrentinfo-console
%%PYTHON_SITELIBDIR%%/BitTorrent/Choker.py
@ -63,6 +65,12 @@ bin/torrentinfo-console
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer.py
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer_magic.py
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer_magic.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer_magic.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer_twisted.py
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer_twisted.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/RawServer_twisted.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/Rerequester.py
%%PYTHON_SITELIBDIR%%/BitTorrent/Rerequester.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/Rerequester.pyo