mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
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>
This commit is contained in:
parent
7b2e9b3d87
commit
20f661ac89
1 changed files with 2 additions and 1 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue