diff options
author | Rajiv Aaron Manglani <rajiv@gentoo.org> | 2006-06-11 15:55:27 +0000 |
---|---|---|
committer | Rajiv Aaron Manglani <rajiv@gentoo.org> | 2006-06-11 15:55:27 +0000 |
commit | 8531277672d7876c1ba33ba425283a9d2da61561 (patch) | |
tree | 37ff159c7db60cc0ecbfc1a2fe9c5bbf97188c04 /net-misc | |
parent | Fix digest. (Kevin Quinn, bug #136151) (diff) | |
download | gentoo-2-8531277672d7876c1ba33ba425283a9d2da61561.tar.gz gentoo-2-8531277672d7876c1ba33ba425283a9d2da61561.tar.bz2 gentoo-2-8531277672d7876c1ba33ba425283a9d2da61561.zip |
force version bump due to new patches.
(Portage version: 2.1)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/zaptel/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/zaptel/files/digest-zaptel-1.0.10-r1 | 6 | ||||
-rw-r--r-- | net-misc/zaptel/metadata.xml | 4 | ||||
-rw-r--r-- | net-misc/zaptel/zaptel-1.0.10-r1.ebuild | 263 |
4 files changed, 280 insertions, 1 deletions
diff --git a/net-misc/zaptel/ChangeLog b/net-misc/zaptel/ChangeLog index 9053d7b4f42c..e713ae2c1a80 100644 --- a/net-misc/zaptel/ChangeLog +++ b/net-misc/zaptel/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/zaptel # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.76 2006/06/08 02:19:26 stkn Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.77 2006/06/11 15:55:27 rajiv Exp $ + +*zaptel-1.0.10-r1 (11 Jun 2006) + + 11 Jun 2006; Rajiv Aaron Manglani <rajiv@gentoo.org> metadata.xml, + -zaptel-1.0.10.ebuild, +zaptel-1.0.10-r1.ebuild: + force version bump due to new patches. 08 Jun 2006; Stefan Knoblich <stkn@gentoo.org> +files/zaptel-1.0.10-fix-zapata-debug-undefined-warnings.diff, diff --git a/net-misc/zaptel/files/digest-zaptel-1.0.10-r1 b/net-misc/zaptel/files/digest-zaptel-1.0.10-r1 new file mode 100644 index 000000000000..dda57b1c8ec3 --- /dev/null +++ b/net-misc/zaptel/files/digest-zaptel-1.0.10-r1 @@ -0,0 +1,6 @@ +MD5 215dd795ce8ea72370b2e9d1bb7d8f6a bristuff-0.2.0-RC8q.tar.gz 152037 +RMD160 aaa9ca23eaeb74abc96dd7240f67e7886d4d6ad9 bristuff-0.2.0-RC8q.tar.gz 152037 +SHA256 8ba7a1e1e6ee8e9d77853d6d790d0de5deced7c11679b9b0e108cca817ed9728 bristuff-0.2.0-RC8q.tar.gz 152037 +MD5 a0ee0e7b276abe8ef88030d1252d6a3d zaptel-1.0.10.tar.gz 327832 +RMD160 a797bb36f35e50c51d30705ad1d628f5728d87ed zaptel-1.0.10.tar.gz 327832 +SHA256 7978f3c56a95033bf2bc2cb8d0cb2830c5371aae21e0021503c6dbf2361795d1 zaptel-1.0.10.tar.gz 327832 diff --git a/net-misc/zaptel/metadata.xml b/net-misc/zaptel/metadata.xml index 10f27dc5e06a..9892ee6b5e4d 100644 --- a/net-misc/zaptel/metadata.xml +++ b/net-misc/zaptel/metadata.xml @@ -6,4 +6,8 @@ <email>stkn@gentoo.org</email> <name>Stefan Knoblich</name> </maintainer> +<maintainer restrict="<net-misc/zaptel-1.2.0"> + <email>rajiv@gentoo.org</email> + <name>Rajiv Aaron Manglani</name> +</maintainer> </pkgmetadata> diff --git a/net-misc/zaptel/zaptel-1.0.10-r1.ebuild b/net-misc/zaptel/zaptel-1.0.10-r1.ebuild new file mode 100644 index 000000000000..455938012940 --- /dev/null +++ b/net-misc/zaptel/zaptel-1.0.10-r1.ebuild @@ -0,0 +1,263 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/zaptel-1.0.10-r1.ebuild,v 1.1 2006/06/11 15:55:27 rajiv Exp $ + +IUSE="bri devfs26 rtc ukcid" + +inherit toolchain-funcs eutils linux-mod + +BRI_VERSION="0.2.0-RC8q" +#FLORZ_VERSION="0.2.0-RC8o_florz-9" + +MY_PV="${PV/_p/.}" + +DESCRIPTION="Drivers for Digium and ZapataTelephony cards" +HOMEPAGE="http://www.asterisk.org" +SRC_URI="http://ftp1.digium.com/pub/telephony/zaptel/zaptel-${MY_PV}.tar.gz + bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz )" +# florz? ( http://zaphfc.florz.dyndns.org/zaphfc_${FLORZ_VERSION}.diff.gz )" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND="virtual/libc + virtual/linux-sources + >=dev-libs/newt-0.50.0" + +S="${WORKDIR}/${PN}-${MY_PV}" +S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" + +pkg_setup() { + linux-mod_pkg_setup + + # show an nice warning message about zaptel not supporting devfs on 2.6 + if kernel_is 2 6 && linux_chkconfig_present 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 disables udev support to avoid conflicts" + ewarn " 2. It is not 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 + fi +} + +src_unpack() { + unpack ${A} + + cd ${S} + # patch makefile(s) for gentoo + epatch ${FILESDIR}/${PN}-1.0.10-gentoo.diff + + # devfs support + if use devfs26; then + einfo "Enabling experimental devfs support for linux-2.6..." + epatch ${FILESDIR}/${PN}-1.0.10-devfs26.diff + + # disable udev + sed -i -e "s:#define[\t ]\+\(CONFIG_ZAP_UDEV\):#undef \1:" \ + zconfig.h + 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}/${PN}-1.0.4-gcc34.patch + fi + + # 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 ${S_BRI} + +# if use florz; then +# einfo "Using florz patches (${FLORZ_VERSION}) for zaphfc" +# 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 + + # replace uname -r with $(KVERS) + # and add KVERS?="$(uname -r)" to all bristuff Makefiles + find ${S_BRI} -iname "Makefile" -exec sed -i \ + -e "s:\`uname -r\`:\$(KVERS):g" \ + -e "s:uname -r:echo -n \$(KVERS):g" \ + -e "1 i KVERS?=\$(shell uname -r)" {} \; + fi + + + cd ${S} + ####################################################################### + # apply other patches here, + # make sure they work with things that have been added before! + # + + # apply x86 rtc patch for ztdummy (http://bugs.digium.com/view.php?id=4301) + # this won't have any effect on non-x86 systems... + if use rtc; then + if use x86 || use amd64; then + epatch ${FILESDIR}/${PN}-1.0.9-rtc.patch + else + ewarn "RTC is unsupported on your arch, skipping patch" + fi + fi + + + # UK callerid patch, adds support for british-telecoms callerid to x100p cards + # see http://www.lusyn.com/asterisk/patches.html for more information + use ukcid && \ + epatch ${FILESDIR}/${PN}-1.0.10-ukcid.patch + + # buy some time to get 1.2 into shape, + # fix 2.6.16 compile errors and CONFIG_ZAPATA_DEBUG undefined warnings + epatch ${FILESDIR}/zaptel-1.0.10-linux2.6.16.diff + epatch ${FILESDIR}/zaptel-1.0.10-fix-zapata-debug-undefined-warnings.diff +} + +src_compile() { + make \ + KVERS=${KV_FULL} ARCH=$(tc-arch-kernel) \ + KERNEL_SOURCE=/usr/src/linux || die + + if use bri; then + cd ${S_BRI} + for x in cwain qozap zaphfc; do + make \ + KVERS=${KV_FULL} \ + ARCH=$(tc-arch-kernel) \ + KERNEL_SOURCE=/usr/src/linux \ + -C ${x} || die "make ${x} failed" + done + fi +} + +src_install() { + make INSTALL_PREFIX=${D} ARCH=$(tc-arch-kernel) \ + KVERS=${KV_FULL} KERNEL_SOURCE=/usr/src/linux install || die + + dodoc ChangeLog README README.udev README.Linux26 README.fxsusb zaptel.init + dodoc zaptel.conf.sample LICENSE zaptel.sysconfig + + # additional tools + dobin ztmonitor ztspeed zttest + + # install all header files for 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 + 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 +} + +pkg_postinst() { + linux-mod_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!" + 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 +} |