now palaver shouldn't need mktap anymore ...

This commit is contained in:
Manuel Friedli 2012-07-19 01:29:51 +00:00
parent 2b46f042cf
commit 4473410b1f
3 changed files with 5 additions and 11 deletions

View file

@ -0,0 +1,2 @@
# location of the configuration file
CONFIG=/etc/jabber/palaver.xml

View file

@ -11,8 +11,8 @@ depend() {
start() { start() {
ebegin "Starting Palaver MUC service" ebegin "Starting Palaver MUC service"
start-stop-daemon --start --pidfile /var/run/jabber/palaver.pid -u jabber -g jabber \ start-stop-daemon --start --pidfile /var/run/jabber/palaver.pid -u jabber -g jabber \
--exec /usr/bin/twistd -- -f /etc/jabber/palaver.tap -l /var/log/jabber/palaver.log \ --exec /usr/bin/twistd -- -l /var/log/jabber/palaver.log --pidfile /var/run/jabber/palaver.pid \
--pidfile /var/run/jabber/palaver.pid palaver -c ${CONFIG}
eend $? eend $?
} }

View file

@ -38,19 +38,11 @@ src_install() {
"s:<spool>[^\<]*</spool>:<spool>/var/spool/jabber</spool>:" \ "s:<spool>[^\<]*</spool>:<spool>/var/spool/jabber</spool>:" \
/etc/jabber/${PN}.xml /etc/jabber/${PN}.xml
# dosed \
# "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \
# /etc/jabber/${PN}.xml
newinitd "${FILESDIR}/${PN}-initd" ${PN} newinitd "${FILESDIR}/${PN}-initd" ${PN}
# dosed "s:INSPATH:${inspath}:" /etc/init.d/${PN} newconfd "${FILESDIR}/${PN}-confd" ${PN}
} }
pkg_postinst() { pkg_postinst() {
einfo "A sample config file has been installed into /etc/jabber/${PN}.xml." einfo "A sample config file has been installed into /etc/jabber/${PN}.xml."
einfo "Please adjust the settings as needed." einfo "Please adjust the settings as needed."
einfo "After that, you MUST create a TAP-file for twisted in order to start Palaver, like this:"
einfo "# cd /etc/jabber"
einfo "# mktap palaver -c palaver.xml"
} }