summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Bainbridge <chrb@gentoo.org>2005-01-28 19:09:12 +0000
committerChris Bainbridge <chrb@gentoo.org>2005-01-28 19:09:12 +0000
commit7706857c9e2628c16dbbca0201eee4762dfb5b05 (patch)
treec698a50c2a883039fb139a6c11bab1ee93048d91 /net-misc/zaptel
parentFix ChangeLog. (diff)
downloadhistorical-7706857c9e2628c16dbbca0201eee4762dfb5b05.tar.gz
historical-7706857c9e2628c16dbbca0201eee4762dfb5b05.tar.bz2
historical-7706857c9e2628c16dbbca0201eee4762dfb5b05.zip
Version bump. Updated to linux-info eclass. Cleaned up einfos.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'net-misc/zaptel')
-rw-r--r--net-misc/zaptel/ChangeLog7
-rw-r--r--net-misc/zaptel/Manifest32
-rw-r--r--net-misc/zaptel/files/digest-zaptel-1.0.41
-rw-r--r--net-misc/zaptel/zaptel-1.0.4.ebuild136
4 files changed, 160 insertions, 16 deletions
diff --git a/net-misc/zaptel/ChangeLog b/net-misc/zaptel/ChangeLog
index 109a4be24334..ea13a9eadab7 100644
--- a/net-misc/zaptel/ChangeLog
+++ b/net-misc/zaptel/ChangeLog
@@ -1,6 +1,11 @@
# 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.25 2005/01/27 20:05:47 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.26 2005/01/28 19:09:12 chrb Exp $
+
+*zaptel-1.0.4 (28 Jan 2005)
+
+ 28 Jan 2005; Chris Bainbridge <chrb@gentoo.org> +zaptel-1.0.4.ebuild:
+ Version bump. Updated to linux-info eclass. Cleaned up einfos.
27 Jan 2005; Stefan Knoblich <stkn@gentoo.org> -files/zaptel-modulesd.patch,
-zaptel-0.7.0.ebuild, -zaptel-0.8.1.ebuild:
diff --git a/net-misc/zaptel/Manifest b/net-misc/zaptel/Manifest
index 8d66c1ed7376..156c761475e0 100644
--- a/net-misc/zaptel/Manifest
+++ b/net-misc/zaptel/Manifest
@@ -1,24 +1,26 @@
-MD5 8d66c378ea6b3b3f7bb2ee1fd2b6e51c zaptel-0.9.1.ebuild 3526
-MD5 eaa764a27a800be752aba85a7df8d342 zaptel-1.0.2.ebuild 3127
+MD5 5e5b4c26f408ea4a1331dfef7cd46d42 ChangeLog 4069
MD5 44cf247f04cc83413fcb40ed59d0847a metadata.xml 248
-MD5 a4d4833612d6b0a08813d8eb09137645 ChangeLog 3902
MD5 29c8d537ecef33c7c1225fa94655ceba zaptel-1.0.3.ebuild 3528
-MD5 cfce09091affa8e8668e7a22801ac097 zaptel-1.0.1.ebuild 3186
+MD5 8d66c378ea6b3b3f7bb2ee1fd2b6e51c zaptel-0.9.1.ebuild 3526
MD5 57a33550baf4bda34695fa3cb84a8012 zaptel-1.0.0.ebuild 3059
-MD5 648b9f0335741cf4aea7542ffe4705c6 files/zaptel-1.0.1-modulesd.diff 1837
-MD5 c80f1e0e4038771d3e3bc08284ecf917 files/zaptel-1.0.0-modulesd.diff 1941
+MD5 cfce09091affa8e8668e7a22801ac097 zaptel-1.0.1.ebuild 3186
+MD5 eaa764a27a800be752aba85a7df8d342 zaptel-1.0.2.ebuild 3127
+MD5 1035a89ffc2a4c40b8e865e4873fbd1e zaptel-1.0.4.ebuild 4191
+MD5 66c86744220e6716f15393caf0ee408d files/digest-zaptel-1.0.3 64
+MD5 051e2ff3f1222e2b551a70e9cd1b31f0 files/digest-zaptel-1.0.4 64
MD5 3921a7fd4a60c8785d510e857ff2eabe files/digest-zaptel-0.9.1 64
-MD5 e6a38926132312059bd3a8a712d8d88e files/zaptel-mkdir-usrincludelinux.patch 469
-MD5 c80f1e0e4038771d3e3bc08284ecf917 files/zaptel-0.9.1-modulesd.diff 1941
-MD5 c05b7e3e46911ab74b865d91e7b85d42 files/digest-zaptel-1.0.2 64
-MD5 fae1145da422b8838c2a6ac3405dc4c4 files/zaptel.confd 371
+MD5 9cf4f1d646d216441b7f4508ac7c0e8b files/digest-zaptel-1.0.0 64
MD5 dbd81e086a8331bea5752bf92e288f43 files/digest-zaptel-1.0.1 64
+MD5 1dcd4bcf154cf1140d716eeeb8892ef3 files/zaptel-0.9.1-experimental-devfs26.diff 6432
+MD5 c80f1e0e4038771d3e3bc08284ecf917 files/zaptel-0.9.1-modulesd.diff 1941
MD5 60910db3ceada75031a91d419832871d files/zaptel-1.0.0-experimental-devfs26.diff 5474
-MD5 b72142a9b09e32506b88b96706abaeb4 files/zaptel.rc6 903
-MD5 66c86744220e6716f15393caf0ee408d files/digest-zaptel-1.0.3 64
+MD5 c80f1e0e4038771d3e3bc08284ecf917 files/zaptel-1.0.0-modulesd.diff 1941
+MD5 648b9f0335741cf4aea7542ffe4705c6 files/zaptel-1.0.1-modulesd.diff 1837
+MD5 0edad95ac20c6e43ea6ee933e25ac23a files/zaptel-1.0.1-skbuff.diff 564
MD5 fea918445512e51f2019ff20d78a7926 files/zaptel-install_prefix-typo.patch 486
+MD5 e6a38926132312059bd3a8a712d8d88e files/zaptel-mkdir-usrincludelinux.patch 469
+MD5 fae1145da422b8838c2a6ac3405dc4c4 files/zaptel.confd 371
+MD5 b72142a9b09e32506b88b96706abaeb4 files/zaptel.rc6 903
+MD5 c05b7e3e46911ab74b865d91e7b85d42 files/digest-zaptel-1.0.2 64
MD5 9abebf47ce7e7122a184a62e5baed146 files/zaptel-1.0.3-gcc34.patch 1540
-MD5 0edad95ac20c6e43ea6ee933e25ac23a files/zaptel-1.0.1-skbuff.diff 564
MD5 e5a799243335f31a494bb4f90edbb9e4 files/zaptel-1.0.3-gentoo.diff 3456
-MD5 9cf4f1d646d216441b7f4508ac7c0e8b files/digest-zaptel-1.0.0 64
-MD5 1dcd4bcf154cf1140d716eeeb8892ef3 files/zaptel-0.9.1-experimental-devfs26.diff 6432
diff --git a/net-misc/zaptel/files/digest-zaptel-1.0.4 b/net-misc/zaptel/files/digest-zaptel-1.0.4
new file mode 100644
index 000000000000..7aab20d1e64e
--- /dev/null
+++ b/net-misc/zaptel/files/digest-zaptel-1.0.4
@@ -0,0 +1 @@
+MD5 ef189a00c823b3739cc706fe290433a2 zaptel-1.0.4.tar.gz 316205
diff --git a/net-misc/zaptel/zaptel-1.0.4.ebuild b/net-misc/zaptel/zaptel-1.0.4.ebuild
new file mode 100644
index 000000000000..211f51993e75
--- /dev/null
+++ b/net-misc/zaptel/zaptel-1.0.4.ebuild
@@ -0,0 +1,136 @@
+# 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.0.4.ebuild,v 1.1 2005/01/28 19:09:12 chrb Exp $
+
+IUSE="devfs26"
+
+inherit toolchain-funcs eutils linux-info
+
+DESCRIPTION="Drivers for Digium and ZapataTelephony cards"
+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 ~ppc"
+
+DEPEND="virtual/libc
+ virtual/linux-sources
+ >=dev-libs/newt-0.50.0"
+
+pkg_setup() {
+ get_version || die "Unable to calculate Linux Kernel version"
+
+ if ! linux_chkconfig_present CONFIG_PPP
+ then
+ einfo "If you want to use PPP over your hardware:"
+ einfo ""
+ einfo " Please make sure that your kernel has the appropriate"
+ einfo " PPP support enabled or present as modules before merging:"
+ einfo ""
+ einfo " CONFIG_PPP=m"
+ einfo " CONFIG_PPP_ASYNC=m"
+ einfo " CONFIG_PPP_DEFLATE=m"
+ einfo " CONFIG_PPPOE=m"
+ einfo ""
+ einfo " Quit now, recompile your kernel, and reboot."
+ fi
+
+ # show an nice warning message about zaptel not supporting devfs on 2.6
+ if [ "${KV_MAJOR}.${KV_MINOR}" == "2.6" ] && linux_chkconfig_present CONFIG_DEVFS_FS ; then
+ echo
+ einfo "You're using a 2.6 kernel with DEVFS."
+ einfo "The Zaptel drivers won't work unless you either:"
+ einfo " * switch to udev"
+ einfo " * write a script that re-creates the necessary device nodes for you"
+ einfo " * enable the devfs26 useflag (see below)"
+ einfo ""
+ einfo "There's an experimental patch which adds devfs support when using linux-2.6, but:"
+ einfo " 1. It's an ugly hack atm and needs a cleanup..."
+ einfo " 2. I was only abled to test loding / unloading with the ztd-eth driver..."
+ einfo " 3. I _really_ don't know if it works with real hardware..."
+ eerror " 4. And more important: This is not officially supported by Digium / the Asterisk project!!!"
+ einfo ""
+ einfo "If you're still interested, abort now (ctrl+c) and enable the devfs26 USE-flag"
+ einfo "Feedback and bug-reports should go to: stkn@gentoo.org"
+ einfo "You have been warned!"
+ echo
+ einfo "Sleeping 20 Seconds..."
+ epause 20
+ else
+ echo
+ einfo "Sleeping 10 Seconds..."
+ epause 10
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # >= 1.0.3 requires new patch (-modulesd patch renamed to -gentoo)
+ epatch ${FILESDIR}/${PN}-1.0.3-gentoo.diff
+
+ # remove all from install target
+ sed -i -e "s#^\(install:\)[ \t]\+all[ \t]\+\(.*\)#\1 \2#" Makefile
+
+ # enable ztdummy...
+ sed -i -e "s:#\( ztdummy.*\):\1:" Makefile
+
+ # devfs support
+ if use devfs26; then
+ einfo "Enabling experimental devfs support for linux-2.6..."
+ epatch ${FILESDIR}/${PN}-1.0.0-experimental-devfs26.diff
+ fi
+
+ # apply patch for gcc-3.4.x if that's the compiler in use...
+ # fixes (#76707)
+ if use x86 && [[ `gcc-fullversion` = "3.4.3" ]]; then
+ epatch ${FILESDIR}/${P}-gcc34.patch
+ fi
+}
+
+src_compile() {
+ set_arch_to_kernel
+ make || die
+ set_arch_to_portage
+}
+
+src_install() {
+ make INSTALL_PREFIX=${D} install || die
+
+ dodoc ChangeLog README README.udev README.Linux26 README.fxsusb zaptel.init zaptel.sysconfig
+ dodoc zaptel.conf.sample LICENSE
+
+ # additional tools
+ dobin ztmonitor ztspeed zttest
+
+ # install init script
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/zaptel.rc6 zaptel
+ insinto /etc/conf.d
+ newins ${FILESDIR}/zaptel.confd zaptel
+
+# FIXME!! Can we (we should) do this automatically
+ einfo "If you're using udev add the following to"
+ einfo "/etc/udev/rules.d/50-udev.rules (as in README.udev):"
+ einfo "# Section for zaptel device"
+ einfo "KERNEL=\"zapctl\", NAME=\"zap/ctl\""
+ einfo "KERNEL=\"zaptimer\", NAME=\"zap/timer\""
+ einfo "KERNEL=\"zapchannel\", NAME=\"zap/channel\""
+ einfo "KERNEL=\"zappseudo\", NAME=\"zap/pseudo\""
+ einfo "KERNEL=\"zap[0-9]*\", NAME=\"zap/%n\""
+}
+
+pkg_postinst() {
+ if use devfs26; then
+ ewarn "*** Warning! ***"
+ ewarn "Devfs support for linux-2.6 is experimental and not"
+ ewarn "supported by digium or the asterisk project!"
+ echo
+ ewarn "Send bug-reports to: stkn@gentoo.org"
+ fi
+
+ echo
+ einfo "Use the /etc/init.d/zaptel script to load zaptel.conf settings on startup!"
+}