aboutsummaryrefslogtreecommitdiffstats
path: root/main/xtables-addons-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/xtables-addons-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/xtables-addons-grsec')
-rw-r--r--main/xtables-addons-grsec/APKBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/main/xtables-addons-grsec/APKBUILD b/main/xtables-addons-grsec/APKBUILD
index f37c076f20..dd01f1c2e9 100644
--- a/main/xtables-addons-grsec/APKBUILD
+++ b/main/xtables-addons-grsec/APKBUILD
@@ -1,17 +1,23 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_flavor=${FLAVOR:-grsec}
_realname=xtables-addons
+_name=$_realname-$_flavor
+
+_kver=3.0.8
+_kpkgrel=2
# source the kernel version
if [ -f ../linux-$_flavor/APKBUILD ]; then
. ../linux-$_flavor/APKBUILD
+ [ "$_kver" != "$pkgver" ] && die "$_name: Please update _kver to $pkgver"
+ [ "$_kpkgrel" != "$pkgrel" ] && die "$_name: Please update _kpkgrel to $pkgrel"
fi
-_kernelver=$pkgver-r$pkgrel
-_abi_release=$pkgver-${_flavor}
-_kpkgrel=$pkgrel
-pkgname=${_realname}-${_flavor}
-pkgver=${pkgver}
+_kernelver=$_kver-r$_kpkgrel
+_abi_release=$_kver-${_flavor}
+
+pkgname=$_name
+pkgver=$_kver
_realver=1.37
_mypkgrel=0
pkgrel=$(($_kpkgrel + $_mypkgrel))