diff options
Diffstat (limited to 'system/virtualbox-kernel/virtualbox-kernel.SlackBuild')
-rw-r--r-- | system/virtualbox-kernel/virtualbox-kernel.SlackBuild | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/system/virtualbox-kernel/virtualbox-kernel.SlackBuild b/system/virtualbox-kernel/virtualbox-kernel.SlackBuild index acd6cba0ea..3db6cb3351 100644 --- a/system/virtualbox-kernel/virtualbox-kernel.SlackBuild +++ b/system/virtualbox-kernel/virtualbox-kernel.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for virtualbox-kernel -# Copyright 2008-2022 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2008-2023 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=virtualbox-kernel -VERSION=${VERSION:-6.1.32} +VERSION=${VERSION:-6.1.44} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -57,7 +57,7 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then fi TMP=${TMP:-/tmp/SBo} -PKG=${PKG:-$TMP/package-$PRGNAM} +PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} set -e @@ -75,6 +75,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Fix compatibility with 5.18.x +sed -i "s|netif_rx_ni|netif_rx|g" vboxnetflt/linux/VBoxNetFlt-linux.c + make KERN_DIR=${KERNELPATH} mkdir -p $PKG/lib/modules/$KERNEL/misc @@ -82,6 +85,8 @@ 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/ +find $PKG -name "*.ko" -exec strip --strip-debug "{}" \; + mkdir -p $PKG/usr/doc/$PRGNAM-$PKG_VERS cat $CWD/COPYING > $PKG/usr/doc/$PRGNAM-$PKG_VERS/COPYING cat $CWD/COPYING.CDDL > $PKG/usr/doc/$PRGNAM-$PKG_VERS/COPYING.CDDL |