summaryrefslogtreecommitdiff
path: root/net-p2p/bittornado
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-p2p/bittornado
reinit the tree, so we can have metadata
Diffstat (limited to 'net-p2p/bittornado')
-rw-r--r--net-p2p/bittornado/Manifest10
-rw-r--r--net-p2p/bittornado/bittornado-0.3.18-r4.ebuild56
-rw-r--r--net-p2p/bittornado/bittornado-0.4.1_p20160925-r1.ebuild48
-rw-r--r--net-p2p/bittornado/files/bittornado-0.3.18-wxversion.patch90
-rw-r--r--net-p2p/bittornado/files/bttrack.conf17
-rw-r--r--net-p2p/bittornado/files/bttrack.rc22
-rw-r--r--net-p2p/bittornado/metadata.xml10
7 files changed, 253 insertions, 0 deletions
diff --git a/net-p2p/bittornado/Manifest b/net-p2p/bittornado/Manifest
new file mode 100644
index 000000000000..4dbe46810ffd
--- /dev/null
+++ b/net-p2p/bittornado/Manifest
@@ -0,0 +1,10 @@
+AUX bittornado-0.3.18-wxversion.patch 2808 SHA256 1b643fdf05458139641afc582493dbf2d92e0717c4423da3536af78bf7a9132e SHA512 df826f65f23be2b0c288666a57f755ad99e202f621143225ef232131bb821697b5e0bf8f3c9c7ee18644ca637c5172a0de3f88090a0bb413a99e23b6f9e36635 WHIRLPOOL 19ebb5cf1bda0ee688a2ef3dfd28082c2d33936224ea2cc7c07e33b51a693651a6523b2ca472cd2a7a6b9d51859542b9fb6170a77c9cc76baf03834a0550ddf0
+AUX bttrack.conf 613 SHA256 72eafd432074548c8a8370a585001f6090a57d00a8dd746207abac7f2178ca93 SHA512 62d63735f3329cca879aff33d64b2ab5bd12ea99ca94fe581980382dbf8a12a25ef39c8adcbdd45295ea9055fbe2e156473e072081618cb6175a77434ad0f8a4 WHIRLPOOL 528f0de5db9fdb8b373072a79151ee46d5f5400928b40d1aa452928b70097b06d082a0f579772e0e836d7e154404685cc5a9aee4b06985e107fd5b1db8038ea1
+AUX bttrack.rc 519 SHA256 7168d95fab252fa467a209e7043811283d71d953ea1131c1fdb3b8f1198b74f2 SHA512 74255a6dae0d5b1b5809dd6b7b792bb1f681d9c002dd64c0b633e4c903af8748922abe4521d0e52f23ad2d1f12066bf6a2eec1ad8112251e081f07002609eae0 WHIRLPOOL 9e5f7aa67de5bab3b288de4ce9f6ed1c00cda1fb6e40b3c9f04eb8ec5423f631aa54ed6e3e3cefdd075926d1fb52ae02476119bf01522b73f2baaff1461b505b
+DIST BitTornado-0.3.18.tar.gz 189227 SHA256 d9e6ad0bf5b2e9820bab809c5a4fcd94e844a57f396ac51547fe47dbe255d9e0 SHA512 61a55726d93ddb245e18e47f41dea982b8faa7d3296c3a7221d00e0fe71db772613c3ee113bb7df18390807dda8c77859ed7159a03535446ca417a1344e3c0d6 WHIRLPOOL f3393b5907a86c590e7d760760f11e8b671d90c9c8ff14d783904fce688243bd06abf46f6938fc9992f44653198eba99b062c1f19836cb4502ca9569e6b0c598
+DIST BitTornado-0.4.1_p20160925.tar.gz 164352 SHA256 e2aeb636a7ba6cfc1aecb233e611aa17d97f43d0c3381413e39c7f019f085f4d SHA512 09971cc5705c421c4440cd51b9aa37da9f8ce992a882d342c0547fe1771199fa61c4924f6d6cd321776f9dcefafd3e244b9cbfce047c4cdd4502dd0a1a1fdaaa WHIRLPOOL 4177f4dfeb2bd277bcd031ff6ca3e646a0ccb6f6af9aeb3a2def28aac269622bb60e44e9fa43bf2b0f07543214acba24cb74cfe38a5f447d53192299bd24787c
+EBUILD bittornado-0.3.18-r4.ebuild 1461 SHA256 33220fb3dc5c82e16b621338471bf89e9de3ef567782b57caced1d47cf5c94df SHA512 e5433975438df2ae576ad557195dcfe3bc1ff3fb92925763d6c464a3703f699d6d8554bd46a5b79a41d80f2d82ddd7e32b8c8554e8377fba0cd8b15a213ed93f WHIRLPOOL a3038f9d8b1542f24416da9b0720ac14ba6a80474d43960636bf1a58398d589df47b05ab7e82c03976fbf2e3b03097490c2660c640ca6ddfae67b1b9addde980
+EBUILD bittornado-0.4.1_p20160925-r1.ebuild 1286 SHA256 53bca7030c339191742d474d728f6da89b438b980f7cf0b15eb71de70d9ac151 SHA512 9c3942a797c01373d35c1d922d2afecf555fae767d58703697c5700268025503555ca9fefe2fd87d508bd853fad5f5b535d65ed6f98e604bfd59184b9fc44d7b WHIRLPOOL 371957eccdaf808af77e77746cd296e824e48256b8100bd1d3b226fb6c790b03f063a004cfff6c645e99536d90959046d15d2eb79560aa29ad827048dcbe9a58
+MISC ChangeLog 3598 SHA256 5afac19c9288759db564df4cc0ea4a21943d0a11bd36deede181030dada46c32 SHA512 76a90ed5e54988c4e6518ecb1b6e8b4e2acf4847522b653b00bc8dfd194d23afe744ffa5619b49801e2a53fdf725b1ed137537c3227873738625f6bc21b006a4 WHIRLPOOL 71c02dcb087fe5c238df31e5b107fe46adb1a13619539f3f1b8dde0c5738e2306620d83c963ca7732b41cba9740222af221c26c30173d572cd39839f67f39f97
+MISC ChangeLog-2015 10430 SHA256 ca5e48e24549143e259ad010d2963b246d597a0346e3c1112c14a7170b3da246 SHA512 966d5fa77e626a3d39909b0896be2cc409d941e6e05afe7b4be2c0c7ffe134536ae0be4144a95fa04c967dc50002bcc6e6a8bcad996a2e1954af344f6588c379 WHIRLPOOL c7cfa6157b7c2a949e3f5b03723c88453a0e011b24b905069cd88a00797487fe603c7ac340aa45b3e035f96618f7016b9fd4fa53ba0310f9d20494d43ea6004c
+MISC metadata.xml 302 SHA256 ca2d2039353a10d88693628fb1e2112777927fb35aa6ec9918ba18269624fe13 SHA512 a2ed81559aad97406f1099fba266a7a2fa9d97013f267cfc9df5139ebde26495f103f1118fc0b2af825e281b026c434d11300e545aef9eed07b65eb504b47e67 WHIRLPOOL 02138379f5c8a871ae79ff2a9b4644b4d8d02e88114a23639ca09aacc345df4411204a5538964b91c831aa7435e023a8efdcb87ba75f37cc444f6ed2533af3f1
diff --git a/net-p2p/bittornado/bittornado-0.3.18-r4.ebuild b/net-p2p/bittornado/bittornado-0.3.18-r4.ebuild
new file mode 100644
index 000000000000..a9edb21c4c47
--- /dev/null
+++ b/net-p2p/bittornado/bittornado-0.3.18-r4.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# note: wxGTK interface has been removed wrt #391685. this ebuild is only for
+# cmdline tools as is.
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+MY_PN=BitTornado
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="TheShad0w's experimental BitTorrent client"
+HOMEPAGE="http://www.bittornado.com/"
+SRC_URI="http://download2.bittornado.com/download/${MY_P}.tar.gz"
+# GPL-2 is just for the init script from FILESDIR.
+LICENSE="MIT GPL-2"
+SLOT="0"
+
+KEYWORDS="alpha amd64 ~hppa ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE=""
+
+RDEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ >=sys-apps/sed-4.0.5"
+
+S=${WORKDIR}/${MY_PN}-CVS
+PIXMAPLOC=/usr/share/pixmaps/bittornado
+
+python_prepare_all() {
+ # fixes wrong icons path
+ sed -i "s:os.path.abspath(os.path.dirname(os.path.realpath(sys.argv\[0\]))):\"${PIXMAPLOC}/\":" btdownloadgui.py
+ # Needs wxpython-2.6 only, bug #201247
+ eapply "${FILESDIR}"/${P}-wxversion.patch
+
+ distutils-r1_python_prepare_all
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ # get rid of any reference to the not-installed gui version
+ rm "${ED%/}"/usr/bin/*gui.py || die
+ rm "${ED%/}$(python_get_scriptdir)"/*gui.py || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ newconfd "${FILESDIR}"/bttrack.conf bttrack
+ newinitd "${FILESDIR}"/bttrack.rc bttrack
+}
diff --git a/net-p2p/bittornado/bittornado-0.4.1_p20160925-r1.ebuild b/net-p2p/bittornado/bittornado-0.4.1_p20160925-r1.ebuild
new file mode 100644
index 000000000000..c5dcbd5245bf
--- /dev/null
+++ b/net-p2p/bittornado/bittornado-0.4.1_p20160925-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit distutils-r1
+
+MY_PN=BitTornado
+MY_P=${MY_PN}-${PV}
+EGIT_COMMIT="ed327c4e1ebbe1fe949be81723527cfda87aeb8d"
+
+DESCRIPTION="John Hoffman's fork of the original bittorrent"
+HOMEPAGE="https://github.com/effigies/BitTornado"
+SRC_URI="https://github.com/effigies/BitTornado/archive/${EGIT_COMMIT}.tar.gz -> ${MY_P}.tar.gz"
+# GPL-2 is just for the init script from FILESDIR.
+LICENSE="MIT GPL-2"
+SLOT="0"
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE="test"
+
+RDEPEND="
+ || (
+ dev-python/pycryptodome[${PYTHON_USEDEP}]
+ dev-python/pycrypto[${PYTHON_USEDEP}]
+ )"
+DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+S=${WORKDIR}/${MY_PN}-${EGIT_COMMIT}
+
+python_prepare_all() {
+ # https://github.com/effigies/BitTornado/pull/53
+ sed -e 's:"BitTornado.Tracker":\0, "BitTornado.Types":' -i setup.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ py.test -v BitTornado/tests || die "tests failed with ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ newconfd "${FILESDIR}"/bttrack.conf bttrack
+ newinitd "${FILESDIR}"/bttrack.rc bttrack
+}
diff --git a/net-p2p/bittornado/files/bittornado-0.3.18-wxversion.patch b/net-p2p/bittornado/files/bittornado-0.3.18-wxversion.patch
new file mode 100644
index 000000000000..357396303484
--- /dev/null
+++ b/net-p2p/bittornado/files/bittornado-0.3.18-wxversion.patch
@@ -0,0 +1,90 @@
+diff -Naur BitTornado-CVS-orig/btcompletedirgui.py BitTornado-CVS/btcompletedirgui.py
+--- BitTornado-CVS-orig/btcompletedirgui.py 2006-12-23 12:20:52.000000000 -0600
++++ BitTornado-CVS/btcompletedirgui.py 2007-12-04 11:09:36.000000000 -0600
+@@ -19,12 +19,16 @@
+ import sys
+ from os import getcwd
+ from os.path import join
++
+ try:
+- from wxPython.wx import *
+-except:
+- print 'wxPython is either not installed or has not been installed properly.'
++ import wxversion
++ wxversion.select("2.6")
++except Exception, e:
++ print >> sys.stderr, "%s: wxPython 2.6 not installed." %e
+ sys.exit(1)
+
++from wxPython.wx import *
++
+ try:
+ True
+ except:
+diff -Naur BitTornado-CVS-orig/btdownloadgui.py BitTornado-CVS/btdownloadgui.py
+--- BitTornado-CVS-orig/btdownloadgui.py 2007-12-04 11:06:58.000000000 -0600
++++ BitTornado-CVS/btdownloadgui.py 2007-12-04 11:10:36.000000000 -0600
+@@ -18,10 +18,13 @@
+ assert version >= '2', "Install Python 2.0 or greater"
+
+ try:
+- from wxPython.wx import *
+-except:
+- print 'wxPython is either not installed or has not been installed properly.'
+- exit(1)
++ import wxversion
++ wxversion.select("2.6")
++except Exception, e:
++ print >> sys.stderr, "%s: wxPython 2.6 not installed." %e
++ sys.exit(1)
++
++from wxPython.wx import *
+ from BitTornado.download_bt1 import BT1Download, defaults, parse_params, get_usage, get_response
+ from BitTornado.RawServer import RawServer, UPnP_ERROR
+ from random import seed
+diff -Naur BitTornado-CVS-orig/btmaketorrentgui.py BitTornado-CVS/btmaketorrentgui.py
+--- BitTornado-CVS-orig/btmaketorrentgui.py 2006-12-23 12:20:56.000000000 -0600
++++ BitTornado-CVS/btmaketorrentgui.py 2007-12-04 11:11:30.000000000 -0600
+@@ -21,12 +21,16 @@
+ import sys
+ from os import getcwd
+ from os.path import join, isdir
++
+ try:
+- from wxPython.wx import *
+-except:
+- print 'wxPython is either not installed or has not been installed properly.'
++ import wxversion
++ wxversion.select("2.6")
++except Exception, e:
++ print >> sys.stderr, "%s: wxPython 2.6 not installed." %e
+ sys.exit(1)
+
++from wxPython.wx import *
++
+ try:
+ True
+ except:
+diff -Naur BitTornado-CVS-orig/bt-t-make.py BitTornado-CVS/bt-t-make.py
+--- BitTornado-CVS-orig/bt-t-make.py 2006-12-23 12:20:52.000000000 -0600
++++ BitTornado-CVS/bt-t-make.py 2007-12-04 11:14:35.000000000 -0600
+@@ -22,12 +22,16 @@
+ from os import getcwd, listdir
+ from os.path import join, isdir
+ from traceback import print_exc
++
+ try:
+- from wxPython.wx import *
+-except:
+- print 'wxPython is either not installed or has not been installed properly.'
++ import wxversion
++ wxversion.select("2.6")
++except Exception, e:
++ print >> sys.stderr, "%s: wxPython 2.6 not installed." %e
+ sys.exit(1)
+
++from wxPython.wx import *
++
+ try:
+ True
+ except:
diff --git a/net-p2p/bittornado/files/bttrack.conf b/net-p2p/bittornado/files/bttrack.conf
new file mode 100644
index 000000000000..9757ce477ff6
--- /dev/null
+++ b/net-p2p/bittornado/files/bttrack.conf
@@ -0,0 +1,17 @@
+# /etc/conf.d/bttrack
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Change this to this to the port you would like to connect to for the tracker.
+# It is accessible at http://localhost:PORT/ from any web browser.
+PORT=8082
+
+# where to store recent downloader info
+DFILE=/usr/share/bittorrent/tracker.dfile
+
+# path to favicon.ico which many popular web browsers can use
+FAVICON=/usr/share/bittorrent/favicon.ico
+
+# Connection logs are sent to stdout by default, so they should be sent to a
+# file when using this script.
+LOGFILE=/var/log/bttrack.log
diff --git a/net-p2p/bittornado/files/bttrack.rc b/net-p2p/bittornado/files/bttrack.rc
new file mode 100644
index 000000000000..2c1dfe69cafd
--- /dev/null
+++ b/net-p2p/bittornado/files/bttrack.rc
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting bttrack"
+ start-stop-daemon --start --quiet --background --make-pidfile \
+ --pidfile /var/run/bttrack.pid \
+ --exec /usr/bin/bttrack.py -- --port ${PORT} \
+ --dfile ${DFILE} --favicon ${FAVICON} --logfile ${LOGFILE}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping bttrack"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bttrack.pid
+ eend $?
+}
diff --git a/net-p2p/bittornado/metadata.xml b/net-p2p/bittornado/metadata.xml
new file mode 100644
index 000000000000..751af98c28bc
--- /dev/null
+++ b/net-p2p/bittornado/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">effigies/BitTornado</remote-id>
+ </upstream>
+</pkgmetadata>