aboutsummaryrefslogtreecommitdiff
path: root/system/chkrootkit
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:15:19 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:15:19 -0400
commite63618c21e2f13f3e0a440dd5631cd86d5503e7d (patch)
tree89d722fea75aaa4ec2aa09ffae70658e06cae588 /system/chkrootkit
parent656d94aefc767dea7c6755bd5c07149ff630b36a (diff)
system/chkrootkit: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/chkrootkit')
-rw-r--r--system/chkrootkit/chkrootkit.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/system/chkrootkit/chkrootkit.SlackBuild b/system/chkrootkit/chkrootkit.SlackBuild
index 51a32121c466d..22f4fab791808 100644
--- a/system/chkrootkit/chkrootkit.SlackBuild
+++ b/system/chkrootkit/chkrootkit.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=chkrootkit
VERSION=${VERSION:-0.49}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -53,6 +62,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
sed -i 's#-DHAVE_LASTLOG_H#-O2 -fPIC#' Makefile
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
SCFLAGS="$SLKCFLAGS" make