diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2012-11-21 16:30:03 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2012-11-21 16:30:03 +0000 |
commit | 2de13ae6a5a5f6321f96e90119d4174b312a8075 (patch) | |
tree | 688c81e233e8988542e1c0e753b2f35afbf848ea /net-misc/dahdi | |
parent | Fix by Jaco Kroon to avoid spurious errors in the AMI ShowDialPlan applicatio... (diff) | |
download | gentoo-2-2de13ae6a5a5f6321f96e90119d4174b312a8075.tar.gz gentoo-2-2de13ae6a5a5f6321f96e90119d4174b312a8075.tar.bz2 gentoo-2-2de13ae6a5a5f6321f96e90119d4174b312a8075.zip |
For the benefit of HFC-S PCI adapter owners, replace zaphfc (which has stopped working) with hfcs as per Oliver Jaksch in bug #443058. Have a supremely chatty build log as per Agostino "ago" Sarubbo in bug #443158.
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0xB5058F9A)
Diffstat (limited to 'net-misc/dahdi')
-rw-r--r-- | net-misc/dahdi/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/dahdi/dahdi-2.6.1-r2.ebuild | 71 |
2 files changed, 79 insertions, 1 deletions
diff --git a/net-misc/dahdi/ChangeLog b/net-misc/dahdi/ChangeLog index ef9be91497d5..23cf82e7982c 100644 --- a/net-misc/dahdi/ChangeLog +++ b/net-misc/dahdi/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/dahdi # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/ChangeLog,v 1.46 2012/11/14 21:04:11 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/ChangeLog,v 1.47 2012/11/21 16:30:03 chainsaw Exp $ + +*dahdi-2.6.1-r2 (21 Nov 2012) + + 21 Nov 2012; Tony Vroon <chainsaw@gentoo.org> +dahdi-2.6.1-r2.ebuild: + For the benefit of HFC-S PCI adapter owners, replace zaphfc (which has + stopped working) with hfcs as per Oliver Jaksch in bug #443058. Have a + supremely chatty build log as per Agostino "ago" Sarubbo in bug #443158. 14 Nov 2012; Agostino Sarubbo <ago@gentoo.org> dahdi-2.6.1-r1.ebuild: Stable for x86, wrt bug #441468 diff --git a/net-misc/dahdi/dahdi-2.6.1-r2.ebuild b/net-misc/dahdi/dahdi-2.6.1-r2.ebuild new file mode 100644 index 000000000000..6677c3e6991f --- /dev/null +++ b/net-misc/dahdi/dahdi-2.6.1-r2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.6.1-r2.ebuild,v 1.1 2012/11/21 16:30:03 chainsaw Exp $ + +EAPI=4 + +inherit base linux-mod eutils flag-o-matic toolchain-funcs + +MY_P="${P/dahdi/dahdi-linux}" +JNET=1.0.14 +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Kernel modules for Digium compatible hardware (formerly known as Zaptel)." +HOMEPAGE="http://www.asterisk.org" +SRC_URI="http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/${MY_P}.tar.gz +http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz +http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-vpmoct032-1.12.0.tar.gz +http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-064-1.05.01.tar.gz +http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-128-1.05.01.tar.gz +http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-256-1.05.01.tar.gz +http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-tc400m-MR6.12.tar.gz +http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-hx8-2.06.tar.gz +http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-te820-1.76.tar.gz +mirror://gentoo/gentoo-dahdi-patchset-1.1.2.tar.bz2 +http://www.junghanns.net/downloads/jnet-dahdi-drivers-${JNET}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="flash" +RESTRICT="test" + +DEPEND="" +RDEPEND="" + +EPATCH_SUFFIX="diff" +PATCHES=( "${WORKDIR}/dahdi-patchset" ) + +CONFIG_CHECK="MODULES CRC_CCITT" + +src_unpack() { + unpack ${A} + # Copy the firmware tarballs over, the makefile will try and download them otherwise + for file in ${A} ; do + cp "${DISTDIR}"/${file} "${MY_P}"/drivers/dahdi/firmware/ + done + # But without the .bin's it'll still fall over and die, so copy those too. + cp *.bin "${MY_P}"/drivers/dahdi/firmware/ + cp -p "${WORKDIR}"/jnet-dahdi-drivers-${JNET}/cwain/*.[ch] "${MY_P}"/drivers/dahdi/ + cp -p "${WORKDIR}"/jnet-dahdi-drivers-${JNET}/qozap/*.[ch] "${MY_P}"/drivers/dahdi/ + cp -p "${WORKDIR}"/jnet-dahdi-drivers-${JNET}/ztgsm/*.[ch] "${MY_P}"/drivers/dahdi/ +} + +src_prepare() { + if use flash; then + sed -i -e "s:/\* #define FXSFLASH \*/:#define FXSFLASH:" include/dahdi/dahdi_config.h || die "Failed to define FXSFLASH" + sed -i -e "s:/\* #define SHORT_FLASH_TIME \*/:#define SHORT_FLASH_TIME:" include/dahdi/dahdi_config.h || die "Failed to define SHORT_FLASH_TIME" + fi + base_src_prepare +} + +src_compile() { + unset ARCH + emake V=1 CC=$(tc-getCC) LD=$(tc-getLD) KSRC="${KV_OUT_DIR}" DESTDIR="${D}" DAHDI_MODULES_EXTRA="cwain.o qozap.o ztgsm.o" all +} + +src_install() { + einfo "Installing kernel module" + emake V=1 CC=$(tc-getCC) LD=$(tc-getLD) KSRC="${KV_OUT_DIR}" DESTDIR="${D}" DAHDI_MODULES_EXTRA="cwain.o qozap.o ztgsm.o" install + rm -rf "$D"/lib/modules/*/modules.* +} |