gentoo-overlay/net-im/punjab/punjab-9999.ebuild

52 lines
1.2 KiB
Bash
Raw Normal View History

2018-02-16 00:00:19 +01:00
# Copyright 1999-2018 Gentoo Foundation
2012-07-19 02:42:51 +02:00
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
2015-10-02 14:06:01 +02:00
PYTHON_COMPAT=( python2_7 )
2012-07-19 02:42:51 +02:00
inherit distutils-r1 eutils python-r1 git-r3
2012-07-19 02:42:51 +02:00
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="${PYTHON_DEPS}
net-im/jabber-base"
RDEPEND="${PYTHON_DEPS}
>=dev-python/twisted-core-11.1.0[${PYTHON_USEDEP}]
>=dev-python/twisted-names-11.1.0[${PYTHON_USEDEP}]
tls? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
2012-07-19 02:42:51 +02:00
${DEPEND}"
#pkg_setup() {
# python_pkg_setup
#}
2012-07-19 02:42:51 +02:00
src_compile() {
# nothing to be done here?
distutils-r1_src_compile
2012-07-19 02:42:51 +02:00
}
src_install() {
distutils-r1_src_install
2012-07-19 02:42:51 +02:00
2012-07-19 04:39:47 +02:00
insinto /etc/jabber
newins punjab.tac ${PN}.tac
fperms 600 /etc/jabber/${PN}.tac
fowners jabber:jabber /etc/jabber/${PN}.tac
2012-07-19 04:29:53 +02:00
# dosed \
# "s:<spool>[^\<]*</spool>:<spool>/var/spool/jabber</spool>:" \
# /etc/jabber/${PN}.xml
2012-07-19 02:42:51 +02:00
newinitd "${FILESDIR}/${PN}-initd" ${PN}
2012-07-19 04:39:47 +02:00
# newconfd "${FILESDIR}/${PN}-confd" ${PN}
2012-07-19 02:42:51 +02:00
}
2012-07-19 04:39:47 +02:00
pkg_postinst() {
einfo "A sample config file has been installed into /etc/jabber/${PN}.tac."
einfo "Please adjust the settings as needed."
}