aboutsummaryrefslogtreecommitdiff
path: root/mod_fastcgi/mod_fastcgi.SlackBuild
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-31 17:07:02 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-31 17:07:02 +0000
commitdce5b189e98febbce6227c72e8cb5044b1914797 (patch)
treeccbe105910f4fb49c05b5b2fac3e0f5d53faecd9 /mod_fastcgi/mod_fastcgi.SlackBuild
parent576f62e0e1dd0ad639706f5d8677027da6fb8659 (diff)
downloadslackbuilds-dce5b189e98febbce6227c72e8cb5044b1914797.tar.gz
slackbuilds-dce5b189e98febbce6227c72e8cb5044b1914797.tar.bz2
mod_fastcgi update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@81 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'mod_fastcgi/mod_fastcgi.SlackBuild')
-rwxr-xr-xmod_fastcgi/mod_fastcgi.SlackBuild16
1 files changed, 13 insertions, 3 deletions
diff --git a/mod_fastcgi/mod_fastcgi.SlackBuild b/mod_fastcgi/mod_fastcgi.SlackBuild
index e870f2ee..c91526e3 100755
--- a/mod_fastcgi/mod_fastcgi.SlackBuild
+++ b/mod_fastcgi/mod_fastcgi.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
@@ -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