summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/Makefile1
-rw-r--r--net/bittorrent/Makefile39
-rw-r--r--net/bittorrent/distinfo1
-rw-r--r--net/bittorrent/files/BitTorrent.190
-rw-r--r--net/bittorrent/pkg-descr5
-rw-r--r--net/bittorrent/pkg-message7
-rw-r--r--net/bittorrent/pkg-plist145
7 files changed, 288 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 92ff19353a10..993fc135020d 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -39,6 +39,7 @@
SUBDIR += bind9-dlz
SUBDIR += bing
SUBDIR += binkd
+ SUBDIR += bittorrent
SUBDIR += bmon
SUBDIR += boclient
SUBDIR += bounce
diff --git a/net/bittorrent/Makefile b/net/bittorrent/Makefile
new file mode 100644
index 000000000000..b79b6456d959
--- /dev/null
+++ b/net/bittorrent/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: bittorrent
+# Date created: 12 April 2003
+# Whom: mdodd@freebsd.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= BitTorrent
+PORTVERSION= 3.2.1b
+CATEGORIES= net python
+MASTER_SITES= http://bitconjurer.org/BitTorrent/
+
+MAINTAINER= winter@freebsd.org
+COMMENT= "Peer to Peer file sharing/mirroring."
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/wxPython/wxc.so:${PORTSDIR}/x11-toolkits/py-wxPython
+
+USE_PYTHON= yes
+
+MAN1= BitTorrent.1
+MLINKS= BitTorrent.1 bittorrent.1
+
+do-build:
+ @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+ @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+
+do-install:
+ @${MKDIR} ${PREFIX}/share/BitTorrent
+ @(cd ${WRKSRC} && ${TAR} --exclude .cvsignore \
+ --exclude "*.orig" --exclude osx -c -f - .) \
+ | (cd ${PREFIX}/share/BitTorrent && ${TAR} --unlink -x -f -)
+ @printf "#!/bin/sh\n${PYTHON_CMD} \
+ ${PREFIX}/share/BitTorrent/btdownloadgui.py \044*\n" \
+ > ${WRKDIR}/BitTorrent.sh
+ @${INSTALL_SCRIPT} ${WRKDIR}/BitTorrent.sh ${PREFIX}/bin/BitTorrent
+ @${INSTALL_MAN} ${FILESDIR}/BitTorrent.1 ${PREFIX}/man/man1/BitTorrent.1
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/net/bittorrent/distinfo b/net/bittorrent/distinfo
new file mode 100644
index 000000000000..035c08eeac2b
--- /dev/null
+++ b/net/bittorrent/distinfo
@@ -0,0 +1 @@
+MD5 (BitTorrent-3.2.1b.tar.gz) = 9e0cc346a4bfa3904380ed119d8bac90
diff --git a/net/bittorrent/files/BitTorrent.1 b/net/bittorrent/files/BitTorrent.1
new file mode 100644
index 000000000000..686552fdc135
--- /dev/null
+++ b/net/bittorrent/files/BitTorrent.1
@@ -0,0 +1,90 @@
+.Dd April 12, 2003
+.Dt BITTORRENT 1
+.Sh NAME
+.Nm BitTorrent
+.Nd Peer to Peer Distributed download client/server.
+.Sh SYNOPSIS
+.Nm
+.Op Ar args ...
+.Sh DESCRIPTION
+The
+.Nm
+client/server may be invoked with the following options:
+.Pp
+.Bl -tag -width indent
+.It Fl -max_uploads Ar num
+the maximum number of uploads to allow at once. (defaults to 4)
+.It Fl -keepalive_interval Ar seconds
+number of seconds to pause between sending keepalives (defaults to
+120.0)
+.It Fl -download_slice_size Ar bytes
+How many bytes to query for per request. (defaults to 16384)
+.It Fl -request_backlog Ar num
+how many requests to keep in a single pipe at once. (defaults to 5)
+.It Fl -max_message_length Ar bytes
+maximum length prefix encoding you'll accept over the wire - larger
+values get the connection dropped. (defaults to 8388608)
+.It Fl -ip Ar address
+.It Fl i Ar address
+IP to report you have to the tracker. (defaults to '')
+.It Fl -minport Ar port
+minimum port to listen on, counts up if unavailable (defaults to 6881)
+.It Fl -maxport Ar port
+maximum port to listen on (defaults to 6999)
+.It Fl -responsefile Ar filename
+file the server response was stored in, alternative
+to url (defaults to '')
+.It Fl -url Ar filename
+url to get file from, alternative to responsefile (defaults to '')
+.It Fl -saveas Ar filename
+local file name to save the file as, null indicates
+query user (defaults to '')
+.It Fl -timeout Ar seconds
+time to wait between closing sockets which nothing
+has been received on (defaults to 300.0)
+.It Fl -timeout_check_interval Ar seconds
+time to wait between checking if any connections
+have timed out (defaults to 60.0)
+.It Fl -max_slice_length Ar bytes
+maximum length slice to send to peers, larger
+requests are ignored (defaults to 131072)
+.It Fl -max_rate_period Ar seconds
+maximum amount of time to guess the current
+rate estimate represents (defaults to 20.0)
+.It Fl -bind Ar address
+IP to bind to locally (defaults to '')
+.It Fl -upload_rate_fudge Ar num
+time equivalent of writing to kernel-level TCP buffer, for rate
+adjustment (defaults to 5.0)
+.It Fl -display_interval Ar seconds
+time between updates of displayed information (defaults to 0.5)
+.It Fl -rerequest_interval Ar seconds
+time to wait between requesting more peers (defaults to 300)
+.It Fl -min_peers Ar num
+minimum number of peers to not do rerequesting (defaults to 20)
+.It Fl -http_timeout Ar seconds
+number of seconds to wait before assuming that an http connection has
+timed out (defaults to 60)
+.It Fl -max_initiate Ar num
+number of peers at which to stop initiating new connections (defaults to 40)
+.It Fl -check_hashes Ar boolean
+whether to check hashes on disk (defaults to 1)
+.It Fl -max_upload_rate Ar kB/s
+maximum kB/s to upload at, 0 means no limit (defaults to 0)
+.It Fl -alloc_pause Ar seconds
+seconds to wait before displaying allocation feedback (defaults to 3.0)
+.It Fl -snub_time Ar seconds
+seconds to wait for data to come in over a connection before assuming
+it's semi-permanently choked (defaults to 60.0)
+.It Fl -spew Ar boolean
+whether to display diagnostic info to stdout (defaults to 0)
+.El
+.Sh SEE ALSO
+.Rs
+.%T BitTorrent
+.%O "http://bitconjurer.org/BitTorrent/index.html"
+.Re
+.Sh AUTHORS
+.Nm
+was written by
+.An Bram Cohen Aq bram@bitconjurer.org .
diff --git a/net/bittorrent/pkg-descr b/net/bittorrent/pkg-descr
new file mode 100644
index 000000000000..f3a58bb3e852
--- /dev/null
+++ b/net/bittorrent/pkg-descr
@@ -0,0 +1,5 @@
+BitTorrent is a distributed Peer to Peer file distribution mechanism.
+Seeded file sets are published via the web and the network grows as
+more clients connect.
+
+WWW: http://bitconjurer.org/BitTorrent/index.html
diff --git a/net/bittorrent/pkg-message b/net/bittorrent/pkg-message
new file mode 100644
index 000000000000..72fadb5fc8fc
--- /dev/null
+++ b/net/bittorrent/pkg-message
@@ -0,0 +1,7 @@
+You will need to add the relevent MIME information to your browser:
+
+ MIME type: application/x-bittorrent
+File extension: .torrent
+ Program: PREFIX/bin/BitTorrent
+
+Please refer to the BitTorrent(1) manual page for additional arguments.
diff --git a/net/bittorrent/pkg-plist b/net/bittorrent/pkg-plist
new file mode 100644
index 000000000000..5a871daff43b
--- /dev/null
+++ b/net/bittorrent/pkg-plist
@@ -0,0 +1,145 @@
+share/BitTorrent/BitTorrent/Choker.py
+share/BitTorrent/BitTorrent/Connecter.py
+share/BitTorrent/BitTorrent/CurrentRateMeasure.py
+share/BitTorrent/BitTorrent/Downloader.py
+share/BitTorrent/BitTorrent/DownloaderFeedback.py
+share/BitTorrent/BitTorrent/Encrypter.py
+share/BitTorrent/BitTorrent/EndgameDownloader.py
+share/BitTorrent/BitTorrent/HTTPHandler.py
+share/BitTorrent/BitTorrent/NatCheck.py
+share/BitTorrent/BitTorrent/PiecePicker.py
+share/BitTorrent/BitTorrent/RateMeasure.py
+share/BitTorrent/BitTorrent/RawServer.py
+share/BitTorrent/BitTorrent/Rerequester.py
+share/BitTorrent/BitTorrent/Storage.py
+share/BitTorrent/BitTorrent/StorageWrapper.py
+share/BitTorrent/BitTorrent/Uploader.py
+share/BitTorrent/BitTorrent/__init__.py
+share/BitTorrent/BitTorrent/bencode.py
+share/BitTorrent/BitTorrent/bitfield.py
+share/BitTorrent/BitTorrent/btformats.py
+share/BitTorrent/BitTorrent/download.py
+share/BitTorrent/BitTorrent/fakeopen.py
+share/BitTorrent/BitTorrent/parseargs.py
+share/BitTorrent/BitTorrent/selectpoll.py
+share/BitTorrent/BitTorrent/testtest.py
+share/BitTorrent/BitTorrent/track.py
+share/BitTorrent/BitTorrent/zurllib.py
+share/BitTorrent/BitTorrent/Choker.pyc
+share/BitTorrent/BitTorrent/Connecter.pyc
+share/BitTorrent/BitTorrent/CurrentRateMeasure.pyc
+share/BitTorrent/BitTorrent/Downloader.pyc
+share/BitTorrent/BitTorrent/DownloaderFeedback.pyc
+share/BitTorrent/BitTorrent/Encrypter.pyc
+share/BitTorrent/BitTorrent/EndgameDownloader.pyc
+share/BitTorrent/BitTorrent/HTTPHandler.pyc
+share/BitTorrent/BitTorrent/NatCheck.pyc
+share/BitTorrent/BitTorrent/PiecePicker.pyc
+share/BitTorrent/BitTorrent/RateMeasure.pyc
+share/BitTorrent/BitTorrent/RawServer.pyc
+share/BitTorrent/BitTorrent/Rerequester.pyc
+share/BitTorrent/BitTorrent/Storage.pyc
+share/BitTorrent/BitTorrent/StorageWrapper.pyc
+share/BitTorrent/BitTorrent/Uploader.pyc
+share/BitTorrent/BitTorrent/__init__.pyc
+share/BitTorrent/BitTorrent/bencode.pyc
+share/BitTorrent/BitTorrent/bitfield.pyc
+share/BitTorrent/BitTorrent/btformats.pyc
+share/BitTorrent/BitTorrent/download.pyc
+share/BitTorrent/BitTorrent/fakeopen.pyc
+share/BitTorrent/BitTorrent/parseargs.pyc
+share/BitTorrent/BitTorrent/selectpoll.pyc
+share/BitTorrent/BitTorrent/testtest.pyc
+share/BitTorrent/BitTorrent/track.pyc
+share/BitTorrent/BitTorrent/zurllib.pyc
+share/BitTorrent/BitTorrent/Choker.pyo
+share/BitTorrent/BitTorrent/Connecter.pyo
+share/BitTorrent/BitTorrent/CurrentRateMeasure.pyo
+share/BitTorrent/BitTorrent/Downloader.pyo
+share/BitTorrent/BitTorrent/DownloaderFeedback.pyo
+share/BitTorrent/BitTorrent/Encrypter.pyo
+share/BitTorrent/BitTorrent/EndgameDownloader.pyo
+share/BitTorrent/BitTorrent/Storage.pyo
+share/BitTorrent/BitTorrent/HTTPHandler.pyo
+share/BitTorrent/BitTorrent/NatCheck.pyo
+share/BitTorrent/BitTorrent/PiecePicker.pyo
+share/BitTorrent/BitTorrent/RateMeasure.pyo
+share/BitTorrent/BitTorrent/RawServer.pyo
+share/BitTorrent/BitTorrent/Rerequester.pyo
+share/BitTorrent/BitTorrent/StorageWrapper.pyo
+share/BitTorrent/BitTorrent/Uploader.pyo
+share/BitTorrent/BitTorrent/__init__.pyo
+share/BitTorrent/BitTorrent/bencode.pyo
+share/BitTorrent/BitTorrent/bitfield.pyo
+share/BitTorrent/BitTorrent/btformats.pyo
+share/BitTorrent/BitTorrent/download.pyo
+share/BitTorrent/BitTorrent/fakeopen.pyo
+share/BitTorrent/BitTorrent/parseargs.pyo
+share/BitTorrent/BitTorrent/selectpoll.pyo
+share/BitTorrent/BitTorrent/testtest.pyo
+share/BitTorrent/BitTorrent/track.pyo
+share/BitTorrent/BitTorrent/zurllib.pyo
+share/BitTorrent/BUILD.windows.txt
+share/BitTorrent/FAQ.txt
+share/BitTorrent/INSTALL.unix.txt
+share/BitTorrent/LICENSE.txt
+share/BitTorrent/MANIFEST.in
+share/BitTorrent/README.txt
+share/BitTorrent/bittorrent.nsi
+share/BitTorrent/btcompletedir.py
+share/BitTorrent/btcompletedirgui.py
+share/BitTorrent/btdownloadcurses.py
+share/BitTorrent/btdownloadgui.py
+share/BitTorrent/btdownloadheadless.py
+share/BitTorrent/btdownloadlibrary.py
+share/BitTorrent/btlaunchmany.py
+share/BitTorrent/btlaunchmanycurses.py
+share/BitTorrent/btmakemetafile.py
+share/BitTorrent/btreannounce.py
+share/BitTorrent/btrename.py
+share/BitTorrent/btshowmetainfo.py
+share/BitTorrent/bttest.py
+share/BitTorrent/bttrack.py
+share/BitTorrent/completedir.nsi
+share/BitTorrent/credits.txt
+share/BitTorrent/setup.py
+share/BitTorrent/todo.txt
+share/BitTorrent/wincompletedirsetup.py
+share/BitTorrent/winsetup.py
+share/BitTorrent/btcompletedir.pyc
+share/BitTorrent/btcompletedirgui.pyc
+share/BitTorrent/btdownloadcurses.pyc
+share/BitTorrent/btdownloadgui.pyc
+share/BitTorrent/btdownloadheadless.pyc
+share/BitTorrent/btdownloadlibrary.pyc
+share/BitTorrent/btlaunchmany.pyc
+share/BitTorrent/btlaunchmanycurses.pyc
+share/BitTorrent/btmakemetafile.pyc
+share/BitTorrent/btrename.pyc
+share/BitTorrent/btreannounce.pyc
+share/BitTorrent/btshowmetainfo.pyc
+share/BitTorrent/bttest.pyc
+share/BitTorrent/bttrack.pyc
+share/BitTorrent/setup.pyc
+share/BitTorrent/wincompletedirsetup.pyc
+share/BitTorrent/winsetup.pyc
+share/BitTorrent/btcompletedir.pyo
+share/BitTorrent/btcompletedirgui.pyo
+share/BitTorrent/btdownloadcurses.pyo
+share/BitTorrent/btdownloadgui.pyo
+share/BitTorrent/btdownloadheadless.pyo
+share/BitTorrent/btdownloadlibrary.pyo
+share/BitTorrent/btlaunchmany.pyo
+share/BitTorrent/btlaunchmanycurses.pyo
+share/BitTorrent/btmakemetafile.pyo
+share/BitTorrent/btreannounce.pyo
+share/BitTorrent/btrename.pyo
+share/BitTorrent/btshowmetainfo.pyo
+share/BitTorrent/bttest.pyo
+share/BitTorrent/bttrack.pyo
+share/BitTorrent/setup.pyo
+share/BitTorrent/wincompletedirsetup.pyo
+share/BitTorrent/winsetup.pyo
+bin/BitTorrent
+@dirrm share/BitTorrent/BitTorrent
+@dirrm share/BitTorrent