aboutsummaryrefslogtreecommitdiff
path: root/patches/smartmontools
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-31 18:36:37 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-31 18:36:37 +0000
commit2dc963dab138f4873d7caa8084bd3645ef1a5c9b (patch)
tree944196d2133c6a89416fb93fec7761593a691f78 /patches/smartmontools
parentc8701c3f0dda2dcbdf63d257396ef807ca556f94 (diff)
downloadslackbuilds-2dc963dab138f4873d7caa8084bd3645ef1a5c9b.tar.gz
slackbuilds-2dc963dab138f4873d7caa8084bd3645ef1a5c9b.tar.bz2
smartmontools update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@102 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'patches/smartmontools')
-rwxr-xr-xpatches/smartmontools/smartmontools.SlackBuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/patches/smartmontools/smartmontools.SlackBuild b/patches/smartmontools/smartmontools.SlackBuild
index 5aaa5c5d..8d55ac26 100755
--- a/patches/smartmontools/smartmontools.SlackBuild
+++ b/patches/smartmontools/smartmontools.SlackBuild
@@ -20,6 +20,7 @@ ARCH=${ARCH:=x86_64}
BUILD=${BUILD:=1rha}
TMP=${TMP:=/tmp}
SRC_DIR=${SRC:=$CWD}
+REPOS=${REPOS:=$TMP}
if [ "$ARCH" == "x86_64" ]; then
LIBDIR=/usr/lib64
@@ -50,7 +51,6 @@ if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
wget "$URL.asc" -O "$SRC_DIR/$SRC.asc"
fi
-
if [ ! -d $TMP ]; then
mkdir -p $TMP # location to build the source
fi
@@ -87,10 +87,10 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
# Build the package:
cd $PKG
-makepkg -l y -c n $TMP/smartmontools-$VERSION-$ARCH-$BUILD.tgz
+makepkg -l y -c n $REPOS/smartmontools-$VERSION-$ARCH-$BUILD.tgz
# Clean up the extra stuff:
-if [ "$1" = "--cleanup" ]; then
- rm -rf $TMP/smartmontools-$VERSION
- rm -rf $PKG
+if [ "$CLEANUP" == "yes" ]; then
+ rm -rf $TMP
fi
+