Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 2010 19:21:39 +0400
From:      Subbsd <subbsd@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   php 5.3 ports with mysqlnd support
Message-ID:  <AANLkTil1Z8KpFWiYKU9f-XBqBd74TtDqBeZTjri0ZyLm@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTil1Z8KpFWiYKU9f-XBqBd74TtDqBeZTjri0ZyLm>