/[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.10 - (show annotations) (download)
Thu Jan 27 20:05:48 2005 UTC (14 years, 10 months ago) by stkn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
removing old versions

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/zaptel-0.7.0.ebuild,v 1.9 2005/01/05 01:49:19 stkn Exp $
4
5 inherit eutils
6
7 IUSE=""
8
9 DESCRIPTION="Pseudo-TDM engine"
10 HOMEPAGE="http://www.asterisk.org"
11 SRC_URI="ftp://ftp.asterisk.org/pub/telephony/zaptel/old/zaptel-${PV}.tar.gz"
12
13 SLOT="0"
14 LICENSE="GPL-2"
15 KEYWORDS="~x86"
16
17 DEPEND="virtual/libc
18 virtual/linux-sources"
19
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 epause 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