diff options
Diffstat (limited to 'source/n/ethtool/ethtool.SlackBuild')
-rwxr-xr-x | source/n/ethtool/ethtool.SlackBuild | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/source/n/ethtool/ethtool.SlackBuild b/source/n/ethtool/ethtool.SlackBuild index e485e8d3..ebe0919f 100755 --- a/source/n/ethtool/ethtool.SlackBuild +++ b/source/n/ethtool/ethtool.SlackBuild @@ -21,10 +21,19 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -VERSION=6 -ARCH=${ARCH:-x86_64} +VERSION=2.6.33 BUILD=${BUILD:-1} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp} PKG=$TMP/package-ethtool @@ -37,14 +46,16 @@ rm -rf ethtool-$VERSION tar xzf $CWD/ethtool-$VERSION.tar.gz || exit 1 cd ethtool-$VERSION || exit 1 chown -R root:root . -./configure --prefix=/usr +./configure \ + --prefix=/usr \ + --mandir=/usr/man make || exit 1 make install DESTDIR=$PKG strip $PKG/usr/sbin/ethtool gzip -9 $PKG/usr/man/man8/ethtool.8 mkdir -p $PKG/usr/doc/ethtool-$VERSION cp -a \ - AUTHORS COPYING ChangeLog NEWS README \ + AUTHORS COPYING* ChangeLog LICENSE NEWS README* \ $PKG/usr/doc/ethtool-$VERSION chmod 644 $PKG/usr/doc/ethtool-$VERSION/* |