diff options
Diffstat (limited to 'source/a/mdadm/mdadm.SlackBuild')
-rwxr-xr-x | source/a/mdadm/mdadm.SlackBuild | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/a/mdadm/mdadm.SlackBuild b/source/a/mdadm/mdadm.SlackBuild index 7ede6ab77..dff9dd018 100755 --- a/source/a/mdadm/mdadm.SlackBuild +++ b/source/a/mdadm/mdadm.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2008, 2009, 2010, 2011, 2012 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2008, 2009, 2010, 2011, 2012, 2016 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,13 +21,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -VERSION=${VERSION:-$(echo mdadm-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +VERSION=${VERSION:-$(echo mdadm-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) export ARCH=i486 ;; + i?86) export ARCH=i586 ;; arm*) export ARCH=arm ;; # Unless $ARCH is already set, use uname -m for all other archs: *) export ARCH=$( uname -m ) ;; @@ -40,8 +40,8 @@ CWD=$(pwd) TMP=${TMP:-/tmp} PKG=$TMP/package-mdadm -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -58,7 +58,7 @@ rm -rf $PKG mkdir -p $TMP $PKG cd $TMP rm -rf mdadm-$VERSION -tar xvf $CWD/mdadm-$VERSION.tar.?z || exit 1 +tar xvf $CWD/mdadm-$VERSION.tar.xz || exit 1 cd mdadm-$VERSION chown -R root:root . @@ -98,7 +98,7 @@ cat mdadm.conf-example > $PKG/etc/mdadm.conf.new mkdir -p $PKG/usr/doc/mdadm-$VERSION cp -a \ - ANNOUNCE-$VERSION COPYING* INSTALL TODO \ + ANNOUNCE-$VERSION COPYING* INSTALL README* TODO \ $PKG/usr/doc/mdadm-$VERSION # If there's a ChangeLog, installing at least part of the recent history |