summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2007-10-14 23:37:14 +0000
committerChristoph Mende <angelos@gentoo.org>2007-10-14 23:37:14 +0000
commit3dde0afaab2b5d15fbc22b7659b00ee49f9f1094 (patch)
tree07e4b62a76e83264356afa806799f552e2018239 /net-p2p
parentAdd local use flags for net-p2p/btg (diff)
downloadgentoo-2-3dde0afaab2b5d15fbc22b7659b00ee49f9f1094.tar.gz
gentoo-2-3dde0afaab2b5d15fbc22b7659b00ee49f9f1094.tar.bz2
gentoo-2-3dde0afaab2b5d15fbc22b7659b00ee49f9f1094.zip
Initial import
(Portage version: 2.1.3.13)
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/btg/ChangeLog10
-rw-r--r--net-p2p/btg/Manifest24
-rw-r--r--net-p2p/btg/btg-0.9.6.ebuild89
-rw-r--r--net-p2p/btg/files/btgd-confd6
-rw-r--r--net-p2p/btg/files/btgd-init42
-rw-r--r--net-p2p/btg/files/digest-btg-0.9.63
-rw-r--r--net-p2p/btg/metadata.xml10
7 files changed, 184 insertions, 0 deletions
diff --git a/net-p2p/btg/ChangeLog b/net-p2p/btg/ChangeLog
new file mode 100644
index 000000000000..58aab41bac7c
--- /dev/null
+++ b/net-p2p/btg/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-p2p/btg
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/btg/ChangeLog,v 1.1 2007/10/14 23:37:13 angelos Exp $
+
+*btg-0.9.6 (14 Oct 2007)
+
+ 14 Oct 2007; Christoph Mende <angelos@gentoo.org> +files/btgd-confd,
+ +files/btgd-init, +btg-0.9.6.ebuild:
+ Initial import
+
diff --git a/net-p2p/btg/Manifest b/net-p2p/btg/Manifest
new file mode 100644
index 000000000000..f63b339c93cc
--- /dev/null
+++ b/net-p2p/btg/Manifest
@@ -0,0 +1,24 @@
+AUX btgd-confd 158 RMD160 9b2c4939657bda56b69008470a18921a2cfcd507 SHA1 7b7a9cc53c2d4c7736d0cf8756220d5745cf64c0 SHA256 3cb4eb1569fe091f814e4cee78b3ab2433746f73e966f9cfd11797e4cada9f4f
+MD5 a7046b1485021e7084d7f81d485d39fd files/btgd-confd 158
+RMD160 9b2c4939657bda56b69008470a18921a2cfcd507 files/btgd-confd 158
+SHA256 3cb4eb1569fe091f814e4cee78b3ab2433746f73e966f9cfd11797e4cada9f4f files/btgd-confd 158
+AUX btgd-init 978 RMD160 c0581a187e0eae1836fbf31afb79a762877ac256 SHA1 a906c56843a21dd32ae1e3affdb8968fdab9c938 SHA256 7f9c4c216c6a1b8aa1d83cadcfcbc3732cdb8c18dfed41984f626e56ab842093
+MD5 ea6341f0a4ae10d2832a92715675aab3 files/btgd-init 978
+RMD160 c0581a187e0eae1836fbf31afb79a762877ac256 files/btgd-init 978
+SHA256 7f9c4c216c6a1b8aa1d83cadcfcbc3732cdb8c18dfed41984f626e56ab842093 files/btgd-init 978
+DIST btg-0.9.6-p1.tar.gz 1073862 RMD160 4b3d9f96481eafd4115cdef3047f1d4f80ca7bb8 SHA1 2ec586301d1f11475cb8a9c9c34e9ed45ca6b78d SHA256 862b670aff709762be2c8ec6b79d2d7d40268061660e5d3a4fa3db76a02af60c
+EBUILD btg-0.9.6.ebuild 2244 RMD160 4c516c6453934addbefd53376794c8c950ddb82e SHA1 4dabbab005761e8dda444342d279fadcae70a432 SHA256 22379d184806f802db1b222430a6d9c008cf123997b6a1f316e47ff0631ab1f9
+MD5 ae9750280965ecb8c2bd7362643c9c02 btg-0.9.6.ebuild 2244
+RMD160 4c516c6453934addbefd53376794c8c950ddb82e btg-0.9.6.ebuild 2244
+SHA256 22379d184806f802db1b222430a6d9c008cf123997b6a1f316e47ff0631ab1f9 btg-0.9.6.ebuild 2244
+MISC ChangeLog 266 RMD160 982d01f3022d88075a5cbdb0ed3f1093092de624 SHA1 fdc97e0892e1b5f4df103c4a28a0f424afcfa35c SHA256 bc47db9822980df117d0be61ac310976ae4e98b0b576acfc442b2d31267fe106
+MD5 0dd21acdcb855c5e60567b41ef927fdb ChangeLog 266
+RMD160 982d01f3022d88075a5cbdb0ed3f1093092de624 ChangeLog 266
+SHA256 bc47db9822980df117d0be61ac310976ae4e98b0b576acfc442b2d31267fe106 ChangeLog 266
+MISC metadata.xml 258 RMD160 6d4c6c4e7c021a3fc82145a078f8e113eb6f521a SHA1 02004f2821b6ac3f69abfbfdafc9744008535258 SHA256 ee85021b7ae93a2e1442a570b114d3c9bf2e577c16b7b1b409914983d5d55485
+MD5 303f6d39495a43786f7e5a07f5a12ea8 metadata.xml 258
+RMD160 6d4c6c4e7c021a3fc82145a078f8e113eb6f521a metadata.xml 258
+SHA256 ee85021b7ae93a2e1442a570b114d3c9bf2e577c16b7b1b409914983d5d55485 metadata.xml 258
+MD5 47e238922dd387dbf5af822edb31cb42 files/digest-btg-0.9.6 241
+RMD160 603323eafe0fcc2ef7477cf60e6eaaa3a91992df files/digest-btg-0.9.6 241
+SHA256 6acf85c232f3422b82ecb34e349831607e964637d41d1221c147d6fd944afed9 files/digest-btg-0.9.6 241
diff --git a/net-p2p/btg/btg-0.9.6.ebuild b/net-p2p/btg/btg-0.9.6.ebuild
new file mode 100644
index 000000000000..2e5c561ef3a7
--- /dev/null
+++ b/net-p2p/btg/btg-0.9.6.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/btg/btg-0.9.6.ebuild,v 1.1 2007/10/14 23:37:13 angelos Exp $
+
+inherit eutils
+
+DESCRIPTION="bittorrent client using rb_libtorrent"
+HOMEPAGE="http://btg.berlios.de/"
+SRC_URI="mirror://berlios/${PN}/${P}-p1.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug doc event-callback gtk minimal ncurses session test upnp webinterface"
+
+RDEPEND="dev-libs/boost
+ dev-libs/expat
+ dev-libs/libgcrypt
+ dev-libs/libgpg-error
+ dev-libs/libtasn1
+ dev-util/dialog
+ net-libs/gnutls
+ net-libs/rb_libtorrent
+ gtk? ( >=dev-cpp/gtkmm-2.4
+ x11-libs/pango )
+ webinterface? ( =dev-lang/php-5* )"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.21
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}/${PN}-${PV/_rc*}"
+
+pkg_setup() {
+ if ! built_with_use --missing true "dev-libs/boost" threads && \
+ ! built_with_use --missing true "dev-libs/boost" threads-only ; then
+ einfo
+ einfo "Compile dev-libs/boost with USE=threads or USE=threads-only"
+ einfo "if you want threading support for btg"
+ einfo
+ fi
+}
+
+src_compile() {
+ local myconf=""
+
+ if built_with_use --missing true "dev-libs/boost" threads || \
+ built_with_use --missing true "dev-libs/boost" threads-only ; then
+ myconf="--with-boost-iostreams=boost_iostreams-mt \
+ --with-boost-filesystem=boost_filesystem-mt \
+ --with-boost-thread=boost_thread-mt \
+ --with-boost-date-time=boost_date_time-mt \
+ --with-boost-program_options=boost_program_options-mt"
+ fi
+
+ econf \
+ $(use_enable debug) \
+ $(use_enable gtk gui) \
+ $(use_enable ncurses cli) \
+ $(use_enable upnp) \
+ $(use_enable event-callback)
+ $(use_enable session session-saving) \
+ $(use_enable test unittest) \
+ $(use_enable webinterface www) \
+ $(use_enable !minimal command-list) \
+ ${myconf} \
+ --disable-dependency-tracking \
+ || die
+
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog README TODO
+
+ newinitd "${FILESDIR}/btgd-init" ${PN}
+ newconfd "${FILESDIR}/btgd-confd" ${PN}
+}
+
+pkg_postinst() {
+ enewgroup p2p
+ enewuser p2p -1 -1 /home/p2p p2p
+
+ einfo
+ einfo "BTG needs a daemon.ini and client.ini, to create them run btg-config"
+ einfo "and put them in the user running btg (/home/p2p by default)"
+ einfo
+}
diff --git a/net-p2p/btg/files/btgd-confd b/net-p2p/btg/files/btgd-confd
new file mode 100644
index 000000000000..1720286c8713
--- /dev/null
+++ b/net-p2p/btg/files/btgd-confd
@@ -0,0 +1,6 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/btg/files/btgd-confd,v 1.1 2007/10/14 23:37:14 angelos Exp $
+
+# User that runs btgd
+BTG_USER="p2p"
diff --git a/net-p2p/btg/files/btgd-init b/net-p2p/btg/files/btgd-init
new file mode 100644
index 000000000000..c52a968912f9
--- /dev/null
+++ b/net-p2p/btg/files/btgd-init
@@ -0,0 +1,42 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/btg/files/btgd-init,v 1.1 2007/10/14 23:37:14 angelos Exp $
+
+BTG_HOME="$(getent passwd ${BTG_USER} | cut -d : -f 6)"
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ -z ${BTG_USER} ]; then
+ eerror "BTG_USER unset, please edit /etc/conf.d/btgd first"
+ return 1
+ elif [ ! -d "${BTG_HOME}" ]; then
+ eerror "The home for ${BTG_USER} does not exist"
+ eerror "Please check /etc/conf.d/btgd"
+ return 1
+ elif [ ! -f "${BTG_HOME}/.btg/daemon.ini" ]; then
+ eerror "Unable to find daemon.ini in ${BTG_HOME}/.btg"
+ eerror "Please run btg-config first"
+ return 1
+ fi
+}
+
+start() {
+ ebegin "Starting BTG Daemon"
+ checkconfig || return 1
+
+ start-stop-daemon --start \
+ -c ${BTG_USER} --quiet -b --make-pidfile \
+ --pidfile /var/run/btgdaemon.pid \
+ -x /usr/bin/btgdaemon -- -n
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping BTG Daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/btgdaemon.pid
+ eend $?
+}
diff --git a/net-p2p/btg/files/digest-btg-0.9.6 b/net-p2p/btg/files/digest-btg-0.9.6
new file mode 100644
index 000000000000..707c17258963
--- /dev/null
+++ b/net-p2p/btg/files/digest-btg-0.9.6
@@ -0,0 +1,3 @@
+MD5 364111ab4a98b5a97bd0beca7cf41ab3 btg-0.9.6-p1.tar.gz 1073862
+RMD160 4b3d9f96481eafd4115cdef3047f1d4f80ca7bb8 btg-0.9.6-p1.tar.gz 1073862
+SHA256 862b670aff709762be2c8ec6b79d2d7d40268061660e5d3a4fa3db76a02af60c btg-0.9.6-p1.tar.gz 1073862
diff --git a/net-p2p/btg/metadata.xml b/net-p2p/btg/metadata.xml
new file mode 100644
index 000000000000..47aad25f455e
--- /dev/null
+++ b/net-p2p/btg/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>angelos@gentoo.org</email>
+ <name>Christoph Mende</name>
+ </maintainer>
+</pkgmetadata>
+