aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-02 20:03:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-02 20:03:42 +0000
commitaa5d1b96c31c6337e0788700fb7a3314d39b3bfd (patch)
treebc0c67d0f04d693bb84a460f4e0b476fcb324174 /main
parentc90c3edcabb91c4946af44b0ba58c016b5484538 (diff)
downloadaports-aa5d1b96c31c6337e0788700fb7a3314d39b3bfd.tar.bz2
aports-aa5d1b96c31c6337e0788700fb7a3314d39b3bfd.tar.xz
main/dahdi-linux-grsec: remove headers from module package
add a -dev package
Diffstat (limited to 'main')
-rw-r--r--main/dahdi-linux-grsec/APKBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/main/dahdi-linux-grsec/APKBUILD b/main/dahdi-linux-grsec/APKBUILD
index 491226f85c..dea2fe5b35 100644
--- a/main/dahdi-linux-grsec/APKBUILD
+++ b/main/dahdi-linux-grsec/APKBUILD
@@ -14,7 +14,7 @@ _realname=dahdi-linux
pkgname=${_realname}-${_flavor}
pkgver=2.2.0
-pkgrel=11
+pkgrel=12
pkgdesc="Digium Asterisk Hardware Device Interface drivers"
url="http://www.asterisk.org"
license="GPL"
@@ -23,7 +23,7 @@ depends="dahdi-linux linux-${_flavor}=${_kernelver}"
# options for tar and wget.
makedepends="linux-${_flavor}-dev=${_kernelver} wget tar perl"
install=
-subpackages=
+subpackages="$pkgname-dev"
source="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/${_realname}-$pkgver.tar.gz
dahdi-depmod.patch
dahdi-bri_dchan.patch
@@ -43,14 +43,21 @@ build() {
|| return 1
make KVERS="${_abi_release}" DYNFS="yes" MODULES_EXTRA="zaphfc" \
DESTDIR="$pkgdir" install
- rm -rf "$pkgdir"/lib/firmware "$pkgdir"/usr/lib/hotplug/firmware
+ rm -rf "$pkgdir"/lib/firmware "$pkgdir"/usr/lib/hotplug/firmware \
+ "$pkgdir"/usr/include
}
# since we sourced the APKBUILD above we got the dev() function there to
# so we override it again.
+depends_dev="dahdi-linux-dev"
dev() {
default_dev
+ local dir="$subpkgdir"/usr/src/dahdi-headers-${_abi_release}
+ install -D "$srcdir"/$_realname-$pkgver/drivers/dahdi/Module.symvers \
+ "$dir"/drivers/dahdi/Module.symvers
+ ln -s /usr/include "$dir"/include
}
+
md5sums="a6b1a24a436e1c1fd08b99d27cfe3f38 dahdi-linux-2.2.0.tar.gz
c78fb8d80f9efdffd950297c88ff9273 dahdi-depmod.patch
4b41a82ff390ac64c08092c5a3eab6a8 dahdi-bri_dchan.patch