/[gentoo-x86]/net-misc/dahdi-tools/dahdi-tools-2.4.1.ebuild
Gentoo

Contents of /net-misc/dahdi-tools/dahdi-tools-2.4.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun May 6 14:37:40 2012 UTC (7 years, 7 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi-tools/dahdi-tools-2.4.1.ebuild,v 1.3 2011/04/28 21:39:02 tomka Exp $
4
5 EAPI=3
6
7 inherit base
8
9 DESCRIPTION="Userspace tools to configure the kernel modules from net-misc/dahdi"
10 HOMEPAGE="http://www.asterisk.org"
11 SRC_URI="http://downloads.digium.com/pub/telephony/dahdi-tools/releases/${P}.tar.gz
12 mirror://gentoo/gentoo-dahdi-tools-patchset-0.2.tar.bz2"
13
14 LICENSE="LGPL-2.1"
15 SLOT="0"
16 KEYWORDS="amd64 x86"
17 IUSE="ppp"
18
19 DEPEND="dev-libs/newt
20 ppp? ( net-dialup/ppp )
21 net-misc/dahdi
22 !net-misc/zaptel
23 >=sys-kernel/linux-headers-2.6.35
24 virtual/libusb:0"
25 RDEPEND="${DEPEND}"
26
27 EPATCH_SUFFIX="diff"
28 PATCHES=( "${WORKDIR}/dahdi-tools-patchset" )
29
30 src_compile() {
31 default_src_compile
32 emake tests || die "Failed compiling test utilities"
33 if use ppp; then
34 emake -C ppp || die "Failed compiling ppp plugin"
35 fi
36 }
37
38 src_install() {
39 emake DESTDIR="${D}" install || die "Failed to install binaries"
40 if use ppp; then
41 emake DESTDIR="${D}" -C ppp install || die "Failed to install ppp plugin"
42 fi
43 emake DESTDIR="${D}" config || die "Failed to install configuration files"
44
45 dosbin patgen pattest patlooptest hdlcstress hdlctest hdlcgen
46 dosbin hdlcverify timertest
47
48 # install init scripts
49 newinitd "${FILESDIR}"/dahdi.init2 dahdi
50 newinitd "${FILESDIR}"/dahdi-autoconf.init dahdi-autoconf
51 newconfd "${FILESDIR}"/dahdi-autoconf.conf dahdi-autoconf
52 }

  ViewVC Help
Powered by ViewVC 1.1.20