From 5a93ee638c97b816c666a8f841e86cadc6a210fe Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 23 Jun 2010 15:49:20 +0000 Subject: main/dahdi-linux-grsec: fix pkgrel since pkgver is taken from kernel pkgver we cannot just import the dahdi version from other apkbuild --- main/dahdi-linux-grsec/APKBUILD | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/main/dahdi-linux-grsec/APKBUILD b/main/dahdi-linux-grsec/APKBUILD index 93c2265f2..4885faca1 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 } -- cgit v1.2.3