aboutsummaryrefslogtreecommitdiff
path: root/munin/munin.build
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-08 01:34:15 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-08 01:34:15 +0000
commitc121d93d1dd896d3ce1ed089f3179cf28e74e89b (patch)
treef3b1a20fa639372a144cde922cd3eb22ffb0f9f7 /munin/munin.build
parent4697c68b350273f8cf98c388362f64ab19318634 (diff)
downloadslackbuilds-c121d93d1dd896d3ce1ed089f3179cf28e74e89b.tar.gz
slackbuilds-c121d93d1dd896d3ce1ed089f3179cf28e74e89b.tar.bz2
munin update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@14 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'munin/munin.build')
-rwxr-xr-xmunin/munin.build11
1 files changed, 10 insertions, 1 deletions
diff --git a/munin/munin.build b/munin/munin.build
index 9339c483..61108bc3 100755
--- a/munin/munin.build
+++ b/munin/munin.build
@@ -55,8 +55,13 @@ RTOOL="wget"
PACKAGE_EXT="gz"
SRC="$PACKAGE"_"$VERSION.tar.$PACKAGE_EXT"
URL="http://easynews.dl.sourceforge.net/sourceforge/$PACKAGE/$SRC"
+
SRC_DIR="$SRC_DIR/$PACKAGE"
+if [ ! -d "$SRC_DIR" ]; then
+ mkdir -p $SRC_DIR
+fi
+
if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
rm -f $SRC_DIR/$SRC
wget "$URL" -O "$SRC_DIR/$SRC"
@@ -69,7 +74,11 @@ else
fi
TMP="$TMP/$PACKAGE"
-mkdir -p $TMP/package-$PACKAGE
+
+if [ ! -d "$TMP" ]; then
+ mkdir -p $TMP
+fi
+
cd $TMP
tar xvf$tarflag $SRC_DIR/$SRC