/[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.1 - (hide annotations) (download)
Sun Jan 4 00:16:17 2004 UTC (16 years ago) by stkn
Branch: MAIN
initial import

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

  ViewVC Help
Powered by ViewVC 1.1.20