]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
sympa update
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Thu, 31 Aug 2006 20:49:07 +0000 (20:49 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Thu, 31 Aug 2006 20:49:07 +0000 (20:49 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@126 370017ae-e619-0410-ac65-c121f96126d4

sympa/sympa.SlackBuild

index 8d3061650705612e454f0e0f954af50027afd369..ccfa1b9caa80ed72e8b4fca57abaee8ae356c999 100755 (executable)
@@ -45,6 +45,7 @@ ARCH=${ARCH:=x86_64}
 BUILD=${BUILD:=1rha}
 SRC_DIR=${SRC:=$CWD}
 TMP=${TMP:=/tmp}
+REPOS=${REPOS:=$TMP}
 
 if [ "$ARCH" == "x86_64" ]; then
   LIBDIR=/usr/lib64
@@ -63,6 +64,9 @@ else
   tarflag="z"
 fi
 
+SRC_DIR="$SRC_DIR/$PACKAGE"
+mkdir -p $SRC_DIR
+
 if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
   wget "$URL" -O "$SRC_DIR/$SRC"
 fi
@@ -135,8 +139,12 @@ echo '( chroot . /usr/bin/chown -R sympa.sympa /usr/local/sympa /var/mail/sympa
 echo '( touch /var/log/sympa)' >> install/doinst.sh
 # echo '( chmod +s /usr/local/sympa/bin/queue )' >> install/doinst.sh
 
-makepkg -c y -l y $TMP/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
 
 echo "Package creation complete. PLEASE check if everything was ok."
 echo "Log files at $TMP/package-$PACKAGE/install.log"
 
+if [ "$CLEANUP" == "yes" ]; then
+  rm -rf $TMP
+fi
+