summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/dahdi/Manifest3
-rw-r--r--net-misc/dahdi/dahdi-2.2.0.1.ebuild58
-rw-r--r--net-misc/dahdi/files/dahdi-2.2.0.1-no-depmod.patch12
3 files changed, 73 insertions, 0 deletions
diff --git a/net-misc/dahdi/Manifest b/net-misc/dahdi/Manifest
index 736c417..f9cd447 100644
--- a/net-misc/dahdi/Manifest
+++ b/net-misc/dahdi/Manifest
@@ -1,9 +1,12 @@
AUX dahdi-2.1.0.4-install.patch 393 RMD160 06ee39ed93a574edf59cd4dfe55c3694edc8360b SHA1 8b216987ef8c5f6da3e7c41f6f83b4ad68ff4f05 SHA256 a32c6931ee61078030912cb5dd98f22c408071eafdcd97b903220ce7ec696810
+AUX dahdi-2.2.0.1-no-depmod.patch 507 RMD160 5941623c084a213b88c26c1d74e6c4cebc6e93e1 SHA1 900a0c03173f0693aa80d885e2e3e8fe7c289a1f SHA256 b1ec75feafce557bb10dccbbb0d407e920394a8653672a9cc38f6f50d30eaa20
DIST dahdi-fw-oct6114-064-1.05.01.tar.gz 165869 RMD160 bef97e3741c4d5b21d1e728a08984dc1f0431eb0 SHA1 2fb8e5f4f7aedb285ffa21632efd45af877eacd4 SHA256 56bac1f2024c76ecf9b6f40992eeea29a1fbee676bb2a37a058179bacfbb1c91
DIST dahdi-fw-oct6114-128-1.05.01.tar.gz 165849 RMD160 3c31b6d4ab7d3455eda75e42f5447880ea491b71 SHA1 bcf07434f4589d07d9b5f67f7b3a8fb115aa9229 SHA256 e1146749d205c41603b9b76852c3f8104dac233d0025d700db24504d10c99775
DIST dahdi-fw-tc400m-MR6.12.tar.gz 1750035 RMD160 8181ffd4bc861122c338e1eb2748e797210f3150 SHA1 9206abda4c9cf192e8cae7e707f2e4e65beb8f87 SHA256 11dd8d009809e41fc9a3a36766f59ff73d29075eede5b8724331d9a6e5259774
DIST dahdi-fw-vpmadt032-1.07.tar.gz 41376 RMD160 33dfc6da198065a33de516bdd2e4185bb7355e75 SHA1 fd470e7aec0db62e3750aa4819ff03b70c6e9977 SHA256 f566cc82203bc3a49f4850ac08dec613d1a2eeda437482e1d0c2da1e9e8bb68e
DIST dahdi-linux-2.1.0.4.tar.gz 1251822 RMD160 746a6b266e51003726046582bdbfcca2f6d11194 SHA1 e5fa4220b995b2841f1658e29fe710a649b1bd9c SHA256 42fde494ed205026037f6164f9112a7a7cac55adc8f8a535e3867ca83ae8c239
+DIST dahdi-linux-2.2.0.1.tar.gz 1386444 RMD160 cc5d9664666b1a639bc5df362ec25ce9a785569c SHA1 f361ab666edecbeef440e5d113e86197014ace94 SHA256 954d3287cda8e2fb11d3a964c8cf0556b3449f956f39ee07752e819fc14f89b1
EBUILD dahdi-2.1.0.4.ebuild 3575 RMD160 ed2a199b68182d56b2b3a1baa1cc21750aed929b SHA1 1b8fa535d62f618c3aa2f6d9a6f8e6fa33280cb7 SHA256 68c456b6235210bd00f7d712973557cc8a171c2ef05b9982406755959c684405
+EBUILD dahdi-2.2.0.1.ebuild 1906 RMD160 9e5b3830fb650b4634c808acf27c02c0274d37c3 SHA1 b5bf03f090cbbdf0e7f290a933ca90502769f144 SHA256 2ad152c96b85445ea52976c58ae16bdd90ebee499d8fc18370103c2d8479b9af
MISC ChangeLog 1133 RMD160 0d0fbfc4e5d180072873135a8189f552f5c11bdc SHA1 593e48fc2af0a844bc7f8805ff6f8ec95d0139f5 SHA256 b446454deac72204543306e94242aa235a0c05ac4681cf6bfcde44cbe7fabef2
MISC metadata.xml 139 RMD160 c84b2b78f85074cc5c7d26cb757d91c8384fa16a SHA1 00e3ae2ead875413d94aeafa5279646740c2c21d SHA256 5cdc1888ebc8807b9a37b1d33429c61cabe7415a4f240e21a4c2ff8eca7a34ed
diff --git a/net-misc/dahdi/dahdi-2.2.0.1.ebuild b/net-misc/dahdi/dahdi-2.2.0.1.ebuild
new file mode 100644
index 0000000..344d18e
--- /dev/null
+++ b/net-misc/dahdi/dahdi-2.2.0.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2009 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.1 2009/03/10 16:32:11 chainsaw Exp $
+
+inherit linux-mod eutils flag-o-matic
+
+MY_P="${P/dahdi/dahdi-linux}"
+MY_S="${WORKDIR}/${MY_P}"
+
+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=""
+
+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
+
+}
+
+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/files/dahdi-2.2.0.1-no-depmod.patch b/net-misc/dahdi/files/dahdi-2.2.0.1-no-depmod.patch
new file mode 100644
index 0000000..928beee
--- /dev/null
+++ b/net-misc/dahdi/files/dahdi-2.2.0.1-no-depmod.patch
@@ -0,0 +1,12 @@
+diff -uNr dahdi-linux-2.2.0.1.ORIG/Makefile dahdi-linux-2.1.0.4/Makefile
+--- dahdi-linux-2.2.0.1.ORIG/Makefile 2009-03-10 15:53:36.000000000 +0000
++++ dahdi-linux-2.2.0.1/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