aboutsummaryrefslogtreecommitdiffstats
path: root/extra/dahdi-linux/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/dahdi-linux/APKBUILD')
-rw-r--r--extra/dahdi-linux/APKBUILD59
1 files changed, 19 insertions, 40 deletions
diff --git a/extra/dahdi-linux/APKBUILD b/extra/dahdi-linux/APKBUILD
index 80121e1b0a..b0f6edf789 100644
--- a/extra/dahdi-linux/APKBUILD
+++ b/extra/dahdi-linux/APKBUILD
@@ -1,56 +1,35 @@
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
+
pkgname=dahdi-linux
-_kernflavor=grsec
-_kernver=2.6.28.9
-pkgver=2.1.0.4
-pkgrel=7
-pkgdesc="Digium Asterisk Hardware Device Interface drivers"
+pkgver=2.2.0
+pkgrel=1
+pkgdesc="Firmware for Digium Asterisk Hardware Device Interface drivers"
url="http://www.asterisk.org"
license="GPL"
-depends="linux-grsec"
+depends=
# we need wget and tar because make install downloads firmware and uses fancy
# options for tar and wget.
-makedepends="linux-grsec-dev linux-grsec-sources wget tar perl"
+makedepends="wget tar"
install=
-subpackages="$pkgname-dev $pkgname-grsec:mod"
-source="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/$pkgname-$pkgver.tar.gz
- dahdi-depmod.patch
- dahdi-bri_dchan.patch
- dahdi-zaphfc.patch
- zaphfc-dahdi-flortz.diff
- $pkgname-2.1.0.4-hfc-4s.patch
- "
+subpackages="$pkgname-dev"
+source="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/$pkgname-$pkgver.tar.gz"
-build() {
- local kout="$srcdir"/grsec
- local ksrc="/usr/src/linux-$_kernver-$_kernflavor"
- mkdir -p "$kout"
- cd "$kout"
- cp /boot/config-grsec .config
- cp /boot/Module.symvers-grsec Module.symvers
- make -C $ksrc O=$PWD silentoldconfig || return 1
- make modules_prepare
+# We onlin install the firwares in this package since those are common for all
+# kernel flavors. We also install the headers for the -dev package.
+#
+# The kernel drivers themselves are built from separate build recipe.
- cd "$srcdir/$pkgname-$pkgver"
- for i in ../*.patch; do
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ for i in ../*.patch ../*.diff; do
+ [ -f "$i" ] || continue
msg "Applying $i"
patch -p1 < $i || return 1;
done
- make \
- KVERS="$_kernver-$_kernflavor" KSRC="$kout" \
- KCONFIG="$kout/.config" DYNFS="yes" MODULES_EXTRA="zaphfc" \
- || return 1
- make DESTDIR="$pkgdir" \
- KVERS="$_kernver-$_kernflavor" KSRC="$kout" \
- KCONFIG="$kout/.config" DYNFS="yes" MODULES_EXTRA="zaphfc" \
- install
+ make DESTDIR="$pkgdir" HOTPLUG_FIRMWARE=yes \
+ install-include install-firmware
}
-md5sums="ef2d34c394e8b600ad392560efc56920 dahdi-linux-2.1.0.4.tar.gz
-c78fb8d80f9efdffd950297c88ff9273 dahdi-depmod.patch
-1c9c44497fc883c6a5381abc93e5e6cf dahdi-bri_dchan.patch
-a822c092f0548cd13f5e8d8cba053af6 dahdi-zaphfc.patch
-291c5c44c86ab02443a742415461ddca zaphfc-dahdi-flortz.diff
-b01c57444be3a87f6f71dd71c4451ec7 dahdi-linux-2.1.0.4-hfc-4s.patch"
+md5sums="a6b1a24a436e1c1fd08b99d27cfe3f38 dahdi-linux-2.2.0.tar.gz"