summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Felisberto <humpback@gentoo.org>2004-04-08 02:14:56 +0000
committerGustavo Felisberto <humpback@gentoo.org>2004-04-08 02:14:56 +0000
commitdad81dd1d347449d0c1d74330fa373fbb38de25c (patch)
tree6731eff88d6b1c4c9c79f0b7f0c44ddf44c81177 /net-im/yahoo-transport/files
parentMore work to help jabberd2 (bug 43851) (Manifest recommit) (diff)
downloadgentoo-2-dad81dd1d347449d0c1d74330fa373fbb38de25c.tar.gz
gentoo-2-dad81dd1d347449d0c1d74330fa373fbb38de25c.tar.bz2
gentoo-2-dad81dd1d347449d0c1d74330fa373fbb38de25c.zip
More work to help jabberd2 (bug 43851)
Diffstat (limited to 'net-im/yahoo-transport/files')
-rw-r--r--net-im/yahoo-transport/files/digest-yahoo-transport-2.3.0-r22
-rw-r--r--net-im/yahoo-transport/files/yahoo-transport.init23
-rw-r--r--net-im/yahoo-transport/files/yahootrans.xml1
3 files changed, 26 insertions, 0 deletions
diff --git a/net-im/yahoo-transport/files/digest-yahoo-transport-2.3.0-r2 b/net-im/yahoo-transport/files/digest-yahoo-transport-2.3.0-r2
new file mode 100644
index 000000000000..412c1191daa9
--- /dev/null
+++ b/net-im/yahoo-transport/files/digest-yahoo-transport-2.3.0-r2
@@ -0,0 +1,2 @@
+MD5 281136e9934dd9e9221739a83bac4a2e yahoo-transport-2.3.0.tar.gz 44757
+MD5 8ff89895881d81c8ac7aff2788c745a2 yahoo-transport+newauth.diff 86348
diff --git a/net-im/yahoo-transport/files/yahoo-transport.init b/net-im/yahoo-transport/files/yahoo-transport.init
new file mode 100644
index 000000000000..37705109f1d1
--- /dev/null
+++ b/net-im/yahoo-transport/files/yahoo-transport.init
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ use jabber-server
+}
+
+start() {
+ ebegin "Starting Yahoo Jabber Transport"
+ jabberd -B -c /etc/jabber/yahootrans.xml -H /var/spool/jabber >/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stoping Yahoo Jabber Transport"
+ kill `cat /var/log/jabber/yahootrans.pid`
+ sleep 2
+ if ( -f /var/log/jabber/yahootrans.pid ); then
+ kill -9 `cat /var/log/jabber/yahootrans.pid`
+ rm -f /var/log/jabber/yahootrans.pid
+ fi
+ eend $?
+}
diff --git a/net-im/yahoo-transport/files/yahootrans.xml b/net-im/yahoo-transport/files/yahootrans.xml
index 9fe64642cfcc..72418ab22f87 100644
--- a/net-im/yahoo-transport/files/yahootrans.xml
+++ b/net-im/yahoo-transport/files/yahootrans.xml
@@ -21,4 +21,5 @@
<charmap>CP1252</charmap>
</config>
</service>
+ <pidfile>/var/log/jabber/yahootrans.pid</pidfile>
</jabber>