From 20f661ac89d0300ff17dbd3035ae4b9707fad27c Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Mon, 7 Nov 2022 22:04:21 +0900 Subject: system/megacli: Fix BUILD variable usage. This is for the internal build number and can be passed through the environment, not upstream build numbers. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- system/megacli/megacli.SlackBuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'system') diff --git a/system/megacli/megacli.SlackBuild b/system/megacli/megacli.SlackBuild index d5ca8c70919a..8cdbaf55a118 100644 --- a/system/megacli/megacli.SlackBuild +++ b/system/megacli/megacli.SlackBuild @@ -30,6 +30,7 @@ RPMNAM=MegaCli VERSION=${VERSION:-8.07.14} ZIPVER="$(echo $VERSION | sed -e 's/\./\-/g')" BUILD=${BUILD:-1} +RPMBUILD=${RPMBUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -68,7 +69,7 @@ rm -rf $PRGNAM-$VERSION unzip -d $PRGNAM-$VERSION $CWD/${ZIPVER}_$ZIPNAM.zip cd $PRGNAM-$VERSION/Linux -rpm2cpio < ${RPMNAM}-${VERSION}-${BUILD}.noarch.rpm | cpio -imdv +rpm2cpio < ${RPMNAM}-${VERSION}-${RPMBUILD}.noarch.rpm | cpio -imdv chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -- cgit v1.2.3