diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2008-12-26 07:01:43 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2008-12-26 07:01:43 +0000 |
commit | a58d9270eaba9487d8a0eab5116e57f924cf0cb5 (patch) | |
tree | 2f319bbb0e894f40408d6f1b97b5b20504766254 /net-p2p/rtorrent | |
parent | amd64 stable, bug #252525 (diff) | |
download | historical-a58d9270eaba9487d8a0eab5116e57f924cf0cb5.tar.gz historical-a58d9270eaba9487d8a0eab5116e57f924cf0cb5.tar.bz2 historical-a58d9270eaba9487d8a0eab5116e57f924cf0cb5.zip |
Add a new USE=daemon flag to provide init scripts. bug #250578
Package-Manager: portage-2.2_rc18/cvs/Linux 2.6.27.10 x86_64
Diffstat (limited to 'net-p2p/rtorrent')
-rw-r--r-- | net-p2p/rtorrent/ChangeLog | 9 | ||||
-rw-r--r-- | net-p2p/rtorrent/Manifest | 8 | ||||
-rw-r--r-- | net-p2p/rtorrent/files/rtorrentd.conf | 1 | ||||
-rw-r--r-- | net-p2p/rtorrent/files/rtorrentd.init | 23 | ||||
-rw-r--r-- | net-p2p/rtorrent/metadata.xml | 9 | ||||
-rw-r--r-- | net-p2p/rtorrent/rtorrent-0.8.4-r1.ebuild (renamed from net-p2p/rtorrent/rtorrent-0.8.4.ebuild) | 15 |
6 files changed, 57 insertions, 8 deletions
diff --git a/net-p2p/rtorrent/ChangeLog b/net-p2p/rtorrent/ChangeLog index 166795efbd88..14e66e062238 100644 --- a/net-p2p/rtorrent/ChangeLog +++ b/net-p2p/rtorrent/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-p2p/rtorrent # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/rtorrent/ChangeLog,v 1.127 2008/11/19 19:01:49 loki_val Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/rtorrent/ChangeLog,v 1.128 2008/12/26 07:01:42 darkside Exp $ + +*rtorrent-0.8.4-r1 (26 Dec 2008) + + 26 Dec 2008; Jeremy Olexa <darkside@gentoo.org> +files/rtorrentd.conf, + +files/rtorrentd.init, metadata.xml, -rtorrent-0.8.4.ebuild, + +rtorrent-0.8.4-r1.ebuild: + Add a new USE=daemon flag to provide init scripts. bug #250578 *rtorrent-0.8.4 (19 Nov 2008) diff --git a/net-p2p/rtorrent/Manifest b/net-p2p/rtorrent/Manifest index 1ea51ad8e03e..6380cc8c8d1d 100644 --- a/net-p2p/rtorrent/Manifest +++ b/net-p2p/rtorrent/Manifest @@ -6,6 +6,8 @@ AUX rtorrent-0.8.2-fix_scgi_crash.patch 656 RMD160 24447e6dac267fb5f7a3d8837744a AUX rtorrent-0.8.2-fix_start_stop_filter.patch 701 RMD160 6b109e050cc1e66d2d9874bce0fdf599188978c9 SHA1 3289506a9c76d080edbeb3ef1a42694a64da6c4d SHA256 d422c5d9a82a0d799f3b949e4b0d2fd293d98baab1fb293642544895ece75926 AUX rtorrent-0.8.2-fix_utf8_filenames.patch 8196 RMD160 80af83b87f3794a3e6d9c1216df3559c38f12df0 SHA1 d1e4615aaefab05731010dc05167e912974581bc SHA256 84df9c827d63b81387e7720bbc9436765a940c18f972e655ecc8bc562039c532 AUX rtorrent-0.8.2-gcc34.patch 659 RMD160 c89a0c7b2acb6db4ce19fbb7a75f1da65638cd2b SHA1 d1afe3ca20a9b9b60056b7941ae7f81dcee558a0 SHA256 a89b48546be2c0728129feff223ed4e03a7c40bbc37e9bead9c13cf20c5cd00d +AUX rtorrentd.conf 13 RMD160 aafd4d8440f40ae380b482876968f80267dff3bd SHA1 8b50885e27a2ff85cd28fccb56c11ead26d0ba49 SHA256 6725e7a3ed74f1432bd6b317f2aec7f9609bc20dd81dbbfcc632342c9f99177b +AUX rtorrentd.init 569 RMD160 592533e8909195854cce014d818fdc63ff8926ee SHA1 3feec5baca10bccbfb9b6658d3d1fc61f75ee593 SHA256 ae909789dceb1c620b2ba6587e2d661a6e8340e7cf98636b3c81a3db259b1170 DIST rtorrent-0.7.9.tar.gz 489174 RMD160 8cfee138c0142ad22830b3d518e198f163063a84 SHA1 0b53bd3b2c15f93352607ab3685916fe27033450 SHA256 f06f72b1fec94177147b1db0aab15be4f62d1b0354811a67ae74e0cd1e50a119 DIST rtorrent-0.8.2.tar.gz 506015 RMD160 e86b0082d1788e4e7cd8fcf631f7f857d642c799 SHA1 891093c5d600c2e3853eadbbec369a12dfe6ec11 SHA256 76135a63869e43fa0392829bb45d94c0aa55e94350dddc272685ccfac1bbb2ed DIST rtorrent-0.8.3.tar.gz 512961 RMD160 bbb51aa44b72ed34c53bfd20dd15fa4aafe302d5 SHA1 c6233de4b4b8d3901472696581ed88a0cd07d11d SHA256 554456550ca6e792297d6d39367120af5b2bd6181d514a43faf4e2f565721908 @@ -14,6 +16,6 @@ EBUILD rtorrent-0.7.9.ebuild 1350 RMD160 c1141fa14d1e09ed6ba64fce18263654dfb839f EBUILD rtorrent-0.8.2-r3.ebuild 1982 RMD160 136f89a6f33f12afb59a3c4f95516126f02ee493 SHA1 def8fd432fc9c297d1244c32569816638f9a7f83 SHA256 684f2a2956782c90bd1fff1b03064c129c26b4a0adabcfa9c87b0ba81b712670 EBUILD rtorrent-0.8.2-r5.ebuild 2154 RMD160 317c858953d9db2b7687c1a46fa3a61eca0597ee SHA1 77951c24bcd0e98b5767513d6e756f7a77889ba5 SHA256 e84686911f22b6c373314079a7be416d997e39c72cae05d86c4c39214ec7a625 EBUILD rtorrent-0.8.3.ebuild 1752 RMD160 4d08900f844db8c7d138f3909da81eac96ca09ca SHA1 5b858b67cc6f8720ae13e671122da8fcc57c84bf SHA256 c852a762f56271b8a1d3e8fc41842a06d607fe63f896816363522d4424f70c9e -EBUILD rtorrent-0.8.4.ebuild 1750 RMD160 776914c97528e7ce5356b57113b9c7b2f2734765 SHA1 b8ed5dbcf166a3b99c9624034406f427ad7348b0 SHA256 ae5d6512dfe898e43b8fe8173b381c9c22ee3fda548ddc3aa0f4c12686335e06 -MISC ChangeLog 18506 RMD160 fe2f0e36bee52fa4b5298e1dd15220ed25ef784d SHA1 acf2b3a4cda4ff8add6cba81aabec52cc2db535c SHA256 f438953eddb127ee0ca29a1115a1775e2cdb219b92e641ad1cde143830e17589 -MISC metadata.xml 592 RMD160 e65e635c888aaa1932efb1d3684643f814f92710 SHA1 189fe22f0af84cc26784ee5b0e3390eac001d9df SHA256 d0659456da6746a9a6f0c7a10f5fad958d2c0bcf56750d18c26e3cfad5dd6560 +EBUILD rtorrent-0.8.4-r1.ebuild 2004 RMD160 c3e79719b5b7259fe906aa0ed77d332eda016e9e SHA1 d6da2466573d37b69664a7d9e04a6fab16bf3a6d SHA256 a3caa6d928d52e7e2b75e16f38616615d97e21d18a4b1b47363a26ac4aea5f0e +MISC ChangeLog 18771 RMD160 04eeaf91caf6096ff13c5db711af79ccb64a773b SHA1 e1d6bf5d55638cffe0d6f239e818858530bd6608 SHA256 65679dd155348bda9d134a7b6b30aec404a6e482ac4a949ee6b23608cc9a457d +MISC metadata.xml 834 RMD160 6dfc56bd58b08c2be67506de9f22e186de2abe81 SHA1 3aaf9f22e1697b291f9d7564b48416d4f9231057 SHA256 6b74449e8e0a52a8b36f82e855d52e14d47e7a7bd76a7f66b9da2a66ff981eda diff --git a/net-p2p/rtorrent/files/rtorrentd.conf b/net-p2p/rtorrent/files/rtorrentd.conf new file mode 100644 index 000000000000..5ff2328b2544 --- /dev/null +++ b/net-p2p/rtorrent/files/rtorrentd.conf @@ -0,0 +1 @@ +USER="$USER" diff --git a/net-p2p/rtorrent/files/rtorrentd.init b/net-p2p/rtorrent/files/rtorrentd.init new file mode 100644 index 000000000000..316cd2b4faec --- /dev/null +++ b/net-p2p/rtorrent/files/rtorrentd.init @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/rtorrent/files/rtorrentd.init,v 1.1 2008/12/26 07:01:43 darkside Exp $ + +depend() { + use net.* +} + +start() { + ebegin "Starting rtorrent" + start-stop-daemon --start --chuid $USER \ + --env TERM="xterm" \ + --env HOME="/home/$USER" \ + --exec /usr/bin/screen -- -dmS rtorrentd /usr/bin/rtorrent + eend $? +} + +stop() { + ebegin "Stopping rtorrent" + start-stop-daemon --stop --signal 2 --name rtorrent + eend $? +} diff --git a/net-p2p/rtorrent/metadata.xml b/net-p2p/rtorrent/metadata.xml index 43c12b95722f..2146b1f9fc63 100644 --- a/net-p2p/rtorrent/metadata.xml +++ b/net-p2p/rtorrent/metadata.xml @@ -12,8 +12,17 @@ <name>Timothy Redaelli</name> <description>Secondary Maintainer</description> </maintainer> +<maintainer> + <email>darkside@gentoo.org</email> + <description>Only CC on bugs regarding the init script.</description> +</maintainer> <longdescription lang="en"> Console BitTorrent client using ncurses based on libtorrent written in C++. </longdescription> +<use> + <flag name='daemon'>Uses <pkg>app-misc/screen</pkg> to daemonize this + application" + </flag> +</use> </pkgmetadata> diff --git a/net-p2p/rtorrent/rtorrent-0.8.4.ebuild b/net-p2p/rtorrent/rtorrent-0.8.4-r1.ebuild index 5e8f4bbffcf5..6df6420c738e 100644 --- a/net-p2p/rtorrent/rtorrent-0.8.4.ebuild +++ b/net-p2p/rtorrent/rtorrent-0.8.4-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/rtorrent/rtorrent-0.8.4.ebuild,v 1.1 2008/11/19 19:01:49 loki_val Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/rtorrent/rtorrent-0.8.4-r1.ebuild,v 1.1 2008/12/26 07:01:42 darkside Exp $ inherit base eutils toolchain-funcs flag-o-matic @@ -11,14 +11,16 @@ SRC_URI="http://libtorrent.rakshasa.no/downloads/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="debug ipv6 xmlrpc" +IUSE="daemon debug ipv6 xmlrpc" -RDEPEND=">=net-libs/libtorrent-0.12.${PV##*.} +COMMON_DEPEND=">=net-libs/libtorrent-0.12.${PV##*.} >=dev-libs/libsigc++-2.2.2 >=net-misc/curl-7.19.1 sys-libs/ncurses xmlrpc? ( dev-libs/xmlrpc-c )" -DEPEND="${RDEPEND} +RDEPEND="${COMMON_DEPEND} + daemon? ( app-misc/screen )" +DEPEND="${COMMON_DEPEND} dev-util/pkgconfig" PATCHES=( "${FILESDIR}/${PN}-0.8.2-gcc34.patch" ) @@ -43,6 +45,11 @@ src_compile() { src_install() { emake DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS README TODO doc/rtorrent.rc + + if use daemon; then + newinitd "${FILESDIR}/rtorrentd.init" rtorrentd || die "newinitd failed" + newconfd "${FILESDIR}/rtorrentd.conf" rtorrentd || die "newconfd failed" + fi } pkg_postinst() { |