#!/bin/sh #NEED:apache2 NAME=mod_fcgid VERSION=1.07 TAR=$NAME.$VERSION.tar.gz CWD=`pwd` TMP=${TMP:-/tmp} if [ ! -d $TMP ]; then mkdir -p $TMP fi tar -xzf $TAR || exit 1 cd $NAME.$VERSION || exit 1 #cp Makefile.AP2 Makefile || exit 1 #patch -p1 fcgi.h < $CWD/ap22.patch || exit 1 make -j1 top_dir=/var/www || exit 1 make -j1 top_dir=/var/www install || exit 1 mkdir $PKG/usr/lib/apache2 #cp .libs/mod_fastcgi.so $PKG/usr/lib/apache2 || exit 1 cd $PKG #makepkg -l y -c n $CWD/php-$VERSION-$ARCH-$BUILD.tgz makepkg -l y -c n $CWD/$NAME.pkg > /dev/null && echo $VERSION > $CWD/$NAME.version && arch > $CWD/$NAME.arch