/[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.3 - (hide annotations) (download)
Tue Mar 16 00:28:12 2004 UTC (15 years, 10 months ago) by stkn
Branch: MAIN
Changes since 1.2: +2 -3 lines
fixed bug #44588 (zaptel blocked dev-sources)

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

  ViewVC Help
Powered by ViewVC 1.1.20