aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools-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/open-vm-tools-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/open-vm-tools-grsec')
-rw-r--r--main/open-vm-tools-grsec/APKBUILD25
1 files changed, 17 insertions, 8 deletions
diff --git a/main/open-vm-tools-grsec/APKBUILD b/main/open-vm-tools-grsec/APKBUILD
index 70f84d0207..db20bb650c 100644
--- a/main/open-vm-tools-grsec/APKBUILD
+++ b/main/open-vm-tools-grsec/APKBUILD
@@ -3,23 +3,32 @@
_flavor=grsec
_realname=open-vm-tools
_mypkgrel=0
+_realver=2011.09.23
+_realsubver=491607
# source open-vm-tools version
-if [ -f ../../main/$_realname/APKBUILD ]; then
- . ../../main/$_realname/APKBUILD
+if [ -f ../main/$_realname/APKBUILD ]; then
+ . ../main/$_realname/APKBUILD
+ [ "$_realver" != "$pkgver" ] && die "please set _realver to $pkgver"
+ [ "$_realsubver" != "$_pkgsubver" ] \
+ && die "please set _realsubver to $_pkgsubver"
fi
-_realver="$pkgver"
-_realsubver="$_pkgsubver"
+_kver=3.0.8
+_kpkgrel=2
# source the kernel version
-if [ -f ../../main/linux-${_flavor}/APKBUILD ]; then
- . ../../main/linux-${_flavor}/APKBUILD
+if [ -f ../main/linux-${_flavor}/APKBUILD ]; then
+ . ../main/linux-${_flavor}/APKBUILD
+ [ "$_kver" != "$pkgver" ] && die "please set _kver to $pkgver"
+ [ "$_kpkgrel" != "$pkgrel" ] && die "please set _kpkgrel to $pkgrel"
fi
-_kernelver="$pkgver-r$pkgrel"
-_kpkgrel=$pkgrel
+_abi_release=${_kver}-${_flavor}
+_kernelver="$_kver-r$_kpkgrel"
+
pkgname="$_realname-$_flavor"
+pkgver=$_kver
pkgrel=$(($_kpkgrel + $_mypkgrel))
pkgdesc="The Open Virtual Machine Tools are the open source implementation of VMware Tools."