2008-01-14 01:02:50 +01:00
|
|
|
# Copyright 1999-2008 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
inherit eutils python distutils
|
|
|
|
DESCRIPTION="Multi-user chat component for jabber implemented in python"
|
2008-10-28 17:51:43 +01:00
|
|
|
HOMEPAGE="http://code.stanziq.com/palaver"
|
|
|
|
SRC_URI="http://code.stanziq.com/${PN}/export/16/releases/${P}.tar.gz"
|
2008-01-14 01:02:50 +01:00
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~x86"
|
|
|
|
IUSE=""
|
|
|
|
DEPEND="net-im/jabber-base"
|
|
|
|
RDEPEND=">=dev-python/twisted-2.4.0
|
|
|
|
>=dev-python/twisted-words-0.5
|
|
|
|
${DEPEND}"
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A} && cd "${S}" || die "unpack failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
# nothing to be done here?
|
|
|
|
distutils_src_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
distutils_src_install
|
|
|
|
|
2008-01-14 01:20:50 +01:00
|
|
|
insinto /etc/jabber
|
|
|
|
newins example-config.xml ${PN}.xml
|
|
|
|
fperms 600 /etc/jabber/${PN}.xml
|
|
|
|
fowners jabber:jabber /etc/jabber/${PN}.xml
|
|
|
|
dosed \
|
|
|
|
"s:<spool>[^\<]*</spool>:<spool>/var/spool/jabber</spool>:" \
|
|
|
|
/etc/jabber/${PN}.xml
|
2008-01-14 02:05:43 +01:00
|
|
|
|
2008-01-14 01:02:50 +01:00
|
|
|
# dosed \
|
|
|
|
# "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \
|
|
|
|
# /etc/jabber/${PN}.xml
|
|
|
|
|
2008-01-14 02:05:43 +01:00
|
|
|
newinitd "${FILESDIR}/${P}-initd" ${PN}
|
2008-01-14 01:02:50 +01:00
|
|
|
# dosed "s:INSPATH:${inspath}:" /etc/init.d/${PN}
|
|
|
|
|
|
|
|
}
|
2008-01-14 01:20:50 +01:00
|
|
|
|
2008-01-14 02:11:59 +01:00
|
|
|
pkg_postinst() {
|
2008-08-11 20:08:04 +02:00
|
|
|
einfo "A sample config file has been installed into /etc/jabber/${PN}.xml."
|
2008-01-14 01:20:50 +01:00
|
|
|
einfo "Please adjust the settings as needed."
|
2008-01-14 02:11:59 +01:00
|
|
|
einfo "After that, you MUST create a TAP-file for twisted in order to start Palaver, like this:"
|
2008-01-14 02:05:43 +01:00
|
|
|
einfo "# cd /etc/jabber"
|
|
|
|
einfo "# mktap palaver -c palaver.xml"
|
2008-01-14 01:20:50 +01:00
|
|
|
}
|