diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2019-03-16 09:06:31 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-18 00:07:47 -0500 |
commit | d9bde60fd9809984836a4c8630a0a885476ce4d8 (patch) | |
tree | 0e43cfdb3bd246645e48562b1c6e857dd278dbab /system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild | |
parent | 14f2c05c4740ce53fe94e445980f1234e9213a65 (diff) | |
download | slackbuilds-d9bde60fd9809984836a4c8630a0a885476ce4d8.tar.gz |
system/virtualbox-kernel-addons: Updated for version 5.2.8.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild')
-rw-r--r-- | system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild b/system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild index 722e60c9b8..e9a70ab605 100644 --- a/system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild +++ b/system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for virtualbox-kernel-addons -# Copyright 2008-2019 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2008-2018 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=virtualbox-kernel-addons -VERSION=${VERSION:-5.0.40} -BUILD=${BUILD:-2} +VERSION=${VERSION:-5.2.8} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} KERNEL=${KERNEL:-$(uname -r)} @@ -79,7 +79,21 @@ if [ "$KERNEL_MINOR" = 4 -a "$KERNEL_PATCH" -ge 168 ]; then sed -i "s|KERNEL_VERSION(4, 9, 0)|KERNEL_VERSION(4, 4, 168)|" vboxguest/r0drv/linux/memobj-r0drv-linux.c fi -for i in vboxguest vboxsf vboxvideo; do +MODULES="" + +if ! [ -e /lib/modules/$KERNEL/kernel/drivers/staging/vboxvideo ]; then + MODULES="$MODULES vboxvideo" +fi + +if ! [ -e /lib/modules/$KERNEL/kernel/virt/vboxguest ]; then + MODULES="$MODULES vboxguest" +fi + +if ! [ -e /lib/modules/$KERNEL/kernel/fs/vboxsf ]; then + MODULES="$MODULES vboxsf" +fi + +for i in $MODULES; do cd $i make KERN_DIR=$KERNELPATH install -m 0644 $i.ko $PKG/lib/modules/$KERNEL/misc/ |