aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-11-07 22:04:21 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-11-12 22:33:05 +0700
commit20f661ac89d0300ff17dbd3035ae4b9707fad27c (patch)
tree5a84fd02cdaed18b91ca7eb1bf373ed788d43f84 /system
parent7b2e9b3d87801cf1dade96368b50e3ef8425cd0a (diff)
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 <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/megacli/megacli.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/megacli/megacli.SlackBuild b/system/megacli/megacli.SlackBuild
index d5ca8c70919a9..8cdbaf55a118d 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 \