diff --git a/net-im/palaver/files/palaver-0.5-initd b/net-im/palaver/files/palaver-0.5-initd
new file mode 100644
index 0000000..8424c77
--- /dev/null
+++ b/net-im/palaver/files/palaver-0.5-initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ need net
+ use jabber-server
+}
+
+start() {
+ ebegin "Starting Palaver MUC service"
+ start-stop-daemon --start --pidfile /var/run/jabber/palaver.pid --chuid jabber:jabber \
+ --exec /usr/bin/twistd -- -f /etc/jabber/palaver.tap -l /var/log/jabber/palaver.log \
+ --pidfile /var/run/jabber/palaver.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Palaver MUC service"
+ start-stop-daemon --stop --quiet --pidfile /var/run/jabber/palaver.pid
+ eend $?
+}
diff --git a/net-im/palaver/palaver-0.5.ebuild b/net-im/palaver/palaver-0.5.ebuild
index ddc2dd8..332b746 100644
--- a/net-im/palaver/palaver-0.5.ebuild
+++ b/net-im/palaver/palaver-0.5.ebuild
@@ -34,11 +34,12 @@ src_install() {
dosed \
"s:[^\<]*:/var/spool/jabber:" \
/etc/jabber/${PN}.xml
+
# dosed \
# "s:[^\<]*:/var/run/jabber/${PN}.pid:" \
# /etc/jabber/${PN}.xml
-# newinitd "${FILESDIR}/${PN}-0.8-initd" ${PN}
+ newinitd "${FILESDIR}/${P}-initd" ${PN}
# dosed "s:INSPATH:${inspath}:" /etc/init.d/${PN}
}
@@ -46,4 +47,7 @@ src_install() {
post_install() {
einfo "A sample config file has been installes into /etc/jabber/${PN}.xml."
einfo "Please adjust the settings as needed."
+ einfo "After that, you need to create e TAP-file for twisted in order to start palaver, like this:"
+ einfo "# cd /etc/jabber"
+ einfo "# mktap palaver -c palaver.xml"
}