system/virtualbox-kernel: Updated for version 6.1.8.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Heinz Wiesinger 2020-05-25 18:08:32 +02:00 committed by Matteo Bernardini
parent a1c09f19fe
commit e8e049b5d3
2 changed files with 6 additions and 21 deletions

View File

@ -2,7 +2,7 @@
# Slackware build script for virtualbox-kernel
# Copyright 2008-2019 Heinz Wiesinger, Amsterdam, The Netherlands
# Copyright 2008-2020 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,8 +25,8 @@
# Modified by SlackBuilds.org
PRGNAM=virtualbox-kernel
VERSION=${VERSION:-5.0.40}
BUILD=${BUILD:-2}
VERSION=${VERSION:-6.1.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
KERNEL=${KERNEL:-$(uname -r)}
@ -70,27 +70,12 @@ if ! [ "${HARDENING:-yes}" = "yes" ]; then
{vboxdrv,vboxnetadp,vboxnetflt,vboxpci}/Makefile
fi
KERNEL_LOCALVERSION=$(zgrep "CONFIG_LOCALVERSION=" /proc/config.gz | cut -d '"' -f 2)
if [ -z "$KERNEL_LOCALVERSION" ]; then
KERNEL_MINOR=$(echo $KERNEL | cut -d "." -f 2)
KERNEL_PATCH=$(echo $KERNEL | cut -d "." -f 3)
else
KERNEL_MINOR=$(echo $KERNEL | sed "s|$KERNEL_LOCALVERSION||" | cut -d "." -f 2)
KERNEL_PATCH=$(echo $KERNEL | sed "s|$KERNEL_LOCALVERSION||" | cut -d "." -f 3)
fi
# Work around API break introduced in kernel 4.4.168
if [ "$KERNEL_MINOR" = 4 -a "$KERNEL_PATCH" -ge 168 ]; then
sed -i "s|KERNEL_VERSION(4, 9, 0)|KERNEL_VERSION(4, 4, 168)|" vboxdrv/r0drv/linux/memobj-r0drv-linux.c
fi
make KERN_DIR=${KERNELPATH}
mkdir -p $PKG/lib/modules/$KERNEL/misc
install -m 0644 vboxdrv.ko $PKG/lib/modules/$KERNEL/misc/
install -m 0644 vboxnetflt.ko $PKG/lib/modules/$KERNEL/misc/
install -m 0644 vboxnetadp.ko $PKG/lib/modules/$KERNEL/misc/
install -m 0644 vboxpci.ko $PKG/lib/modules/$KERNEL/misc/
mkdir -p $PKG/usr/doc/$PRGNAM-$PKG_VERS
cat $CWD/COPYING > $PKG/usr/doc/$PRGNAM-$PKG_VERS/COPYING

View File

@ -1,8 +1,8 @@
PRGNAM="virtualbox-kernel"
VERSION="5.0.40"
VERSION="6.1.8"
HOMEPAGE="https://www.virtualbox.org"
DOWNLOAD="http://www.liwjatan.at/files/src/virtualbox-kernel/virtualbox-kernel-5.0.40.tar.xz"
MD5SUM="475de2d0a915ce7c0c623ac50696bb79"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/virtualbox-kernel-6.1.8.tar.xz"
MD5SUM="5453b9a00b064229cc1295d3d9e5bde4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""