1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Userspace tools to configure the kernel modules from net-misc/dahdi"
9 HOMEPAGE="http://www.asterisk.org"
10 SRC_URI="http://downloads.asterisk.org/pub/telephony/${PN}/releases/${P}.tar.gz
11 mirror://gentoo/gentoo-${PN}-patchset-0.4.tar.bz2"
19 ppp? ( net-dialup/ppp )
20 >=net-misc/dahdi-2.5.0
22 >=sys-kernel/linux-headers-2.6.35
27 PATCHES=( "${WORKDIR}/${PN}-patchset" )
32 use ppp && emake -C ppp
36 emake DESTDIR="${D}" install
37 use ppp && emake DESTDIR="${D}" -C ppp install
38 emake DESTDIR="${D}" config
40 dosbin patgen pattest patlooptest hdlcstress hdlctest hdlcgen hdlcverify timertest
42 # install init scripts
43 newinitd "${FILESDIR}"/dahdi.init2 dahdi
44 newinitd "${FILESDIR}"/dahdi-autoconf.init2 dahdi-autoconf
45 newconfd "${FILESDIR}"/dahdi-autoconf.conf2 dahdi-autoconf