2012-07-19 02:10:14 +02:00
|
|
|
# Copyright 1999-2008 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2012-07-19 02:20:41 +02:00
|
|
|
EAPI=3
|
2012-07-19 02:10:14 +02:00
|
|
|
PYTHON_DEPEND="2"
|
|
|
|
|
2012-07-19 02:17:59 +02:00
|
|
|
inherit distutils eutils python git-2
|
2012-07-19 02:10:14 +02:00
|
|
|
DESCRIPTION="Multi-user chat component for jabber implemented in python"
|
|
|
|
HOMEPAGE="https://github.com/twonds/palaver"
|
|
|
|
EGIT_REPO_URI="git://github.com/twonds/palaver"
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE=""
|
|
|
|
DEPEND="net-im/jabber-base"
|
|
|
|
RDEPEND=">=dev-python/twisted-2.4.0
|
2012-07-19 02:20:41 +02:00
|
|
|
>=dev-python/twisted-words-0.5
|
|
|
|
${DEPEND}"
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
python_set_active_version 2
|
|
|
|
}
|
2012-07-19 02:10:14 +02:00
|
|
|
|
2012-07-19 04:00:12 +02:00
|
|
|
src_prepare() {
|
|
|
|
cp ${FILESDIR}/palaver_plugin.py ${S}/twisted/plugins
|
|
|
|
rm ${S}/twisted/plugins/palaver.py
|
2012-07-19 04:11:52 +02:00
|
|
|
cd ${S}/palaver
|
|
|
|
mv palaver.py __init__.py
|
2012-07-19 04:00:12 +02:00
|
|
|
}
|
|
|
|
|
2012-07-19 02:10:14 +02:00
|
|
|
src_compile() {
|
|
|
|
# nothing to be done here?
|
|
|
|
distutils_src_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
distutils_src_install
|
|
|
|
|
|
|
|
insinto /etc/jabber
|
2013-03-22 00:41:58 +01:00
|
|
|
newins "${FILESDIR}/"palaver.conf ${PN}.conf
|
|
|
|
fperms 600 /etc/jabber/${PN}.conf
|
|
|
|
fowners jabber:jabber /etc/jabber/${PN}.conf
|
|
|
|
# dosed \
|
|
|
|
# "s:<spool>[^\<]*</spool>:<spool>/var/spool/jabber</spool>:" \
|
|
|
|
# /etc/jabber/${PN}.xml
|
2012-07-19 02:10:14 +02:00
|
|
|
|
|
|
|
newinitd "${FILESDIR}/${PN}-initd" ${PN}
|
2012-07-19 03:29:51 +02:00
|
|
|
newconfd "${FILESDIR}/${PN}-confd" ${PN}
|
2012-07-19 02:10:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
2013-03-22 00:41:58 +01:00
|
|
|
einfo "A sample config file has been installed into /etc/jabber/${PN}.conf."
|
2012-07-19 02:10:14 +02:00
|
|
|
einfo "Please adjust the settings as needed."
|
|
|
|
}
|