#!/bin/sh # Built on TCL v1.4 # Required extensions: # compiletc # advcomp # cramfs-utils # apache2 # libxml2 # libxml2-devs # openssl-0.9.8h # openssl-0.9.8h-devs # curl # curl-devs # libxslt # expat2 # expat2-devs # perl5 export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig tar -jxf php-5.2.9.tar.bz2 echo "#!/usr/local/bin/perl -w" > apxs cat /usr/local/bin/apxs | grep -v -e '#!/' >> apxs sudo mv apxs /usr/local/bin/apxs cd php-5.2.9 ./configure --without-pcre-regex --enable-calendar --disable-filter --without-pear --with-apxs2 make touch ../mark sudo make install sudo cp php.ini-dist /usr/local/lib/php.ini sudo cp php.ini-recommeded /usr/local/lib cd .. find /usr/local/ -newer mark -not -type d | grep -v -e man/ | grep -v -e include/ > filelist find /usr/local/ -newer mark -not -type d | grep -v -e man/ | grep -e include/ > filelist2 tar -czf php5.tcel -T filelist tar -czf php5-devs.tce -T filelist2 advdef -z4 php5.tcel md5sum php5.tcel > php5.tcel.md5.txt TCZDIR=`mktemp -d tcz.XXXXXX` cd $TCZDIR tar zxf ../php5.tcel sudo rm -f usr/local/lib/php.ini sudo rm -f usr/local/conf/httpd.conf cd .. echo "/usr/local/lib/php.ini" > filelist_rw echo "/usr/local/conf/httpd.conf" >> filelist_rw tar -czf $TCZDIR/user.tar.gz -T filelist_rw advdef -z4 $TCZDIR/user.tar.gz mkfs.cramfs $TCZDIR php5.tczl md5sum php5.tczl > php5.tczl.md5.txt rm -rf $TCZDIR advdef -z4 php5-devs.tcel md5sum php5-devs.tcel > php5-devs.tcel.md5.txt TCZDIR=`mktemp -d tcz.XXXXXX` cd $TCZDIR tar zxf ../php5-devs.tce cd .. mkfs.cramfs $TCZDIR php5-devs.tcz md5sum php5-devs.tcz > php5-devs.tcz.md5.txt rm -rf $TCZDIR rm -rf php-5.2.9 mark filelist filelist2 filelist_rw