changeset 290:eb98558e684c

bump deluge to 1.3.3
author holger
date Sat, 23 Jul 2011 21:07:52 +0200
parents 001d8f3f0b6e
children fdad4702a3f4
files net-p2p/deluge/Manifest net-p2p/deluge/deluge-1.3.3.ebuild net-p2p/deluge/files/deluged.conf net-p2p/deluge/files/deluged.init net-p2p/deluge/metadata.xml
diffstat 5 files changed, 164 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-p2p/deluge/Manifest	Sat Jul 23 21:07:52 2011 +0200
@@ -0,0 +1,5 @@
+AUX deluged.conf 184 RMD160 f1721fcc20b77836c783cbe4e7492748902f0428 SHA1 e330df742ae8f21e7dfbbaa31f181279ef96e3b8 SHA256 9f686931e7f5c337d4866d91ae725b0a983ee2a409eee69a197e7db8e4bc2b3d
+AUX deluged.init 2057 RMD160 1be6d3459ea5dfd912363755aebd5cbca90a6c85 SHA1 2260e7b5f48c255c8f8b59ad4e44c0eb8c76ac1f SHA256 c3c87e243d462fdc81329e22527ae2bd55f4d99bb1ca7d527aba343eec39516a
+DIST deluge-1.3.3.tar.lzma 2094978 RMD160 d6044714dd242d9758436f5d0194a37f298f5dc0 SHA1 5bf22824cc5181c789429575d5d4a40f2e7d3cc6 SHA256 c40e0f5757bc3912e9628e1a68dfa41cd487beca370c315f5d31261b931cea05
+EBUILD deluge-1.3.3.ebuild 1786 RMD160 06803542ff9301a3dde9c478ef5d8c4a9be717b1 SHA1 7282ba9c699421f7154a9adee2f93f319c66d8da SHA256 890f5f8a2e23f25bcafeb50389841b193d2a8bc8e82d8ff8adb034aab39e0f1c
+MISC metadata.xml 322 RMD160 ba506cbedd76759bd1b14d569d0d121a1644fa75 SHA1 811976e88cb463281a74ac671ca920b9a15f15c3 SHA256 e88e99b119abf92a69e2115263e6992e6b2a6f711d810e6234c0cfaa21bc1d1f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-p2p/deluge/deluge-1.3.3.ebuild	Sat Jul 23 21:07:52 2011 +0200
@@ -0,0 +1,68 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/deluge-1.3.2.ebuild,v 1.1 2011/06/05 11:54:47 armin76 Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2:2.5"
+
+inherit distutils flag-o-matic
+
+DESCRIPTION="BitTorrent client with a client/server model."
+HOMEPAGE="http://deluge-torrent.org/"
+SRC_URI="http://download.deluge-torrent.org/source/${P}.tar.lzma"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86"
+IUSE="gtk libnotify webinterface"
+
+DEPEND=">=net-libs/rb_libtorrent-0.14.9[python]
+	dev-python/setuptools"
+RDEPEND="${DEPEND}
+	dev-python/chardet
+	dev-python/pyopenssl
+	dev-python/pyxdg
+	|| ( dev-lang/python:2.7 dev-lang/python:2.6 dev-python/simplejson )
+	>=dev-python/twisted-8.1
+	>=dev-python/twisted-web-8.1
+	gtk? (
+		dev-python/pygame
+		dev-python/pygobject
+		>=dev-python/pygtk-2.12
+		gnome-base/librsvg
+		libnotify? ( dev-python/notify-python )
+	)
+	webinterface? ( dev-python/mako )"
+
+pkg_setup() {
+	append-ldflags $(no-as-needed)
+	python_set_active_version 2
+	python_pkg_setup
+}
+
+src_prepare() {
+	distutils_src_prepare
+	python_convert_shebangs -r 2 .
+}
+
+src_install() {
+	distutils_src_install
+	newinitd "${FILESDIR}"/deluged.init deluged
+	newconfd "${FILESDIR}"/deluged.conf deluged
+}
+
+pkg_postinst() {
+	distutils_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 "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
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-p2p/deluge/files/deluged.conf	Sat Jul 23 21:07:52 2011 +0200
@@ -0,0 +1,7 @@
+# /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=""
+DELUGEUI_START="false"
+DELUGEUI_OPTS="-u web"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-p2p/deluge/files/deluged.init	Sat Jul 23 21:07:52 2011 +0200
@@ -0,0 +1,71 @@
+#!/sbin/runscript
+# Copyright 1999-2010 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.6 2010/10/02 15:36:03 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 "${DELUGED_USER%:*}" >/dev/null ; then
+		eerror "Please edit /etc/conf.d/deluged"
+		eerror "Your user has to exist!"
+		return 1
+	fi
+	if [ "${DELUGED_USER%:*}" = "${DELUGED_USER}" ] ; then
+		return 0
+	else
+		if ! getent group "${DELUGED_USER#*:}" >/dev/null ; then
+			eerror "Please edit /etc/conf.d/deluged"
+			eerror "Your group has to exist too!"
+			return 1
+		fi
+	fi	
+	return 0
+}
+
+start() {
+	checkconfig || return $?
+	if [ "${DELUGED_HOME}" = "" ] ; then
+		DELUGED_USER_HOME=$(getent passwd "${DELUGED_USER%:*}" | cut -d ':' -f 6)
+	else
+		DELUGED_USER_HOME=${DELUGED_HOME}
+	fi
+	ebegin "Starting Deluged"
+	start-stop-daemon --start --user "${DELUGED_USER}" \
+	--name deluged --pidfile /var/run/deluged.pid --background --make-pidfile \
+	--exec /usr/bin/deluged -c "${DELUGED_USER}" -e HOME=${DELUGED_USER_HOME} -- --do-not-daemonize "${DELUGED_OPTS}"
+	eend $?
+
+	
+	if [ "${DELUGEUI_START}" = "true" ] ; then
+		ebegin "Starting Deluge"
+		start-stop-daemon --start --background --pidfile \
+		/var/run/deluge.pid  --make-pidfile \
+		--exec /usr/bin/deluge -c "${DELUGED_USER}" \
+		-e HOME="${DELUGED_USER_HOME}" -- ${DELUGEUI_OPTS}
+		eend $?
+	fi
+}
+
+stop() {
+	ebegin "Stopping Deluged"
+	start-stop-daemon --stop --user "${DELUGED_USER}" \
+	--name deluged --pidfile /var/run/deluged.pid
+	eend $?
+
+
+	if [ "${DELUGEUI_START}" = "true" ] ; then
+		ebegin "Stopping Deluge"
+		start-stop-daemon --stop --user "${DELUGED_USER}" \
+		--name deluge --pidfile /var/run/deluge.pid
+		eend $?
+	fi
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-p2p/deluge/metadata.xml	Sat Jul 23 21:07:52 2011 +0200
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-p2p</herd>
+<maintainer>
+<email>net-p2p@gentoo.org</email>
+</maintainer>
+<use>
+	<flag name='webinterface'>Install dependencies needed for the web
+		interface
+	</flag>
+</use>
+</pkgmetadata>