# php, http://www.php.net name=php version=5.2.6 release=1 source=(http://se2.php.net/distributions/$name-$version.tar.bz2) build() { cd $name-$version ./configure \ --prefix=/usr \ --with-config-file-path=/etc/httpd \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-apxs2=/usr/sbin/apxs \ --with-mysql=/usr \ --with-zlib=/usr \ --with-libpng=/usr \ --with-regex=php \ --with-xml=shared \ --with-tsrm-pthreads \ --with-openssl \ --with-gdbm \ --with-gd \ --with-mod_charset \ --with-bz2 \ --with-gmp \ --enable-force-cgi-redirect \ --enable-discard-path \ --enable-safe-mode \ --enable-calendar \ --enable-ctype \ --enable-dbase \ --enable-ftp \ --enable-bcmath \ --enable-trans-sid \ --enable-shmop \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-yp \ --enable-memory-limit \ --enable-shared \ --enable-gd-imgstrttf \ --enable-mbstring \ --disable-debug make install -D -m0644 /etc/httpd/httpd.conf $PKG/etc/httpd/httpd.conf make INSTALL_ROOT=$PKG install rm -f $PKG/etc/httpd/httpd.conf rm -f $PKG/etc/httpd/httpd.conf.bak install -D -m0644 php.ini-recommended $PKG/etc/httpd/php.ini rm -rf $PKG/usr/lib/php/{test,doc} rm -rf $PKG/usr/include/php/var chown root.root $PKG -R }