aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools-grsec
diff options
context:
space:
mode:
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."