/[gentoo-x86]/net-misc/zaptel/zaptel-0.7.0.ebuild
Gentoo

Contents of /net-misc/zaptel/zaptel-0.7.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Tue Apr 27 21:56:21 2004 UTC (15 years, 8 months ago) by agriffis
Branch: MAIN
Changes since 1.3: +3 -1 lines
Add inherit eutils

1 stkn 1.1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3 agriffis 1.4 # $Header: /home/cvsroot/gentoo-x86/net-misc/zaptel/zaptel-0.7.0.ebuild,v 1.3 2004/03/16 00:28:12 stkn Exp $
4    
5     inherit eutils
6 stkn 1.1
7     IUSE=""
8    
9     DESCRIPTION="Pseudo-TDM engine"
10     HOMEPAGE="http://www.asterisk.org"
11 stkn 1.2 SRC_URI="ftp://ftp.asterisk.org/pub/telephony/zaptel/old/zaptel-${PV}.tar.gz"
12 stkn 1.1
13     SLOT="0"
14     LICENSE="GPL-2"
15     KEYWORDS="~x86"
16    
17     DEPEND="virtual/glibc
18 stkn 1.3 virtual/linux-sources"
19 stkn 1.1
20     pkg_setup() {
21     # check if we're running a 2.6 kernel (not supported, atm)
22     if [ $(echo $KV | cut -d. -f1) -eq 2 ] && [ $(echo $KV|cut -d. -f2) -eq 6 ]; then
23     eerror "Linux kernel 2.6 is not supported at the moment..."
24     die
25     fi
26    
27     einfo "Please make sure that your kernel has the appropriate"
28     einfo "ppp support enabled or present as modules before merging"
29     einfo "e.g."
30     einfo "CONFIG_PPP=m"
31     einfo "CONFIG_PPP_ASYNC=m"
32     einfo "CONFIG_PPP_DEFLATE=m"
33     einfo "CONFIG_PPPOE=m"
34     einfo "Otherwise quit this ebuild, rebuild your kernel and reboot"
35     sleep 5
36     }
37    
38     src_unpack() {
39     unpack ${A}
40    
41     cd ${S}
42     epatch ${FILESDIR}/${PN}-install_prefix-typo.patch
43     epatch ${FILESDIR}/${PN}-mkdir-usrincludelinux.patch
44     epatch ${FILESDIR}/${PN}-modulesd.patch
45     }
46    
47     src_compile() {
48     emake || die
49     }
50    
51     src_install() {
52     make INSTALL_PREFIX=${D} install || die
53    
54     dodoc ChangeLog README.fxsusb zaptel.init zaptel.sysconfig
55     dodoc zaptel.conf.sample
56     }

  ViewVC Help
Powered by ViewVC 1.1.20