tomclegg.net |
PHP the KICS way Posted October 3, 2007 php 4.4.7 with suhosin patch( set -ex cd /usr/ports/lang/php4 make fetch checksum cd /tmp rm -r php-4.4.7 tar xyf /usr/ports/distfiles/php-4.4.7.tar.bz2 cd php-4.4.7 zcat /usr/ports/distfiles/suhosin-patch-4.4.7-0.9.6.patch.gz | patch -p1 wget http://tomclegg.net/software/patch-php-path-info patch < patch-php-path-info './configure' '--enable-force-cgi-redirect' '--enable-shared' \ '--enable-trans-sid' '--enable-sockets' '--enable-ftp' '--enable-xslt' \ '--with-xslt-sablot=/usr/local' '--with-zlib' '--with-mhash=/usr/local' \ '--with-mcrypt=/usr/local' '--with-mysql=/usr/local' \ '--with-pgsql=/usr/local' '--with-pear' '--with-gd' \ '--with-jpeg-dir=/usr/local/' '--with-curl=/usr/local' \ '--with-freetype=/usr/local' make cp -p sapi/cgi/php /usr/local/bin/php447.cgi strip /usr/local/bin/php447.cgi ) php 4.3.11cd /usr/ports/lang/php4 make fetch cd /tmp rm -r php-4.3.11 tar xyf /usr/ports/distfiles/php-4.3.11.tar.bz2 cd php-4.3.11 wget http://tomclegg.net/software/patch-php-path-info patch < patch-php-path-info './configure' '--enable-force-cgi-redirect' '--enable-trans-sid' \ '--enable-sockets' '--enable-ftp' '--enable-xslt' \ '--with-xslt-sablot=/usr/local' '--with-zlib' \ '--with-mhash=/usr/local' '--with-mcrypt=/usr/local' '--with-zlib' \ '--with-mysql=/usr/local' '--with-pgsql=/usr/local' '--with-pear' \ '--with-gd' '--enable-shared' '--with-jpeg-dir=/usr/local/' make cp -p sapi/cgi/php /usr/local/bin/php strip /usr/local/bin/php |