# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils python DESCRIPTION="ICQ transport for Jabber" HOMEPAGE="http://pyicq-t.blathersource.org/" SRC_URI="http://www.blathersource.org/download.php/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~sparc" DEPEND=">=dev-lang/python-2.3" RDEPEND="virtual/jabber-server net-im/jabber-base >=dev-python/twisted-2.0.0 >=dev-python/twisted-words-0.1.0 >=dev-python/twisted-xish-0.1.0" src_unpack() { unpack ${A} cd ${S}/src } src_install() { python_version exeinto /usr/lib/python${PYVER}/site-packages/${PN}/ newexe ${S}/PyICQt.py pyicq-t.py dodir /usr/lib/python${PYVER}/site-packages/${PN}/src cp -r ${S}/src/* ${D}/usr/lib/python${PYVER}/site-packages/${PN}/src dodir /usr/lib/python${PYVER}/site-packages/${PN}/data cp -r ${S}/data/* ${D}/usr/lib/python${PYVER}/site-packages/${PN}/data insinto /etc/jabber newins ${FILESDIR}/${PF}-example-config.xml ${PN}.xml exeinto /etc/init.d newexe ${FILESDIR}/${PN}.initd ${PN} dosed "s:_PYVER_SED_REPLACE_:${PYVER}:g" /etc/init.d/${PN} dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README } pkg_postinst() { einfo "A sample configuration file has been installed in /etc/jabberd/${PN}.xml." einfo "Please edit it, and the configuration of you Jabber server to match." einfo "You also need to create a directory corresponding to the spooldir as set " einfo "in the configuration file and chown it to jabber:jabber" }