diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2011-09-02 08:41:04 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2011-09-02 08:41:04 +0000 |
commit | 24ddbfe380298ef262f1335d1acb001b6d2ae70a (patch) | |
tree | 5b921e3f808c4f3ccb7eb6554deda3a63c561567 /net-misc/dahdi | |
parent | [media-libs/tiff-compat] Drop unneded patches (diff) | |
download | gentoo-2-24ddbfe380298ef262f1335d1acb001b6d2ae70a.tar.gz gentoo-2-24ddbfe380298ef262f1335d1acb001b6d2ae70a.tar.bz2 gentoo-2-24ddbfe380298ef262f1335d1acb001b6d2ae70a.zip |
Clean up old ebuilds and patches.
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/dahdi')
-rw-r--r-- | net-misc/dahdi/ChangeLog | 13 | ||||
-rw-r--r-- | net-misc/dahdi/dahdi-2.1.0.4.ebuild | 62 | ||||
-rw-r--r-- | net-misc/dahdi/dahdi-2.2.0.2.ebuild | 73 | ||||
-rw-r--r-- | net-misc/dahdi/dahdi-2.2.1.1.ebuild | 57 | ||||
-rw-r--r-- | net-misc/dahdi/dahdi-2.3.0.1.ebuild | 57 | ||||
-rw-r--r-- | net-misc/dahdi/dahdi-2.3.0.ebuild | 57 | ||||
-rw-r--r-- | net-misc/dahdi/dahdi-2.4.0-r1.ebuild | 64 | ||||
-rw-r--r-- | net-misc/dahdi/dahdi-2.4.0.ebuild | 56 | ||||
-rw-r--r-- | net-misc/dahdi/dahdi-2.4.1.ebuild | 66 | ||||
-rw-r--r-- | net-misc/dahdi/files/dahdi-2.1.0.4-netdev-2-6-29.patch | 513 | ||||
-rw-r--r-- | net-misc/dahdi/files/dahdi-2.1.0.4-no-depmod.patch | 12 | ||||
-rw-r--r-- | net-misc/dahdi/files/dahdi-2.2.0.2-driver_data-2.6.32.patch | 84 | ||||
-rw-r--r-- | net-misc/dahdi/files/dahdi-2.2.0.2-gcc44-hack.patch | 27 | ||||
-rw-r--r-- | net-misc/dahdi/files/dahdi-2.2.0.2-includes.patch | 100 | ||||
-rw-r--r-- | net-misc/dahdi/files/dahdi-2.2.0.2-net-device-ops.patch | 42 | ||||
-rw-r--r-- | net-misc/dahdi/files/dahdi-2.2.0.2-no-depmod.patch | 12 |
16 files changed, 12 insertions, 1283 deletions
diff --git a/net-misc/dahdi/ChangeLog b/net-misc/dahdi/ChangeLog index 47da5e148adf..8e74b8149475 100644 --- a/net-misc/dahdi/ChangeLog +++ b/net-misc/dahdi/ChangeLog @@ -1,6 +1,17 @@ # 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.23 2011/08/26 09:57:43 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/ChangeLog,v 1.24 2011/09/02 08:41:03 chainsaw Exp $ + + 02 Sep 2011; Tony Vroon <chainsaw@gentoo.org> -dahdi-2.1.0.4.ebuild, + -files/dahdi-2.1.0.4-netdev-2-6-29.patch, + -files/dahdi-2.1.0.4-no-depmod.patch, -dahdi-2.2.0.2.ebuild, + -files/dahdi-2.2.0.2-driver_data-2.6.32.patch, + -files/dahdi-2.2.0.2-gcc44-hack.patch, -files/dahdi-2.2.0.2-includes.patch, + -files/dahdi-2.2.0.2-net-device-ops.patch, + -files/dahdi-2.2.0.2-no-depmod.patch, -dahdi-2.2.1.1.ebuild, + -dahdi-2.3.0.ebuild, -dahdi-2.3.0.1.ebuild, -dahdi-2.4.0.ebuild, + -dahdi-2.4.0-r1.ebuild, -dahdi-2.4.1.ebuild: + Clean up old ebuilds and patches. *dahdi-2.5.0 (26 Aug 2011) diff --git a/net-misc/dahdi/dahdi-2.1.0.4.ebuild b/net-misc/dahdi/dahdi-2.1.0.4.ebuild deleted file mode 100644 index 89079dc436d0..000000000000 --- a/net-misc/dahdi/dahdi-2.1.0.4.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.1.0.4.ebuild,v 1.3 2011/01/19 16:54:16 chainsaw Exp $ - -inherit linux-mod eutils flag-o-matic - -MY_P="${P/dahdi/dahdi-linux}" -MY_S="${WORKDIR}/${MY_P}" -RESTRICT="test" - -DESCRIPTION="Kernel modules for Digium compatible hardware (formerly known as Zaptel)." -HOMEPAGE="http://www.asterisk.org" -SRC_URI="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/${MY_P}.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-vpmadt032-1.07.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="test" - -DEPEND="" -RDEPEND="" - -src_unpack() { - unpack ${A} - - # Fix udev rules to work with both asterisk and callweaver - sed -i 's/GROUP="asterisk"/GROUP="dialout"/' "${MY_S}"/build_tools/genudevrules - - # 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/ - - epatch "${FILESDIR}"/${P}-no-depmod.patch - - # http://bugs.digium.com/view.php?id=14285 - epatch "${FILESDIR}"/${P}-netdev-2-6-29.patch -} - -src_compile() { - cd "${MY_P}" - unset ARCH - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" modules || die "failed to build module" -} - -src_install() { - cd "${MY_P}" - - # setup directory structure so udev rules get installed - mkdir -p "${D}"/etc/udev/rules.d - - einfo "Installing kernel module" - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" install || die "failed to install module" - rm -rf "$D"/lib/modules/*/modules.* -} diff --git a/net-misc/dahdi/dahdi-2.2.0.2.ebuild b/net-misc/dahdi/dahdi-2.2.0.2.ebuild deleted file mode 100644 index 900d7b98bdcc..000000000000 --- a/net-misc/dahdi/dahdi-2.2.0.2.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.2.0.2.ebuild,v 1.3 2011/01/19 16:54:16 chainsaw Exp $ - -inherit linux-mod eutils flag-o-matic - -MY_P="${P/dahdi/dahdi-linux}" -MY_S="${WORKDIR}/${MY_P}" -RESTRICT="test" - -DESCRIPTION="Kernel modules for Digium compatible hardware (formerly known as Zaptel)." -HOMEPAGE="http://www.asterisk.org" -SRC_URI="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/${MY_P}.tar.gz -http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.17.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-vpmadt032-1.07.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="test" - -DEPEND="" -RDEPEND="" - -src_unpack() { - unpack ${A} - - # Fix udev rules to work with both asterisk and callweaver - sed -i 's/GROUP="asterisk"/GROUP="dialout"/' "${MY_S}"/build_tools/genudevrules - - # 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/ - - epatch "${FILESDIR}"/${P}-no-depmod.patch - - # https://issues.asterisk.org/view.php?id=15747 - epatch "${FILESDIR}"/${P}-net-device-ops.patch - - # If you want TASK_INTERRUPTIBLE you need <linux/sched.h>, hmmkay? - epatch "${FILESDIR}"/${P}-includes.patch - - # https://issues.asterisk.org/view.php?id=16114 - epatch "${FILESDIR}"/${P}-driver_data-2.6.32.patch - - # GCC 4.4 compatibility, the quick 'n dirty way - # error: dereferencing pointer to incomplete type - epatch "${FILESDIR}"/${P}-gcc44-hack.patch -} - -src_compile() { - cd "${MY_P}" - unset ARCH - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" all || die "Compilation failed" -} - -src_install() { - cd "${MY_P}" - - # setup directory structure so udev rules get installed - mkdir -p "${D}"/etc/udev/rules.d - - einfo "Installing kernel module" - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" install || die "Installation failed" - rm -rf "$D"/lib/modules/*/modules.* -} diff --git a/net-misc/dahdi/dahdi-2.2.1.1.ebuild b/net-misc/dahdi/dahdi-2.2.1.1.ebuild deleted file mode 100644 index f1d08d42bd49..000000000000 --- a/net-misc/dahdi/dahdi-2.2.1.1.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.2.1.1.ebuild,v 1.4 2011/01/19 16:54:16 chainsaw Exp $ - -EAPI=3 - -inherit base linux-mod eutils flag-o-matic - -MY_P="${P/dahdi/dahdi-linux}" -S="${WORKDIR}/${MY_P}" -RESTRICT="test" - -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.asterisk.org/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.17.0.tar.gz -http://downloads.asterisk.org/pub/telephony/firmware/releases/dahdi-fw-oct6114-064-1.05.01.tar.gz -http://downloads.asterisk.org/pub/telephony/firmware/releases/dahdi-fw-oct6114-128-1.05.01.tar.gz -http://downloads.asterisk.org/pub/telephony/firmware/releases/dahdi-fw-tc400m-MR6.12.tar.gz -http://downloads.asterisk.org/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.20.0.tar.gz -mirror://gentoo/gentoo-dahdi-patchset-0.1.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="test" - -DEPEND="" -RDEPEND="" - -EPATCH_SUFFIX="diff" -PATCHES=( "${WORKDIR}/dahdi-patchset" ) - -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/ -} - -src_compile() { - unset ARCH - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" all || die "Compilation failed" -} - -src_install() { - # setup directory structure so udev rules get installed - mkdir -p "${D}"/etc/udev/rules.d - - einfo "Installing kernel module" - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" install || die "Installation failed" - rm -rf "$D"/lib/modules/*/modules.* -} diff --git a/net-misc/dahdi/dahdi-2.3.0.1.ebuild b/net-misc/dahdi/dahdi-2.3.0.1.ebuild deleted file mode 100644 index f664ac7e2922..000000000000 --- a/net-misc/dahdi/dahdi-2.3.0.1.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.3.0.1.ebuild,v 1.2 2011/01/19 16:54:16 chainsaw Exp $ - -EAPI=3 - -inherit base linux-mod eutils flag-o-matic - -MY_P="${P/dahdi/dahdi-linux}" -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.20.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-fwload-vpmadt032-1.20.0.tar.gz -http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-hx8-2.06.tar.gz -mirror://gentoo/gentoo-dahdi-patchset-0.3.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="test" - -DEPEND="" -RDEPEND="" - -EPATCH_SUFFIX="diff" -PATCHES=( "${WORKDIR}/dahdi-patchset" ) - -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/ -} - -src_compile() { - unset ARCH - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" all || die "Compilation failed" -} - -src_install() { - # setup directory structure so udev rules get installed - mkdir -p "${D}"/etc/udev/rules.d - - einfo "Installing kernel module" - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" install || die "Installation failed" - rm -rf "$D"/lib/modules/*/modules.* -} diff --git a/net-misc/dahdi/dahdi-2.3.0.ebuild b/net-misc/dahdi/dahdi-2.3.0.ebuild deleted file mode 100644 index cfaabbc49d25..000000000000 --- a/net-misc/dahdi/dahdi-2.3.0.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.3.0.ebuild,v 1.2 2011/01/19 16:54:16 chainsaw Exp $ - -EAPI=3 - -inherit base linux-mod eutils flag-o-matic - -MY_P="${P/dahdi/dahdi-linux}" -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.20.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-fwload-vpmadt032-1.20.0.tar.gz -http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-hx8-2.06.tar.gz -mirror://gentoo/gentoo-dahdi-patchset-0.2.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="test" - -DEPEND="" -RDEPEND="" - -EPATCH_SUFFIX="diff" -PATCHES=( "${WORKDIR}/dahdi-patchset" ) - -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/ -} - -src_compile() { - unset ARCH - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" all || die "Compilation failed" -} - -src_install() { - # setup directory structure so udev rules get installed - mkdir -p "${D}"/etc/udev/rules.d - - einfo "Installing kernel module" - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" install || die "Installation failed" - rm -rf "$D"/lib/modules/*/modules.* -} diff --git a/net-misc/dahdi/dahdi-2.4.0-r1.ebuild b/net-misc/dahdi/dahdi-2.4.0-r1.ebuild deleted file mode 100644 index fc55da5cd78e..000000000000 --- a/net-misc/dahdi/dahdi-2.4.0-r1.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.4.0-r1.ebuild,v 1.4 2011/02/27 18:57:01 chainsaw Exp $ - -EAPI=3 - -inherit base linux-mod eutils flag-o-matic - -MY_P="${P/dahdi/dahdi-linux}" -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-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-0.5.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="flash" -RESTRICT="test" - -DEPEND="" -RDEPEND="" - -EPATCH_SUFFIX="diff" -PATCHES=( "${WORKDIR}/dahdi-patchset" ) - -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/ -} - -src_prepare() { - if use flash; then - sed -i -e "s:/\* #define FXSFLASH \*/:#define FXSFLASH:" include/dahdi/dahdi_config.h - sed -i -e "s:/\* #define SHORT_FLASH_TIME \*/:#define SHORT_FLASH_TIME:" include/dahdi/dahdi_config.h - fi - base_src_prepare -} - -src_compile() { - unset ARCH - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" all || die "Compilation failed" -} - -src_install() { - # setup directory structure so udev rules get installed - mkdir -p "${D}"/etc/udev/rules.d - - einfo "Installing kernel module" - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" install || die "Installation failed" - rm -rf "$D"/lib/modules/*/modules.* -} diff --git a/net-misc/dahdi/dahdi-2.4.0.ebuild b/net-misc/dahdi/dahdi-2.4.0.ebuild deleted file mode 100644 index 756775856098..000000000000 --- a/net-misc/dahdi/dahdi-2.4.0.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.4.0.ebuild,v 1.3 2011/01/19 16:54:16 chainsaw Exp $ - -EAPI=3 - -inherit base linux-mod eutils flag-o-matic - -MY_P="${P/dahdi/dahdi-linux}" -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-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-0.4.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="test" - -DEPEND="" -RDEPEND="" - -EPATCH_SUFFIX="diff" -PATCHES=( "${WORKDIR}/dahdi-patchset" ) - -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/ -} - -src_compile() { - unset ARCH - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" all || die "Compilation failed" -} - -src_install() { - # setup directory structure so udev rules get installed - mkdir -p "${D}"/etc/udev/rules.d - - einfo "Installing kernel module" - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" install || die "Installation failed" - rm -rf "$D"/lib/modules/*/modules.* -} diff --git a/net-misc/dahdi/dahdi-2.4.1.ebuild b/net-misc/dahdi/dahdi-2.4.1.ebuild deleted file mode 100644 index 5c3b6624335d..000000000000 --- a/net-misc/dahdi/dahdi-2.4.1.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.4.1.ebuild,v 1.4 2011/07/05 09:03:45 flameeyes Exp $ - -EAPI=3 - -inherit base linux-mod eutils flag-o-matic - -MY_P="${P/dahdi/dahdi-linux}" -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-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-0.5.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="flash" -RESTRICT="test" - -DEPEND="" -RDEPEND="" - -EPATCH_SUFFIX="diff" -PATCHES=( "${WORKDIR}/dahdi-patchset" ) - -CONFIG_CHECK="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/ -} - -src_prepare() { - if use flash; then - sed -i -e "s:/\* #define FXSFLASH \*/:#define FXSFLASH:" include/dahdi/dahdi_config.h - sed -i -e "s:/\* #define SHORT_FLASH_TIME \*/:#define SHORT_FLASH_TIME:" include/dahdi/dahdi_config.h - fi - base_src_prepare -} - -src_compile() { - unset ARCH - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" all || die "Compilation failed" -} - -src_install() { - # setup directory structure so udev rules get installed - mkdir -p "${D}"/etc/udev/rules.d - - einfo "Installing kernel module" - emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" install || die "Installation failed" - rm -rf "$D"/lib/modules/*/modules.* -} diff --git a/net-misc/dahdi/files/dahdi-2.1.0.4-netdev-2-6-29.patch b/net-misc/dahdi/files/dahdi-2.1.0.4-netdev-2-6-29.patch deleted file mode 100644 index b40378d4490f..000000000000 --- a/net-misc/dahdi/files/dahdi-2.1.0.4-netdev-2-6-29.patch +++ /dev/null @@ -1,513 +0,0 @@ -diff -uNr dahdi-linux-2.1.0.4.ORIG/drivers/dahdi/wctc4xxp/base.c dahdi-linux-2.1.0.4/drivers/dahdi/wctc4xxp/base.c ---- dahdi-linux-2.1.0.4.ORIG/drivers/dahdi/wctc4xxp/base.c 2009-03-10 15:41:57.000000000 +0000 -+++ dahdi-linux-2.1.0.4/drivers/dahdi/wctc4xxp/base.c 2009-03-10 15:43:04.000000000 +0000 -@@ -73,6 +73,7 @@ - } \ - - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) -+#ifndef WARN_ON_ONCE - #define WARN_ON_ONCE(__condition) do { \ - static int __once = 1; \ - if (unlikely(__condition)) { \ -@@ -83,6 +84,7 @@ - } \ - } while(0) - #endif -+#endif - - #define INVALID 999 /* Used to mark invalid channels, commands, etc.. */ - #define MAX_CHANNEL_PACKETS 5 /* Never let more than 5 outstanding packets exist for any channel. */ -@@ -265,6 +267,7 @@ - /* Supervisor function codes */ - #define SUPVSR_CREATE_CHANNEL 0x0010 - -+#define MONITOR_LIVE_INDICATION_TYPE 0x75 - #define CONFIG_CHANGE_TYPE 0x00 - #define CONFIG_DEVICE_CLASS 0x06 - -@@ -456,10 +459,12 @@ - unsigned long flags; - - spinlock_t cmd_list_lock; -+ spinlock_t rx_list_lock; - /* This is a device-global list of commands that are waiting to be - * transmited (and did not fit on the transmit descriptor ring) */ - struct list_head cmd_list; - struct list_head waiting_for_response_list; -+ struct list_head rx_list; - - unsigned int seq_num; - unsigned char numchannels; -@@ -498,6 +503,25 @@ - - }; - -+#ifdef HAVE_NETDEV_PRIV -+struct wcdte_netdev_priv { -+ struct wcdte *wc; -+}; -+#endif -+ -+static inline struct wcdte * -+wcdte_from_netdev(struct net_device *netdev) -+{ -+#ifdef HAVE_NETDEV_PRIV -+ struct wcdte_netdev_priv *priv; -+ priv = netdev_priv(netdev); -+ return priv->wc; -+#else -+ return netdev->priv; -+#endif -+} -+ -+ - static inline void wctc4xxp_set_ready(struct wcdte *wc) { - set_bit(DTE_READY, &wc->flags); - } -@@ -563,7 +587,6 @@ - return pt; - } - -- - static struct sk_buff * - tcb_to_skb(struct net_device *netdev, const struct tcb *cmd) - { -@@ -613,7 +636,7 @@ - static void - wctc4xxp_net_set_multi(struct net_device *netdev) - { -- struct wcdte *wc = netdev->priv; -+ struct wcdte *wc = wcdte_from_netdev(netdev); - DTE_DEBUG(DTE_DEBUG_GENERAL, "%s promiscuity:%d\n", - __FUNCTION__, netdev->promiscuity); - } -@@ -621,7 +644,7 @@ - static int - wctc4xxp_net_up(struct net_device *netdev) - { -- struct wcdte *wc = netdev->priv; -+ struct wcdte *wc = wcdte_from_netdev(netdev); - DTE_DEBUG(DTE_DEBUG_GENERAL, "%s\n", __FUNCTION__); - #if 1 - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) -@@ -636,7 +659,7 @@ - static int - wctc4xxp_net_down(struct net_device *netdev) - { -- struct wcdte *wc = netdev->priv; -+ struct wcdte *wc = wcdte_from_netdev(netdev); - DTE_DEBUG(DTE_DEBUG_GENERAL, "%s\n", __FUNCTION__); - #if 1 - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) -@@ -653,7 +676,7 @@ - static int - wctc4xxp_net_hard_start_xmit(struct sk_buff *skb, struct net_device *netdev) - { -- struct wcdte *wc = netdev->priv; -+ struct wcdte *wc = wcdte_from_netdev(netdev); - struct tcb *cmd; - - /* We set DO_NOT_CAPTURE because this packet was already captured by -@@ -688,7 +711,7 @@ - static int - wctc4xxp_poll(struct net_device *netdev, int *budget) - { -- struct wcdte *wc = netdev->priv; -+ struct wcdte *wc = wcdte_from_netdev(netdev); - int count = 0; - int quota = min(netdev->quota, *budget); - -@@ -714,7 +737,11 @@ - count = wctc4xxp_net_receive(wc, budget); - - if (!skb_queue_len(&wc->captured_packets)) { -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29) - netif_rx_complete(wc->netdev, &wc->napi); -+#else -+ netif_rx_complete(&wc->napi); -+#endif - } - return count; - } -@@ -723,7 +750,7 @@ - static struct net_device_stats * - wctc4xxp_net_get_stats(struct net_device *netdev) - { -- struct wcdte *wc = netdev->priv; -+ struct wcdte *wc = wcdte_from_netdev(netdev); - return &wc->net_stats; - } - -@@ -760,7 +787,7 @@ - static int - wctc4xxp_net_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) - { -- struct wcdte *wc = netdev->priv; -+ struct wcdte *wc = wcdte_from_netdev(netdev); - switch(cmd) { - case 0x89f0: - down(&wc->chansem); -@@ -789,14 +816,25 @@ - { - int res; - struct net_device *netdev; -+# ifdef HAVE_NETDEV_PRIV -+ struct wcdte_netdev_priv *priv; -+#endif - const char our_mac[] = { 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}; - -- if (!(netdev = alloc_netdev(0, wc->board_name, ether_setup))) { -+# ifdef HAVE_NETDEV_PRIV -+ netdev = alloc_netdev(sizeof(struct wcdte_netdev_priv), -+ wc->board_name, ether_setup); -+ if (!netdev) -+ return -ENOMEM; -+ priv = netdev_priv(netdev); -+ priv->wc = wc; -+# else -+ netdev = alloc_netdev(0, wc->board_name, ether_setup); -+ if (!netdev) - return -ENOMEM; -- } -- -- memcpy(netdev->dev_addr, our_mac, sizeof(our_mac)); - netdev->priv = wc; -+# endif -+ memcpy(netdev->dev_addr, our_mac, sizeof(our_mac)); - netdev->set_multicast_list = &wctc4xxp_net_set_multi; - netdev->open = &wctc4xxp_net_up; - netdev->stop = &wctc4xxp_net_down; -@@ -885,10 +923,12 @@ - } - - skb_queue_tail(&wc->captured_packets, skb); --# if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) -+# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) - netif_rx_schedule(netdev); --# else -+# elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29) - netif_rx_schedule(netdev, &wc->napi); -+# else -+ netif_rx_schedule(&wc->napi); - # endif - return; - } -@@ -1005,6 +1045,7 @@ - { - volatile struct wctc4xxp_descriptor *d; - unsigned int len; -+ unsigned long flags; - - WARN_ON(!c); - len = (c->data_len < MIN_PACKET_LEN) ? MIN_PACKET_LEN : c->data_len; -@@ -1013,11 +1054,11 @@ - c->data_len = MAX_FRAME_SIZE; - } - -- spin_lock_bh(&dr->lock); -+ spin_lock_irqsave(&dr->lock, flags); - d = wctc4xxp_descriptor(dr, dr->tail); - WARN_ON(!d); - if (d->buffer1) { -- spin_unlock_bh(&dr->lock); -+ spin_unlock_irqrestore(&dr->lock, flags); - /* Do not overwrite a buffer that is still in progress. */ - return -EBUSY; - } -@@ -1030,7 +1071,7 @@ - dr->pending[dr->tail] = c; - dr->tail = ++dr->tail & DRING_MASK; - ++dr->count; -- spin_unlock_bh(&dr->lock); -+ spin_unlock_irqrestore(&dr->lock, flags); - return 0; - } - -@@ -1040,7 +1081,8 @@ - volatile struct wctc4xxp_descriptor *d; - struct tcb *c; - unsigned int head = dr->head; -- spin_lock_bh(&dr->lock); -+ unsigned long flags; -+ spin_lock_irqsave(&dr->lock, flags); - d = wctc4xxp_descriptor(dr, head); - if (d->buffer1 && !OWNED(d)) { - pci_unmap_single(dr->pdev, d->buffer1, -@@ -1056,16 +1098,17 @@ - } else { - c = NULL; - } -- spin_unlock_bh(&dr->lock); -+ spin_unlock_irqrestore(&dr->lock, flags); - return c; - } - - static inline int wctc4xxp_getcount(struct wctc4xxp_descriptor_ring *dr) - { - int count; -- spin_lock_bh(&dr->lock); -+ unsigned long flags; -+ spin_lock_irqsave(&dr->lock, flags); - count = dr->count; -- spin_unlock_bh(&dr->lock); -+ spin_unlock_irqrestore(&dr->lock, flags); - return count; - } - -@@ -1256,9 +1299,10 @@ - { - int i; - struct wctc4xxp_descriptor *d; -+ unsigned long flags; - - /* NOTE: The DTE must be in the stopped state. */ -- spin_lock_bh(&dr->lock); -+ spin_lock_irqsave(&dr->lock, flags); - for (i = 0; i < DRING_SIZE; ++i) { - d = wctc4xxp_descriptor(dr, i); - if (d->buffer1) { -@@ -1276,7 +1320,7 @@ - dr->head = 0; - dr->tail = 0; - dr->count = 0; -- spin_unlock_bh(&dr->lock); -+ spin_unlock_irqrestore(&dr->lock, flags); - pci_free_consistent(dr->pdev, (sizeof(*d)+dr->padding) * DRING_SIZE, - dr->desc, dr->desc_dma); - } -@@ -1289,9 +1333,10 @@ - spin_lock_bh(&wc->cmd_list_lock); - list_splice_init(&wc->cmd_list, &local_list); - list_splice_init(&wc->waiting_for_response_list, &local_list); -+ list_splice_init(&wc->rx_list, &local_list); - spin_unlock_bh(&wc->cmd_list_lock); - -- while(!list_empty(&local_list)) { -+ while (!list_empty(&local_list)) { - cmd = list_entry(local_list.next, struct tcb, node); - list_del_init(&cmd->node); - free_cmd(cmd); -@@ -1497,9 +1542,7 @@ - u8 wctc4xxp_dstfmt; /* Digium Transcoder Engine Dest Format */ - int res; - -- if (down_interruptible(&wc->chansem)) { -- return -EINTR; -- } -+ down(&wc->chansem); - - /* Check again to see if the channel was built after grabbing the - * channel semaphore, in case the previous holder of the semaphore -@@ -1578,9 +1621,7 @@ - return -EIO; - } - -- if (down_interruptible(&wc->chansem)) { -- return -EINTR; -- } -+ down(&wc->chansem); - - /* Remove any packets that are waiting on the outbound queue. */ - wctc4xxp_cleanup_channel_private(wc, dtc); -@@ -1887,6 +1928,38 @@ - return ((0x02 == hdr->type) || (0x04 == hdr->type)) ? 1 : 0; - } - -+static void -+print_command(struct wcdte *wc, const struct tcb *cmd) -+{ -+ int i, curlength; -+ const struct csm_encaps_hdr *hdr = cmd->data; -+ char *buffer; -+ const int BUFFER_SIZE = 1024; -+ int parameters = ((hdr->length - 8)/sizeof(__le16)); -+ -+ buffer = kzalloc(BUFFER_SIZE + 1, GFP_ATOMIC); -+ if (!buffer) { -+ DTE_PRINTK(DEBUG, "Failed print_command\n"); -+ return; -+ } -+ curlength = snprintf(buffer, BUFFER_SIZE, -+ "opcode: %04x seq: %02x control: %02x " -+ "channel: %04x ", be16_to_cpu(hdr->op_code), -+ hdr->seq_num, hdr->control, be16_to_cpu(hdr->channel)); -+ curlength += snprintf(buffer + curlength, BUFFER_SIZE - curlength, -+ "length: %02x index: %02x type: %02x " -+ "class: %02x function: %04x", -+ hdr->length, hdr->index, hdr->type, hdr->class, -+ le16_to_cpu(hdr->function)); -+ for (i = 0; i < parameters; ++i) { -+ curlength += snprintf(buffer + curlength, -+ BUFFER_SIZE - curlength, " %04x", -+ le16_to_cpu(hdr->params[i])); -+ } -+ DTE_PRINTK(DEBUG, "%s\n", buffer); -+ kfree(buffer); -+} -+ - static void - receive_csm_encaps_packet(struct wcdte *wc, struct tcb *cmd) - { -@@ -1923,6 +1996,10 @@ - wake_up(&wc->waitq); - } - free_cmd(cmd); -+ } else if (MONITOR_LIVE_INDICATION_TYPE == hdr->type) { -+ DTE_PRINTK(WARNING, "Received diagnostic message:\n"); -+ print_command(wc, cmd); -+ free_cmd(cmd); - } else { - DTE_PRINTK(WARNING, "Unknown command type received. %02x\n", hdr->type); - free_cmd(cmd); -@@ -2026,28 +2103,21 @@ - static inline void service_rx_ring(struct wcdte *wc) - { - struct tcb *cmd; -- while ((cmd = wctc4xxp_retrieve(wc->rxd))) { -- struct tcb *newcmd; -+ unsigned long flags; -+ LIST_HEAD(local_list); - -- wctc4xxp_net_capture_cmd(wc, cmd); -+ spin_lock_irqsave(&wc->rx_list_lock, flags); -+ list_splice_init(&wc->rx_list, &local_list); -+ spin_unlock_irqrestore(&wc->rx_list_lock, flags); - -- if(!(newcmd = __alloc_cmd(ALLOC_FLAGS, 0))) { -- DTE_PRINTK(ERR, "Out of memory in %s.\n", __FUNCTION__); -- } else { -- if (newcmd->data_len < MAX_FRAME_SIZE) { -- newcmd->data = kmalloc(MAX_FRAME_SIZE, ALLOC_FLAGS); -- if (!newcmd->data) { -- DTE_PRINTK(ERR, "out of memory in %s " \ -- "again.\n", __FUNCTION__); -- } -- newcmd->data_len = MAX_FRAME_SIZE; -- } -- if (wctc4xxp_submit(wc->rxd, newcmd)) { -- DTE_PRINTK(ERR, "Failed submit in %s\n", __FUNCTION__); -- free_cmd(newcmd); -- } -- wctc4xxp_receive_demand_poll(wc); -- } -+ /* -+ * Process the received packets -+ */ -+ while (!list_empty(&local_list)) { -+ cmd = container_of(local_list.next, struct tcb, node); -+ list_del_init(&cmd->node); -+ -+ wctc4xxp_net_capture_cmd(wc, cmd); - wctc4xxp_receiveprep(wc, cmd); - } - wctc4xxp_receive_demand_poll(wc); -@@ -2075,6 +2145,7 @@ - DAHDI_IRQ_HANDLER(wctc4xxp_interrupt) - { - struct wcdte *wc = dev_id; -+ struct tcb *cmd; - u32 ints; - u32 reg; - #define TX_COMPLETE_INTERRUPT 0x00000001 -@@ -2091,10 +2162,28 @@ - - if (likely(ints & NORMAL_INTERRUPTS)) { - reg = 0; -- if (ints & TX_COMPLETE_INTERRUPT) { -+ if (ints & TX_COMPLETE_INTERRUPT) - reg |= TX_COMPLETE_INTERRUPT; -- } -+ - if (ints & RX_COMPLETE_INTERRUPT) { -+ while ((cmd = wctc4xxp_retrieve(wc->rxd))) { -+ spin_lock(&wc->rx_list_lock); -+ list_add_tail(&cmd->node, &wc->rx_list); -+ spin_unlock(&wc->rx_list_lock); -+ -+ cmd = __alloc_cmd(GFP_ATOMIC, 0); -+ if (!cmd) { -+ DTE_PRINTK(ERR, -+ "Out of memory in %s.\n", __func__); -+ } else { -+ if (wctc4xxp_submit(wc->rxd, cmd)) { -+ DTE_PRINTK(ERR, -+ "Failed submit in %s\n", -+ __func__); -+ free_cmd(cmd); -+ } -+ } -+ } - reg |= RX_COMPLETE_INTERRUPT; - } - #if DEFERRED_PROCESSING == WORKQUEUE -@@ -2205,8 +2294,7 @@ - static void - wctc4xxp_enable_interrupts(struct wcdte *wc) - { -- wctc4xxp_setintmask(wc, 0x000180c1); -- // wctc4xxp_setintmask(wc, 0xffffffff); -+ wctc4xxp_setintmask(wc, 0x000180c0); - } - - static void -@@ -2615,26 +2703,30 @@ - { - struct dahdi_transcoder_channel *dtc1, *dtc2; - struct channel_pvt *cpvt1, *cpvt2; -- int chan1, chan2; -+ int chan1, chan2, timeslot1, timeslot2; - int res; - - if (cpvt->encoder) { - chan1 = cpvt->chan_in_num; -+ timeslot1 = cpvt->timeslot_in_num; - chan2 = cpvt->chan_out_num; -+ timeslot2 = cpvt->timeslot_out_num; - } else { - chan1 = cpvt->chan_out_num; -+ timeslot1 = cpvt->timeslot_out_num; - chan2 = cpvt->chan_in_num; -+ timeslot2 = cpvt->timeslot_in_num; - } - -- if (chan1/2 >= wc->numchannels || chan2/2 >= wc->numchannels) { -+ if (timeslot1/2 >= wc->numchannels || timeslot2/2 >= wc->numchannels) { - DTE_PRINTK(WARNING, -- "Invalid channel numbers in %s. chan1:%d chan2: %d\n", -- __FUNCTION__, chan1/2, chan2/2); -+ "Invalid channel numbers in %s. chan1:%d chan2: %d\n", -+ __func__, timeslot1/2, timeslot2/2); - return 0; - } - -- dtc1 = &(wc->uencode->channels[chan1/2]); -- dtc2 = &(wc->udecode->channels[chan2/2]); -+ dtc1 = &(wc->uencode->channels[timeslot1/2]); -+ dtc2 = &(wc->udecode->channels[timeslot2/2]); - cpvt1 = dtc1->pvt; - cpvt2 = dtc2->pvt; - -@@ -2740,10 +2832,8 @@ - wctc4xxp_setup_channels(struct wcdte *wc) - { - int ret; -- if ((ret=down_interruptible(&wc->chansem))) { -- WARN_ALWAYS(); -- return ret; -- } -+ -+ down(&wc->chansem); - ret = __wctc4xxp_setup_channels(wc); - up(&wc->chansem); - -@@ -2979,8 +3069,10 @@ - init_MUTEX(&wc->chansem); - spin_lock_init(&wc->reglock); - spin_lock_init(&wc->cmd_list_lock); -+ spin_lock_init(&wc->rx_list_lock); - INIT_LIST_HEAD(&wc->cmd_list); - INIT_LIST_HEAD(&wc->waiting_for_response_list); -+ INIT_LIST_HEAD(&wc->rx_list); - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20) - INIT_WORK(&wc->deferred_work, deferred_work_func, wc); - #else diff --git a/net-misc/dahdi/files/dahdi-2.1.0.4-no-depmod.patch b/net-misc/dahdi/files/dahdi-2.1.0.4-no-depmod.patch deleted file mode 100644 index 98f2da259cfc..000000000000 --- a/net-misc/dahdi/files/dahdi-2.1.0.4-no-depmod.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -uNr dahdi-linux-2.1.0.4.ORIG/Makefile dahdi-linux-2.1.0.4/Makefile ---- dahdi-linux-2.1.0.4.ORIG/Makefile 2009-03-10 15:53:36.000000000 +0000 -+++ dahdi-linux-2.1.0.4/Makefile 2009-03-10 15:53:59.000000000 +0000 -@@ -191,7 +191,7 @@ - build_tools/uninstall-modules dahdi $(KVERS) - endif - $(KMAKE) INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=dahdi modules_install -- [ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || : -+# [ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || : - - uninstall-modules: - ifdef DESTDIR diff --git a/net-misc/dahdi/files/dahdi-2.2.0.2-driver_data-2.6.32.patch b/net-misc/dahdi/files/dahdi-2.2.0.2-driver_data-2.6.32.patch deleted file mode 100644 index 3085218c09fa..000000000000 --- a/net-misc/dahdi/files/dahdi-2.2.0.2-driver_data-2.6.32.patch +++ /dev/null @@ -1,84 +0,0 @@ -diff -uNr dahdi-linux-2.2.0.2.ORIg/drivers/dahdi/xpp/xbus-sysfs.c dahdi-linux-2.2.0.2/drivers/dahdi/xpp/xbus-sysfs.c ---- dahdi-linux-2.2.0.2.ORIg/drivers/dahdi/xpp/xbus-sysfs.c 2009-10-22 18:04:47.000000000 +0100 -+++ dahdi-linux-2.2.0.2/drivers/dahdi/xpp/xbus-sysfs.c 2009-10-22 18:05:54.000000000 +0100 -@@ -707,7 +707,11 @@ - dev->parent = &xbus->astribank; - dev_set_name(dev, "%02d:%1x:%1x", xbus->num, xpd->addr.unit, - xpd->addr.subunit); -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32) -+ dev_set_drvdata(dev, xpd); -+#else - dev->driver_data = xpd; -+#endif - dev->release = xpd_release; - ret = device_register(dev); - if(ret) { -@@ -728,11 +732,21 @@ - BUG_ON(!xbus); - XPD_DBG(DEVICES, xpd, "SYSFS\n"); - dev = &xpd->xpd_dev; -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32) -+ if(!dev_get_drvdata(dev)) -+ return; -+ BUG_ON(dev_get_drvdata(dev) != xpd); -+#else - if(!dev->driver_data) - return; - BUG_ON(dev->driver_data != xpd); -+#endif - device_unregister(dev); -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32) -+ dev_set_drvdata(dev, NULL); -+#else - dev->driver_data = NULL; -+#endif - } - - /*--------- Sysfs Device handling ----*/ -@@ -746,9 +760,15 @@ - astribank = &xbus->astribank; - BUG_ON(!astribank); - sysfs_remove_link(&astribank->kobj, "transport"); -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32) -+ if(!dev_get_drvdata(astribank)) -+ return; -+ BUG_ON(dev_get_drvdata(astribank) != xbus); -+#else - if(!astribank->driver_data) - return; - BUG_ON(astribank->driver_data != xbus); -+#endif - device_unregister(&xbus->astribank); - } - -@@ -764,18 +784,30 @@ - astribank->bus = &toplevel_bus_type; - astribank->parent = xbus->transport.transport_device; - dev_set_name(astribank, "xbus-%02d", xbus->num); -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32) -+ dev_set_drvdata(astribank, xbus); -+#else - astribank->driver_data = xbus; -+#endif - astribank->release = astribank_release; - ret = device_register(astribank); - if(ret) { - XBUS_ERR(xbus, "%s: device_register failed: %d\n", __FUNCTION__, ret); -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32) -+ dev_set_drvdata(astribank, NULL); -+#else - astribank->driver_data = NULL; -+#endif - goto out; - } - ret = sysfs_create_link(&astribank->kobj, &astribank->parent->kobj, "transport"); - if(ret < 0) { - XBUS_ERR(xbus, "%s: sysfs_create_link failed: %d\n", __FUNCTION__, ret); -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32) -+ dev_set_drvdata(astribank, NULL); -+#else - astribank->driver_data = NULL; -+#endif - goto out; - } - out: diff --git a/net-misc/dahdi/files/dahdi-2.2.0.2-gcc44-hack.patch b/net-misc/dahdi/files/dahdi-2.2.0.2-gcc44-hack.patch deleted file mode 100644 index d647a1f9beeb..000000000000 --- a/net-misc/dahdi/files/dahdi-2.2.0.2-gcc44-hack.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -uNr dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/xpp/xpp_dahdi.c dahdi-linux-2.2.0.2/drivers/dahdi/xpp/xpp_dahdi.c ---- dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/xpp/xpp_dahdi.c 2009-10-22 18:52:23.000000000 +0100 -+++ dahdi-linux-2.2.0.2/drivers/dahdi/xpp/xpp_dahdi.c 2009-10-22 18:52:55.000000000 +0100 -@@ -865,9 +865,11 @@ - #endif - spin_lock_irqsave(&xbus->lock, flags); - atomic_inc(&xpd->open_counter); -+/* - LINE_DBG(DEVICES, xpd, pos, "%s[%d]: open_counter=%d\n", - current->comm, current->pid, - atomic_read(&xpd->open_counter)); -+*/ - spin_unlock_irqrestore(&xbus->lock, flags); - if(xpd->xops->card_open) - xpd->xops->card_open(xpd, pos); -@@ -885,9 +887,11 @@ - spin_unlock_irqrestore(&xbus->lock, flags); - if(xpd->xops->card_close) - xpd->xops->card_close(xpd, pos); -+/* - LINE_DBG(DEVICES, xpd, pos, "%s[%d]: open_counter=%d\n", - current->comm, current->pid, - atomic_read(&xpd->open_counter)); -+*/ - atomic_dec(&xpd->open_counter); /* from xpp_open() */ - put_xpd(__FUNCTION__, xpd); /* from xpp_open() */ - return 0; diff --git a/net-misc/dahdi/files/dahdi-2.2.0.2-includes.patch b/net-misc/dahdi/files/dahdi-2.2.0.2-includes.patch deleted file mode 100644 index 5451bc6915dc..000000000000 --- a/net-misc/dahdi/files/dahdi-2.2.0.2-includes.patch +++ /dev/null @@ -1,100 +0,0 @@ -diff -uNr dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/dahdi-base.c dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.c ---- dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/dahdi-base.c 2009-10-22 17:14:40.000000000 +0100 -+++ dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.c 2009-10-22 17:14:49.000000000 +0100 -@@ -46,6 +46,7 @@ - #include <linux/kmod.h> - #include <linux/moduleparam.h> - #include <linux/list.h> -+#include <linux/sched.h> - - #include <linux/ppp_defs.h> - -diff -uNr dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/pciradio.c dahdi-linux-2.2.0.2/drivers/dahdi/pciradio.c ---- dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/pciradio.c 2009-10-22 17:14:40.000000000 +0100 -+++ dahdi-linux-2.2.0.2/drivers/dahdi/pciradio.c 2009-10-22 17:14:49.000000000 +0100 -@@ -51,6 +51,7 @@ - #include <linux/pci.h> - #include <linux/interrupt.h> - #include <linux/moduleparam.h> -+#include <linux/sched.h> - #include <asm/io.h> - #include <asm/delay.h> - -diff -uNr dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/voicebus/voicebus.c dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c ---- dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/voicebus/voicebus.c 2009-10-22 17:14:40.000000000 +0100 -+++ dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c 2009-10-22 17:16:44.000000000 +0100 -@@ -35,6 +35,7 @@ - #include <linux/interrupt.h> - #include <linux/timer.h> - #include <linux/module.h> -+#include <linux/sched.h> - - #include <dahdi/kernel.h> - #include "voicebus.h" -diff -uNr dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/wcfxo.c dahdi-linux-2.2.0.2/drivers/dahdi/wcfxo.c ---- dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/wcfxo.c 2009-10-22 17:14:40.000000000 +0100 -+++ dahdi-linux-2.2.0.2/drivers/dahdi/wcfxo.c 2009-10-22 17:14:49.000000000 +0100 -@@ -30,6 +30,7 @@ - #include <linux/usb.h> - #include <linux/errno.h> - #include <linux/pci.h> -+#include <linux/sched.h> - #include <asm/io.h> - #include <linux/moduleparam.h> - -diff -uNr dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/wct1xxp.c dahdi-linux-2.2.0.2/drivers/dahdi/wct1xxp.c ---- dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/wct1xxp.c 2009-10-22 17:14:40.000000000 +0100 -+++ dahdi-linux-2.2.0.2/drivers/dahdi/wct1xxp.c 2009-10-22 17:14:49.000000000 +0100 -@@ -33,6 +33,7 @@ - #include <linux/pci.h> - #include <linux/spinlock.h> - #include <linux/moduleparam.h> -+#include <linux/sched.h> - - #include <dahdi/kernel.h> - -diff -uNr dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/wctdm24xxp/base.c dahdi-linux-2.2.0.2/drivers/dahdi/wctdm24xxp/base.c ---- dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/wctdm24xxp/base.c 2009-10-22 17:14:40.000000000 +0100 -+++ dahdi-linux-2.2.0.2/drivers/dahdi/wctdm24xxp/base.c 2009-10-22 17:14:49.000000000 +0100 -@@ -45,6 +45,7 @@ - #include <linux/workqueue.h> - #include <linux/delay.h> - #include <linux/moduleparam.h> -+#include <linux/sched.h> - #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) - #include <linux/semaphore.h> - #else -diff -uNr dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/wctdm.c dahdi-linux-2.2.0.2/drivers/dahdi/wctdm.c ---- dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/wctdm.c 2009-10-22 17:14:40.000000000 +0100 -+++ dahdi-linux-2.2.0.2/drivers/dahdi/wctdm.c 2009-10-22 17:14:49.000000000 +0100 -@@ -31,6 +31,8 @@ - #include <linux/pci.h> - #include <linux/interrupt.h> - #include <linux/moduleparam.h> -+#include <linux/sched.h> -+ - #include <asm/io.h> - #include "proslic.h" - -diff -uNr dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/wcte11xp.c dahdi-linux-2.2.0.2/drivers/dahdi/wcte11xp.c ---- dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/wcte11xp.c 2009-10-22 17:14:40.000000000 +0100 -+++ dahdi-linux-2.2.0.2/drivers/dahdi/wcte11xp.c 2009-10-22 17:14:49.000000000 +0100 -@@ -32,6 +32,7 @@ - #include <linux/pci.h> - #include <linux/spinlock.h> - #include <linux/moduleparam.h> -+#include <linux/sched.h> - - #include <dahdi/kernel.h> - -diff -uNr dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/xpp/xbus-core.c dahdi-linux-2.2.0.2/drivers/dahdi/xpp/xbus-core.c ---- dahdi-linux-2.2.0.2.ORIG/drivers/dahdi/xpp/xbus-core.c 2009-10-22 17:14:40.000000000 +0100 -+++ dahdi-linux-2.2.0.2/drivers/dahdi/xpp/xbus-core.c 2009-10-22 17:16:10.000000000 +0100 -@@ -35,6 +35,7 @@ - #include <linux/workqueue.h> - #include <linux/device.h> - #include <linux/delay.h> /* for msleep() to debug */ -+#include <linux/sched.h> - #include "xpd.h" - #include "xpp_dahdi.h" - #include "xbus-core.h" diff --git a/net-misc/dahdi/files/dahdi-2.2.0.2-net-device-ops.patch b/net-misc/dahdi/files/dahdi-2.2.0.2-net-device-ops.patch deleted file mode 100644 index a8f0a1e5e392..000000000000 --- a/net-misc/dahdi/files/dahdi-2.2.0.2-net-device-ops.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c 2009/08/04 16:30:11 6936 -+++ dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c 2009/08/04 16:38:56 6937 -@@ -742,6 +742,17 @@ - return 0; - } - -+#ifdef HAVE_NET_DEVICE_OPS -+static const struct net_device_ops wctc4xxp_netdev_ops = { -+ .ndo_set_multicast_list = &wctc4xxp_net_set_multi, -+ .ndo_open = &wctc4xxp_net_up, -+ .ndo_stop = &wctc4xxp_net_down, -+ .ndo_start_xmit = &wctc4xxp_net_hard_start_xmit, -+ .ndo_get_stats = &wctc4xxp_net_get_stats, -+ .ndo_do_ioctl = &wctc4xxp_net_ioctl, -+}; -+#endif -+ - /** - * wctc4xxp_net_register - Register a new network interface. - * @wc: transcoder card to register the interface for. -@@ -773,14 +784,21 @@ - netdev->priv = wc; - # endif - memcpy(netdev->dev_addr, our_mac, sizeof(our_mac)); -+ -+# ifdef HAVE_NET_DEVICE_OPS -+ netdev->netdev_ops = &wctc4xxp_netdev_ops; -+# else - netdev->set_multicast_list = &wctc4xxp_net_set_multi; - netdev->open = &wctc4xxp_net_up; - netdev->stop = &wctc4xxp_net_down; - netdev->hard_start_xmit = &wctc4xxp_net_hard_start_xmit; - netdev->get_stats = &wctc4xxp_net_get_stats; - netdev->do_ioctl = &wctc4xxp_net_ioctl; -+# endif -+ - netdev->promiscuity = 0; - netdev->flags |= IFF_NOARP; -+ - # if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) - netdev->poll = &wctc4xxp_poll; - netdev->weight = 64; diff --git a/net-misc/dahdi/files/dahdi-2.2.0.2-no-depmod.patch b/net-misc/dahdi/files/dahdi-2.2.0.2-no-depmod.patch deleted file mode 100644 index a0713199b1bc..000000000000 --- a/net-misc/dahdi/files/dahdi-2.2.0.2-no-depmod.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -uNr dahdi-linux-2.2.0.2.ORIG/Makefile dahdi-linux-2.2.0.2/Makefile ---- dahdi-linux-2.2.0.2.ORIG/Makefile 2009-10-22 16:46:00.000000000 +0100 -+++ dahdi-linux-2.2.0.2/Makefile 2009-10-22 16:46:27.000000000 +0100 -@@ -184,7 +184,7 @@ - build_tools/uninstall-modules dahdi $(KVERS) - endif - $(KMAKE) INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=dahdi modules_install -- [ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || : -+# [ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || : - - uninstall-modules: - ifdef DESTDIR |