From: lunetics on
I vote for it!
On 25 Jun., 17:21, sub...(a)gmail.com (Subbsd) wrote:
> 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!
> _______________________________________________
> freebsd-po...(a)freebsd.org mailing listhttp://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...(a)freebsd.org"