Commit aa5d1b96 authored by Natanael Copa's avatar Natanael Copa

main/dahdi-linux-grsec: remove headers from module package

add a -dev package
parent c90c3edc
...@@ -14,7 +14,7 @@ _realname=dahdi-linux ...@@ -14,7 +14,7 @@ _realname=dahdi-linux
pkgname=${_realname}-${_flavor} pkgname=${_realname}-${_flavor}
pkgver=2.2.0 pkgver=2.2.0
pkgrel=11 pkgrel=12
pkgdesc="Digium Asterisk Hardware Device Interface drivers" pkgdesc="Digium Asterisk Hardware Device Interface drivers"
url="http://www.asterisk.org" url="http://www.asterisk.org"
license="GPL" license="GPL"
...@@ -23,7 +23,7 @@ depends="dahdi-linux linux-${_flavor}=${_kernelver}" ...@@ -23,7 +23,7 @@ depends="dahdi-linux linux-${_flavor}=${_kernelver}"
# options for tar and wget. # options for tar and wget.
makedepends="linux-${_flavor}-dev=${_kernelver} wget tar perl" makedepends="linux-${_flavor}-dev=${_kernelver} wget tar perl"
install= install=
subpackages= subpackages="$pkgname-dev"
source="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/${_realname}-$pkgver.tar.gz source="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/${_realname}-$pkgver.tar.gz
dahdi-depmod.patch dahdi-depmod.patch
dahdi-bri_dchan.patch dahdi-bri_dchan.patch
...@@ -43,14 +43,21 @@ build() { ...@@ -43,14 +43,21 @@ build() {
|| return 1 || return 1
make KVERS="${_abi_release}" DYNFS="yes" MODULES_EXTRA="zaphfc" \ make KVERS="${_abi_release}" DYNFS="yes" MODULES_EXTRA="zaphfc" \
DESTDIR="$pkgdir" install 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 # since we sourced the APKBUILD above we got the dev() function there to
# so we override it again. # so we override it again.
depends_dev="dahdi-linux-dev"
dev() { dev() {
default_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 md5sums="a6b1a24a436e1c1fd08b99d27cfe3f38 dahdi-linux-2.2.0.tar.gz
c78fb8d80f9efdffd950297c88ff9273 dahdi-depmod.patch c78fb8d80f9efdffd950297c88ff9273 dahdi-depmod.patch
4b41a82ff390ac64c08092c5a3eab6a8 dahdi-bri_dchan.patch 4b41a82ff390ac64c08092c5a3eab6a8 dahdi-bri_dchan.patch
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment