aboutsummaryrefslogtreecommitdiff
path: root/system/rdiff-backup
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:16:36 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:16:36 -0400
commitcafc11376c87d627083bc9f8f022a80eb9d55eba (patch)
tree3910dd98a90fd3a6e0ef46e7dfe7fe426d3b3371 /system/rdiff-backup
parenta286930e785a2a7db6a299bc5e55b6028c3d78be (diff)
system/rdiff-backup: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/rdiff-backup')
-rw-r--r--system/rdiff-backup/rdiff-backup.SlackBuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/system/rdiff-backup/rdiff-backup.SlackBuild b/system/rdiff-backup/rdiff-backup.SlackBuild
index bf3365391213..2151f73c175d 100644
--- a/system/rdiff-backup/rdiff-backup.SlackBuild
+++ b/system/rdiff-backup/rdiff-backup.SlackBuild
@@ -25,12 +25,21 @@
PRGNAM=rdiff-backup
VERSION=1.2.8
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-TMP=${TMP:-/tmp/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
OUTPUT=${OUTPUT:-/tmp}