# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 PYTHON_DEPEND="2" PYTHON_COMPAT=( python2_7 ) inherit distutils-r1 eutils python-r1 git-2 DESCRIPTION="BOSH connection manager for jabber implemented in python" HOMEPAGE="https://github.com/twonds/punjab" EGIT_REPO_URI="git://github.com/twonds/punjab" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="tls" DEPEND="net-im/jabber-base" RDEPEND=">=dev-python/twisted-core-11.1.0 >=dev-python/twisted-names-11.1.0 tls? ( dev-python/pyopenssl ) ${DEPEND}" pkg_setup() { python_set_active_version 2 } src_compile() { # nothing to be done here? distutils_src_compile } src_install() { distutils_src_install insinto /etc/jabber newins punjab.tac ${PN}.tac fperms 600 /etc/jabber/${PN}.tac fowners jabber:jabber /etc/jabber/${PN}.tac # dosed \ # "s:[^\<]*:/var/spool/jabber:" \ # /etc/jabber/${PN}.xml newinitd "${FILESDIR}/${PN}-initd" ${PN} # newconfd "${FILESDIR}/${PN}-confd" ${PN} } pkg_postinst() { einfo "A sample config file has been installed into /etc/jabber/${PN}.tac." einfo "Please adjust the settings as needed." }