this should make it work.
This commit is contained in:
parent
3cc90e3a6b
commit
4ab6117ccc
4 changed files with 17 additions and 10 deletions
|
@ -1,2 +1,2 @@
|
||||||
# location of the configuration file
|
# location of the configuration file
|
||||||
CONFIG=/etc/jabber/palaver.xml
|
CONFIG=/etc/jabber/palaver.conf
|
||||||
|
|
|
@ -10,9 +10,10 @@ depend() {
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting Palaver MUC service"
|
ebegin "Starting Palaver MUC service"
|
||||||
|
source ${CONFIG}
|
||||||
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 -- -l /var/log/jabber/palaver.log --pidfile /var/run/jabber/palaver.pid \
|
--exec /usr/bin/twistd -- -l $LOG/palaver.log --pidfile /var/run/jabber/palaver.pid \
|
||||||
palaver -c ${CONFIG}
|
palaver --jid=$JID --rhost=$RHOST --rport=$RPORT --secret=$SECRET --spool=$SPOOL
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
net-im/palaver/files/palaver.conf
Normal file
6
net-im/palaver/files/palaver.conf
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
JID=conference.example.com
|
||||||
|
RHOST=localhost
|
||||||
|
RPORT=5347
|
||||||
|
SECRET=password
|
||||||
|
SPOOL=/var/spool/jabber/
|
||||||
|
LOG=/var/log/jabber/
|
|
@ -38,18 +38,18 @@ src_install() {
|
||||||
distutils_src_install
|
distutils_src_install
|
||||||
|
|
||||||
insinto /etc/jabber
|
insinto /etc/jabber
|
||||||
newins example-config.xml ${PN}.xml
|
newins "${FILESDIR}/"palaver.conf ${PN}.conf
|
||||||
fperms 600 /etc/jabber/${PN}.xml
|
fperms 600 /etc/jabber/${PN}.conf
|
||||||
fowners jabber:jabber /etc/jabber/${PN}.xml
|
fowners jabber:jabber /etc/jabber/${PN}.conf
|
||||||
dosed \
|
# dosed \
|
||||||
"s:<spool>[^\<]*</spool>:<spool>/var/spool/jabber</spool>:" \
|
# "s:<spool>[^\<]*</spool>:<spool>/var/spool/jabber</spool>:" \
|
||||||
/etc/jabber/${PN}.xml
|
# /etc/jabber/${PN}.xml
|
||||||
|
|
||||||
newinitd "${FILESDIR}/${PN}-initd" ${PN}
|
newinitd "${FILESDIR}/${PN}-initd" ${PN}
|
||||||
newconfd "${FILESDIR}/${PN}-confd" ${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}.conf."
|
||||||
einfo "Please adjust the settings as needed."
|
einfo "Please adjust the settings as needed."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue