diff options
author | Stefan Knoblich <stkn@gentoo.org> | 2004-01-04 00:16:53 +0000 |
---|---|---|
committer | Stefan Knoblich <stkn@gentoo.org> | 2004-01-04 00:16:53 +0000 |
commit | eb411317b07b472618b1c501ad35e2347b1aaa44 (patch) | |
tree | f93d21ec1f93dc6358cc0bbb86a0b017dc5e9bec | |
parent | initial import (diff) | |
download | gentoo-2-eb411317b07b472618b1c501ad35e2347b1aaa44.tar.gz gentoo-2-eb411317b07b472618b1c501ad35e2347b1aaa44.tar.bz2 gentoo-2-eb411317b07b472618b1c501ad35e2347b1aaa44.zip |
initial import
-rw-r--r-- | net-misc/zaptel/ChangeLog | 11 | ||||
-rw-r--r-- | net-misc/zaptel/Manifest | 7 | ||||
-rw-r--r-- | net-misc/zaptel/files/digest-zaptel-0.7.0 | 1 | ||||
-rw-r--r-- | net-misc/zaptel/files/zaptel-install_prefix-typo.patch | 11 | ||||
-rw-r--r-- | net-misc/zaptel/files/zaptel-mkdir-usrincludelinux.patch | 11 | ||||
-rw-r--r-- | net-misc/zaptel/files/zaptel-modulesd.patch | 37 | ||||
-rw-r--r-- | net-misc/zaptel/metadata.xml | 9 | ||||
-rw-r--r-- | net-misc/zaptel/zaptel-0.7.0.ebuild | 55 |
8 files changed, 142 insertions, 0 deletions
diff --git a/net-misc/zaptel/ChangeLog b/net-misc/zaptel/ChangeLog new file mode 100644 index 000000000000..fd3896ba3a05 --- /dev/null +++ b/net-misc/zaptel/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-misc/zaptel +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.1 2004/01/04 00:16:17 stkn Exp $ + +*zaptel-0.7.0 (04 Jan 2004) + + 04 Jan 2004; Stefan Knoblich <stkn@gentoo.org> zaptel-0.7.0.ebuild, + files/zaptel-install_prefix-typo.patch, + files/zaptel-mkdir-usrincludelinux.patch, files/zaptel-modulesd.patch: + initial import. ebuild created by Ray Russell Reese III <anti@gentoo.org> + diff --git a/net-misc/zaptel/Manifest b/net-misc/zaptel/Manifest new file mode 100644 index 000000000000..df0a14737c95 --- /dev/null +++ b/net-misc/zaptel/Manifest @@ -0,0 +1,7 @@ +MD5 dd4c9bb100476bab9a1b54cff3d646d0 zaptel-0.7.0.ebuild 1324 +MD5 44cf247f04cc83413fcb40ed59d0847a metadata.xml 248 +MD5 511a1dd9ff3181a0bb53ed07100835d0 ChangeLog 501 +MD5 fea918445512e51f2019ff20d78a7926 files/zaptel-install_prefix-typo.patch 486 +MD5 e6a38926132312059bd3a8a712d8d88e files/zaptel-mkdir-usrincludelinux.patch 469 +MD5 48c7eb4a7726cb0ce920784778ad2efb files/zaptel-modulesd.patch 1601 +MD5 4f38ae7d0fb20dee726303a35ca85eda files/digest-zaptel-0.7.0 64 diff --git a/net-misc/zaptel/files/digest-zaptel-0.7.0 b/net-misc/zaptel/files/digest-zaptel-0.7.0 new file mode 100644 index 000000000000..e23240fd7fa0 --- /dev/null +++ b/net-misc/zaptel/files/digest-zaptel-0.7.0 @@ -0,0 +1 @@ +MD5 6053a6e00fc78fea9de34b178eed57f0 zaptel-0.7.0.tar.gz 276239 diff --git a/net-misc/zaptel/files/zaptel-install_prefix-typo.patch b/net-misc/zaptel/files/zaptel-install_prefix-typo.patch new file mode 100644 index 000000000000..a9e8571d643d --- /dev/null +++ b/net-misc/zaptel/files/zaptel-install_prefix-typo.patch @@ -0,0 +1,11 @@ +--- zaptel/Makefile.orig 2003-10-10 11:32:53.000000000 -0400 ++++ zaptel/Makefile 2003-10-10 11:41:21.000000000 -0400 +@@ -251,7 +251,7 @@ + install -m 644 $$x $(INSTALL_PREFIX)/lib/modules/`uname -r`/misc ; \ + done + if ! [ -f wcfxsusb.o ]; then \ +- rm -f $(INTALL_PREFIX)/lib/modules/`uname -r`/misc/wcfxsusb.o; \ ++ rm -f $(INSTALL_PREFIX)/lib/modules/`uname -r`/misc/wcfxsusb.o; \ + fi + mkdir -p $(INSTALL_PREFIX)/usr/lib + install -m 755 $(LIBTONEZONE) $(INSTALL_PREFIX)/usr/lib diff --git a/net-misc/zaptel/files/zaptel-mkdir-usrincludelinux.patch b/net-misc/zaptel/files/zaptel-mkdir-usrincludelinux.patch new file mode 100644 index 000000000000..c49fbac14af9 --- /dev/null +++ b/net-misc/zaptel/files/zaptel-mkdir-usrincludelinux.patch @@ -0,0 +1,11 @@ +--- zaptel/Makefile.orig 2003-10-10 11:42:59.000000000 -0400 ++++ zaptel/Makefile 2003-10-10 11:48:33.000000000 -0400 +@@ -255,6 +255,8 @@ + fi + mkdir -p $(INSTALL_PREFIX)/usr/lib + install -m 755 $(LIBTONEZONE) $(INSTALL_PREFIX)/usr/lib ++ ++ mkdir -p $(INSTALL_PREFIX)/usr/include/linux + install -m 644 zaptel.h $(INSTALL_PREFIX)/usr/include/linux + install -m 644 torisa.h $(INSTALL_PREFIX)/usr/include/linux + install -m 644 tonezone.h $(INSTALL_PREFIX)/usr/include diff --git a/net-misc/zaptel/files/zaptel-modulesd.patch b/net-misc/zaptel/files/zaptel-modulesd.patch new file mode 100644 index 000000000000..d17babfb70eb --- /dev/null +++ b/net-misc/zaptel/files/zaptel-modulesd.patch @@ -0,0 +1,37 @@ +--- zaptel/Makefile.orig 2003-10-10 13:30:43.000000000 -0400 ++++ zaptel/Makefile 2003-10-10 13:30:09.000000000 -0400 +@@ -80,7 +80,9 @@ + + INSTALL_PREFIX= + +-MODCONF=$(shell if [ -d $(INSTALL_PREFIX)/etc/modutils ]; then echo "$(INSTALL_PREFIX)/etc/modutils/zaptel"; elif [ -f $(INSTALL_PREFIX)/etc/modules.conf ]; then echo $(INSTALL_PREFIX)/etc/modules.conf; else echo $(INSTALL_PREFIX)/etc/conf.modules ; fi) ++#MODCONF=$(shell if [ -d $(INSTALL_PREFIX)/etc/modutils ]; then echo "$(INSTALL_PREFIX)/etc/modutils/zaptel"; elif [ -f $(INSTALL_PREFIX)/etc/modules.conf ]; then echo $(INSTALL_PREFIX)/etc/modules.conf; else echo $(INSTALL_PREFIX)/etc/conf.modules ; fi) ++# Patch for Gentoo, uses modules.d ++MODCONF=$(INSTALL_PREFIX)/etc/modules.d/zaptel + + DEVFS=$(shell ps ax | grep -v grep | grep devfsd) + +@@ -263,6 +265,8 @@ + ( cd $(INSTALL_PREFIX)/usr/lib ; rm -f libtonezone.so ; ln -sf $(LIBTONEZONE) libtonezone.so ) + /sbin/ldconfig + ++ mkdir -p $(INSTALL_PREFIX)/etc/modules.d ++ + if [ -f $(MODCONF) ]; then mv -f $(MODCONF) $(MODCONF).bak ; fi + cat $(MODCONF).bak | grep -v "alias char-major-250" | \ + grep -v "post-install torisa /sbin/ztcfg" | \ +@@ -295,10 +299,10 @@ + if ! grep "post-install wct4xxp" $(MODCONF); then \ + echo "post-install wct4xxp /sbin/ztcfg" >> $(MODCONF); \ + fi +- if [ -d /etc/modutils ]; then \ +- /sbin/update-modules ; \ +- fi +- -/sbin/depmod -a ++ #if [ -d /etc/modutils ]; then \ ++ # /sbin/update-modules ; \ ++ #fi ++ #-/sbin/depmod -a + [ -f $(INSTALL_PREFIX)/etc/zaptel.conf ] || install -m 644 zaptel.conf.sample $(INSTALL_PREFIX)/etc/zaptel.conf + + config: diff --git a/net-misc/zaptel/metadata.xml b/net-misc/zaptel/metadata.xml new file mode 100644 index 000000000000..10f27dc5e06a --- /dev/null +++ b/net-misc/zaptel/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>voip</herd> +<maintainer> + <email>stkn@gentoo.org</email> + <name>Stefan Knoblich</name> +</maintainer> +</pkgmetadata> diff --git a/net-misc/zaptel/zaptel-0.7.0.ebuild b/net-misc/zaptel/zaptel-0.7.0.ebuild new file mode 100644 index 000000000000..71428ba48bd3 --- /dev/null +++ b/net-misc/zaptel/zaptel-0.7.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header $ + +IUSE="" + +DESCRIPTION="Pseudo-TDM engine" +HOMEPAGE="http://www.asterisk.org" +SRC_URI="ftp://ftp.asterisk.org/pub/telephony/zaptel/zaptel-${PV}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" + +DEPEND="virtual/glibc + virtual/linux-sources + !sys-kernel/gentoo-dev-sources" + +pkg_setup() { + # check if we're running a 2.6 kernel (not supported, atm) + if [ $(echo $KV | cut -d. -f1) -eq 2 ] && [ $(echo $KV|cut -d. -f2) -eq 6 ]; then + eerror "Linux kernel 2.6 is not supported at the moment..." + die + fi + + einfo "Please make sure that your kernel has the appropriate" + einfo "ppp support enabled or present as modules before merging" + einfo "e.g." + einfo "CONFIG_PPP=m" + einfo "CONFIG_PPP_ASYNC=m" + einfo "CONFIG_PPP_DEFLATE=m" + einfo "CONFIG_PPPOE=m" + einfo "Otherwise quit this ebuild, rebuild your kernel and reboot" + sleep 5 +} + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${PN}-install_prefix-typo.patch + epatch ${FILESDIR}/${PN}-mkdir-usrincludelinux.patch + epatch ${FILESDIR}/${PN}-modulesd.patch +} + +src_compile() { + emake || die +} + +src_install() { + make INSTALL_PREFIX=${D} install || die + + dodoc ChangeLog README.fxsusb zaptel.init zaptel.sysconfig + dodoc zaptel.conf.sample +} |