aboutsummaryrefslogtreecommitdiffstats
path: root/main/dahdi-linux-grsec
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-06-23 15:49:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-23 15:49:20 +0000
commit5a93ee638c97b816c666a8f841e86cadc6a210fe (patch)
tree604fe6cf83775713f8a336e852eac9b519fd9585 /main/dahdi-linux-grsec
parent4127dd37a9db2c6669f71ce8f83a96514e974830 (diff)
downloadaports-5a93ee638c97b816c666a8f841e86cadc6a210fe.tar.bz2
aports-5a93ee638c97b816c666a8f841e86cadc6a210fe.tar.xz
main/dahdi-linux-grsec: fix pkgrel
since pkgver is taken from kernel pkgver we cannot just import the dahdi version from other apkbuild
Diffstat (limited to 'main/dahdi-linux-grsec')
-rw-r--r--main/dahdi-linux-grsec/APKBUILD12
1 files changed, 4 insertions, 8 deletions
diff --git a/main/dahdi-linux-grsec/APKBUILD b/main/dahdi-linux-grsec/APKBUILD
index 93c2265f2b..4885faca1a 100644
--- a/main/dahdi-linux-grsec/APKBUILD
+++ b/main/dahdi-linux-grsec/APKBUILD
@@ -3,12 +3,6 @@
_flavor=grsec
-# source dahdi-linux ver
-if [ -f ../dahdi-linux/APKBUILD ]; then
- . ../dahdi-linux/APKBUILD
-fi
-_dahdiver=$pkgver
-
# source the kernel version
if [ -f ../linux-${_flavor}/APKBUILD ]; then
. ../linux-${_flavor}/APKBUILD
@@ -21,7 +15,9 @@ _realname=dahdi-linux
pkgname=${_realname}-${_flavor}
pkgver=$pkgver
-_mypkgrel=0
+# when chaning _dahdiver we *must* bump _mypkgrel
+_dahdiver=2.3.0.1
+_mypkgrel=3
pkgrel=$(( $_kpkgrel + $_mypkgrel ))
pkgdesc="Digium Asterisk Hardware Device Interface drivers $_dahdiver"
url="http://www.asterisk.org"
@@ -67,7 +63,7 @@ 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 \
+ install -D "$srcdir"/$_realname-$_dahdiver/drivers/dahdi/Module.symvers \
"$dir"/drivers/dahdi/Module.symvers
ln -s /usr/include "$dir"/include
}