summaryrefslogtreecommitdiffstats
path: root/system/vhba-module
diff options
context:
space:
mode:
Diffstat (limited to 'system/vhba-module')
-rw-r--r--system/vhba-module/README4
-rw-r--r--system/vhba-module/doinst.sh3
-rw-r--r--system/vhba-module/vhba-module.SlackBuild31
-rw-r--r--system/vhba-module/vhba-module.info8
4 files changed, 24 insertions, 22 deletions
diff --git a/system/vhba-module/README b/system/vhba-module/README
index 55c744cf79..ee2e8fe687 100644
--- a/system/vhba-module/README
+++ b/system/vhba-module/README
@@ -6,3 +6,7 @@ CD/DVD-ROM device emulator for linux.
NOTE:
The resulting package will be specific for the kernel it was built on.
+
+It is possible to build package for a different kernel version by
+setting the KERNEL variable as in:
+ KERNEL=5.15.161 ./vhba-module.SlackBuild
diff --git a/system/vhba-module/doinst.sh b/system/vhba-module/doinst.sh
index f61efdf685..766ff48186 100644
--- a/system/vhba-module/doinst.sh
+++ b/system/vhba-module/doinst.sh
@@ -1,2 +1 @@
-chroot . /sbin/depmod -a
-
+chroot . /sbin/depmod -a @KERNEL@
diff --git a/system/vhba-module/vhba-module.SlackBuild b/system/vhba-module/vhba-module.SlackBuild
index 002d405a41..e1dbef7eac 100644
--- a/system/vhba-module/vhba-module.SlackBuild
+++ b/system/vhba-module/vhba-module.SlackBuild
@@ -4,7 +4,7 @@
# Copyright 2008-2009 Heinz Wiesinger, Amsterdam, The Netherlands
# Copyright 2010-2012 Niels Horn, Rio de Janeiro, RJ, Brazil <niels.horn@gmail.com>
-# Copyright 2018-2022 Isaac Yu <isaacyu1@isaacyu1.com>
+# Copyright 2018-2024 Isaac Yu <isaacyu@protonmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,32 +27,31 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=vhba-module
-VERSION=${VERSION:-20211218}
+VERSION=${VERSION:-20240917}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-# Setting ARCH is not supported (and the build crashes if ARCH is exported).
-unset ARCH
case "$( uname -m )" in
- i?86) SLKARCH=i586 ;;
- arm*) SLKARCH=arm ;;
- *) SLKARCH=$( uname -m ) ;;
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
esac
+# Setting ARCH is not supported (and the build crashes if ARCH is exported).
+SLKARCH="$ARCH"
+unset ARCH
+
KERNEL=${KERNEL:-$(uname -r)}
PKGKERNEL=$(echo $KERNEL | tr - _)
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-${VERSION}_${PKGKERNEL}-$SLKARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
TMP=${TMP:-/tmp/SBo}
-PKG=${PKG:-$TMP/package-$PRGNAM}
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
@@ -77,15 +76,15 @@ make KERNELRELEASE=$KERNEL
mkdir -p $PKG/lib/modules/$KERNEL/extra
install -m 0644 vhba.ko $PKG/lib/modules/$KERNEL/extra/
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION"_"$KERNEL
cp -a \
- AUTHORS COPYING ChangeLog INSTALL NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION/
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+ AUTHORS COPYING ChangeLog README \
+ $PKG/usr/doc/$PRGNAM-$VERSION"_"$KERNEL/
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION"_"$KERNEL/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
+sed "s%@KERNEL@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}_$PKGKERNEL-$SLKARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/vhba-module/vhba-module.info b/system/vhba-module/vhba-module.info
index 39f3e0c73d..bf98d1f11c 100644
--- a/system/vhba-module/vhba-module.info
+++ b/system/vhba-module/vhba-module.info
@@ -1,10 +1,10 @@
PRGNAM="vhba-module"
-VERSION="20211218"
+VERSION="20240917"
HOMEPAGE="https://cdemu.sourceforge.io/about/vhba/"
-DOWNLOAD="https://downloads.sourceforge.net/cdemu/vhba-module-20211218.tar.xz"
-MD5SUM="b5c54cc7afcd184ef237933597859f6a"
+DOWNLOAD="https://downloads.sourceforge.net/cdemu/vhba-module-20240917.tar.xz"
+MD5SUM="42624635b409e1396309d7c2bb1d336b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Isaac Yu"
-EMAIL="isaacyu1@isaacyu1.com"
+EMAIL="isaacyu@protonmail.com"