# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-im/aim-transport/aim-transport-20040131-r2.ebuild,v 1.14 2007/05/06 11:24:42 genone Exp $ WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" inherit eutils autotools MY_PN="${PN}-stable" S="${WORKDIR}/${MY_PN}-${PV}" DESCRIPTION="AOL Instant Messaging transport for jabberd" HOMEPAGE="http://aim-transport.jabberstudio.org/" SRC_URI="http://aim-transport.jabberstudio.org/${MY_PN}-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc sparc x86" IUSE="" DEPEND="=net-im/jabberd-1.4*" src_unpack() { unpack ${A} epatch ${FILESDIR}/aimtrans.patch cd "${S}" eautoreconf } src_compile() { ./configure --with-jabberd=/usr/include/jabberd || die "./configure failed" emake || die } src_install() { dodir /etc/jabber /usr/lib/jabberd insinto /usr/lib/jabberd doins src/aimtrans.so insinto /etc/jabber doins ${FILESDIR}/aimtrans.xml newinitd ${FILESDIR}/aim-transport.init-r2 aim-transport newconfd ${FILESDIR}/aim-transport-conf.d aim-transport dodoc README ${FILESDIR}/README.Gentoo TODO aim.xml } pkg_postinst() { elog elog "Please read /usr/share/doc/${PF}/README.Gentoo.gz" elog "And please notice that now aim-transport comes with a init.d script" elog "dont forget to add it to your runlevel." elog }