diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:05:52 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:05:52 -0400 |
commit | d8550a99cdfc6e80f2042c4472364e48a8253f0f (patch) | |
tree | 5fa44d0019051f7d78db4f4a2c88d47455aee500 /libraries/Impacket | |
parent | 6f2146dfa60b5eade8f9ae0da94dcf0e0916084d (diff) | |
download | slackbuilds-d8550a99cdfc6e80f2042c4472364e48a8253f0f.tar.gz |
libraries/Impacket: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/Impacket')
-rw-r--r-- | libraries/Impacket/Impacket.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/Impacket/Impacket.SlackBuild b/libraries/Impacket/Impacket.SlackBuild index e550d7886a..8536d3fda3 100644 --- a/libraries/Impacket/Impacket.SlackBuild +++ b/libraries/Impacket/Impacket.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=Impacket VERSION=0.9.6.0 -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 |