# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="CAPI2.0 channel module for Asterisk" HOMEPAGE="http://www.junghanns.net/asterisk/" SRC_URI="http://www.junghanns.net/asterisk/downloads/chan_capi.${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=net-misc/asterisk-1.0.0 net-dialup/capi4k-utils" S=${WORKDIR}/chan_capi-${PV} src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/chan_capi-${PV}-gentoo.diff } src_compile() { emake || die "emake failed" } src_install() { make INSTALL_PREFIX=${D} install config || die "make install failed" dodoc INSTALL LICENSE README capi.conf } pkg_postinst() { einfo "Please don't forget to enable chan_capi in your /etc/asterisk/modules.conf:" einfo "" einfo "load => chan_capi.so" einfo "" einfo "and in the global section:" einfo "chan_capi.so=yes" einfo "" einfo "(see /usr/share/doc/${PF} for more information)" }