aboutsummaryrefslogtreecommitdiff
path: root/system/virtualbox-kernel/virtualbox-kernel.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2022-07-03 15:47:08 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-07-09 10:06:21 +0700
commit39a47007383ae4c3a8b9ba92006298e5157c4c3b (patch)
tree27a05fc054f3f811ac84a991f11e8255c65a4aa5 /system/virtualbox-kernel/virtualbox-kernel.SlackBuild
parentf03433e18cb39913a9451d9d202c185a6485d1de (diff)
system/virtualbox-kernel: Updated for version 6.1.34
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/virtualbox-kernel/virtualbox-kernel.SlackBuild')
-rw-r--r--system/virtualbox-kernel/virtualbox-kernel.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/virtualbox-kernel/virtualbox-kernel.SlackBuild b/system/virtualbox-kernel/virtualbox-kernel.SlackBuild
index acd6cba0ea3a6..62547db5cbfb2 100644
--- a/system/virtualbox-kernel/virtualbox-kernel.SlackBuild
+++ b/system/virtualbox-kernel/virtualbox-kernel.SlackBuild
@@ -27,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=virtualbox-kernel
-VERSION=${VERSION:-6.1.32}
+VERSION=${VERSION:-6.1.34}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -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