# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_P="${P/_/-}" S="${WORKDIR}/${MY_P}" DESCRIPTION="Userspace tools to configure the kernel modules from net-misc/dahdi" HOMEPAGE="http://www.asterisk.org" SRC_URI="mirror://asterisk/dahdi-tools/releases/${MY_P}.tar.gz" LICENSE="GPL-2 LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gentoo" DEPEND="net-misc/dahdi dev-libs/libusb" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" use gentoo && epatch "${FILESDIR}"/hdlc.patch epatch "${FILESDIR}"/dahdi-tools-2.2.0-modprobe-conf.patch } src_install() { emake DESTDIR="${D}" install || die "failed to install package" emake DESTDIR="${D}" config || die "failed to install package" # install init script newinitd "${FILESDIR}"/dahdi.init dahdi }