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

mod_fastcgi/mod_fastcgi.SlackBuild

index e870f2ee57512162e7f171d50aea602bda7fcdc6..c91526e3a07d1beffa08847d6794af8eb19bd024 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
@@ -38,6 +39,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
@@ -54,8 +58,10 @@ apxs -o mod_fastcgi.so -c *.c
 
 CWD="`pwd`"
 
-mkdir -p $TMP/package-$PACKAGE/$PACKAGE
-cd $TMP/package-$PACKAGE/$PACKAGE
+TMP="$TMP/$PACKAGE"
+rm -rf $TMP
+mkdir -p $TMP
+cd $TMP
 
 mkdir -p usr/libexec/apache
 cp $CWD/mod_fastcgi.so usr/libexec/apache/
@@ -96,5 +102,9 @@ echo '( echo Add the following lines on /etc/apache/httpd.conf: )' > install/doi
 echo '( echo LoadModule fastcgi_module  libexec/apache/mod_fastcgi.so  )' >> install/doinst.sh
 echo '( echo AddModule mod_fastcgi.c )' >> 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
+
+if [ "$CLEANUP" == "yes" ]; then
+  rm -rf $TMP
+fi