aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
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 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 \