summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-07-13 12:44:16 +0000
committerPacho Ramos <pacho@gentoo.org>2013-07-13 12:44:16 +0000
commit6e4968cca02ab3674328792efd459e5a551a34d1 (patch)
tree061bed503ddc80ea89d69cd53bac2a8afc098812 /net-p2p
parentInitial commit, wrt bug #288177 (diff)
downloadgentoo-2-6e4968cca02ab3674328792efd459e5a551a34d1.tar.gz
gentoo-2-6e4968cca02ab3674328792efd459e5a551a34d1.tar.bz2
gentoo-2-6e4968cca02ab3674328792efd459e5a551a34d1.zip
Install unit file (#475868)
(Portage version: 2.1.12.11/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/deluge/ChangeLog6
-rw-r--r--net-p2p/deluge/deluge-1.3.6.ebuild6
-rw-r--r--net-p2p/deluge/files/deluge-web.service11
-rw-r--r--net-p2p/deluge/files/deluged.service13
4 files changed, 33 insertions, 3 deletions
diff --git a/net-p2p/deluge/ChangeLog b/net-p2p/deluge/ChangeLog
index 066bff0ce523..134d1a6ee78e 100644
--- a/net-p2p/deluge/ChangeLog
+++ b/net-p2p/deluge/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-p2p/deluge
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/ChangeLog,v 1.184 2013/04/01 08:38:38 heroxbd Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/ChangeLog,v 1.185 2013/07/13 12:44:16 pacho Exp $
+
+ 13 Jul 2013; Pacho Ramos <pacho@gentoo.org> +files/deluge-web.service,
+ +files/deluged.service, deluge-1.3.6.ebuild:
+ Install unit file (#475868)
01 Apr 2013; Benda Xu <heroxbd@gentoo.org> deluge-1.3.6.ebuild:
sound USE flag to handle dependency of dev-python/pygame, bug 312769. Thanks
diff --git a/net-p2p/deluge/deluge-1.3.6.ebuild b/net-p2p/deluge/deluge-1.3.6.ebuild
index e0b82da1c89f..ee2f203ecb33 100644
--- a/net-p2p/deluge/deluge-1.3.6.ebuild
+++ b/net-p2p/deluge/deluge-1.3.6.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/deluge-1.3.6.ebuild,v 1.2 2013/04/01 08:38:38 heroxbd Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/deluge-1.3.6.ebuild,v 1.3 2013/07/13 12:44:16 pacho Exp $
EAPI="3"
PYTHON_DEPEND="2:2.5"
-inherit distutils eutils python
+inherit distutils eutils python systemd
DESCRIPTION="BitTorrent client with a client/server model."
HOMEPAGE="http://deluge-torrent.org/"
@@ -53,6 +53,8 @@ src_install() {
distutils_src_install
newinitd "${FILESDIR}"/deluged.init deluged
newconfd "${FILESDIR}"/deluged.conf deluged
+ systemd_dounit "${FILESDIR}"/deluged.service
+ systemd_dounit "${FILESDIR}"/deluge-web.service
}
pkg_postinst() {
diff --git a/net-p2p/deluge/files/deluge-web.service b/net-p2p/deluge/files/deluge-web.service
new file mode 100644
index 000000000000..426401a95e08
--- /dev/null
+++ b/net-p2p/deluge/files/deluge-web.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Deluge WebUI
+After=deluged.service
+
+[Service]
+User=deluge
+ExecStart=/usr/bin/deluge-web
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/net-p2p/deluge/files/deluged.service b/net-p2p/deluge/files/deluged.service
new file mode 100644
index 000000000000..74876b008ccf
--- /dev/null
+++ b/net-p2p/deluge/files/deluged.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Deluge BitTorrent client
+After=network.target local-fs.target
+Wants=local-fs.target
+
+[Service]
+EnvironmentFile=/etc/conf.d/deluged
+User=deluge
+Group=deluge
+ExecStart=/usr/bin/deluged -d -p $DELUGED_PORT $DELUGED_OPTIONS
+
+[Install]
+WantedBy=multi-user.target