diff options
Diffstat (limited to 'mod_fastcgi')
-rwxr-xr-x | mod_fastcgi/mod_fastcgi.SlackBuild | 16 |
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 |