summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2013-03-18 15:55:08 +0000
committerHanno Böck <hanno@gentoo.org>2013-03-18 15:55:08 +0000
commit33c224cf1770706a5ccdfb42b41b6a6dcc2fd5fb (patch)
tree76da410bd62c5adea0b5f71186a8abc295fb5047 /net-im/pyicq-t/files
parentremove unnecessary epunt_cxx (bug #462156) (diff)
downloadgentoo-2-33c224cf1770706a5ccdfb42b41b6a6dcc2fd5fb.tar.gz
gentoo-2-33c224cf1770706a5ccdfb42b41b6a6dcc2fd5fb.tar.bz2
gentoo-2-33c224cf1770706a5ccdfb42b41b6a6dcc2fd5fb.zip
Add checkpath for /var/run, fix python code (#315115), EAPI 5-port, replace dosed with sed.
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 0xA5880072BBB51E42)
Diffstat (limited to 'net-im/pyicq-t/files')
-rw-r--r--net-im/pyicq-t/files/pyicq-t-0.8-initd-r124
1 files changed, 24 insertions, 0 deletions
diff --git a/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1 b/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1
new file mode 100644
index 000000000000..bd099b501340
--- /dev/null
+++ b/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1,v 1.1 2013/03/18 15:55:08 hanno Exp $
+
+depend() {
+ need net
+ use jabber-server
+}
+
+start() {
+ ebegin "Starting ICQ Jabber Transport"
+ checkpath -q -d -m 0755 -o jabber:jabber /var/run/jabber/
+ start-stop-daemon --start --pidfile /var/run/jabber/pyicq-t.pid -u jabber -g jabber \
+ --exec INSPATH/pyicq-t.py -- \
+ -b -c /etc/jabber/pyicq-t.xml -l /var/log/jabber/pyicq-t.log
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ICQ Jabber Transport"
+ start-stop-daemon --stop --quiet --pidfile /var/run/jabber/pyicq-t.pid
+ eend $?
+}