From owner-freebsd-ports@FreeBSD.ORG Fri Jun 25 15:47:39 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 431DC106564A for ; Fri, 25 Jun 2010 15:47:39 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id C5FB08FC1A for ; Fri, 25 Jun 2010 15:47:38 +0000 (UTC) Received: by bwz17 with SMTP id 17so1210409bwz.13 for ; Fri, 25 Jun 2010 08:47:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=+caI+OpRIvKaA+ak9byqfAX5/GDibaqm7Tm6zgUCffU=; b=SrhK1+4yx4MohY38vU412FblvAerTIv18sC5sOXCPXthexyxevnHhy9uMd8n2bUSs7 YlOLRSOHOqbhbvD8ZPcXTRa/1RkHpd5z4oRu6uO6eM57jsqlbmqOWALj2iN1XQg69oZ9 tS1X05cMzsFbfdci2apGDPyMMAX047SGULsPI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hlCQQ/4q/4ygI9ApuUicOcFHxntNAOZA0jaNBYpKiirFMvUaLECzL5IUqJH3Rz9GMw 4vYDbAUXtJZNcvOlCcTwMcXjudwCQoGkG2MgxEZkKg+ViwAt74xdbQ+WCb51Z/EF+geT M9vH5zAWgjOy5orKEcG3aL7gkIvNPLMQn2q+U= MIME-Version: 1.0 Received: by 10.204.162.130 with SMTP id v2mr631678bkx.5.1277479299398; Fri, 25 Jun 2010 08:21:39 -0700 (PDT) Received: by 10.204.67.68 with HTTP; Fri, 25 Jun 2010 08:21:39 -0700 (PDT) Date: Fri, 25 Jun 2010 19:21:39 +0400 Message-ID: From: Subbsd To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: php 5.3 ports with mysqlnd support X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2010 15:47:39 -0000 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!