DOCS="CREDITS EXTENSIONS INSTALL LICENSE NEWS TODO apidoc-zend.txt php4.gif" IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var:/storage STRIPLIB=y STRIPBIN=y SETATTR=y ARCH=i386 BUILD=1 # pkginfo VERSION=4.0.4pl1 PROGNAME="" DESC="\ PHP is an HTML-embedded scripting language. Much of its syntax is \n\ borrowed from C, Java and Perl with a couple of unique PHP-specific \n\ features thrown in. The goal of the language is to allow web \n\ developers to write dynamically generated pages quickly." # maintainer MAINTAINER="Robert Stan " SOURCE=http://www.php.net # package name PKGNAME=mod_php4 compile() { tar xvzf $CWD/php-$VERSION.tar.gz ; sync cd php-$VERSION CFLAGS=-O2 ./configure --prefix=/usr \ --with-apxs=/var/lib/apache/sbin/apxs \ --with-config-file-path=/var/lib/apache/conf \ --disable-debug \ --enable-track-vars \ --enable-trans-sid \ --enable-memory-limit \ --enable-versioning \ --with-gettext=/usr \ --with-zlib=/usr \ --with-imap \ --with-mysql CFLAGS=-O2 make } install() { make install mkdir -p /usr/doc/php-$VERSION cp -a $DOCS /usr/doc/php-$VERSION } special() { cat << EOF >> $CTL/doinst.sh # move it away so we can install it with apxs mv -f var/lib/apache/libexec/libphp4.so tmp/libphp4.so (cd tmp ; /var/lib/apache/sbin/apxs -i -a -n php4 libphp4.so ; rm -f libphp4.so)# move the config file if not already there if test '!' -f var/lib/apache/conf/php.ini ; then mv var/lib/apache/conf/php.ini-dist var/lib/apache/conf/php.ini fi EOF # The module mkdir -p $PKG/var/lib/apache/{libexec,conf} cat $TMP/php-$VERSION/.libs/libphp4.so > $PKG/var/lib/apache/libexec/libphp4.so # The config file cat $TMP/php-$VERSION/php.ini-dist > $PKG/var/lib/apache/conf/php.ini-dist cat $TMP/php-$VERSION/php.ini-dist > $PKG/var/lib/apache/conf/php.ini-optimized } subpacks() { echo "We don't have subpacks..." }