summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-06-30 16:02:44 +0000
committerAnthony G. Basile <blueness@gentoo.org>2011-06-30 16:02:44 +0000
commit886a6d868ac536d213d6486d8dd2792b0b5a3349 (patch)
tree35f7a54ca65d4835fba090f720845402b490d47e /net-p2p
parentRemove old versions. (diff)
downloadhistorical-886a6d868ac536d213d6486d8dd2792b0b5a3349.tar.gz
historical-886a6d868ac536d213d6486d8dd2792b0b5a3349.tar.bz2
historical-886a6d868ac536d213d6486d8dd2792b0b5a3349.zip
Initial commit
Package-Manager: portage-2.1.9.42/cvs/Linux x86_64
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/bitflu/ChangeLog12
-rw-r--r--net-p2p/bitflu/Manifest17
-rw-r--r--net-p2p/bitflu/bitflu-1.37.ebuild82
-rw-r--r--net-p2p/bitflu/files/bitflu-add-pidfile.patch23
-rw-r--r--net-p2p/bitflu/files/bitflu.config45
-rw-r--r--net-p2p/bitflu/files/bitflu.initd47
-rw-r--r--net-p2p/bitflu/metadata.xml14
7 files changed, 240 insertions, 0 deletions
diff --git a/net-p2p/bitflu/ChangeLog b/net-p2p/bitflu/ChangeLog
new file mode 100644
index 000000000000..b2fa8f11a245
--- /dev/null
+++ b/net-p2p/bitflu/ChangeLog
@@ -0,0 +1,12 @@
+
+
+ 30 Jun 2011; Anthony G. Basile <blueness@gentoo.org> bitflu-1.37.ebuild,
+ +files/bitflu-add-pidfile.patch, files/bitflu.config, files/bitflu.initd:
+ Added patch to produce a pid file
+
+*bitflu-1.37 (30 Jun 2011)
+
+ 30 Jun 2011; Anthony G. Basile <blueness@gentoo.org> +bitflu-1.37.ebuild,
+ +files/bitflu.config, +files/bitflu.initd, +metadata.xml:
+ Initial commit
+
diff --git a/net-p2p/bitflu/Manifest b/net-p2p/bitflu/Manifest
new file mode 100644
index 000000000000..49d43cfdbf17
--- /dev/null
+++ b/net-p2p/bitflu/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX bitflu-add-pidfile.patch 905 RMD160 aa91e4a5801710e01f797283042abdf287c5caaf SHA1 44c52124232e38bae227688aa7cb7a8630814893 SHA256 d4e8af440dcbc7947964c0e7394419b52317d423db67f9c16313752f98d46522
+AUX bitflu.config 1685 RMD160 b151a6c30d57fb8cf2a7badc6a2bd83d75c6a34e SHA1 d80f83e88eabf5ade5d090cabd0073ebd9010a29 SHA256 5b35f229b96a1ab91764b9735b65c43dfee2dbe67e6df76bdd9c9e86f0478db2
+AUX bitflu.initd 996 RMD160 346df2891890b0fcbfb7b9aa3418eeb69a3d4135 SHA1 eedd5fb6379240a522e9f87d640e6a517dd3b37a SHA256 5eb1fee9e98ccc5251e8c0afd430f267c0377c5976dfeb899385ef8a6a6b3ef8
+DIST bitflu-1.37.tgz 157754 RMD160 0d5d7c2590d5cb07c9998ee0a6028ff860b44162 SHA1 90d0374272696c175debb73ebc06ff588438bc4c SHA256 c5e6b6fae5c797f4281ddafaa5e3ff8286a5c30758dddfbbdc2b75b1c60c437b
+EBUILD bitflu-1.37.ebuild 2023 RMD160 58c9ed258e88136af15c599b5074b5b67fa0be33 SHA1 5204db11ba4c4aa82ea52b6abb675395e378b581 SHA256 08cad7d54c7a131e0463f27d02b0b8ff817cc92c13534ad1a58fc439f2ab6c53
+MISC ChangeLog 372 RMD160 4a4ada59ab508e41677872dd7718685b1a899091 SHA1 f8d9ea0b2850204b5929d462c5163a371ac33098 SHA256 32569b58b493fb512fbd1b1cfac39dd4682ed6de12a193546cbedfad74047ad7
+MISC metadata.xml 474 RMD160 f0bd37c33fb6634d4a14abf124abc66cf8f8032f SHA1 12bd1299ed1ab08cb22bc27f1b4f6e570ed81b6c SHA256 77c98ffeb8d98e75ced9544883d5bace7dc48934881ab3016fc80713fd3bf93e
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iEYEAREIAAYFAk4Mni4ACgkQl5yvQNBFVTXFmwCffj6FfpBbvFCOsCk8Zx/8A03+
+qNMAoJE3Cxj5XqSx07mEAZXMjB5dsSg3
+=5nii
+-----END PGP SIGNATURE-----
diff --git a/net-p2p/bitflu/bitflu-1.37.ebuild b/net-p2p/bitflu/bitflu-1.37.ebuild
new file mode 100644
index 000000000000..670fc8ac1c13
--- /dev/null
+++ b/net-p2p/bitflu/bitflu-1.37.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitflu/bitflu-1.37.ebuild,v 1.1 2011/06/30 16:02:44 blueness Exp $
+
+EAPI=3
+
+inherit eutils
+
+DESCRIPTION="Bitflu is a BitTorrent client, written in Perl and is designed to run as a daemon"
+HOMEPAGE="http://bitflu.workaround.ch"
+SRC_URI="http://bitflu.workaround.ch/bitflu/${P}.tgz"
+
+LICENSE="Artistic-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-perl/Danga-Socket"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup bitflu
+ enewuser bitflu -1 -1 /var/lib/bitflu bitflu
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-add-pidfile.patch"
+}
+
+src_compile() {
+:
+}
+
+PLUGINS="/usr/lib/bitflu"
+HOMEDIR="/var/lib/bitflu"
+CONFDIR="/etc/bitflu"
+LOGDIR="/var/log/bitflu"
+
+src_install() {
+ # executable daemon
+ exeinto /usr/sbin
+ doexe bitflu.pl
+
+ # plugins
+ dodir "${PLUGINS}"
+ insinto "${PLUGINS}"
+ doins -r plugins
+
+ # working dir
+ dodir "${HOMEDIR}"
+ fowners bitflu:bitflu "${HOMEDIR}"
+ fperms 775 "${HOMEDIR}"
+
+ # config file
+ dodir "${CONFDIR}"
+ fowners bitflu:bitflu "${CONFDIR}"
+ fperms 775 "${CONFDIR}"
+ insinto "${CONFDIR}"
+ doins "${FILESDIR}"/bitflu.config
+ fowners bitflu:bitflu "${CONFDIR}"/bitflu.config
+ fperms 664 "${CONFDIR}"/bitflu.config
+
+ # log file
+ dodir "${LOGDIR}"
+ fowners bitflu:bitflu "${LOGDIR}"
+ fperms 775 "${LOGDIR}"
+
+ # docs
+ dodoc bitflu.config.example ChangeLog.txt CONTRIBUTING README_IPv6.txt \
+ README.txt Documentation/bitflu-internals.txt
+
+ newinitd "${FILESDIR}"/bitflu.initd bitflu
+}
+
+pkg_postinst() {
+ ewarn "Note: At startup, or at the user's request, ${PN} (re)reads its"
+ ewarn "configuration file and overwrites it with its own sanitized"
+ ewarn "version. A backup is created in the configuration directory,"
+ ewarn "/etc/${PN}, but that file will subseqently be overwritten if"
+ ewarn "a further backup is made. You may want to keep your own backup."
+ ewarn "A prestine example with comments may be found in /usr/share/doc/${P}."
+}
diff --git a/net-p2p/bitflu/files/bitflu-add-pidfile.patch b/net-p2p/bitflu/files/bitflu-add-pidfile.patch
new file mode 100644
index 000000000000..23783b253f73
--- /dev/null
+++ b/net-p2p/bitflu/files/bitflu-add-pidfile.patch
@@ -0,0 +1,23 @@
+--- bitflu.pl.orig 2011-06-30 10:47:13.000000000 -0400
++++ bitflu.pl 2011-06-30 10:50:21.000000000 -0400
+@@ -442,6 +442,10 @@
+ }
+ elsif($child != 0) {
+ $self->debug("Bitflu is running with pid $child");
++ open(PIDFILE, ">", $self->Configuration->GetValue('pidfile'))
++ or die("Unable to create $self->Configuration->GetValue('pidfile'): $!\n");
++ print PIDFILE $child ;
++ close(PIDFILE);
+ exit(0);
+ }
+
+@@ -2816,7 +2820,8 @@
+ $self->{conf}->{history} = 1;
+ $self->{conf}->{ipv6} = 1;
+ $self->{conf}->{storage} = 'StorageVFS';
+- foreach my $opt qw(ipv6 renice plugindir pluginexclude workdir logfile storage chdir) {
++ $self->{conf}->{pidfile} = '/var/run/bitflu/bitflu.pid';
++ foreach my $opt qw(pidfile ipv6 renice plugindir pluginexclude workdir logfile storage chdir) {
+ $self->RuntimeLockValue($opt);
+ }
+ }
diff --git a/net-p2p/bitflu/files/bitflu.config b/net-p2p/bitflu/files/bitflu.config
new file mode 100644
index 000000000000..760a9eb350c7
--- /dev/null
+++ b/net-p2p/bitflu/files/bitflu.config
@@ -0,0 +1,45 @@
+# Written by Bitflu::Configuration@2835 on Thu Jun 30 07:53:38 2011
+autocancel = 1.5
+autocommit = 1
+autoload_dir = /var/lib/bitflu/autoload
+autoload_scan = 300
+chdir =
+checkversion = 1309395241
+completed_downloads = /var/lib/bitflu/seeding
+downspeed = 0
+history = 1
+http_autoloadtorrent = 1
+http_maxthreads = 10
+incomplete_downloads = /var/lib/bitflu/unfinished
+ipv6 = 1
+kademlia_idseed = 0
+logfile = /var/log/bitflu/bitflu.log
+loglevel = 5
+min_free_mb = 0
+pidfile = /var/run/bitflu/bitflu.pid
+plugindir = /usr/lib/bitflu/plugins
+pluginexclude =
+renice = 8
+storage = StorageVFS
+telnet_bind = 127.0.0.1
+telnet_maxhist = 20
+telnet_port = 4001
+telnet_view = type,name=25,hash,peers,pieces,bytes,percent,ratio,up,down,eta,note
+torrent_bind = 0
+torrent_gcpriority = 5
+torrent_importdir = /var/lib/bitflu/import
+torrent_maxpeers = 80
+torrent_maxreq = 6
+torrent_port = 6688
+torrent_totalpeers = 400
+torrent_tracker_autoudp = 1
+torrent_tracker_udpport = 6689
+torrent_trackerblacklist =
+torrent_upslots = 10
+unshared_downloads = /var/lib/bitflu/removed
+upspeed = 35
+vfs_use_fallocate = 0
+webgui_bind = 127.0.0.1
+webgui_port = 4081
+workdir = /var/lib/bitflu
+# EOF #
diff --git a/net-p2p/bitflu/files/bitflu.initd b/net-p2p/bitflu/files/bitflu.initd
new file mode 100644
index 000000000000..3d69095de14c
--- /dev/null
+++ b/net-p2p/bitflu/files/bitflu.initd
@@ -0,0 +1,47 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/bitflu/files/bitflu.initd,v 1.1 2011/06/30 16:02:44 blueness Exp $
+
+DAEMON=/usr/sbin/bitflu.pl
+PIDDIR=/var/run/bitflu
+PIDFILE=${PIDDIR}/bitflu.pid
+CONFFILE=/etc/bitflu/bitflu.config
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -f ${CONFFILE} ]; then
+ eerror "No config file ${CONFFILE}"
+ return 1
+ fi
+
+ if [ ! -d ${PIDDIR} ] && ! mkdir -p ${PIDDIR}; then
+ eerror "Failed to create ${PIDDIR}"
+ return 1
+ fi
+
+ chown bitflu:bitflu ${PIDDIR}
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting bitflu"
+ start-stop-daemon --start --pidfile "${PIDFILE}" --user bitflu:bitflu \
+ --exec "${DAEMON}" -- --config="${CONFFILE}" --daemon -q >/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stoping bitflu"
+ start-stop-daemon --stop --pidfile "${PIDFILE}" --exec "${DAEMON}"
+ eend $?
+}
+
+restart() {
+ svc_stop
+ sleep 2
+ svc_start
+}
diff --git a/net-p2p/bitflu/metadata.xml b/net-p2p/bitflu/metadata.xml
new file mode 100644
index 000000000000..a9dc13a81b42
--- /dev/null
+++ b/net-p2p/bitflu/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <longdescription lang="en">
+ Bitflu is a free BitTorrent client. The client was written in Perl and
+ is designed to run as a daemon (7x24h , like mlnet) on Linux, *BSD and
+ maybe even OSX.
+ </longdescription>
+</pkgmetadata>