import of BitTorrent-3.2.1b:

BitTorrent is a tool for distributing files.  Whenever more than one
person is downloading at once they send pieces of the file(s) to each
other, thus relieving the central server's bandwidth burden.  Even with
many simultaneous downloads, the upload burden on the central server
remains quite small, since each new downloader introduces new upload
capacity.

thanks to jose@ for review/suggestions
This commit is contained in:
jolan 2003-08-21 03:39:57 +00:00
parent e74c121cd3
commit d4c53bd411
6 changed files with 145 additions and 0 deletions

33
net/BitTorrent/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2003/08/21 03:39:57 jolan Exp $
COMMENT= "cooperative file distribution system implemented in Python"
DISTNAME= BitTorrent-3.2.1b
CATEGORIES= net
MASTER_SITES= ${HOMEPAGE}
HOMEPAGE= http://bitconjurer.org/BitTorrent/
MAINTAINER= Jolan Luff <jolan@openbsd.org>
# MIT
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
MODULES= python
post-configure:
@perl -pi -e \
's,/usr/bin/env python,/usr/bin/env python${MODPY_VERSION},g' \
${WRKBUILD}/bt*.py
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/BitTorrent
${INSTALL_DATA} ${WRKSRC}/{FAQ,README}.txt ${FILESDIR}/README.OpenBSD \
${PREFIX}/share/doc/BitTorrent
do-regress:
cd ${WRKBUILD} && ${MODPY_BIN} ./bttest.py
.include <bsd.port.mk>

3
net/BitTorrent/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (BitTorrent-3.2.1b.tar.gz) = 9e0cc346a4bfa3904380ed119d8bac90
RMD160 (BitTorrent-3.2.1b.tar.gz) = ca17ef25ae96d44867c4e6edccca661826299ae5
SHA1 (BitTorrent-3.2.1b.tar.gz) = 124049e721a8b722af9d3c489b44a8a81789ce68

View File

@ -0,0 +1,16 @@
# $OpenBSD: README.OpenBSD,v 1.1.1.1 2003/08/21 03:39:57 jolan Exp $
BitTorrent on OpenBSD can only be used via the headless or curses
interfaces, as there is currently no in-tree port of wxPython. To begin
using BitTorrent quickly, simply fetch a torrent file and run
btdownloadcurses.py:
$ ftp http://www.somesite.com/some.torrent
$ btdownloadcurses.py some.torrent
Note that for machines behind NAT, you will need to pass in the ports
outlined in README.txt. An example pf.conf stub for doing this is:
rdr on $ext_if inet proto tcp from any to $ext_ip port 6881:6889 -> \
$BitTorrentmachine port 6881:*

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-setup_py,v 1.1.1.1 2003/08/21 03:39:57 jolan Exp $
--- setup.py.orig 2003-03-17 13:34:41.000000000 -0600
+++ setup.py 2003-08-18 15:31:15.000000000 -0500
@@ -18,9 +18,9 @@ setup(
packages = ["BitTorrent"],
- scripts = ["btdownloadgui.py", "btdownloadheadless.py", "btdownloadlibrary.py",
+ scripts = ["btdownloadheadless.py", "btdownloadlibrary.py",
"bttrack.py", "btmakemetafile.py", "btlaunchmany.py", "btcompletedir.py",
- "btdownloadcurses.py", "btcompletedirgui.py", "btlaunchmanycurses.py",
+ "btdownloadcurses.py", "btlaunchmanycurses.py",
"btmakemetafile.py", "btreannounce.py", "btrename.py", "btshowmetainfo.py",
"bttest.py"]
)

6
net/BitTorrent/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
BitTorrent is a tool for distributing files. Whenever more than one
person is downloading at once they send pieces of the file(s) to each
other, thus relieving the central server's bandwidth burden. Even with
many simultaneous downloads, the upload burden on the central server
remains quite small, since each new downloader introduces new upload
capacity.

72
net/BitTorrent/pkg/PLIST Normal file
View File

@ -0,0 +1,72 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/08/21 03:39:57 jolan Exp $
bin/btcompletedir.py
bin/btdownloadcurses.py
bin/btdownloadheadless.py
bin/btdownloadlibrary.py
bin/btlaunchmany.py
bin/btlaunchmanycurses.py
bin/btmakemetafile.py
bin/btreannounce.py
bin/btrename.py
bin/btshowmetainfo.py
@comment bin/bttest.py
bin/bttrack.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Choker.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Choker.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Connecter.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Connecter.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/CurrentRateMeasure.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/CurrentRateMeasure.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Downloader.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Downloader.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/DownloaderFeedback.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/DownloaderFeedback.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Encrypter.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Encrypter.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/EndgameDownloader.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/EndgameDownloader.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/HTTPHandler.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/HTTPHandler.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/NatCheck.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/NatCheck.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/PiecePicker.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/PiecePicker.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/RateMeasure.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/RateMeasure.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/RawServer.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/RawServer.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Rerequester.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Rerequester.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Storage.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Storage.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/StorageWrapper.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/StorageWrapper.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Uploader.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/Uploader.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/__init__.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/bencode.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/bencode.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/bitfield.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/bitfield.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/btformats.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/btformats.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/download.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/download.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/fakeopen.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/fakeopen.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/parseargs.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/parseargs.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/selectpoll.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/selectpoll.pyc
@comment lib/python${MODPY_VERSION}/site-packages/BitTorrent/testtest.py
@comment lib/python${MODPY_VERSION}/site-packages/BitTorrent/testtest.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/track.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/track.pyc
lib/python${MODPY_VERSION}/site-packages/BitTorrent/zurllib.py
lib/python${MODPY_VERSION}/site-packages/BitTorrent/zurllib.pyc
share/doc/BitTorrent/FAQ.txt
share/doc/BitTorrent/README.OpenBSD
share/doc/BitTorrent/README.txt
@dirrm share/doc/BitTorrent
@dirrm lib/python${MODPY_VERSION}/site-packages/BitTorrent