* [gentoo-commits] dev/blueness:master commit in: net-p2p/bitflu/files/, net-p2p/bitflu/
@ 2011-06-30 1:57 Anthony G. Basile
0 siblings, 0 replies; 4+ messages in thread
From: Anthony G. Basile @ 2011-06-30 1:57 UTC (permalink / raw
To: gentoo-commits
commit: 6d017ac796d13b09b47980a5fcc09e57f14b5d72
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 30 01:57:50 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 01:57:50 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=6d017ac7
net-p2p/bitflu: initial commit
(Portage version: 2.1.9.42/git/Linux x86_64, signed Manifest commit with key 0xD0455535)
---
net-p2p/bitflu/ChangeLog | 8 ++++
net-p2p/bitflu/Manifest | 16 +++++++++
net-p2p/bitflu/bitflu-1.37.ebuild | 65 ++++++++++++++++++++++++++++++++++++
net-p2p/bitflu/files/bitflu.config | 44 ++++++++++++++++++++++++
net-p2p/bitflu/files/bitflu.initd | 31 +++++++++++++++++
net-p2p/bitflu/metadata.xml | 14 ++++++++
6 files changed, 178 insertions(+), 0 deletions(-)
diff --git a/net-p2p/bitflu/ChangeLog b/net-p2p/bitflu/ChangeLog
new file mode 100644
index 0000000..7327fe6
--- /dev/null
+++ b/net-p2p/bitflu/ChangeLog
@@ -0,0 +1,8 @@
+
+
+*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 0000000..1779651
--- /dev/null
+++ b/net-p2p/bitflu/Manifest
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX bitflu.config 1561 RMD160 e45bfae0249a6404e7f6b7b1519547845d09baa6 SHA1 0a63f48785b25cf0cae14748771f0051bccd699e SHA256 64481e0863d72c3a5e6983d8b24477d86294487f6c3dca6ba88bda1eea97b08f
+AUX bitflu.initd 592 RMD160 13b838ce0d2e86798c4e573d0f8b3945e1a80a55 SHA1 5a96966b7a5cec64069ec0b7669d3902f00cff1e SHA256 d6de9d2709b2b9f76eb716057bcf5bdf5f5f0f0daeb8be3778afb6656efdaf3f
+DIST bitflu-1.37.tgz 157754 RMD160 0d5d7c2590d5cb07c9998ee0a6028ff860b44162 SHA1 90d0374272696c175debb73ebc06ff588438bc4c SHA256 c5e6b6fae5c797f4281ddafaa5e3ff8286a5c30758dddfbbdc2b75b1c60c437b
+EBUILD bitflu-1.37.ebuild 1289 RMD160 ec9fcc66b0018dfb74a0fefc90c62d41fe059312 SHA1 22d88645e59d1fc4fc4a32614544138659521f34 SHA256 53b151400b1a19b555512b3a85545ffe9ac96ddb166424a3dbc9f3712343022d
+MISC ChangeLog 184 RMD160 e5f500b20f647f7c02b0a0ffa787fcbc4090fc30 SHA1 1563937c969af7f2ec58579f2f08deb6bf408d9a SHA256 3f1e93ec9c21b810d379afde128d744f8f784ea080b6c1acf96ba656963547db
+MISC metadata.xml 474 RMD160 f0bd37c33fb6634d4a14abf124abc66cf8f8032f SHA1 12bd1299ed1ab08cb22bc27f1b4f6e570ed81b6c SHA256 77c98ffeb8d98e75ced9544883d5bace7dc48934881ab3016fc80713fd3bf93e
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iEYEAREIAAYFAk4L2B4ACgkQl5yvQNBFVTUNDACcDRcC4CGt3t3787oIkmicSlbj
+a84An1cvteSAcoInJhzdEetoR/vgve1e
+=v3YB
+-----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 0000000..f23db1b
--- /dev/null
+++ b/net-p2p/bitflu/bitflu-1.37.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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_compile() {
+:
+}
+
+HOME=/var/lib/bitflu
+CONF=/etc/bitflu
+PLUGINS=/usr/lib/bitflu
+
+src_install () {
+ # executable daemon
+ exeinto /usr/sbin
+ doexe bitflu.pl
+
+ # working dir
+ dodir "${HOME}"
+ keepdir "${HOME}"
+ fowners bitflu:bitflu "${HOME}"
+ fperms 775 "${HOME}"
+
+ # config file
+ dodir "${CONF}"
+ keepdir "${CONF}"
+ fowners bitflu:bitflu "${CONF}"
+ fperms 775 "${CONF}"
+ insinto "${CONF}"
+ doins "${FILESDIR}"/bitflu.config
+ fowners bitflu:bitflu "${CONF}"/bitflu.config
+ fperms 775 "${CONF}"/bitflu.config
+
+ # plugins
+ dodir "${PLUGINS}"
+ insinto "${PLUGINS}"
+ doins -r plugins
+
+ # docs
+ dodoc bitflu.config.example ChangeLog.txt CONTRIBUTING README_IPv6.txt \
+ README.txt Documentation/bitflu-internals.txt
+
+ newinitd "${FILESDIR}"/bitflu.initd bitflu
+}
diff --git a/net-p2p/bitflu/files/bitflu.config b/net-p2p/bitflu/files/bitflu.config
new file mode 100644
index 0000000..c071b43
--- /dev/null
+++ b/net-p2p/bitflu/files/bitflu.config
@@ -0,0 +1,44 @@
+# Written by for portage
+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 =
+loglevel = 5
+min_free_mb = 0
+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 0000000..1464bc3
--- /dev/null
+++ b/net-p2p/bitflu/files/bitflu.initd
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DAEMON=/usr/sbin/bitflu.pl
+PIDFILE=/var/run/bitflu.pid
+CONFFILE=/etc/bitflu/bitflu.config
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting bitflu"
+ start-stop-daemon --start --pidfile "${PIDFILE}" --user bitflu:bitflu \
+ --exec "${DAEMON}" -- --config="${CONFFILE}" --daemon -q
+ 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 0000000..a9dc13a
--- /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>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] dev/blueness:master commit in: net-p2p/bitflu/files/, net-p2p/bitflu/
@ 2011-06-30 9:48 Anthony G. Basile
0 siblings, 0 replies; 4+ messages in thread
From: Anthony G. Basile @ 2011-06-30 9:48 UTC (permalink / raw
To: gentoo-commits
commit: f03bc7d35585addab4ae18a187e76a1fef93e164
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 30 09:48:04 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 09:48:04 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=f03bc7d3
net-p2p/bitflu: added patch to produce a pid file
(Portage version: 2.1.9.42/git/Linux x86_64, signed Manifest commit with key 0xD0455535)
---
net-p2p/bitflu/ChangeLog | 4 ++
net-p2p/bitflu/Manifest | 15 +++++----
net-p2p/bitflu/bitflu-1.37.ebuild | 40 +++++++++++++-----------
net-p2p/bitflu/files/bitflu-add-pidfile.patch | 21 +++++++++++++
net-p2p/bitflu/files/bitflu.config | 3 +-
net-p2p/bitflu/files/bitflu.initd | 18 ++++++++++-
6 files changed, 74 insertions(+), 27 deletions(-)
diff --git a/net-p2p/bitflu/ChangeLog b/net-p2p/bitflu/ChangeLog
index 7327fe6..b2fa8f1 100644
--- a/net-p2p/bitflu/ChangeLog
+++ b/net-p2p/bitflu/ChangeLog
@@ -1,5 +1,9 @@
+ 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,
diff --git a/net-p2p/bitflu/Manifest b/net-p2p/bitflu/Manifest
index 1779651..2ece6c1 100644
--- a/net-p2p/bitflu/Manifest
+++ b/net-p2p/bitflu/Manifest
@@ -1,16 +1,17 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-AUX bitflu.config 1561 RMD160 e45bfae0249a6404e7f6b7b1519547845d09baa6 SHA1 0a63f48785b25cf0cae14748771f0051bccd699e SHA256 64481e0863d72c3a5e6983d8b24477d86294487f6c3dca6ba88bda1eea97b08f
-AUX bitflu.initd 592 RMD160 13b838ce0d2e86798c4e573d0f8b3945e1a80a55 SHA1 5a96966b7a5cec64069ec0b7669d3902f00cff1e SHA256 d6de9d2709b2b9f76eb716057bcf5bdf5f5f0f0daeb8be3778afb6656efdaf3f
+AUX bitflu-add-pidfile.patch 802 RMD160 81ad4e8471606106c51864810b081709e86514aa SHA1 e85c358da135f2741451e96eac910c89c5c4173b SHA256 9668c26d0282696fd08a3b77d6378474cc9bc9276dd517872b3b47fb5189b4c4
+AUX bitflu.config 1659 RMD160 c751619f6591797f99333abc73647bd4d91b9af3 SHA1 f3880cdd7bb55b5105667a19eb18334891bf8369 SHA256 90c3c88bfe15d012590f228d6feced246443bee2185e973c116804546bcf842f
+AUX bitflu.initd 883 RMD160 48e5307ddf7ca81242b1b0e208ce833a0b8cf015 SHA1 e8e8b46f6f9b67d813a8cd12019ea67af26de5c1 SHA256 5d3cfd3f1df4279eb262f0e5a7d3a354278b8e44886939c2c92b8a464e1a0605
DIST bitflu-1.37.tgz 157754 RMD160 0d5d7c2590d5cb07c9998ee0a6028ff860b44162 SHA1 90d0374272696c175debb73ebc06ff588438bc4c SHA256 c5e6b6fae5c797f4281ddafaa5e3ff8286a5c30758dddfbbdc2b75b1c60c437b
-EBUILD bitflu-1.37.ebuild 1289 RMD160 ec9fcc66b0018dfb74a0fefc90c62d41fe059312 SHA1 22d88645e59d1fc4fc4a32614544138659521f34 SHA256 53b151400b1a19b555512b3a85545ffe9ac96ddb166424a3dbc9f3712343022d
-MISC ChangeLog 184 RMD160 e5f500b20f647f7c02b0a0ffa787fcbc4090fc30 SHA1 1563937c969af7f2ec58579f2f08deb6bf408d9a SHA256 3f1e93ec9c21b810d379afde128d744f8f784ea080b6c1acf96ba656963547db
+EBUILD bitflu-1.37.ebuild 1393 RMD160 2dea2f3e32d6107664b8f687c34fe4b4a2672790 SHA1 f908549d340bceb3dc01b7f10dffbe6872b998d0 SHA256 20605afbe21f9236a17cab72ec8b4ddfce7237325ca79192d703acc96541316d
+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)
-iEYEAREIAAYFAk4L2B4ACgkQl5yvQNBFVTUNDACcDRcC4CGt3t3787oIkmicSlbj
-a84An1cvteSAcoInJhzdEetoR/vgve1e
-=v3YB
+iEYEAREIAAYFAk4MRlMACgkQl5yvQNBFVTVj4QCfaQiA1VTUsWHhvy0vzA+i+X2I
+usYAn2FjucSzaOxm7wAqnJ8o4zmo14nT
+=wK1K
-----END PGP SIGNATURE-----
diff --git a/net-p2p/bitflu/bitflu-1.37.ebuild b/net-p2p/bitflu/bitflu-1.37.ebuild
index f23db1b..2d27442 100644
--- a/net-p2p/bitflu/bitflu-1.37.ebuild
+++ b/net-p2p/bitflu/bitflu-1.37.ebuild
@@ -23,40 +23,44 @@ pkg_setup() {
enewuser bitflu -1 -1 /var/lib/bitflu bitflu
}
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-add-pidfile.patch"
+}
+
src_compile() {
:
}
-HOME=/var/lib/bitflu
-CONF=/etc/bitflu
PLUGINS=/usr/lib/bitflu
+HOMEDIR=/var/lib/bitflu
+CONFDIR=/etc/bitflu
src_install () {
# executable daemon
exeinto /usr/sbin
doexe bitflu.pl
- # working dir
- dodir "${HOME}"
- keepdir "${HOME}"
- fowners bitflu:bitflu "${HOME}"
- fperms 775 "${HOME}"
-
- # config file
- dodir "${CONF}"
- keepdir "${CONF}"
- fowners bitflu:bitflu "${CONF}"
- fperms 775 "${CONF}"
- insinto "${CONF}"
- doins "${FILESDIR}"/bitflu.config
- fowners bitflu:bitflu "${CONF}"/bitflu.config
- fperms 775 "${CONF}"/bitflu.config
-
# plugins
dodir "${PLUGINS}"
insinto "${PLUGINS}"
doins -r plugins
+ # working dir
+ dodir "${HOMEDIR}"
+ keepdir "${HOMEDIR}"
+ fowners bitflu:bitflu "${HOMEDIR}"
+ fperms 775 "${HOMEDIR}"
+
+ # config file
+ dodir "${CONFDIR}"
+ keepdir "${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
+
# docs
dodoc bitflu.config.example ChangeLog.txt CONTRIBUTING README_IPv6.txt \
README.txt Documentation/bitflu-internals.txt
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 0000000..d62dfe2
--- /dev/null
+++ b/net-p2p/bitflu/files/bitflu-add-pidfile.patch
@@ -0,0 +1,21 @@
+--- bitflu.pl.orig 2011-06-29 21:32:10.000000000 -0400
++++ bitflu.pl 2011-06-30 04:15:57.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,6 +2820,7 @@
+ $self->{conf}->{history} = 1;
+ $self->{conf}->{ipv6} = 1;
+ $self->{conf}->{storage} = 'StorageVFS';
++ $self->{conf}->{pidfile} = '/var/run/bitflu/bitflu.pid';
+ foreach my $opt qw(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
index c071b43..584f2c0 100644
--- a/net-p2p/bitflu/files/bitflu.config
+++ b/net-p2p/bitflu/files/bitflu.config
@@ -1,4 +1,4 @@
-# Written by for portage
+# Written by Bitflu::Configuration@2835 on Thu Jun 30 07:53:38 2011
autocancel = 1.5
autocommit = 1
autoload_dir = /var/lib/bitflu/autoload
@@ -16,6 +16,7 @@ kademlia_idseed = 0
logfile =
loglevel = 5
min_free_mb = 0
+pidfile = /var/run/bitflu/bitflu.pid
plugindir = /usr/lib/bitflu/plugins
pluginexclude =
renice = 8
diff --git a/net-p2p/bitflu/files/bitflu.initd b/net-p2p/bitflu/files/bitflu.initd
index 1464bc3..7deb7f2 100644
--- a/net-p2p/bitflu/files/bitflu.initd
+++ b/net-p2p/bitflu/files/bitflu.initd
@@ -4,14 +4,30 @@
# $Header: $
DAEMON=/usr/sbin/bitflu.pl
-PIDFILE=/var/run/bitflu.pid
+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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] dev/blueness:master commit in: net-p2p/bitflu/files/, net-p2p/bitflu/
@ 2011-06-30 15:19 Anthony G. Basile
0 siblings, 0 replies; 4+ messages in thread
From: Anthony G. Basile @ 2011-06-30 15:19 UTC (permalink / raw
To: gentoo-commits
commit: a44ce6c8337d25b1c94fae74086057d0a77eb675
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 30 15:19:12 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 15:19:12 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=a44ce6c8
net-p2p/bitflu: added log dir, minor fixes
(Portage version: 2.1.9.42/git/Linux x86_64, signed Manifest commit with key 0xD0455535)
---
net-p2p/bitflu/Manifest | 14 +++++++-------
net-p2p/bitflu/bitflu-1.37.ebuild | 25 +++++++++++++++++++------
net-p2p/bitflu/files/bitflu-add-pidfile.patch | 10 ++++++----
net-p2p/bitflu/files/bitflu.config | 2 +-
net-p2p/bitflu/files/bitflu.initd | 2 +-
5 files changed, 34 insertions(+), 19 deletions(-)
diff --git a/net-p2p/bitflu/Manifest b/net-p2p/bitflu/Manifest
index 2ece6c1..db0405a 100644
--- a/net-p2p/bitflu/Manifest
+++ b/net-p2p/bitflu/Manifest
@@ -1,17 +1,17 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-AUX bitflu-add-pidfile.patch 802 RMD160 81ad4e8471606106c51864810b081709e86514aa SHA1 e85c358da135f2741451e96eac910c89c5c4173b SHA256 9668c26d0282696fd08a3b77d6378474cc9bc9276dd517872b3b47fb5189b4c4
-AUX bitflu.config 1659 RMD160 c751619f6591797f99333abc73647bd4d91b9af3 SHA1 f3880cdd7bb55b5105667a19eb18334891bf8369 SHA256 90c3c88bfe15d012590f228d6feced246443bee2185e973c116804546bcf842f
-AUX bitflu.initd 883 RMD160 48e5307ddf7ca81242b1b0e208ce833a0b8cf015 SHA1 e8e8b46f6f9b67d813a8cd12019ea67af26de5c1 SHA256 5d3cfd3f1df4279eb262f0e5a7d3a354278b8e44886939c2c92b8a464e1a0605
+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 899 RMD160 96c9c3376ff9be0e7eddfb70ce4d7db745755544 SHA1 0713c040d4b7b5b62ce861433b8f184eb0fc8b3d SHA256 6d3c97b8192a8e4f5a0aa10b9e40662e51ad41fe108a6e42c8a572405bb55280
DIST bitflu-1.37.tgz 157754 RMD160 0d5d7c2590d5cb07c9998ee0a6028ff860b44162 SHA1 90d0374272696c175debb73ebc06ff588438bc4c SHA256 c5e6b6fae5c797f4281ddafaa5e3ff8286a5c30758dddfbbdc2b75b1c60c437b
-EBUILD bitflu-1.37.ebuild 1393 RMD160 2dea2f3e32d6107664b8f687c34fe4b4a2672790 SHA1 f908549d340bceb3dc01b7f10dffbe6872b998d0 SHA256 20605afbe21f9236a17cab72ec8b4ddfce7237325ca79192d703acc96541316d
+EBUILD bitflu-1.37.ebuild 1926 RMD160 0b7ea87abc40c0f799a4072df6be26a7e3cb6807 SHA1 8ef054e50b93e61c598ffe9b2b66a5ce17c4b2d3 SHA256 7893d1b9e4b05e0c8f0c41e8b97676ae7a96e8294841de7bf8fb736aa3fc780a
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)
-iEYEAREIAAYFAk4MRlMACgkQl5yvQNBFVTVj4QCfaQiA1VTUsWHhvy0vzA+i+X2I
-usYAn2FjucSzaOxm7wAqnJ8o4zmo14nT
-=wK1K
+iEYEAREIAAYFAk4Mk/AACgkQl5yvQNBFVTVrvACfSwziAJDzqkUsR7yMnQKZSOT/
+RAgAoIx5n57XQAgvvGaf6HIv7b/utYzz
+=AOtg
-----END PGP SIGNATURE-----
diff --git a/net-p2p/bitflu/bitflu-1.37.ebuild b/net-p2p/bitflu/bitflu-1.37.ebuild
index 2d27442..0ffccd4 100644
--- a/net-p2p/bitflu/bitflu-1.37.ebuild
+++ b/net-p2p/bitflu/bitflu-1.37.ebuild
@@ -31,11 +31,12 @@ src_compile() {
:
}
-PLUGINS=/usr/lib/bitflu
-HOMEDIR=/var/lib/bitflu
-CONFDIR=/etc/bitflu
+PLUGINS="/usr/lib/bitflu"
+HOMEDIR="/var/lib/bitflu"
+CONFDIR="/etc/bitflu"
+LOGDIR="/var/log/bitflu"
-src_install () {
+src_install() {
# executable daemon
exeinto /usr/sbin
doexe bitflu.pl
@@ -47,13 +48,11 @@ src_install () {
# working dir
dodir "${HOMEDIR}"
- keepdir "${HOMEDIR}"
fowners bitflu:bitflu "${HOMEDIR}"
fperms 775 "${HOMEDIR}"
# config file
dodir "${CONFDIR}"
- keepdir "${CONFDIR}"
fowners bitflu:bitflu "${CONFDIR}"
fperms 775 "${CONFDIR}"
insinto "${CONFDIR}"
@@ -61,9 +60,23 @@ src_install () {
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
index d62dfe2..23783b2 100644
--- a/net-p2p/bitflu/files/bitflu-add-pidfile.patch
+++ b/net-p2p/bitflu/files/bitflu-add-pidfile.patch
@@ -1,5 +1,5 @@
---- bitflu.pl.orig 2011-06-29 21:32:10.000000000 -0400
-+++ bitflu.pl 2011-06-30 04:15:57.000000000 -0400
+--- 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) {
@@ -11,11 +11,13 @@
exit(0);
}
-@@ -2816,6 +2820,7 @@
+@@ -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(ipv6 renice plugindir pluginexclude workdir logfile storage chdir) {
++ 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
index 584f2c0..760a9eb 100644
--- a/net-p2p/bitflu/files/bitflu.config
+++ b/net-p2p/bitflu/files/bitflu.config
@@ -13,7 +13,7 @@ http_maxthreads = 10
incomplete_downloads = /var/lib/bitflu/unfinished
ipv6 = 1
kademlia_idseed = 0
-logfile =
+logfile = /var/log/bitflu/bitflu.log
loglevel = 5
min_free_mb = 0
pidfile = /var/run/bitflu/bitflu.pid
diff --git a/net-p2p/bitflu/files/bitflu.initd b/net-p2p/bitflu/files/bitflu.initd
index 7deb7f2..9494ec9 100644
--- a/net-p2p/bitflu/files/bitflu.initd
+++ b/net-p2p/bitflu/files/bitflu.initd
@@ -30,7 +30,7 @@ start() {
checkconfig || return 1
ebegin "Starting bitflu"
start-stop-daemon --start --pidfile "${PIDFILE}" --user bitflu:bitflu \
- --exec "${DAEMON}" -- --config="${CONFFILE}" --daemon -q
+ --exec "${DAEMON}" -- --config="${CONFFILE}" --daemon -q >/dev/null 2>&1
eend $?
}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] dev/blueness:master commit in: net-p2p/bitflu/files/, net-p2p/bitflu/
@ 2011-06-30 16:19 Anthony G. Basile
0 siblings, 0 replies; 4+ messages in thread
From: Anthony G. Basile @ 2011-06-30 16:19 UTC (permalink / raw
To: gentoo-commits
commit: 388efce16e8be9a055ff3758dead842b0580d8c6
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 30 16:18:53 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 16:18:53 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=388efce1
net-p2p/bitflu: moved to the tree
(Portage version: 2.1.9.42/git/Linux x86_64, signed Manifest commit with key 0xD0455535)
---
net-p2p/bitflu/ChangeLog | 12 ----
net-p2p/bitflu/Manifest | 17 -----
net-p2p/bitflu/bitflu-1.37.ebuild | 82 -------------------------
net-p2p/bitflu/files/bitflu-add-pidfile.patch | 23 -------
net-p2p/bitflu/files/bitflu.config | 45 --------------
net-p2p/bitflu/files/bitflu.initd | 47 --------------
net-p2p/bitflu/metadata.xml | 14 ----
7 files changed, 0 insertions(+), 240 deletions(-)
diff --git a/net-p2p/bitflu/ChangeLog b/net-p2p/bitflu/ChangeLog
deleted file mode 100644
index b2fa8f1..0000000
--- a/net-p2p/bitflu/ChangeLog
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
- 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
deleted file mode 100644
index db0405a..0000000
--- a/net-p2p/bitflu/Manifest
+++ /dev/null
@@ -1,17 +0,0 @@
------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 899 RMD160 96c9c3376ff9be0e7eddfb70ce4d7db745755544 SHA1 0713c040d4b7b5b62ce861433b8f184eb0fc8b3d SHA256 6d3c97b8192a8e4f5a0aa10b9e40662e51ad41fe108a6e42c8a572405bb55280
-DIST bitflu-1.37.tgz 157754 RMD160 0d5d7c2590d5cb07c9998ee0a6028ff860b44162 SHA1 90d0374272696c175debb73ebc06ff588438bc4c SHA256 c5e6b6fae5c797f4281ddafaa5e3ff8286a5c30758dddfbbdc2b75b1c60c437b
-EBUILD bitflu-1.37.ebuild 1926 RMD160 0b7ea87abc40c0f799a4072df6be26a7e3cb6807 SHA1 8ef054e50b93e61c598ffe9b2b66a5ce17c4b2d3 SHA256 7893d1b9e4b05e0c8f0c41e8b97676ae7a96e8294841de7bf8fb736aa3fc780a
-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)
-
-iEYEAREIAAYFAk4Mk/AACgkQl5yvQNBFVTVrvACfSwziAJDzqkUsR7yMnQKZSOT/
-RAgAoIx5n57XQAgvvGaf6HIv7b/utYzz
-=AOtg
------END PGP SIGNATURE-----
diff --git a/net-p2p/bitflu/bitflu-1.37.ebuild b/net-p2p/bitflu/bitflu-1.37.ebuild
deleted file mode 100644
index 0ffccd4..0000000
--- a/net-p2p/bitflu/bitflu-1.37.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-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
deleted file mode 100644
index 23783b2..0000000
--- a/net-p2p/bitflu/files/bitflu-add-pidfile.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- 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
deleted file mode 100644
index 760a9eb..0000000
--- a/net-p2p/bitflu/files/bitflu.config
+++ /dev/null
@@ -1,45 +0,0 @@
-# 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
deleted file mode 100644
index 9494ec9..0000000
--- a/net-p2p/bitflu/files/bitflu.initd
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-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
deleted file mode 100644
index a9dc13a..0000000
--- a/net-p2p/bitflu/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?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>
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-30 16:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-30 16:19 [gentoo-commits] dev/blueness:master commit in: net-p2p/bitflu/files/, net-p2p/bitflu/ Anthony G. Basile
-- strict thread matches above, loose matches on Subject: below --
2011-06-30 15:19 Anthony G. Basile
2011-06-30 9:48 Anthony G. Basile
2011-06-30 1:57 Anthony G. Basile
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox