From d3e8ecf2af88452ef932d7df03224b510157f376 Mon Sep 17 00:00:00 2001 From: Raúl Porcel Date: Thu, 12 Jun 2008 15:44:36 +0000 Subject: Add 0.6 livesvn ebuild, bug #220355, thanks to Benedikt Morbach and Andrew Resch (Portage version: 2.1.5.4) --- net-p2p/deluge/ChangeLog | 11 +++++- net-p2p/deluge/deluge-0.5.9999.ebuild | 47 ++++++++++++++++++++++++ net-p2p/deluge/deluge-0.6_pre9999.ebuild | 62 ++++++++++++++++++++++++++++++++ net-p2p/deluge/deluge-9999.ebuild | 47 ------------------------ net-p2p/deluge/files/deluged.conf | 4 +++ net-p2p/deluge/files/deluged.init | 48 +++++++++++++++++++++++++ 6 files changed, 171 insertions(+), 48 deletions(-) create mode 100644 net-p2p/deluge/deluge-0.5.9999.ebuild create mode 100644 net-p2p/deluge/deluge-0.6_pre9999.ebuild delete mode 100644 net-p2p/deluge/deluge-9999.ebuild create mode 100644 net-p2p/deluge/files/deluged.conf create mode 100644 net-p2p/deluge/files/deluged.init (limited to 'net-p2p/deluge') diff --git a/net-p2p/deluge/ChangeLog b/net-p2p/deluge/ChangeLog index 6de681f20550..475fffcffd17 100644 --- a/net-p2p/deluge/ChangeLog +++ b/net-p2p/deluge/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-p2p/deluge # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/ChangeLog,v 1.71 2008/05/21 10:51:29 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/ChangeLog,v 1.72 2008/06/12 15:44:35 armin76 Exp $ + +*deluge-0.6_pre9999 (12 Jun 2008) +*deluge-0.5.9999 (12 Jun 2008) + + 12 Jun 2008; Raúl Porcel +files/deluged.conf, + +files/deluged.init, +deluge-0.5.9999.ebuild, +deluge-0.6_pre9999.ebuild, + -deluge-9999.ebuild: + Add 0.6 livesvn ebuild, bug #220355, thanks to Benedikt Morbach and Andrew + Resch *deluge-0.5.9.1 (21 May 2008) diff --git a/net-p2p/deluge/deluge-0.5.9999.ebuild b/net-p2p/deluge/deluge-0.5.9999.ebuild new file mode 100644 index 000000000000..b17496a45ec3 --- /dev/null +++ b/net-p2p/deluge/deluge-0.5.9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/deluge-0.5.9999.ebuild,v 1.1 2008/06/12 15:44:35 armin76 Exp $ + +inherit eutils distutils subversion flag-o-matic + +ESVN_REPO_URI="http://svn.deluge-torrent.org/trunk/" +ESVN_PROJECT="deluge" + +DESCRIPTION="BitTorrent client in Python and PyGTK." +HOMEPAGE="http://deluge-torrent.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="libnotify" + +DEPEND=">=dev-lang/python-2.3 + dev-libs/boost" +RDEPEND="${DEPEND} + >=dev-python/pygtk-2 + dev-python/pyxdg + dev-python/dbus-python + gnome-base/librsvg + libnotify? ( dev-python/notify-python )" + +pkg_setup() { + if ! built_with_use --missing true "dev-libs/boost" threads; then + eerror "dev-libs/boost has to be built with threads USE-flag." + die "Missing threads USE-flag for dev-libs/boost" + fi + + filter-ldflags -Wl,--as-needed +} + +pkg_postinst() { + elog + elog "If after upgrading it doesn't work, please remove the" + elog "'~/.config/deluge' directory and try again, but make a backup" + elog "first!" + elog + elog "Please note that Deluge is still in it's early stages" + elog "of development. Use it carefully and feel free to submit bugs" + elog "in upstream page." + elog +} diff --git a/net-p2p/deluge/deluge-0.6_pre9999.ebuild b/net-p2p/deluge/deluge-0.6_pre9999.ebuild new file mode 100644 index 000000000000..85dfa84eac13 --- /dev/null +++ b/net-p2p/deluge/deluge-0.6_pre9999.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/deluge-0.6_pre9999.ebuild,v 1.1 2008/06/12 15:44:35 armin76 Exp $ + +inherit eutils distutils subversion flag-o-matic + +ESVN_REPO_URI="http://svn.deluge-torrent.org/branches/deluge-0.6" +ESVN_PROJECT="deluge-0.6" + +DESCRIPTION="BitTorrent client with a client/server model." +HOMEPAGE="http://deluge-torrent.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="gtk" + +DEPEND=">=dev-lang/python-2.3 + dev-libs/boost" +RDEPEND="${DEPEND} + dev-python/pyxdg + gtk? ( + >=dev-python/pygtk-2 + dev-python/pyxdg + dev-python/dbus-python + gnome-base/librsvg + )" + +pkg_setup() { + if ! built_with_use --missing true "dev-libs/boost" threads; then + eerror "dev-libs/boost has to be built with threads USE-flag." + die "Missing threads USE-flag for dev-libs/boost" + fi + + filter-ldflags -Wl,--as-needed +} + +src_install() { + distutils_src_install + newinitd "${FILESDIR}"/deluged.init deluged + newconfd "${FILESDIR}"/deluged.conf deluged +} + +pkg_postinst() { + elog + elog "If after upgrading it doesn't work, please remove the" + elog "'~/.config/deluge' directory and try again, but make a backup" + elog "first!" + elog + einfo "Please note that Deluge is still in it's early stages" + einfo "of development. Use it carefully and feel free to submit bugs" + einfo "in upstream page." + elog + elog "To start the daemon either run 'deluged' as user" + elog "or modify /etc/conf.d/deluged and run" + elog "/etc/init.d/deluged start as root" + elog "You can still use deluge the old way" + elog + elog "For more information look at http://dev.deluge-torrent.org/wiki/Faq" + elog +} diff --git a/net-p2p/deluge/deluge-9999.ebuild b/net-p2p/deluge/deluge-9999.ebuild deleted file mode 100644 index 6983f6f74951..000000000000 --- a/net-p2p/deluge/deluge-9999.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/deluge-9999.ebuild,v 1.11 2008/04/19 17:07:55 armin76 Exp $ - -inherit eutils distutils subversion flag-o-matic - -ESVN_REPO_URI="http://svn.deluge-torrent.org/trunk/" -ESVN_PROJECT="deluge" - -DESCRIPTION="BitTorrent client in Python and PyGTK." -HOMEPAGE="http://deluge-torrent.org/" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="" -IUSE="libnotify" - -DEPEND=">=dev-lang/python-2.3 - dev-libs/boost" -RDEPEND="${DEPEND} - >=dev-python/pygtk-2 - dev-python/pyxdg - dev-python/dbus-python - gnome-base/librsvg - libnotify? ( dev-python/notify-python )" - -pkg_setup() { - if ! built_with_use --missing true "dev-libs/boost" threads; then - eerror "dev-libs/boost has to be built with threads USE-flag." - die "Missing threads USE-flag for dev-libs/boost" - fi - - filter-ldflags -Wl,--as-needed -} - -pkg_postinst() { - elog - elog "If after upgrading it doesn't work, please remove the" - elog "'~/.config/deluge' directory and try again, but make a backup" - elog "first!" - elog - elog "Please note that Deluge is still in it's early stages" - elog "of development. Use it carefully and feel free to submit bugs" - elog "in upstream page." - elog -} diff --git a/net-p2p/deluge/files/deluged.conf b/net-p2p/deluge/files/deluged.conf new file mode 100644 index 000000000000..a09d559c273f --- /dev/null +++ b/net-p2p/deluge/files/deluged.conf @@ -0,0 +1,4 @@ +# /etc/conf.d/deluged +# Change this to the user you want to run deluged as. +# You may specify a group too, after a colon +DELUGED_USER="" diff --git a/net-p2p/deluge/files/deluged.init b/net-p2p/deluge/files/deluged.init new file mode 100644 index 000000000000..e5b89f3fae51 --- /dev/null +++ b/net-p2p/deluge/files/deluged.init @@ -0,0 +1,48 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/files/deluged.init,v 1.1 2008/06/12 15:44:36 armin76 Exp $ + +depend() { + need net +} + +checkconfig() { + if [[ "${DELUGED_USER}" == "" ]] ; then + eerror "Please edit /etc/conf.d/deluged" + eerror "You have to specify a user to run deluged as, as we will not run it as root!" + eerror "Modify DELUGED_USER to your needs (you can also add a group, after a colon)" + return 1 + fi + if ! `getent passwd | cut -d ':' -f 1 | grep $( echo "${DELUGED_USER}" | cut -d ':' -f 1 ) -sq` ; then + eerror "Please edit /etc/conf.d/deluged" + eerror "Your user has to exist!" + return 1 + fi + if ! `echo "${DELUGED_USER}" | grep ':' -sq` ; then + return 0 + else + if ! `cut -d ':' -f 1 /etc/group | grep $( echo "${DELUGED_USER}" | cut -d ':' -f 2 ) -sq` ; then + eerror "Please edit /etc/conf.d/deluged" + eerror "Your group has to exist too!" + return 1 + fi + fi + return 0 +} + +start() { + checkconfig || return $? + ebegin "Starting Deluged" + start-stop-daemon --start --user "${DELUGED_USER}" \ + --name deluged --pidfile /var/run/deluged.pid --background --make-pidfile \ + --exec /usr/bin/deluged -- --do-not-daemonize "${DELUDED_OPTS}" + eend $? +} + +stop() { + ebegin "Stopping Deluged" + start-stop-daemon --stop --user "${DELUGED_USER}" \ + --name deluged --pidfile /var/run/deluged.pid + eend $? +} -- cgit v1.2.3-65-gdbad