# Copyright 1999-2006 BreakMyGentoo.net # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils python DESCRIPTION="New Python based jabber transport for IRC" HOMEPAGE="http://xmpppy.sourceforge.net/irc/" SRC_URI="mirror://sourceforge/xmpppy/irc-transport-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" S="${WORKDIR}/irc-transport-${PV}" DEPEND=">=net-im/jabber-base-0.0 >=dev-lang/python-2.3 dev-python/python-irclib" RDEPEND=">=dev-python/xmpppy-0.3.1" IUSE="" src_install() { python_version insinto /usr/lib/python${PYVER}/site-packages/${PN}/ cp /usr/lib/python${PYVER}/site-packages/python-irclib/irclib.py ${D}/usr/lib/python${PYVER}/site-packages/${PN}/ doins *.py insinto /etc/jabber CFGFILE=jabber-irc.conf newins transport.ini ${CFGFILE} fperms 600 /etc/jabber/${CFGFILE} fowners jabber:jabber /etc/jabber/${CFGFILE} dosed \ "s:;LogFile = ircerror.log:LogFile = /var/log/jabber/${PN}.log:" \ /etc/jabber/${CFGFILE} dosed \ "s/;FatalErrors = true/FatalErrors = false/" \ /etc/jabber/${CFGFILE} exeinto /etc/init.d newexe ${FILESDIR}/${P}.initd ${PN} dosed "s/PATH/python${PYVER}/" /etc/init.d/${PN} } pkg_postinst() { einfo "A sample configuration file has been installed in /etc/jabber/jabber-irc.conf." einfo "Please edit it, and the configuration of your Jabber server to match." }