aboutsummaryrefslogtreecommitdiffstats
path: root/testing/virtualbox-additions-grsec
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-02-14 18:42:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-02-14 18:50:10 +0000
commite82f8bf45ab490b2e21ae11b15f8f131f4267c92 (patch)
tree4e08334e84575ec3f0ae47bd28ba0302ac1fa8c3 /testing/virtualbox-additions-grsec
parent2b49e4cba6b4430543020f099a37c97a596e3533 (diff)
downloadaports-e82f8bf45ab490b2e21ae11b15f8f131f4267c92.tar.bz2
aports-e82f8bf45ab490b2e21ae11b15f8f131f4267c92.tar.xz
testing/virtualbox-additions-grsec: upgrade to 5.1.14 and kernel 4.9.9
Diffstat (limited to 'testing/virtualbox-additions-grsec')
-rw-r--r--testing/virtualbox-additions-grsec/APKBUILD49
1 files changed, 23 insertions, 26 deletions
diff --git a/testing/virtualbox-additions-grsec/APKBUILD b/testing/virtualbox-additions-grsec/APKBUILD
index bf8bdb004f..07aeb7d2d2 100644
--- a/testing/virtualbox-additions-grsec/APKBUILD
+++ b/testing/virtualbox-additions-grsec/APKBUILD
@@ -2,22 +2,14 @@
_flavor=grsec
_kpkg=linux-$_flavor
-_kver=4.4.47
+_kver=4.9.9
_kpkgrel=0
# when chaning _ver we *must* bump _mypkgrel
-_ver=5.1.6
+_ver=5.1.14
_mypkgrel=0
_name=virtualbox-additions
-# verify the kernel version before entering chroot
-_kapkbuild=../../linux-${_flavor}/APKBUILD
-if [ -f $_kapkbuild ]; then
- . $_kapkbuild
- pkgname=$_name-$_flavor
- [ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
- [ "$_kpkgrel" != "$pkgrel" ] && die "please update _kpkgrel to $pkgrel"
-fi
_kpkgver="$_kver-r$_kpkgrel"
_abi_release=${_kver}-${_kpkgrel}-${_flavor}
@@ -34,28 +26,37 @@ source="http://dev.gentoo.org/~polynomial-c/virtualbox/vbox-kernel-module-src-$_
virtualbox-modules-4.1.4-pax-const.patch
"
-_builddir="$srcdir"/
+builddir="$srcdir"/
prepare() {
- cd "$_builddir"
- local i
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ # verify the kernel version
+ (
+ _kapkbuild="$startdir"/../../main/linux-${_flavor}/APKBUILD
+ if [ -f $_kapkbuild ]; then
+ . $_kapkbuild
+ pkgname=$_name-$_flavor
+ if [ "$_kver" != "$pkgver" ]; then
+ die "please update _kver to $pkgver"
+ fi
+ if [ "$_kpkgrel" != "$pkgrel" ]; then
+ die "please update _kpkgrel to $pkgrel"
+ fi
+ fi
+ ) || return 1
+
+ cd "$builddir"
+ default_prepare || return 1
}
build() {
- cd "$_builddir"
-
+ cd "$builddir"
export KERN_DIR=/usr/src/linux-headers-${_abi_release}
make
}
package() {
local module=
- cd "$_builddir"
+ cd "$builddir"
for module in *.ko; do
install -D -m644 $module \
"$pkgdir/lib/modules/${_abi_release}/misc/$module" \
@@ -63,9 +64,5 @@ package() {
done
}
-md5sums="105a3b1522118e514a0e2c38d76f29ab vbox-kernel-module-src-5.1.6.tar.xz
-4bbbce6902722a7439f6fac4d17c6051 virtualbox-modules-4.1.4-pax-const.patch"
-sha256sums="06355e4e98500e02abffb62653ce4500c046ebbb93578f86747111aabdbc6613 vbox-kernel-module-src-5.1.6.tar.xz
-bd7586074db6dabee3b49cb9152c85e07a316069761df8369479297c592eb240 virtualbox-modules-4.1.4-pax-const.patch"
-sha512sums="ead370ce2bb880e587cf6092628fc18590ef2151b21616e6a366faaf6b47fc17b515b3188b8a1d8a00c4c9624113fe79c2095dca72a6394b3cf337328efd053f vbox-kernel-module-src-5.1.6.tar.xz
+sha512sums="fad7c4d12a2afc1c112ee620fe748ecb0bacdcbf6db9d3c1375ac35f610dc017c8b0a62221b8401935ea7b266b2126191bf1c3fe96613b0a0bf779341df5d147 vbox-kernel-module-src-5.1.14.tar.xz
9a9a982defed6d4453bc6d9388c3a71169bba85568cfd36d0d2588dda8e213a0d759c983a337a150d17c55bb6206e43738dfd2559fedeb85e132363936a48574 virtualbox-modules-4.1.4-pax-const.patch"