summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-11-20 21:36:46 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-11-20 21:36:46 +0000
commit1727817b0f85c1bc0efdfc0bb16cfe5b92fef9d7 (patch)
tree44ce55b87dc0b196c27223f775a143a5815e7ae8 /net-misc/zaptel
parentstable on amd64 wrt bug 112690 (diff)
downloadhistorical-1727817b0f85c1bc0efdfc0bb16cfe5b92fef9d7.tar.gz
historical-1727817b0f85c1bc0efdfc0bb16cfe5b92fef9d7.tar.bz2
historical-1727817b0f85c1bc0efdfc0bb16cfe5b92fef9d7.zip
Re-enabled bri support.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'net-misc/zaptel')
-rw-r--r--net-misc/zaptel/ChangeLog5
-rw-r--r--net-misc/zaptel/Manifest6
-rw-r--r--net-misc/zaptel/files/digest-zaptel-1.2.01
-rw-r--r--net-misc/zaptel/zaptel-1.2.0.ebuild144
4 files changed, 85 insertions, 71 deletions
diff --git a/net-misc/zaptel/ChangeLog b/net-misc/zaptel/ChangeLog
index e41238794a3b..0c46e5053d89 100644
--- a/net-misc/zaptel/ChangeLog
+++ b/net-misc/zaptel/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-misc/zaptel
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.65 2005/11/18 16:34:14 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.66 2005/11/20 21:36:46 stkn Exp $
+
+ 20 Nov 2005; Stefan Knoblich <stkn@gentoo.org> zaptel-1.2.0.ebuild:
+ Re-enabled bri support.
*zaptel-1.2.0 (18 Nov 2005)
diff --git a/net-misc/zaptel/Manifest b/net-misc/zaptel/Manifest
index df727ca64594..6070f0165af2 100644
--- a/net-misc/zaptel/Manifest
+++ b/net-misc/zaptel/Manifest
@@ -5,12 +5,12 @@ MD5 6263a968f86b50a23db0b3bcaf19b0ae zaptel-1.0.8.ebuild 6370
MD5 a9b97edfc9559f48e71f9f232590143f zaptel-1.0.9_p1-r1.ebuild 6641
MD5 5c63aa4881f27d9421f5e005c6333687 zaptel-1.0.9_p2.ebuild 6637
MD5 44cf247f04cc83413fcb40ed59d0847a metadata.xml 248
-MD5 bad97189f62f40f054b4360e1a349b03 ChangeLog 12156
-MD5 950d9aa09bd89f187b3ebceb40cb41b6 zaptel-1.2.0.ebuild 9080
+MD5 2ad493dd61ec7b75bbed24faef998bda ChangeLog 12253
+MD5 b26100fa09e5b61e0b4a9e3455497b5c zaptel-1.2.0.ebuild 9098
MD5 69d0c3831715ccac6422b13a99fc6557 files/digest-zaptel-1.0.9_p2 214
MD5 6029a1280d38d8c67577bc7a873fd336 files/zaptel-1.0.9-rtc.patch 4238
MD5 3a4f554056143ac54f033cc3356821b5 files/digest-zaptel-1.0.9_p1-r1 214
-MD5 d39ef748d551fb8b4a8a6db7a083201d files/digest-zaptel-1.2.0 64
+MD5 f574df759efe80013bc3e7fa04d95232 files/digest-zaptel-1.2.0 136
MD5 f46e4409c0bb701f8a6214e793de72a2 files/digest-zaptel-1.0.8 212
MD5 f5d81a19c52c5e88fefed12251674134 files/zaptel-bristuff-0.2.0-RC8n.patch 6064
MD5 c0f95d699055c3b46e5d3078bfaa2afb files/zaptel-1.2.0-devfs26.diff 6046
diff --git a/net-misc/zaptel/files/digest-zaptel-1.2.0 b/net-misc/zaptel/files/digest-zaptel-1.2.0
index 16f5dc990fb5..26f88125bc63 100644
--- a/net-misc/zaptel/files/digest-zaptel-1.2.0
+++ b/net-misc/zaptel/files/digest-zaptel-1.2.0
@@ -1 +1,2 @@
+MD5 884979fbfb75e6cdf7d8bdb66841e728 bristuff-0.3.0-PRE-1.tar.gz 159742
MD5 83d4aaab1594c5aa0dedc6b4f221fb48 zaptel-1.2.0.tar.gz 596257
diff --git a/net-misc/zaptel/zaptel-1.2.0.ebuild b/net-misc/zaptel/zaptel-1.2.0.ebuild
index 3729d5b0d658..5a86cc50b44b 100644
--- a/net-misc/zaptel/zaptel-1.2.0.ebuild
+++ b/net-misc/zaptel/zaptel-1.2.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/zaptel-1.2.0.ebuild,v 1.1 2005/11/18 16:34:14 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/zaptel-1.2.0.ebuild,v 1.2 2005/11/20 21:36:46 stkn Exp $
inherit toolchain-funcs eutils linux-mod
@@ -11,21 +11,23 @@ inherit toolchain-funcs eutils linux-mod
# - testing of new features (zapras / -net)
#
-#BRI_VERSION="0.2.0-RC8h"
+BRI_VERSION="0.3.0-PRE-1"
#FLORZ_VERSION="0.2.0-RC8a_florz-6"
-IUSE="devfs26 rtc ecmark ecmark2 ecmark3 ecaggressive eckb1 ecmg2 ecsteve ecsteve2 ukcid watchdog zapras zapnet"
+IUSE="bri devfs26 ecmark ecmark2 ecmark3 ecaggressive eckb1 ecmg2 ecsteve ecsteve2 rtc ukcid watchdog zapras zapnet"
MY_P="${P/_/-}"
DESCRIPTION="Drivers for Digium and ZapataTelephony cards"
HOMEPAGE="http://www.asterisk.org"
-SRC_URI="http://ftp.digium.com/pub/zaptel/${MY_P}.tar.gz"
-# bri? ( http://www.junghanns.net/asterisk/downloads/bristuff-${BRI_VERSION}.tar.gz )
+SRC_URI="http://ftp.digium.com/pub/zaptel/${MY_P}.tar.gz
+ bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz )"
# florz? ( http://zaphfc.florz.dyndns.org/zaphfc_${FLORZ_VERSION}.diff.gz )"
S="${WORKDIR}/${MY_P}"
+S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}"
+
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
@@ -170,12 +172,12 @@ src_unpack() {
epatch ${FILESDIR}/${PN}-1.2.0-ukcid.patch
# try to apply bristuff patch
-# if use bri; then
-# einfo "Patching zaptel w/ BRI stuff (${BRI_VERSION})"
-# epatch ${FILESDIR}/zaptel-bristuff-${BRI_VERSION}.patch
-#
-# cd ${WORKDIR}/bristuff-${BRI_VERSION}
-#
+ if use bri; then
+ einfo "Patching zaptel w/ BRI stuff (${BRI_VERSION})"
+ epatch ${S_BRI}/patches/zaptel.patch
+
+ cd ${S_BRI}
+
# if use florz; then
# einfo "Using florz patches (${FLORZ_VERSION}) for zaphfc"
#
@@ -185,24 +187,26 @@ src_unpack() {
#
# epatch ${WORKDIR}/zaphfc_${FLORZ_VERSION}.diff
# fi
-#
-# # patch includes
-# sed -i -e "s:^#include.*zaptel\.h.*:#include <zaptel.h>:" \
-# qozap/qozap.c \
-# zaphfc/zaphfc.c \
-# cwain/cwain.c
-#
-# # patch makefiles
-# sed -i -e "s:^ZAP[\t ]*=.*:ZAP=-I${S}:" \
-# -e "s:^MODCONF=.*:MODCONF=/etc/modules.d/zaptel:" \
-# -e "s:linux-2.6:linux:g" \
-# qozap/Makefile \
-# zaphfc/Makefile \
-# cwain/Makefile
-#
-# sed -i -e "s:^\(CFLAGS+=-I. \).*:\1 \$(ZAP):" \
-# zaphfc/Makefile
-# fi
+
+ # patch includes
+ sed -i -e "s:^#include.*zaptel\.h.*:#include <zaptel.h>:" \
+ qozap/qozap.c \
+ zaphfc/zaphfc.c \
+ cwain/cwain.c
+
+ # patch makefiles
+ sed -i -e "s:^ZAP[\t ]*=.*:ZAP=-I${S}:" \
+ -e "s:^MODCONF=.*:MODCONF=/etc/modules.d/zaptel:" \
+ -e "s:linux-2.6:linux:g" \
+ qozap/Makefile \
+ zaphfc/Makefile \
+ cwain/Makefile
+
+ sed -i -e "s:^\(CFLAGS+=-I. \).*:\1 \$(ZAP):" \
+ zaphfc/Makefile
+
+ cd ${S}
+ fi
### Configuration changes
local myEC
@@ -248,12 +252,16 @@ src_compile() {
make KVERS=${KV_FULL} \
KSRC=/usr/src/linux ARCH=$(tc-arch-kernel) || die
-# if use bri; then
-# cd ${WORKDIR}/bristuff-${BRI_VERSION}
-# make -C qozap || die
-# make -C zaphfc || die
-# make -C cwain || die
-# fi
+ if use bri; then
+ cd ${S_BRI}
+ for x in cwain qozap zaphfc; do
+ einfo "Building ${x}..."
+ make KVERS=${KV_FULL} \
+ KSRC=/usr/src/linux \
+ ARCH=$(tc-arch-kernel) \
+ -C ${x} || die "make ${x} failed"
+ done
+ fi
}
src_install() {
@@ -271,38 +279,40 @@ src_install() {
insinto /usr/include/zaptel
doins *.h
-# if use bri; then
-# einfo "Installing bri"
-# cd ${WORKDIR}/bristuff-${BRI_VERSION}
-#
-# insinto /lib/modules/${KV_FULL}/misc
-# doins qozap/qozap.${KV_OBJ}
-# doins zaphfc/zaphfc.${KV_OBJ}
-# doins cwain/cwain.${KV_OBJ}
-#
-# # install example configs for octoBRI and quadBRI
-# insinto /etc
-# doins qozap/zaptel.conf.octoBRI
-# newins qozap/zaptel.conf zaptel.conf.quadBRI
-# newins zaphfc/zaptel.conf zaptel.conf.zaphfc
-#
-# insinto /etc/asterisk
-# doins qozap/zapata.conf.octoBRI
-# newins qozap/zapata.conf zapata.conf.quadBRI
-# newins zaphfc/zapata.conf zapata.conf.zaphfc
-#
-# docinto bristuff
-# dodoc CHANGES INSTALL
-#
-# docinto bristuff/qozap
-# dodoc qozap/LICENSE qozap/TODO qozap/*.conf*
-#
-# docinto bristuff/zaphfc
-# dodoc zaphfc/LICENSE zaphfc/*.conf
-#
-# docinto bristuff/cwain
-# dodoc cwain/TODO cwain/LICENSE
-# fi
+ if use bri; then
+ einfo "Installing bri"
+ cd ${S_BRI}
+
+ insinto /lib/modules/${KV_FULL}/misc
+ doins qozap/qozap.${KV_OBJ}
+ doins zaphfc/zaphfc.${KV_OBJ}
+ doins cwain/cwain.${KV_OBJ}
+
+ # install example configs for octoBRI and quadBRI
+ insinto /etc
+ doins qozap/zaptel.conf.octoBRI
+ newins qozap/zaptel.conf zaptel.conf.quadBRI
+ newins zaphfc/zaptel.conf zaptel.conf.zaphfc
+
+ insinto /etc/asterisk
+ doins qozap/zapata.conf.octoBRI
+ newins qozap/zapata.conf zapata.conf.quadBRI
+ newins zaphfc/zapata.conf zapata.conf.zaphfc
+
+ docinto bristuff
+ dodoc CHANGES INSTALL
+
+ docinto bristuff/qozap
+ dodoc qozap/LICENSE qozap/TODO qozap/*.conf*
+
+ docinto bristuff/zaphfc
+ dodoc zaphfc/LICENSE zaphfc/*.conf
+
+ docinto bristuff/cwain
+ dodoc cwain/TODO cwain/LICENSE
+
+ cd ${S}
+ fi
# install init script
newinitd ${FILESDIR}/zaptel.rc6 zaptel