]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
smartmontools update
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Thu, 31 Aug 2006 18:36:37 +0000 (18:36 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Thu, 31 Aug 2006 18:36:37 +0000 (18:36 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@102 370017ae-e619-0410-ac65-c121f96126d4

patches/smartmontools/smartmontools.SlackBuild

index 5aaa5c5df7664e54cb3dc6d1510f1ffb78c4d7d7..8d55ac260e232c67511782cb79c300f621eecbc7 100755 (executable)
@@ -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
+