From 6634bd06a5fbb2ac9f8e9ebd7f9e43be09f0899e Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Sun, 4 Jul 2021 16:00:02 +0200 Subject: system/tpe-kmod: Fix support for PRINT_PACKAGE_NAME Signed-off-by: Heinz Wiesinger --- system/tpe-kmod/tpe-kmod.SlackBuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'system/tpe-kmod') 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 ] && \ -- cgit v1.2.3