diff options
author | Gustavo Zacarias <gustavoz@gentoo.org> | 2007-07-12 21:13:04 +0000 |
---|---|---|
committer | Gustavo Zacarias <gustavoz@gentoo.org> | 2007-07-12 21:13:04 +0000 |
commit | c19cad7b21fbeec0cc7460bab6747edaef3e31a8 (patch) | |
tree | 990fc64a0cc187c4ab67a44955e6b518a58e3af2 /net-misc/zaptel | |
parent | Version bump for bug #184407. (diff) | |
download | historical-c19cad7b21fbeec0cc7460bab6747edaef3e31a8.tar.gz historical-c19cad7b21fbeec0cc7460bab6747edaef3e31a8.tar.bz2 historical-c19cad7b21fbeec0cc7460bab6747edaef3e31a8.zip |
Verbump, fixes #182655
Package-Manager: portage-2.1.2.9
Diffstat (limited to 'net-misc/zaptel')
-rw-r--r-- | net-misc/zaptel/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/zaptel/Manifest | 32 | ||||
-rw-r--r-- | net-misc/zaptel/files/digest-zaptel-1.2.18 | 9 | ||||
-rw-r--r-- | net-misc/zaptel/files/zaptel-1.2.18-gentoo.diff | 105 | ||||
-rw-r--r-- | net-misc/zaptel/zaptel-1.2.18.ebuild | 379 |
5 files changed, 528 insertions, 5 deletions
diff --git a/net-misc/zaptel/ChangeLog b/net-misc/zaptel/ChangeLog index c7156121c34b..b2b09f214266 100644 --- a/net-misc/zaptel/ChangeLog +++ b/net-misc/zaptel/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/zaptel # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.93 2007/04/27 11:04:53 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.94 2007/07/12 21:13:04 gustavoz Exp $ + +*zaptel-1.2.18 (12 Jul 2007) + + 12 Jul 2007; Gustavo Zacarias <gustavoz@gentoo.org> + +files/zaptel-1.2.18-gentoo.diff, +zaptel-1.2.18.ebuild: + Verbump, fixes #182655 27 Apr 2007; Raúl Porcel <armin76@gentoo.org> zaptel-1.2.16.ebuild: x86 stable wrt bug 166679 diff --git a/net-misc/zaptel/Manifest b/net-misc/zaptel/Manifest index a616b3be0a91..1b91286dabb1 100644 --- a/net-misc/zaptel/Manifest +++ b/net-misc/zaptel/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX zaptel-1.0.10-devfs26.diff 6026 RMD160 81a4c9d3520b0b716f28dc41ac1c4518a8d9efa6 SHA1 5a018b95fd6c7340ae383624a2206566c2fd3874 SHA256 da217fc40c3d1faf4de800818c78966b915f3b928e00ff02812725104511cebf MD5 24ffa9ff867ef807083a53f61465fe02 files/zaptel-1.0.10-devfs26.diff 6026 RMD160 81a4c9d3520b0b716f28dc41ac1c4518a8d9efa6 files/zaptel-1.0.10-devfs26.diff 6026 @@ -42,6 +45,10 @@ AUX zaptel-1.2.16-gentoo.diff 5295 RMD160 fe847e40ecdf041970bf91fe38f088cf3e1be4 MD5 27729c0ff28af11c6753094db7c4ac7d files/zaptel-1.2.16-gentoo.diff 5295 RMD160 fe847e40ecdf041970bf91fe38f088cf3e1be4c3 files/zaptel-1.2.16-gentoo.diff 5295 SHA256 f7caa5824fc7ef39149b6a52dd9b4520d4580db20211b0c8995275ae89ff2c31 files/zaptel-1.2.16-gentoo.diff 5295 +AUX zaptel-1.2.18-gentoo.diff 5295 RMD160 fe847e40ecdf041970bf91fe38f088cf3e1be4c3 SHA1 03badeb90d7b97e69878d6fed64d6ce317a09ea5 SHA256 f7caa5824fc7ef39149b6a52dd9b4520d4580db20211b0c8995275ae89ff2c31 +MD5 27729c0ff28af11c6753094db7c4ac7d files/zaptel-1.2.18-gentoo.diff 5295 +RMD160 fe847e40ecdf041970bf91fe38f088cf3e1be4c3 files/zaptel-1.2.18-gentoo.diff 5295 +SHA256 f7caa5824fc7ef39149b6a52dd9b4520d4580db20211b0c8995275ae89ff2c31 files/zaptel-1.2.18-gentoo.diff 5295 AUX zaptel-1.2.9.1-ar.patch 924 RMD160 24eac6e9c5a9576b04df1e595fa6a2e2487772fe SHA1 fdf329d360508d8e629d196d4f0e6ccfabf24dff SHA256 8a8374b2689ed70108d10eb704bb6d3b35550f33a183e039e7efd69c7a681485 MD5 235d2550fd9a0bde64929e27a6a2343d files/zaptel-1.2.9.1-ar.patch 924 RMD160 24eac6e9c5a9576b04df1e595fa6a2e2487772fe files/zaptel-1.2.9.1-ar.patch 924 @@ -79,11 +86,14 @@ DIST bristuff-0.3.0-PRE-1s.tar.gz 265953 RMD160 8d3abdbbae4c376d52225395c72f4538 DIST bristuff-0.3.0-PRE-1v.tar.gz 267644 RMD160 5c5f034d29f4156351a495f40c9c4b176f65e06e SHA1 0ffbe79cd44119b09eb744eb9bf1b6fb90fa1bab SHA256 91254dd6c71b74a5990df622b523d06c2f0399c6e47630e5155392c1598fd39e DIST bristuff-0.3.0-PRE-1x.tar.gz 279200 RMD160 bc84aa50370627cfead9e0646cf87c16ddff7b00 SHA1 e02a82cebaefa0d666ad56532369310aae818d91 SHA256 13d98160d4a10b46b77c822577e6c64ad7dadbc2df1b4cd0a1007ae3bbbd4aa8 DIST bristuff-0.3.0-PRE-1y-d.tar.gz 286165 RMD160 7424e3f6876ff1e9415c11d3c8ed70014c5a0f4f SHA1 cb984daf1616c847d02d4824e36e13d55a142ade SHA256 99688819bce753910b154ad0866d77f861e25842a1e810d0baf80a0a02cfef25 +DIST bristuff-0.3.0-PRE-1y-h.tar.gz 286224 RMD160 bf0b9fce76c68565837b56676262fdd055240653 SHA1 cefd78476b6e394672de27849ca4a02b81a7ef1d SHA256 5657e2a50cfe35a64d9aa8caea4c3306539ed81a4ac955a9792a5d58c471a03f DIST zaphfc_0.3.0-PRE-1o_florz-12.diff.gz 10736 RMD160 b95d2301402e1108bc480ce0e66e87e3062eccf8 SHA1 f8ab2f312c6a2b2f607b9e7f3ccbcca0858c53a7 SHA256 04a8dd22d581b5d28d46a589d695f6eb634bf2bf355347a637fe2d560a63528c +DIST zaphfc_0.3.0-PRE-1y-h_florz-12.diff.gz 10806 RMD160 34834559a99e3a52ade9ff7e9804742e9bc5260f SHA1 4e890b2ae27f3c46061e6a1f6ccd7b205470f3e2 SHA256 83d3705a55fbf265b97e37bbc45facd4f040331f6c9c1b6b98c94957e92eba11 DIST zaptel-1.0.10.tar.gz 327832 RMD160 a797bb36f35e50c51d30705ad1d628f5728d87ed SHA1 98544260fca2afbcd304f7354b62a56138e15a09 SHA256 7978f3c56a95033bf2bc2cb8d0cb2830c5371aae21e0021503c6dbf2361795d1 DIST zaptel-1.2.11.tar.gz 1425625 RMD160 6ae43a2f5801dab17216912f976e67371d8e51d2 SHA1 30a2001449ff50b5a47970b76a77500986602211 SHA256 3641c8ef684862b3cc9fd3c3341d25095909a9c2f901d31b7cc9394210cb50e8 DIST zaptel-1.2.12.tar.gz 1487021 RMD160 4cbf2627a8bbbad65ec43578c1c89e79f1682bdb SHA1 733dcc3f90a7485808ff2e76832d6e78dca5728c SHA256 ab1e87645ceaae9269493f4e448596045732389197a9bb8c21bd5be88533e48f DIST zaptel-1.2.16.tar.gz 3047775 RMD160 dba8d97334aa7668166b33ef64498d2e3a27b6ad SHA1 b39e23012127ddad586335c0163850ce828c6370 SHA256 efe0a3ecc36cf8c8cd8dc2e017c71fa9d2c32ee7bdae60818f9ba64b9c11924c +DIST zaptel-1.2.18.tar.gz 3076214 RMD160 e051b06311681c281a70c4826705b2ab315377c1 SHA1 9ec57df2548b77d4e591aa9253393153455177db SHA256 c1bfd262dcb428456cf590c6740f146d409faceeba9969585d8bec4ceb376b4d DIST zaptel-1.2.9.1.tar.gz 1255412 RMD160 caf2ad931e2ae439500805a6ca4376dc8083de5a SHA1 6145301bb47107c0910a098e26b4ca5cdb2377ab SHA256 7def44c259352397af2ad80f3c0eb103ff640ffbc7c95f37c3802fee75c10ede EBUILD zaptel-1.0.10-r2.ebuild 7198 RMD160 036e0776f0c7b8caf6de8251e31f5f46cf006fbd SHA1 9325437c088fa625dfd14aabc9345de872322de3 SHA256 7a00df8d4f2908570c561ed90635ee383667e4980d927f96eaa9f767bd98aadb MD5 43fb4cf618bd2dacef2ca501fcc5c703 zaptel-1.0.10-r2.ebuild 7198 @@ -105,14 +115,18 @@ EBUILD zaptel-1.2.16.ebuild 9121 RMD160 b2470ddebf0d0a875fec81c76036be783fcdff22 MD5 30218222a79f53c31caa4551361d99e1 zaptel-1.2.16.ebuild 9121 RMD160 b2470ddebf0d0a875fec81c76036be783fcdff22 zaptel-1.2.16.ebuild 9121 SHA256 7b87297ebfa39603effc47c12d2aa90547bc9b7b1831e067fdcc37213054d40a zaptel-1.2.16.ebuild 9121 +EBUILD zaptel-1.2.18.ebuild 9310 RMD160 40e513978be268e76e35353242c0f67aa0237171 SHA1 e50dd63e77e340127eef8f07c263b163e1351023 SHA256 22e7d66f59cc617527a7d4316052368b55527ada10e20db7a5a88532ae3da295 +MD5 a601815569005db28e60b6aa313e7e6c zaptel-1.2.18.ebuild 9310 +RMD160 40e513978be268e76e35353242c0f67aa0237171 zaptel-1.2.18.ebuild 9310 +SHA256 22e7d66f59cc617527a7d4316052368b55527ada10e20db7a5a88532ae3da295 zaptel-1.2.18.ebuild 9310 EBUILD zaptel-1.2.9.1-r1.ebuild 8577 RMD160 b487dfe2f52b91b5cd5a75667a2c702bb65397c5 SHA1 b304a51b4e762ca281a54ddac822f3e2deabc4b7 SHA256 36b1e47f352425665c6ed1c77ba9a53374b5bb04e8aaabd8b9483b4c377df8bd MD5 3137e2eae66b020b7ac2d239b8d4008b zaptel-1.2.9.1-r1.ebuild 8577 RMD160 b487dfe2f52b91b5cd5a75667a2c702bb65397c5 zaptel-1.2.9.1-r1.ebuild 8577 SHA256 36b1e47f352425665c6ed1c77ba9a53374b5bb04e8aaabd8b9483b4c377df8bd zaptel-1.2.9.1-r1.ebuild 8577 -MISC ChangeLog 18302 RMD160 0ede4b58a40f3eb8503d898100b9a8764a93f9be SHA1 bdf168047322bffc055d7bfb410ad440970ae5b1 SHA256 543838e5a64f159fba15578cd257722c20c3e074fffee1ac5ecd35279db26067 -MD5 40f7ea186d4b069010d65bac88b24551 ChangeLog 18302 -RMD160 0ede4b58a40f3eb8503d898100b9a8764a93f9be ChangeLog 18302 -SHA256 543838e5a64f159fba15578cd257722c20c3e074fffee1ac5ecd35279db26067 ChangeLog 18302 +MISC ChangeLog 18472 RMD160 3a1a77a8fe978217b5ca114c3fa66fb0c4880cc5 SHA1 c6297bb12b1b6b49325b130675efae20d87b055c SHA256 794c2160394f4a9e4bbe0e711cc3543bfefc8936419411b3db09a1372325f2c7 +MD5 f8ba6a620eb93f798e58d001628a8dd6 ChangeLog 18472 +RMD160 3a1a77a8fe978217b5ca114c3fa66fb0c4880cc5 ChangeLog 18472 +SHA256 794c2160394f4a9e4bbe0e711cc3543bfefc8936419411b3db09a1372325f2c7 ChangeLog 18472 MISC metadata.xml 382 RMD160 315172442a4bfaa87b855d4c421b22a2527e97b2 SHA1 7b95f41def10946742929592db1d76b7e3bb0a19 SHA256 f79d5cd273e9ecc2181e60ea226a7cb0128011d877fc7531b2df30bd5fd9ae20 MD5 f3d5d5b8a638e7a9a83fe0eb0d94282c metadata.xml 382 RMD160 315172442a4bfaa87b855d4c421b22a2527e97b2 metadata.xml 382 @@ -132,6 +146,16 @@ SHA256 54460d35717d16cc7f701365a8e3b927ebb1f5ec41bf1588ab30e87e29e7e6c1 files/di MD5 994eff5def5e98df0bd5dbf64ad76562 files/digest-zaptel-1.2.16 801 RMD160 c17584aa71e918d88f8d3601b0ee531b9672d9bc files/digest-zaptel-1.2.16 801 SHA256 19ce993b416dedfb32e4bc7b3fb6658ebec4143b3a4da280dddd5915b841baeb files/digest-zaptel-1.2.16 801 +MD5 3a766ac53e629c3ba3e0a3df5fe96945 files/digest-zaptel-1.2.18 807 +RMD160 dec2e7dcb98b876b82d9c4db11054ec3a11cf5c1 files/digest-zaptel-1.2.18 807 +SHA256 e2caf873e19e23f5d4b5517d70f16eabf3eec8a0813bdccf724138cb222adf48 files/digest-zaptel-1.2.18 807 MD5 4f0bce568656b2bd56047db290089c5e files/digest-zaptel-1.2.9.1-r1 658 RMD160 fed5eacf2bbc84ace2c5fdd4a4375d04312a761f files/digest-zaptel-1.2.9.1-r1 658 SHA256 9322dafee7f351be55a54eec5d617e1ee98b3a32aa5cb25546bd9631ac34487f files/digest-zaptel-1.2.9.1-r1 658 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.7-ecc0.1.6 (GNU/Linux) + +iD8DBQFGlpliKRy60XGEcJIRAl7kAJ4ud2l0vxgXnOB4h4aauZ2qrQmmWwCeOTha +YktJSj5FWojyyleJGdRjTUw= +=SAj3 +-----END PGP SIGNATURE----- diff --git a/net-misc/zaptel/files/digest-zaptel-1.2.18 b/net-misc/zaptel/files/digest-zaptel-1.2.18 new file mode 100644 index 000000000000..ca741c6a9d21 --- /dev/null +++ b/net-misc/zaptel/files/digest-zaptel-1.2.18 @@ -0,0 +1,9 @@ +MD5 47853b0befca4b0272867151bb195b1f bristuff-0.3.0-PRE-1y-h.tar.gz 286224 +RMD160 bf0b9fce76c68565837b56676262fdd055240653 bristuff-0.3.0-PRE-1y-h.tar.gz 286224 +SHA256 5657e2a50cfe35a64d9aa8caea4c3306539ed81a4ac955a9792a5d58c471a03f bristuff-0.3.0-PRE-1y-h.tar.gz 286224 +MD5 cbd7d8ab0a0541aaca960d7938bebdf0 zaphfc_0.3.0-PRE-1y-h_florz-12.diff.gz 10806 +RMD160 34834559a99e3a52ade9ff7e9804742e9bc5260f zaphfc_0.3.0-PRE-1y-h_florz-12.diff.gz 10806 +SHA256 83d3705a55fbf265b97e37bbc45facd4f040331f6c9c1b6b98c94957e92eba11 zaphfc_0.3.0-PRE-1y-h_florz-12.diff.gz 10806 +MD5 393c84c04aa366a6f36e1443823902ee zaptel-1.2.18.tar.gz 3076214 +RMD160 e051b06311681c281a70c4826705b2ab315377c1 zaptel-1.2.18.tar.gz 3076214 +SHA256 c1bfd262dcb428456cf590c6740f146d409faceeba9969585d8bec4ceb376b4d zaptel-1.2.18.tar.gz 3076214 diff --git a/net-misc/zaptel/files/zaptel-1.2.18-gentoo.diff b/net-misc/zaptel/files/zaptel-1.2.18-gentoo.diff new file mode 100644 index 000000000000..6b60d8e43d9d --- /dev/null +++ b/net-misc/zaptel/files/zaptel-1.2.18-gentoo.diff @@ -0,0 +1,105 @@ +diff -Nura zaptel-1.2.16/build_tools/genmodconf zaptel-1.2.16.gentoo/build_tools/genmodconf +--- zaptel-1.2.16/build_tools/genmodconf 2007-01-31 11:06:34.000000000 -0300 ++++ zaptel-1.2.16.gentoo/build_tools/genmodconf 2007-04-19 12:21:11.955803761 -0300 +@@ -79,20 +79,6 @@ + + echo Building ${target}... + +-if [ "${1}" = "linux24" ]; then +- for mod in ${3}; do +- if ! grep -q "post-install ${mod} " ${target}; then +- echo "post-install ${mod} /sbin/ztcfg" >> ${target} +- fi +- done +-elif [ "${1}" = "linux26" ]; then +- for mod in ${3}; do +- if ! grep -q "install ${mod} " ${target}; then +- echo "install ${mod} /sbin/modprobe --ignore-install ${mod} ${cmdopts} && /sbin/ztcfg" >> ${target} +- fi +- done +-fi +- + if [ -z "${combined}" ]; then + echo "***" + echo "*** WARNING:" +diff -Nura zaptel-1.2.16/build_tools/genudevrules zaptel-1.2.16.gentoo/build_tools/genudevrules +--- zaptel-1.2.16/build_tools/genudevrules 2007-01-31 14:27:30.000000000 -0300 ++++ zaptel-1.2.16.gentoo/build_tools/genudevrules 2007-04-19 12:28:20.390284221 -0300 +@@ -22,10 +22,10 @@ + + cat <<EOF + # zaptel devices with ownership/permissions for running as non-root +-KERNEL${match}"zapctl", NAME="zap/ctl", OWNER="asterisk", GROUP="asterisk", MODE="0660" +-KERNEL${match}"zaptimer", NAME="zap/timer", OWNER="asterisk", GROUP="asterisk", MODE="0660" +-KERNEL${match}"zapchannel", NAME="zap/channel", OWNER="asterisk", GROUP="asterisk", MODE="0660" +-KERNEL${match}"zappseudo", NAME="zap/pseudo", OWNER="asterisk", GROUP="asterisk", MODE="0660" +-KERNEL${match}"zaptranscode", NAME="zap/transcode", OWNER="asterisk", GROUP="asterisk", MODE="0660" +-KERNEL${match}"zap[0-9]*", NAME="zap/%n", OWNER="asterisk", GROUP="asterisk", MODE="0660" ++KERNEL${match}"zapctl", NAME="zap/ctl", OWNER="root", GROUP="dialout", MODE="0660" ++KERNEL${match}"zaptimer", NAME="zap/timer", OWNER="root", GROUP="dialout", MODE="0660" ++KERNEL${match}"zapchannel", NAME="zap/channel", OWNER="root", GROUP="dialout", MODE="0660" ++KERNEL${match}"zappseudo", NAME="zap/pseudo", OWNER="root", GROUP="dialout", MODE="0660" ++KERNEL${match}"zaptranscode", NAME="zap/transcode", OWNER="root", GROUP="dialout", MODE="0660" ++KERNEL${match}"zap[0-9]*", NAME="zap/%n", OWNER="root", GROUP="dialout", MODE="0660" + EOF +diff -Nura zaptel-1.2.16/Makefile zaptel-1.2.16.gentoo/Makefile +--- zaptel-1.2.16/Makefile 2007-03-07 16:14:30.000000000 -0300 ++++ zaptel-1.2.16.gentoo/Makefile 2007-04-19 12:39:39.943874878 -0300 +@@ -93,7 +93,7 @@ + + INSTALL_PREFIX:=$(DESTDIR) + +-CFLAGS+=-I. -O4 -g -Wall ++CFLAGS+=-I. -Iinclude -g -Wall + CFLAGS_PPC:=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi) + CFLAGS_X86-64:=$(shell if uname -m | grep -q x86_64; then echo "-m64"; fi) + CFLAGS+=$(CFLAGS_PPC) $(CFLAGS_X86-64) +@@ -331,7 +331,8 @@ + else # DYNFS + ifdef UDEVRULES + install -d $(INSTALL_PREFIX)/etc/udev/rules.d +- build_tools/genudevrules > $(INSTALL_PREFIX)/etc/udev/rules.d/zaptel.rules ++ build_tools/genudevrules > zaptel.rules ++ install -D -m 644 zaptel.rules $(INSTALL_PREFIX)/etc/udev/rules.d/10-zaptel.rules + else # !UDEVRULES + @echo "**** Dynamic filesystem detected -- not creating device nodes" + endif +@@ -346,7 +347,7 @@ + tar -zxf mISDNuser.tar.gz + $(MAKE) -C mISDNuser install + +-install: all devices firmware ++install: devices firmware + install -D -m 755 ztcfg $(INSTALL_PREFIX)/sbin/ztcfg + if [ -f sethdlc-new ]; then \ + install -D -m 755 sethdlc-new $(INSTALL_PREFIX)/sbin/sethdlc; \ +@@ -370,24 +371,21 @@ + fi; \ + rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/wcfxs.o + install -D -m 755 $(LIBTONEZONE_SO) $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) +- [ `id -u` = 0 ] && /sbin/ldconfig || : ++ [ `id -u` = 0 ] && /sbin/ldconfig -n $(INSTALL_PREFIX)/usr/lib || : + rm -f $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO) + ln -sf $(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) \ + $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER) + ln -sf $(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) \ + $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO) +- if [ -x /usr/sbin/sestatus ] && (/usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled") ; then /sbin/restorecon -v $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO); fi + install -D -m 644 zaptel.h $(INSTALL_PREFIX)/usr/include/linux/zaptel.h + install -D -m 644 torisa.h $(INSTALL_PREFIX)/usr/include/linux/torisa.h + install -D -m 644 tonezone.h $(INSTALL_PREFIX)/usr/include/tonezone.h +- install -m 644 doc/ztcfg.8 $(INSTALL_PREFIX)/usr/share/man/man8 +- install -m 644 doc/zttool.8 $(INSTALL_PREFIX)/usr/share/man/man8 +- [ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || : ++ install -d $(INSTALL_PREFIX)/usr/share/man/man8 ++ install -m 644 doc/ztcfg.8 $(INSTALL_PREFIX)/usr/share/man/man8/ ++ install -m 644 doc/zttool.8 $(INSTALL_PREFIX)/usr/share/man/man8/ + [ -f $(CONFIG_FILE) ] || install -D -m 644 zaptel.conf.sample $(CONFIG_FILE) ++ install -d -m 755 $(INSTALL_PREFIX)/etc/modules.d + build_tools/genmodconf $(BUILDVER) "$(INSTALL_PREFIX)" "$(filter-out zaptel ztdummy zttranscode wctc4xxp ztdynamic xpp_usb,$(MODULES)) $(MODULE_ALIASES)" +- @if [ -d /etc/modutils ]; then \ +- /sbin/update-modules ; \ +- fi + + install-udev: devices + diff --git a/net-misc/zaptel/zaptel-1.2.18.ebuild b/net-misc/zaptel/zaptel-1.2.18.ebuild new file mode 100644 index 000000000000..dc4802f49d77 --- /dev/null +++ b/net-misc/zaptel/zaptel-1.2.18.ebuild @@ -0,0 +1,379 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/zaptel-1.2.18.ebuild,v 1.1 2007/07/12 21:13:04 gustavoz Exp $ + +inherit toolchain-funcs eutils linux-mod + +BRI_VERSION="0.3.0-PRE-1y-h" +FLORZ_VERSION="0.3.0-PRE-1y-h_florz-12" + +IUSE="astribank bri ecmark ecmark2 ecmark3 ecaggressive eckb1 ecmg2 ecsteve ecsteve2 florz +rtc 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/releases/${MY_P}.tar.gz + bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) + florz? ( http://www.netdomination.org/pub/asterisk/zaphfc_${FLORZ_VERSION}.diff.gz )" + +S="${WORKDIR}/${MY_P}" + +S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" + +RDEPEND="virtual/libc + dev-libs/libusb + >=dev-libs/newt-0.50.0 + astribank? ( dev-lang/perl )" + +DEPEND="${RDEPEND} virtual/linux-sources" + +# list of echo canceller use flags, +# first active in this list is selected (=order does matter) +ZAP_EC_FLAGS="ecmark ecmark2 ecmark3 ecsteve ecsteve2 eckb1 ecmg2" + +### Begin: Helper functions + +select_echo_cancel() { + local myEC="" + + for x in ${ZAP_EC_FLAGS}; do + if use $x; then + myEC=$(echo "$x" | sed -e "s:^ec::" | tr '[:lower:]' '[:upper:]') + break; + fi + done + + echo ${myEC} +} + +zconfig_disable() { + if grep -q "${1}" ${S}/zconfig.h; then + # match a little more than ${1} so we can use zconfig_disable + # to disable all echo cancellers in zconfig.h w/o calling it several times + sed -i -e "s:^[ \t]*#define[ \t]\+\(${1}[a-zA-Z0-9_-]*\).*:#undef \1:" \ + ${S}/zconfig.h + fi + + return $? +} + +zconfig_enable() { + if grep -q "${1}" ${S}/zconfig.h; then + sed -i -e "s:^/\*[ \t]*#define[ \t]\+\(${1}\).*:#define \1:" \ + -e "s:^[ \t]*#undef[ \t]\+\(${1}\).*:#define \1:" \ + ${S}/zconfig.h + fi + + return $? +} + +### End: Helper functions + +pkg_setup() { + local result=0 numec=0 + + linux-mod_pkg_setup + + einfo "Running pre-flight checks..." + + # basic zaptel checks + if kernel_is 2 4 ; then + if ! linux_chkconfig_present CRC32; then + echo + eerror "Your kernel lacks CRC32 support!" + eerror "Enable CONFIG_CRC32!" + result=$((result+1)) + fi + else + if ! linux_chkconfig_present CRC_CCITT; then + echo + eerror "Your kernel lacks CRC_CCIT support!" + eerror "Enable CONFIG_CRC_CCIT!" + result=$((result+1)) + fi + if ! linux_chkconfig_present FW_LOADER; then + echo + eerror "Your kernel lacks FW_LOADER support!" + eerror "Enable CONFIG_FW_LOADER!" + result=$((result+1)) + fi + fi + + # check if multiple echo cancellers have been selected + for x in ${ZAP_EC_FLAGS}; do + use $x && numec=$((numec+1)) + done + if [[ $numec -gt 1 ]]; then + # multiple flags are active, only the first in the ZAP_EC_FLAGS list + # will be used, make sure the user knows about this + echo + ewarn "Multiple echo canceller flags are active but only one will be used!" + ewarn "Selected: $(select_echo_cancel)" + fi + + # we need at least HDLC generic support + if use zapnet && ! linux_chkconfig_present HDLC; then + echo + eerror "zapnet: Your kernel lacks HDLC support!" + eerror "zapnet: Enable CONFIG_HDLC* to use zaptel network support!" + result=$((result+1)) + fi + + # zapras needs PPP support + if use zapras && ! linux_chkconfig_present PPP; then + echo + eerror "zapras: Your kernel lacks PPP support!" + eerror "zapras: Enable CONFIG_PPP* to use zaptel ras support!" + result=$((result+1)) + fi + + # rtc needs linux-2.6 and CONFIG_RTC + if use rtc; then + if ! kernel_is 2 6; then + echo + eerror "rtc: >=Linux-2.6.0 is needed for rtc support!" + result=$((result+1)) + fi + + if ! linux_chkconfig_present RTC; then + eerror "rtc: Your kernel lacks RealTime-Clock support!" + result=$((result+1)) + fi + fi + + if [[ $result -gt 0 ]]; then + echo + ewarn "One or more of the neccessary precondition(s) is/are not met!" + ewarn "Look at the messages above, resolve the problem (or disable the use-flag) and try again" + echo + + if [[ $result -lt 3 ]]; then + eerror "[$result Error(s)] Zaptel is not happy :(" + else + eerror "[$result Error(s)] You're making zaptel cry :'(" + fi + die "[$result] Precondition(s) not met" + fi + + echo + einfo "Zaptel is happy and continues... :)" +} + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-gentoo.diff + epatch ${FILESDIR}/zaptel-1.2.9.1-ar.patch + + # try to apply bristuff patch + if use bri; then + # fix for userpriv + chmod -R a=rwX ${S_BRI} + + 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" + + # remove as soon as there's a new florz patch available + sed -i -e "s:zaptel-1\.2\.5:zaptel-1.2.6:g" \ + ${WORKDIR}/zaphfc_${FLORZ_VERSION}.diff + + 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 + + cd ${S} + fi + +### Configuration changes + local myEC + + # prepare zconfig.h + myEC=$(select_echo_cancel) + if [[ -n "${myEC}" ]]; then + einfo "Selected echo canceller: ${myEC}" + # disable default first, set new selected ec afterwards + zconfig_disable ECHO_CAN + zconfig_enable ECHO_CAN_${myEC} + fi + + # enable rtc support on 2.6 + if use rtc && linux_chkconfig_present RTC && kernel_is 2 6; then + einfo "Enabling ztdummy RTC support" + zconfig_enable USE_RTC + fi + + # enable agressive echo surpression + use ecaggressive && \ + zconfig_enable AGGRESSIVE_SUPPRESSOR + + # ppp ras support + use zapras && \ + zconfig_enable CONFIG_ZAPATA_PPP + + # frame relay, syncppp... + use zapnet && \ + zconfig_enable CONFIG_ZAPATA_NET + + # zaptel watchdog + use watchdog && \ + zconfig_enable CONFIG_ZAPTEL_WATCHDOG +} + +src_compile() { + # build + make KVERS=${KV_FULL} \ + KSRC=${KV_DIR} ARCH=$(tc-arch-kernel) || die + + if use astribank; then + cd ${S}/xpp/utils + make || die "make xpp utils failed" + 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() { + # Create firmware directory + mkdir -p ${D}/lib/firmware/ + + kernel_is 2 4 && cp /etc/modules.conf ${D}/etc + make INSTALL_PREFIX=${D} ARCH=$(tc-arch-kernel) \ + KVERS=${KV_FULL} KSRC=/usr/src/linux install || die + + dodoc ChangeLog README README.udev README.Linux26 README.fxsusb zaptel.init + dodoc zaptel.conf.sample LICENSE zaptel.sysconfig README.fxotune + + # additional tools + dobin ztmonitor ztspeed zttest fxotune + + # install all header files, several packages need the complete set + # (e.g. sangoma wanpipe) + insinto /usr/include/zaptel + doins *.h + + 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 + newconfd ${FILESDIR}/zaptel.confd zaptel + + # install devfsd rule file + insinto /etc/devfs.d + newins ${FILESDIR}/zaptel.devfsd zaptel + + # install udev rule file + insinto /etc/udev/rules.d + newins ${FILESDIR}/zaptel.udevd 10-zaptel.rules + + # fix permissions if there's no udev / devfs around + if [[ -d ${D}/dev/zap ]]; then + chown -R root:dialout ${D}/dev/zap + chmod -R u=rwX,g=rwX,o= ${D}/dev/zap + fi + + if use astribank; then + cd ${S}/xpp/utils + eval `perl '-V:installarchlib'` + make DESTDIR=${D} PERLLIBDIR=${installarchlib} install || die "failed xpp utils install" + dosbin zt_registration xpp_sync lszaptel + fi +} + +pkg_postinst() { + linux-mod_pkg_postinst + + echo + einfo "Use the /etc/init.d/zaptel script to load zaptel.conf settings on startup!" + echo + + if use bri; then + einfo "Bristuff configs have been merged as:" + einfo "" + einfo "${ROOT}etc/" + einfo " zaptel.conf.zaphfc" + einfo " zaptel.conf.quadBRI" + einfo " zaptel.conf.octoBRI" + einfo "" + einfo "${ROOT}etc/asterisk/" + einfo " zapata.conf.zaphfc" + einfo " zapata.conf.quadBRI" + einfo " zapata.conf.octoBRI" + echo + fi + + # fix permissions if there's no udev / devfs around + if [[ -d ${ROOT}dev/zap ]]; then + chown -R root:dialout ${ROOT}dev/zap + chmod -R u=rwX,g=rwX,o= ${ROOT}dev/zap + fi +} |