aboutsummaryrefslogtreecommitdiffstats
path: root/main/dahdi-linux-grsec
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-11-10 08:14:13 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-11-10 10:04:41 +0000
commit1a21bc3a35de32521b021cc16cacff9beee38382 (patch)
tree2ebfec1c7903ccc190c7b9a1095c1a1e58f76dc4 /main/dahdi-linux-grsec
parent98616434d7117b42cf1b7c650104b937e084db52 (diff)
downloadaports-1a21bc3a35de32521b021cc16cacff9beee38382.tar.bz2
aports-1a21bc3a35de32521b021cc16cacff9beee38382.tar.xz
main/*-grsec: enable e_powersaver module and update 3rdpary module building
We no need to manually edit every 3rd party module's kernel ver to match the kernel packages version. We need to do this because we will at some point allow building in a chroot whithout the entire aports tree beeing present.
Diffstat (limited to 'main/dahdi-linux-grsec')
-rw-r--r--main/dahdi-linux-grsec/APKBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/main/dahdi-linux-grsec/APKBUILD b/main/dahdi-linux-grsec/APKBUILD
index dd357f7a2c..e6406173df 100644
--- a/main/dahdi-linux-grsec/APKBUILD
+++ b/main/dahdi-linux-grsec/APKBUILD
@@ -2,19 +2,22 @@
# Maintainer: Timo Teras <timo.teras@iki.fi>
_flavor=grsec
+_kver=3.0.8
+_kpkgrel=2
-# source the kernel version
+# verify the kernel version before entering chroot
if [ -f ../linux-${_flavor}/APKBUILD ]; then
. ../linux-${_flavor}/APKBUILD
+ [ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
+ [ "$_kpkgrel" != "$pkgrel" ] && die "please update _kpkgrel to $pkgrel"
fi
-_kernelver="$pkgver-r$pkgrel"
-_abi_release=${pkgver}-${_flavor}
-_kpkgrel=$pkgrel
+_kpkgver="$_kver-r$_kpkgrel"
+_abi_release=${_kver}-${_flavor}
_realname=dahdi-linux
pkgname=${_realname}-${_flavor}
-pkgver=$pkgver
+pkgver=$_kver
# when chaning _dahdiver we *must* bump _mypkgrel
_dahdiver=2.5.0.2
_mypkgrel=0
@@ -23,10 +26,10 @@ pkgdesc="Digium Asterisk Hardware Device Interface drivers $_dahdiver"
url="http://www.asterisk.org"
arch="all"
license="GPL"
-depends="dahdi-linux linux-${_flavor}=${_kernelver}"
+depends="dahdi-linux linux-${_flavor}=${_kpkgver}"
# we need wget and tar because make install downloads firmware and uses fancy
# options for tar and wget.
-makedepends="linux-${_flavor}-dev=${_kernelver} wget tar perl"
+makedepends="linux-${_flavor}-dev=${_kpkgver} wget tar perl"
install=
subpackages="$pkgname-dev"
source="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/${_realname}-$_dahdiver.tar.gz