php 5.3 ports with mysqlnd support
Subbsd
subbsd at gmail.com
Fri Jun 25 15:47:39 UTC 2010
Hello
Any plan to make controll for builds php 5.3 with mysqlnd feature (
http://dev.mysql.com/downloads/connector/php-mysqlnd/ ) via OPTIONS ?
Currenlty i've added in /usr/local/etc/pkgtools.conf
--
BEFOREBUILD = {
'lang/php5' => 'sh /root/patch/ports-php5.sh',
}
AFTERINSTALL = {
'lang/php5' => 'sh /root/patch/ports-php5.sh',
}
--
and write my patch /root/patch/ports-php5.sh:
--
#!/bin/sh
TMPMKFILE="/usr/ports/lang/php5/Makefile-orig"
MKFILE="/usr/ports/lang/php5/Makefile"
if [ -f ${TMPMKFILE} ]; then
mv ${TMPMKFILE} ${MKFILE}
exit
fi
if [ -n `/usr/bin/grep mysqlnd /usr/ports/lang/php5/Makefile`]; then
cp ${MKFILE} ${TMPMKFILE}
/usr/bin/sed 's/--disable-all/--disable-all --enable-pdo
--with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd/g'
${TMPMKFILE} > ${MKFILE}
fi
--
And compile php via pkg{install|upgrade} tools.
I have around 20 heavy-loaded servers with php-mysqlnd enabled for 5 month
and i not get any failures therefore it is stable enough code and its will
be wonderfull to see /usr/ports/lang/php5/Makefile with supporting of
mysqlnd building. Thanks!
More information about the freebsd-ports
mailing list