diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2012-01-16 12:39:26 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2012-01-16 12:39:26 +0000 |
commit | 710126ac274f54d2c07d2127389a072e90d790ee (patch) | |
tree | 8fc3a523a526f2e2a170cc6fa713967cbf76f7e9 /net-misc | |
parent | kde-misc/kcheckgmail removal (pending 16st Dec 2011), bug #394881 (diff) | |
download | gentoo-2-710126ac274f54d2c07d2127389a072e90d790ee.tar.gz gentoo-2-710126ac274f54d2c07d2127389a072e90d790ee.tar.bz2 gentoo-2-710126ac274f54d2c07d2127389a072e90d790ee.zip |
Patch scavenged by Erich Seifert restores compatibility with 3.2 linux kernels. Closes bug #397959 by Mike "vapier" Frysinger.
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/dahdi/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/dahdi/dahdi-2.5.0.2-r2.ebuild | 69 |
2 files changed, 77 insertions, 2 deletions
diff --git a/net-misc/dahdi/ChangeLog b/net-misc/dahdi/ChangeLog index b81448cb3b43..5318cf847845 100644 --- a/net-misc/dahdi/ChangeLog +++ b/net-misc/dahdi/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/dahdi -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/ChangeLog,v 1.32 2011/10/31 14:34:14 flameeyes Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/ChangeLog,v 1.33 2012/01/16 12:39:26 chainsaw Exp $ + +*dahdi-2.5.0.2-r2 (16 Jan 2012) + + 16 Jan 2012; Tony Vroon <chainsaw@gentoo.org> +dahdi-2.5.0.2-r2.ebuild: + Patch scavenged by Erich Seifert restores compatibility with 3.2 linux + kernels. Closes bug #397959 by Mike "vapier" Frysinger. 31 Oct 2011; Diego E. Pettenò <flameeyes@gentoo.org> dahdi-2.5.0.2-r1.ebuild: QA: use KV_OUT_DIR rather than KBUILD_OUTPUT to find which sources to build diff --git a/net-misc/dahdi/dahdi-2.5.0.2-r2.ebuild b/net-misc/dahdi/dahdi-2.5.0.2-r2.ebuild new file mode 100644 index 000000000000..247ca55ef16d --- /dev/null +++ b/net-misc/dahdi/dahdi-2.5.0.2-r2.ebuild @@ -0,0 +1,69 @@ +# 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.5.0.2-r2.ebuild,v 1.1 2012/01/16 12:39:26 chainsaw Exp $ + +EAPI=4 + +inherit base linux-mod eutils flag-o-matic toolchain-funcs + +MY_P="${P/dahdi/dahdi-linux}" +JNET=1.0.13 +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.11.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-tc400m-MR6.12.tar.gz +http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-hx8-2.06.tar.gz +mirror://gentoo/gentoo-dahdi-patchset-1.0.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 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 KSRC="${KV_OUT_DIR}" DESTDIR="${D}" DAHDI_MODULES_EXTRA="cwain.o qozap.o ztgsm.o" install + rm -rf "$D"/lib/modules/*/modules.* +} |