diff options
author | David Spencer <baildon.research@googlemail.com> | 2015-08-05 00:00:24 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | 230a0050e4619daec064158d1df0fba4c0085522 (patch) | |
tree | 0ada695ccab0bfc8ea059636eef8ec3aae0cc015 /system/vhba-module/vhba-module.SlackBuild | |
parent | a41b2261a5a66b378776e603c73fde26fa10a6e9 (diff) | |
download | slackbuilds-230a0050e4619daec064158d1df0fba4c0085522.tar.gz |
system/vhba-module: Updated for version 20140928.
Fixes build failure on -current.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'system/vhba-module/vhba-module.SlackBuild')
-rw-r--r-- | system/vhba-module/vhba-module.SlackBuild | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/system/vhba-module/vhba-module.SlackBuild b/system/vhba-module/vhba-module.SlackBuild index b96cfbacfd..a3f2501c22 100644 --- a/system/vhba-module/vhba-module.SlackBuild +++ b/system/vhba-module/vhba-module.SlackBuild @@ -23,20 +23,18 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Revision date: 2012/09/15 - PRGNAM=vhba-module -VERSION=${VERSION:-20120422} +VERSION=${VERSION:-20140928} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi +# Setting ARCH is not supported (and the build crashes if ARCH is exported). +unset ARCH +case "$( uname -m )" in + i?86) SLKARCH=i486 ;; + arm*) SLKARCH=arm ;; + *) SLKARCH=$( uname -m ) ;; +esac KERNEL=${KERNEL:-$(uname -r)} PKGKERNEL=$(echo $KERNEL | tr - _) @@ -51,18 +49,17 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$SRC_VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Use -j1 to avoid problems if larger number of jobs is defined in MAKEFLAGS -make -j1 KERNELRELEASE=$KERNEL +make KERNELRELEASE=$KERNEL mkdir -p $PKG/lib/modules/$KERNEL/extra install -m 0644 vhba.ko $PKG/lib/modules/$KERNEL/extra/ @@ -78,4 +75,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}_$PKGKERNEL-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}_$PKGKERNEL-$SLKARCH-$BUILD$TAG.${PKGTYPE:-tgz} |