o Update to 4.1.4

o Most command line scripts have been renamed, check

http://www.bittorrent.com/bittorrent_versions.html
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2005-08-28 18:23:02 +00:00
parent f59e87c550
commit b3ebc48ba2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=141159
38 changed files with 300 additions and 284 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= BitTorrent
PORTVERSION= 4.1.3
PORTVERSION= 4.1.4
PORTEPOCH= 1
CATEGORIES?= net python
MASTER_SITES= http://www.bittorrent.com/dl/ \
@ -18,7 +18,8 @@ PKGNAMESUFFIX?= -devel
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
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython \
${PYTHON_SITELIBDIR}/Crypto/__init__.py:${PORTSDIR}/security/py-pycrypto
USE_PYTHON= yes
USE_PYDISTUTILS= yes
@ -40,6 +41,9 @@ PORTDOCS= \
EXTRA_PATCHES+= ${FILESDIR}/extra-noportdocs-setup.py
.endif
# always install the public key
PORTDOCS+= public.key
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
@ -51,8 +55,8 @@ WITHOUT_PSYCO= yes
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pygtk.py:${PORTSDIR}/x11-toolkits/py-gtk2
PLIST_FILES+= \
bin/btmaketorrentgui.py \
bin/btdownloadgui.py \
bin/maketorrent \
bin/bittorrent \
share/pixmaps/BitTorrent/bittorrent.ico \
share/pixmaps/BitTorrent/broken.png \
share/pixmaps/BitTorrent/finished.png \
@ -77,17 +81,16 @@ PLIST_SUB+= GUI="@comment "
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
EXTRA_PATCHES+= \
${FILESDIR}/extra-psyco-patch-btdownloadcurses.py \
${FILESDIR}/extra-psyco-patch-btdownloadgui.py \
${FILESDIR}/extra-psyco-patch-btdownloadheadless.py \
${FILESDIR}/extra-psyco-patch-btlaunchmany.py \
${FILESDIR}/extra-psyco-patch-btlaunchmanycurses.py \
${FILESDIR}/extra-psyco-patch-btmaketorrent.py \
${FILESDIR}/extra-psyco-patch-btmaketorrentgui.py \
${FILESDIR}/extra-psyco-patch-btreannouce.py \
${FILESDIR}/extra-psyco-patch-btrename.py \
${FILESDIR}/extra-psyco-patch-btshowmetainfo.py \
${FILESDIR}/extra-psyco-patch-bttrack.py
${FILESDIR}/extra-psyco-patch-bittorrent-console.py \
${FILESDIR}/extra-psyco-patch-bittorrent-curses.py \
${FILESDIR}/extra-psyco-patch-bittorrent-tracker.py \
${FILESDIR}/extra-psyco-patch-bittorrent.py \
${FILESDIR}/extra-psyco-patch-changetracker-console.py \
${FILESDIR}/extra-psyco-patch-launchmany-console.py \
${FILESDIR}/extra-psyco-patch-launchmany-curses.py \
${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 \
@ -128,10 +131,10 @@ post-install:
@${CHMOD} a+x \
${PREFIX}/share/pixmaps/${PORTNAME}/logo
.endif
.ifndef(NOPORTDOCS)
#.ifndef(NOPORTDOCS)
# docs
@${CHMOD} -R ${SHAREMODE} \
${DOCSDIR}/*
.endif
#.endif
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
MD5 (BitTorrent-4.1.3.tar.gz) = cd4dff145b5dea3789fa384bb94a4de9
SIZE (BitTorrent-4.1.3.tar.gz) = 850332
MD5 (BitTorrent-4.1.4.tar.gz) = 1d0f85eb5cd4ac219853e2e6709f5847
SIZE (BitTorrent-4.1.4.tar.gz) = 2016856

View File

@ -1,18 +1,13 @@
--- setup.py.orig Sat Mar 12 10:01:45 2005
+++ setup.py Sat Mar 12 10:14:21 2005
@@ -19,7 +19,7 @@
--- setup.py.orig Tue Aug 23 22:58:45 2005
+++ setup.py Tue Aug 23 23:09:21 2005
@@ -25,8 +25,8 @@
import glob
-scripts = ["btdownloadgui.py", "btdownloadcurses.py", "btdownloadheadless.py",
- "btmaketorrentgui.py", "btmaketorrent.py",
+scripts = ["btdownloadcurses.py", "btdownloadheadless.py",
+ "btmaketorrent.py",
"btlaunchmany.py", "btlaunchmanycurses.py",
"bttrack.py", "btreannounce.py", "btrename.py", "btshowmetainfo.py"]
@@ -27,4 +27,3 @@
img_root, doc_root = BitTorrent.calc_unix_dirs()
-data_files = [ (img_root , glob.glob('images/*png')+['images/bittorrent.ico',]),
- (img_root+'/logo', glob.glob('images/logo/bittorrent_[0-9]*.png') ),
+data_files = [
-symlinks = ["bittorrent" , "bittorrent-curses", "bittorrent-console",
- "maketorrent", "maketorrent-console",
+symlinks = ["bittorrent-curses", "bittorrent-console",
+ "maketorrent-console",
"launchmany-curses", "launchmany-console",
"changetracker-console",
"torrentinfo-console",

View File

@ -1,7 +1,8 @@
--- setup.py.orig Sun Jul 17 18:07:07 2005
+++ setup.py Sun Jul 17 18:07:41 2005
@@ -40,4 +40,0 @@
--- setup.py.orig Tue Aug 23 23:09:42 2005
+++ setup.py Tue Aug 23 23:24:44 2005
@@ -58,4 +58,1 @@
- (doc_root , ['credits.txt', 'credits-l10n.txt',
- 'LICENSE.txt', 'README.txt',
- 'TRACKERLESS.txt', 'redirdonate.html',
- ] ),
- 'public.key',
+ (doc_root , ['public.key',

View File

@ -0,0 +1,18 @@
--- 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 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')

View File

@ -1,5 +1,5 @@
--- btdownloadcurses.py.orig Sun May 29 23:28:15 2005
+++ btdownloadcurses.py Sun May 29 23:30:23 2005
--- 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 @@
from __future__ import division

View File

@ -1,5 +1,5 @@
--- bttrack.py.orig Fri Mar 11 23:17:26 2005
+++ bttrack.py Fri Mar 11 23:17:31 2005
--- 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 @@
# Written by Bram Cohen
@ -13,6 +13,6 @@
+ except:
+ pass
+
from sys import argv
from BitTorrent.track import track
if __name__ == '__main__':
import gettext
gettext.install('bittorrent', 'locale')

View File

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

View File

@ -1,18 +0,0 @@
--- btdownloadheadless.py.orig Fri Mar 11 23:14:21 2005
+++ btdownloadheadless.py Fri Mar 11 23:14:28 2005
@@ -14,6 +14,15 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+
import sys
import os
import threading

View File

@ -1,18 +0,0 @@
--- btlaunchmanycurses.py.orig Fri Mar 11 23:15:15 2005
+++ btlaunchmanycurses.py Fri Mar 11 23:15:22 2005
@@ -14,6 +14,15 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+
DOWNLOAD_SCROLL_RATE = 1
import sys, os

View File

@ -1,18 +0,0 @@
--- btshowmetainfo.py.orig Fri Mar 11 23:16:39 2005
+++ btshowmetainfo.py Fri Mar 11 23:16:48 2005
@@ -12,6 +12,15 @@
# Written by Henry 'Pi' James and Loring Holden
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+
from sys import *
from os.path import *
from sha import *

View File

@ -1,5 +1,5 @@
--- btreannounce.py.orig Tue May 24 03:01:08 2005
+++ btreannounce.py Sun May 29 22:46:38 2005
--- 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 @@
# Written by Henry 'Pi' James and Bram Cohen

View File

@ -1,5 +1,5 @@
--- btlaunchmany.py.orig Fri Mar 11 23:14:47 2005
+++ btlaunchmany.py Fri Mar 11 23:14:54 2005
--- 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 @@
# Written by John Hoffman
@ -13,6 +13,6 @@
+ except:
+ pass
+
import sys
import os
if __name__ == '__main__':
import gettext
gettext.install('bittorrent', 'locale')

View File

@ -1,5 +1,5 @@
--- btmaketorrentgui.py.orig Sun May 29 23:28:15 2005
+++ btmaketorrentgui.py Sun May 29 23:31:51 2005
--- 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 @@
from __future__ import division

View File

@ -1,5 +1,5 @@
--- btmaketorrent.py.orig Fri Mar 11 23:15:38 2005
+++ btmaketorrent.py Fri Mar 11 23:15:43 2005
--- 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 @@
# Written by Bram Cohen
@ -13,6 +13,6 @@
+ except:
+ pass
+
import sys
from BitTorrent.makemetafile import make_meta_files
from BitTorrent.parseargs import parseargs, printHelp
if __name__ == '__main__':
import gettext
gettext.install('bittorrent', 'locale')

View File

@ -1,5 +1,5 @@
--- btdownloadgui.py.orig Sun May 29 23:28:15 2005
+++ btdownloadgui.py Sun May 29 23:31:03 2005
--- maketorrent.py.orig Tue Aug 23 22:49:16 2005
+++ maketorrent.py Tue Aug 23 22:50:45 2005
@@ -14,6 +14,15 @@
from __future__ import division

View File

@ -1,8 +1,8 @@
--- btrename.py.orig Tue May 24 03:01:08 2005
+++ btrename.py Sun May 29 22:47:32 2005
--- 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 @@
# Written by Henry 'Pi' James
# Written by Henry 'Pi' James, Loring Holden and Matt Chisholm
+from BitTorrent import PSYCO
+if PSYCO.psyco:

View File

@ -1,11 +1,11 @@
--- BitTorrent/__init__.py.orig Fri Mar 11 22:53:12 2005
+++ BitTorrent/__init__.py Fri Mar 11 22:53:27 2005
@@ -21,7 +21,7 @@
import os
--- BitTorrent/platform.py.orig Mon Aug 15 20:06:05 2005
+++ BitTorrent/platform.py Wed Aug 24 00:12:59 2005
@@ -41,7 +41,7 @@
del wh, wv
def calc_unix_dirs():
- appdir = '%s-%s'%(app_name, version)
+ appdir = '%s'%(app_name)
ip = os.path.join('share', 'pixmaps', appdir)
dp = os.path.join('share', 'doc' , appdir)
return ip, dp
lp = os.path.join('share', 'locale')

View File

@ -1,12 +1,11 @@
bin/btdownloadcurses.py
bin/btdownloadheadless.py
bin/btlaunchmany.py
bin/btlaunchmanycurses.py
bin/btmaketorrent.py
bin/btreannounce.py
bin/btrename.py
bin/btshowmetainfo.py
bin/bttrack.py
bin/bittorrent-console
bin/bittorrent-curses
bin/bittorrent-tracker
bin/changetracker-console
bin/launchmany-console
bin/launchmany-curses
bin/maketorrent-console
bin/torrentinfo-console
%%PYTHON_SITELIBDIR%%/BitTorrent/Choker.py
%%PYTHON_SITELIBDIR%%/BitTorrent/Choker.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/Choker.pyo
@ -37,15 +36,21 @@ bin/bttrack.py
%%PYTHON_SITELIBDIR%%/BitTorrent/GUI.py
%%PYTHON_SITELIBDIR%%/BitTorrent/GUI.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/GUI.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/GetTorrent.py
%%PYTHON_SITELIBDIR%%/BitTorrent/GetTorrent.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/GetTorrent.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/HTTPHandler.py
%%PYTHON_SITELIBDIR%%/BitTorrent/HTTPHandler.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/HTTPHandler.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/LaunchPath.py
%%PYTHON_SITELIBDIR%%/BitTorrent/LaunchPath.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/LaunchPath.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/NatCheck.py
%%PYTHON_SITELIBDIR%%/BitTorrent/NatCheck.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/NatCheck.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/OpenPath.py
%%PYTHON_SITELIBDIR%%/BitTorrent/OpenPath.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/OpenPath.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/NewVersion.py
%%PYTHON_SITELIBDIR%%/BitTorrent/NewVersion.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/NewVersion.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/PiecePicker.py
%%PYTHON_SITELIBDIR%%/BitTorrent/PiecePicker.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/PiecePicker.pyo
@ -94,6 +99,9 @@ bin/bttrack.py
%%PYTHON_SITELIBDIR%%/BitTorrent/defaultargs.py
%%PYTHON_SITELIBDIR%%/BitTorrent/defaultargs.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/defaultargs.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/defer.py
%%PYTHON_SITELIBDIR%%/BitTorrent/defer.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/defer.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/download.py
%%PYTHON_SITELIBDIR%%/BitTorrent/download.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/download.pyo
@ -115,6 +123,9 @@ bin/bttrack.py
%%PYTHON_SITELIBDIR%%/BitTorrent/platform.py
%%PYTHON_SITELIBDIR%%/BitTorrent/platform.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/platform.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/prefs.py
%%PYTHON_SITELIBDIR%%/BitTorrent/prefs.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/prefs.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/selectpoll.py
%%PYTHON_SITELIBDIR%%/BitTorrent/selectpoll.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/selectpoll.pyo
@ -139,9 +150,6 @@ bin/bttrack.py
%%PYTHON_SITELIBDIR%%/khashmir/const.py
%%PYTHON_SITELIBDIR%%/khashmir/const.pyc
%%PYTHON_SITELIBDIR%%/khashmir/const.pyo
%%PYTHON_SITELIBDIR%%/khashmir/defer.py
%%PYTHON_SITELIBDIR%%/khashmir/defer.pyc
%%PYTHON_SITELIBDIR%%/khashmir/defer.pyo
%%PYTHON_SITELIBDIR%%/khashmir/hammerlock.py
%%PYTHON_SITELIBDIR%%/khashmir/hammerlock.pyc
%%PYTHON_SITELIBDIR%%/khashmir/hammerlock.pyo
@ -198,18 +206,28 @@ bin/bttrack.py
%%PYTHON_SITELIBDIR%%/khashmir/utkhashmir.pyo
share/locale/af/LC_MESSAGES/bittorrent.mo
share/locale/ar/LC_MESSAGES/bittorrent.mo
share/locale/bg/LC_MESSAGES/bittorrent.mo
share/locale/cs/LC_MESSAGES/bittorrent.mo
share/locale/da/LC_MESSAGES/bittorrent.mo
share/locale/de/LC_MESSAGES/bittorrent.mo
share/locale/es/LC_MESSAGES/bittorrent.mo
share/locale/es_MX/LC_MESSAGES/bittorrent.mo
share/locale/et/LC_MESSAGES/bittorrent.mo
share/locale/fi/LC_MESSAGES/bittorrent.mo
share/locale/fr/LC_MESSAGES/bittorrent.mo
share/locale/gr/LC_MESSAGES/bittorrent.mo
share/locale/he_IL/LC_MESSAGES/bittorrent.mo
share/locale/hr/LC_MESSAGES/bittorrent.mo
share/locale/hu/LC_MESSAGES/bittorrent.mo
share/locale/it/LC_MESSAGES/bittorrent.mo
share/locale/ja/LC_MESSAGES/bittorrent.mo
share/locale/ko/LC_MESSAGES/bittorrent.mo
share/locale/lt/LC_MESSAGES/bittorrent.mo
share/locale/ms/LC_MESSAGES/bittorrent.mo
share/locale/nb_NO/LC_MESSAGES/bittorrent.mo
share/locale/nl/LC_MESSAGES/bittorrent.mo
share/locale/no/LC_MESSAGES/bittorrent.mo
share/locale/pl/LC_MESSAGES/bittorrent.mo
share/locale/pt/LC_MESSAGES/bittorrent.mo
share/locale/pt_BR/LC_MESSAGES/bittorrent.mo
share/locale/ro/LC_MESSAGES/bittorrent.mo
share/locale/ru/LC_MESSAGES/bittorrent.mo
@ -218,10 +236,11 @@ share/locale/sl/LC_MESSAGES/bittorrent.mo
share/locale/sq/LC_MESSAGES/bittorrent.mo
share/locale/sv/LC_MESSAGES/bittorrent.mo
share/locale/tr/LC_MESSAGES/bittorrent.mo
share/locale/vi/LC_MESSAGES/bittorrent.mo
share/locale/zh_CN/LC_MESSAGES/bittorrent.mo
share/locale/zh_TW/LC_MESSAGES/bittorrent.mo
%%GUI%%@dirrm share/pixmaps/BitTorrent/logo
%%GUI%%@dirrm share/pixmaps/BitTorrent
%%GUI%%@dirrm share/pixmaps/BitTorrent
%%GUI%%@unexec rmdir %D/share/pixmaps 2>/dev/null || true
@unexec rmdir %D/share/locale/zh_TW/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/zh_TW 2>/dev/null || true
@ -233,14 +252,22 @@ share/locale/zh_TW/LC_MESSAGES/bittorrent.mo
@unexec rmdir %D/share/locale/sk 2>/dev/null || true
@unexec rmdir %D/share/locale/ro/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/ro 2>/dev/null || true
@unexec rmdir %D/share/locale/no/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/no 2>/dev/null || true
@unexec rmdir %D/share/locale/pt/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/pt 2>/dev/null || true
@unexec rmdir %D/share/locale/pl/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/pl 2>/dev/null || true
@unexec rmdir %D/share/locale/gr/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/gr 2>/dev/null || true
@unexec rmdir %D/share/locale/nb_NO/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/nb_NO 2>/dev/null || true
@unexec rmdir %D/share/locale/ko/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/ko 2>/dev/null || true
@unexec rmdir %D/share/locale/he_IL/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/he_IL 2>/dev/null || true
@unexec rmdir %D/share/locale/fi/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/fi 2>/dev/null || true
@unexec rmdir %D/share/locale/cs/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/cs 2>/dev/null || true
@dirrm %%PYTHON_SITELIBDIR%%/khashmir
@dirrm %%PYTHON_SITELIBDIR%%/BitTorrent
@unexec rmdir %D/%%PYTHON_SITELIBDIR%% 2>/dev/null || true

View File

@ -6,7 +6,7 @@
#
PORTNAME= BitTorrent
PORTVERSION= 4.1.3
PORTVERSION= 4.1.4
PORTEPOCH= 1
CATEGORIES?= net python
MASTER_SITES= http://www.bittorrent.com/dl/ \
@ -18,7 +18,8 @@ PKGNAMESUFFIX?= -devel
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
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython \
${PYTHON_SITELIBDIR}/Crypto/__init__.py:${PORTSDIR}/security/py-pycrypto
USE_PYTHON= yes
USE_PYDISTUTILS= yes
@ -40,6 +41,9 @@ PORTDOCS= \
EXTRA_PATCHES+= ${FILESDIR}/extra-noportdocs-setup.py
.endif
# always install the public key
PORTDOCS+= public.key
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
@ -51,8 +55,8 @@ WITHOUT_PSYCO= yes
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pygtk.py:${PORTSDIR}/x11-toolkits/py-gtk2
PLIST_FILES+= \
bin/btmaketorrentgui.py \
bin/btdownloadgui.py \
bin/maketorrent \
bin/bittorrent \
share/pixmaps/BitTorrent/bittorrent.ico \
share/pixmaps/BitTorrent/broken.png \
share/pixmaps/BitTorrent/finished.png \
@ -77,17 +81,16 @@ PLIST_SUB+= GUI="@comment "
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
EXTRA_PATCHES+= \
${FILESDIR}/extra-psyco-patch-btdownloadcurses.py \
${FILESDIR}/extra-psyco-patch-btdownloadgui.py \
${FILESDIR}/extra-psyco-patch-btdownloadheadless.py \
${FILESDIR}/extra-psyco-patch-btlaunchmany.py \
${FILESDIR}/extra-psyco-patch-btlaunchmanycurses.py \
${FILESDIR}/extra-psyco-patch-btmaketorrent.py \
${FILESDIR}/extra-psyco-patch-btmaketorrentgui.py \
${FILESDIR}/extra-psyco-patch-btreannouce.py \
${FILESDIR}/extra-psyco-patch-btrename.py \
${FILESDIR}/extra-psyco-patch-btshowmetainfo.py \
${FILESDIR}/extra-psyco-patch-bttrack.py
${FILESDIR}/extra-psyco-patch-bittorrent-console.py \
${FILESDIR}/extra-psyco-patch-bittorrent-curses.py \
${FILESDIR}/extra-psyco-patch-bittorrent-tracker.py \
${FILESDIR}/extra-psyco-patch-bittorrent.py \
${FILESDIR}/extra-psyco-patch-changetracker-console.py \
${FILESDIR}/extra-psyco-patch-launchmany-console.py \
${FILESDIR}/extra-psyco-patch-launchmany-curses.py \
${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 \
@ -128,10 +131,10 @@ post-install:
@${CHMOD} a+x \
${PREFIX}/share/pixmaps/${PORTNAME}/logo
.endif
.ifndef(NOPORTDOCS)
#.ifndef(NOPORTDOCS)
# docs
@${CHMOD} -R ${SHAREMODE} \
${DOCSDIR}/*
.endif
#.endif
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
MD5 (BitTorrent-4.1.3.tar.gz) = cd4dff145b5dea3789fa384bb94a4de9
SIZE (BitTorrent-4.1.3.tar.gz) = 850332
MD5 (BitTorrent-4.1.4.tar.gz) = 1d0f85eb5cd4ac219853e2e6709f5847
SIZE (BitTorrent-4.1.4.tar.gz) = 2016856

View File

@ -1,18 +1,13 @@
--- setup.py.orig Sat Mar 12 10:01:45 2005
+++ setup.py Sat Mar 12 10:14:21 2005
@@ -19,7 +19,7 @@
--- setup.py.orig Tue Aug 23 22:58:45 2005
+++ setup.py Tue Aug 23 23:09:21 2005
@@ -25,8 +25,8 @@
import glob
-scripts = ["btdownloadgui.py", "btdownloadcurses.py", "btdownloadheadless.py",
- "btmaketorrentgui.py", "btmaketorrent.py",
+scripts = ["btdownloadcurses.py", "btdownloadheadless.py",
+ "btmaketorrent.py",
"btlaunchmany.py", "btlaunchmanycurses.py",
"bttrack.py", "btreannounce.py", "btrename.py", "btshowmetainfo.py"]
@@ -27,4 +27,3 @@
img_root, doc_root = BitTorrent.calc_unix_dirs()
-data_files = [ (img_root , glob.glob('images/*png')+['images/bittorrent.ico',]),
- (img_root+'/logo', glob.glob('images/logo/bittorrent_[0-9]*.png') ),
+data_files = [
-symlinks = ["bittorrent" , "bittorrent-curses", "bittorrent-console",
- "maketorrent", "maketorrent-console",
+symlinks = ["bittorrent-curses", "bittorrent-console",
+ "maketorrent-console",
"launchmany-curses", "launchmany-console",
"changetracker-console",
"torrentinfo-console",

View File

@ -1,7 +1,8 @@
--- setup.py.orig Sun Jul 17 18:07:07 2005
+++ setup.py Sun Jul 17 18:07:41 2005
@@ -40,4 +40,0 @@
--- setup.py.orig Tue Aug 23 23:09:42 2005
+++ setup.py Tue Aug 23 23:24:44 2005
@@ -58,4 +58,1 @@
- (doc_root , ['credits.txt', 'credits-l10n.txt',
- 'LICENSE.txt', 'README.txt',
- 'TRACKERLESS.txt', 'redirdonate.html',
- ] ),
- 'public.key',
+ (doc_root , ['public.key',

View File

@ -0,0 +1,18 @@
--- 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 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+
import gettext
gettext.install('bittorrent', 'locale')

View File

@ -1,5 +1,5 @@
--- btdownloadcurses.py.orig Sun May 29 23:28:15 2005
+++ btdownloadcurses.py Sun May 29 23:30:23 2005
--- 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 @@
from __future__ import division

View File

@ -1,5 +1,5 @@
--- bttrack.py.orig Fri Mar 11 23:17:26 2005
+++ bttrack.py Fri Mar 11 23:17:31 2005
--- 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 @@
# Written by Bram Cohen
@ -13,6 +13,6 @@
+ except:
+ pass
+
from sys import argv
from BitTorrent.track import track
if __name__ == '__main__':
import gettext
gettext.install('bittorrent', 'locale')

View File

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

View File

@ -1,18 +0,0 @@
--- btdownloadheadless.py.orig Fri Mar 11 23:14:21 2005
+++ btdownloadheadless.py Fri Mar 11 23:14:28 2005
@@ -14,6 +14,15 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+
import sys
import os
import threading

View File

@ -1,18 +0,0 @@
--- btlaunchmanycurses.py.orig Fri Mar 11 23:15:15 2005
+++ btlaunchmanycurses.py Fri Mar 11 23:15:22 2005
@@ -14,6 +14,15 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+
DOWNLOAD_SCROLL_RATE = 1
import sys, os

View File

@ -1,18 +0,0 @@
--- btshowmetainfo.py.orig Fri Mar 11 23:16:39 2005
+++ btshowmetainfo.py Fri Mar 11 23:16:48 2005
@@ -12,6 +12,15 @@
# Written by Henry 'Pi' James and Loring Holden
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+
from sys import *
from os.path import *
from sha import *

View File

@ -1,5 +1,5 @@
--- btreannounce.py.orig Tue May 24 03:01:08 2005
+++ btreannounce.py Sun May 29 22:46:38 2005
--- 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 @@
# Written by Henry 'Pi' James and Bram Cohen

View File

@ -1,5 +1,5 @@
--- btlaunchmany.py.orig Fri Mar 11 23:14:47 2005
+++ btlaunchmany.py Fri Mar 11 23:14:54 2005
--- 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 @@
# Written by John Hoffman
@ -13,6 +13,6 @@
+ except:
+ pass
+
import sys
import os
if __name__ == '__main__':
import gettext
gettext.install('bittorrent', 'locale')

View File

@ -1,5 +1,5 @@
--- btmaketorrentgui.py.orig Sun May 29 23:28:15 2005
+++ btmaketorrentgui.py Sun May 29 23:31:51 2005
--- 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 @@
from __future__ import division

View File

@ -1,5 +1,5 @@
--- btmaketorrent.py.orig Fri Mar 11 23:15:38 2005
+++ btmaketorrent.py Fri Mar 11 23:15:43 2005
--- 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 @@
# Written by Bram Cohen
@ -13,6 +13,6 @@
+ except:
+ pass
+
import sys
from BitTorrent.makemetafile import make_meta_files
from BitTorrent.parseargs import parseargs, printHelp
if __name__ == '__main__':
import gettext
gettext.install('bittorrent', 'locale')

View File

@ -1,5 +1,5 @@
--- btdownloadgui.py.orig Sun May 29 23:28:15 2005
+++ btdownloadgui.py Sun May 29 23:31:03 2005
--- maketorrent.py.orig Tue Aug 23 22:49:16 2005
+++ maketorrent.py Tue Aug 23 22:50:45 2005
@@ -14,6 +14,15 @@
from __future__ import division

View File

@ -1,8 +1,8 @@
--- btrename.py.orig Tue May 24 03:01:08 2005
+++ btrename.py Sun May 29 22:47:32 2005
--- 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 @@
# Written by Henry 'Pi' James
# Written by Henry 'Pi' James, Loring Holden and Matt Chisholm
+from BitTorrent import PSYCO
+if PSYCO.psyco:

View File

@ -1,11 +1,11 @@
--- BitTorrent/__init__.py.orig Fri Mar 11 22:53:12 2005
+++ BitTorrent/__init__.py Fri Mar 11 22:53:27 2005
@@ -21,7 +21,7 @@
import os
--- BitTorrent/platform.py.orig Mon Aug 15 20:06:05 2005
+++ BitTorrent/platform.py Wed Aug 24 00:12:59 2005
@@ -41,7 +41,7 @@
del wh, wv
def calc_unix_dirs():
- appdir = '%s-%s'%(app_name, version)
+ appdir = '%s'%(app_name)
ip = os.path.join('share', 'pixmaps', appdir)
dp = os.path.join('share', 'doc' , appdir)
return ip, dp
lp = os.path.join('share', 'locale')

View File

@ -1,12 +1,11 @@
bin/btdownloadcurses.py
bin/btdownloadheadless.py
bin/btlaunchmany.py
bin/btlaunchmanycurses.py
bin/btmaketorrent.py
bin/btreannounce.py
bin/btrename.py
bin/btshowmetainfo.py
bin/bttrack.py
bin/bittorrent-console
bin/bittorrent-curses
bin/bittorrent-tracker
bin/changetracker-console
bin/launchmany-console
bin/launchmany-curses
bin/maketorrent-console
bin/torrentinfo-console
%%PYTHON_SITELIBDIR%%/BitTorrent/Choker.py
%%PYTHON_SITELIBDIR%%/BitTorrent/Choker.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/Choker.pyo
@ -37,15 +36,21 @@ bin/bttrack.py
%%PYTHON_SITELIBDIR%%/BitTorrent/GUI.py
%%PYTHON_SITELIBDIR%%/BitTorrent/GUI.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/GUI.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/GetTorrent.py
%%PYTHON_SITELIBDIR%%/BitTorrent/GetTorrent.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/GetTorrent.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/HTTPHandler.py
%%PYTHON_SITELIBDIR%%/BitTorrent/HTTPHandler.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/HTTPHandler.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/LaunchPath.py
%%PYTHON_SITELIBDIR%%/BitTorrent/LaunchPath.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/LaunchPath.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/NatCheck.py
%%PYTHON_SITELIBDIR%%/BitTorrent/NatCheck.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/NatCheck.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/OpenPath.py
%%PYTHON_SITELIBDIR%%/BitTorrent/OpenPath.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/OpenPath.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/NewVersion.py
%%PYTHON_SITELIBDIR%%/BitTorrent/NewVersion.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/NewVersion.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/PiecePicker.py
%%PYTHON_SITELIBDIR%%/BitTorrent/PiecePicker.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/PiecePicker.pyo
@ -94,6 +99,9 @@ bin/bttrack.py
%%PYTHON_SITELIBDIR%%/BitTorrent/defaultargs.py
%%PYTHON_SITELIBDIR%%/BitTorrent/defaultargs.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/defaultargs.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/defer.py
%%PYTHON_SITELIBDIR%%/BitTorrent/defer.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/defer.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/download.py
%%PYTHON_SITELIBDIR%%/BitTorrent/download.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/download.pyo
@ -115,6 +123,9 @@ bin/bttrack.py
%%PYTHON_SITELIBDIR%%/BitTorrent/platform.py
%%PYTHON_SITELIBDIR%%/BitTorrent/platform.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/platform.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/prefs.py
%%PYTHON_SITELIBDIR%%/BitTorrent/prefs.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/prefs.pyo
%%PYTHON_SITELIBDIR%%/BitTorrent/selectpoll.py
%%PYTHON_SITELIBDIR%%/BitTorrent/selectpoll.pyc
%%PYTHON_SITELIBDIR%%/BitTorrent/selectpoll.pyo
@ -139,9 +150,6 @@ bin/bttrack.py
%%PYTHON_SITELIBDIR%%/khashmir/const.py
%%PYTHON_SITELIBDIR%%/khashmir/const.pyc
%%PYTHON_SITELIBDIR%%/khashmir/const.pyo
%%PYTHON_SITELIBDIR%%/khashmir/defer.py
%%PYTHON_SITELIBDIR%%/khashmir/defer.pyc
%%PYTHON_SITELIBDIR%%/khashmir/defer.pyo
%%PYTHON_SITELIBDIR%%/khashmir/hammerlock.py
%%PYTHON_SITELIBDIR%%/khashmir/hammerlock.pyc
%%PYTHON_SITELIBDIR%%/khashmir/hammerlock.pyo
@ -198,18 +206,28 @@ bin/bttrack.py
%%PYTHON_SITELIBDIR%%/khashmir/utkhashmir.pyo
share/locale/af/LC_MESSAGES/bittorrent.mo
share/locale/ar/LC_MESSAGES/bittorrent.mo
share/locale/bg/LC_MESSAGES/bittorrent.mo
share/locale/cs/LC_MESSAGES/bittorrent.mo
share/locale/da/LC_MESSAGES/bittorrent.mo
share/locale/de/LC_MESSAGES/bittorrent.mo
share/locale/es/LC_MESSAGES/bittorrent.mo
share/locale/es_MX/LC_MESSAGES/bittorrent.mo
share/locale/et/LC_MESSAGES/bittorrent.mo
share/locale/fi/LC_MESSAGES/bittorrent.mo
share/locale/fr/LC_MESSAGES/bittorrent.mo
share/locale/gr/LC_MESSAGES/bittorrent.mo
share/locale/he_IL/LC_MESSAGES/bittorrent.mo
share/locale/hr/LC_MESSAGES/bittorrent.mo
share/locale/hu/LC_MESSAGES/bittorrent.mo
share/locale/it/LC_MESSAGES/bittorrent.mo
share/locale/ja/LC_MESSAGES/bittorrent.mo
share/locale/ko/LC_MESSAGES/bittorrent.mo
share/locale/lt/LC_MESSAGES/bittorrent.mo
share/locale/ms/LC_MESSAGES/bittorrent.mo
share/locale/nb_NO/LC_MESSAGES/bittorrent.mo
share/locale/nl/LC_MESSAGES/bittorrent.mo
share/locale/no/LC_MESSAGES/bittorrent.mo
share/locale/pl/LC_MESSAGES/bittorrent.mo
share/locale/pt/LC_MESSAGES/bittorrent.mo
share/locale/pt_BR/LC_MESSAGES/bittorrent.mo
share/locale/ro/LC_MESSAGES/bittorrent.mo
share/locale/ru/LC_MESSAGES/bittorrent.mo
@ -218,10 +236,11 @@ share/locale/sl/LC_MESSAGES/bittorrent.mo
share/locale/sq/LC_MESSAGES/bittorrent.mo
share/locale/sv/LC_MESSAGES/bittorrent.mo
share/locale/tr/LC_MESSAGES/bittorrent.mo
share/locale/vi/LC_MESSAGES/bittorrent.mo
share/locale/zh_CN/LC_MESSAGES/bittorrent.mo
share/locale/zh_TW/LC_MESSAGES/bittorrent.mo
%%GUI%%@dirrm share/pixmaps/BitTorrent/logo
%%GUI%%@dirrm share/pixmaps/BitTorrent
%%GUI%%@dirrm share/pixmaps/BitTorrent
%%GUI%%@unexec rmdir %D/share/pixmaps 2>/dev/null || true
@unexec rmdir %D/share/locale/zh_TW/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/zh_TW 2>/dev/null || true
@ -233,14 +252,22 @@ share/locale/zh_TW/LC_MESSAGES/bittorrent.mo
@unexec rmdir %D/share/locale/sk 2>/dev/null || true
@unexec rmdir %D/share/locale/ro/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/ro 2>/dev/null || true
@unexec rmdir %D/share/locale/no/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/no 2>/dev/null || true
@unexec rmdir %D/share/locale/pt/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/pt 2>/dev/null || true
@unexec rmdir %D/share/locale/pl/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/pl 2>/dev/null || true
@unexec rmdir %D/share/locale/gr/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/gr 2>/dev/null || true
@unexec rmdir %D/share/locale/nb_NO/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/nb_NO 2>/dev/null || true
@unexec rmdir %D/share/locale/ko/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/ko 2>/dev/null || true
@unexec rmdir %D/share/locale/he_IL/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/he_IL 2>/dev/null || true
@unexec rmdir %D/share/locale/fi/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/fi 2>/dev/null || true
@unexec rmdir %D/share/locale/cs/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/cs 2>/dev/null || true
@dirrm %%PYTHON_SITELIBDIR%%/khashmir
@dirrm %%PYTHON_SITELIBDIR%%/BitTorrent
@unexec rmdir %D/%%PYTHON_SITELIBDIR%% 2>/dev/null || true