# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils 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 =dev-python/twisted-words-0.1.0 >=dev-python/twisted-xish-0.1.0 >=dev-python/twisted-web-0.5.0 >=dev-python/nevow-0.4.1" RDEPEND="virtual/jabber-server" src_unpack() { unpack ${A} cd ${S}/src # Patch to fix encoding for non-US-ASCII text # Patch for some non-fatal deprecated messages # Some misc patches epatch ${FILESDIR}/${P}.patch } src_install() { enewgroup jabber enewuser jabber -1 /bin/sh /var/jabberd/ jabber # The released tarball contains .svn metadata directories. Remove them. find . -name ".svn" -type d -exec rm -r '{}' ';' dodir /usr/lib/${PN}/src cp -r src/* ${D}usr/lib/${PN}/src/ exeinto /usr/lib/${PN} newexe PyICQt pyicq-t insinto /etc/jabberd newins ${FILESDIR}/pyicq-t-0.6-example-config.xml ${PN}.xml exeinto /etc/init.d newexe ${FILESDIR}/pyicq-t.initd pyicq-t } 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 icq.jabber.localhost in" einfo "/var/jabberd/db and chown it to jabber:jabber." }