1 # Copyright 1999-2017 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"
15 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
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" )
33 Makefile xpp/Makefile || die
39 use ppp && emake -C ppp
43 emake DESTDIR="${D}" install
44 use ppp && emake DESTDIR="${D}" -C ppp install
45 emake DESTDIR="${D}" config
47 dosbin patgen pattest patlooptest hdlcstress hdlctest hdlcgen hdlcverify timertest
49 # install init scripts
50 newinitd "${FILESDIR}"/dahdi.init2 dahdi
51 newinitd "${FILESDIR}"/dahdi-autoconf.init2 dahdi-autoconf
52 newconfd "${FILESDIR}"/dahdi-autoconf.conf2 dahdi-autoconf