summaryrefslogtreecommitdiff
path: root/system/tpe-kmod
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-04 16:00:02 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-17 21:55:22 +0200
commit6634bd06a5fbb2ac9f8e9ebd7f9e43be09f0899e (patch)
tree6a7408b9dd8323ad16067cad821ca0dfbc85dbea /system/tpe-kmod
parent91d545c8105f3f7ad54407376807de18bd658c9a (diff)
downloadslackbuilds-6634bd06a5fbb2ac9f8e9ebd7f9e43be09f0899e.tar.gz
system/tpe-kmod: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'system/tpe-kmod')
-rw-r--r--system/tpe-kmod/tpe-kmod.SlackBuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/tpe-kmod/tpe-kmod.SlackBuild b/system/tpe-kmod/tpe-kmod.SlackBuild
index 4f8bac63f7..553cc32978 100644
--- a/system/tpe-kmod/tpe-kmod.SlackBuild
+++ b/system/tpe-kmod/tpe-kmod.SlackBuild
@@ -30,6 +30,8 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
+KERNVER=$(uname -r)
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -42,7 +44,7 @@ fi
# 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-$ARCH-$BUILD$TAG.$PKGTYPE"
+ echo "$PRGNAM-${VERSION}_${KERNVER//-/_}-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
@@ -77,7 +79,6 @@ then
if [ -z "${CONFIG_MODULE_SIG_HASH}" ]; then
eval $(zgrep "^CONFIG_MODULE_SIG_HASH=" /proc/config.gz)
fi
- KERNVER=$(uname -r)
KERNSRC=${KERNSRC:-/lib/modules/${KERNVER}/source}
if [ -n "${CONFIG_MODULE_SIG_HASH}" ] && \
[ -f $KERNSRC/certs/signing_key.pem ] && \