Date: Mon, 10 Oct 2005 11:19:49 +0200 (CEST) From: Simun Mikecin <numisemis@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: zaa@zaa.pp.ru Subject: ports/87197: [new] databases/pecl-PDO_OCI: PHP PDO Oracle OCI8 driver Message-ID: <20051010091949.23FE626D04A@mail.logos.hr> Resent-Message-ID: <200510100930.j9A9UFG5038920@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 87197 >Category: ports >Synopsis: [new] databases/pecl-PDO_OCI: PHP PDO Oracle OCI8 driver >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 10 09:30:15 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Simun Mikecin >Release: FreeBSD 5.4-RELEASE-p6 i386 >Organization: >Environment: System: FreeBSD plasma 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #0: Mon Aug 29 15:44:59 CEST 2005 root@plasma:/usr/obj/usr/src.5/sys/PLASMA i386 >Description: This is PDO Oracle OCI8 driver for PHP 5. Unlike PDO_ODBC driver which segfaults when used from apache 2.0, it works. Tested with Oracle 9 Database Server. It should work with versions 7, 8 and 10 also. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pecl-PDO_OCI # pecl-PDO_OCI/Makefile # pecl-PDO_OCI/distinfo # pecl-PDO_OCI/pkg-descr # pecl-PDO_OCI/files # pecl-PDO_OCI/files/patch-config.m4 # echo c - pecl-PDO_OCI mkdir -p pecl-PDO_OCI > /dev/null 2>&1 echo x - pecl-PDO_OCI/Makefile sed 's/^X//' >pecl-PDO_OCI/Makefile << 'END-of-pecl-PDO_OCI/Makefile' X# Ports collection makefile for: pecl-PDO_OCI X# Date created: 2005-10-10 X# Whom: Simun Mikecin <numisemis@yahoo.com> X# X# $FreeBSD$ X# X XPORTNAME= PDO_OCI XDISTVERSION= 1.0RC1 XCATEGORIES= databases www XMASTER_SITES= http://pecl.php.net/get/ XPKGNAMEPREFIX= pecl- XEXTRACT_SUFX= .tgz XDIST_SUBDIR= PECL X XMAINTAINER= numisemis@yahoo.com XCOMMENT= Oracle OCI 8 Interface driver for PDO X XBUILD_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo.so:${PORTSDIR}/databases/pecl-PDO XBUILD_DEPENDS+= ${LOCALBASE}/oracle8-client/lib/libclntsh.a:${PORTSDIR}/databases/oracle8-client XRUN_DEPENDS= ${BUILD_DEPENDS} X XUSE_PHP= yes XUSE_PHPIZE= yes XUSE_PHPEXT= yes XDEFAULT_PHP_VER=5 XPHP_MODNAME= pdo_oci X XCONFIGURE_ARGS+= --with-pdo-oci=${LOCALBASE}/oracle8-client XCONFIGURE_ENV= LIBS="${PTHREAD_LIBS}" X X.include <bsd.port.pre.mk> X X.if ${OSVERSION} < 500000 XPTHREAD_STATIC= /usr/lib/libc_r X.else XPTHREAD_STATIC= /usr/lib/libpthread X.endif X Xpre-configure: X @cd ${WRKSRC}; \ X for lib in ${LOCALBASE}/oracle8-client/lib/libclntsh ${PTHREAD_STATIC}; do \ X /usr/bin/ar x $${lib}.a; \ X done; \ X /usr/bin/ar rcs liboci8.a *.o X X.include <bsd.port.post.mk> END-of-pecl-PDO_OCI/Makefile echo x - pecl-PDO_OCI/distinfo sed 's/^X//' >pecl-PDO_OCI/distinfo << 'END-of-pecl-PDO_OCI/distinfo' XMD5 (PECL/PDO_OCI-1.0RC1.tgz) = 51e937c2eabbefaf3d68abff87e82a6e XSIZE (PECL/PDO_OCI-1.0RC1.tgz) = 12083 END-of-pecl-PDO_OCI/distinfo echo x - pecl-PDO_OCI/pkg-descr sed 's/^X//' >pecl-PDO_OCI/pkg-descr << 'END-of-pecl-PDO_OCI/pkg-descr' XThis extension provides an Oracle OCI 8 driver for PDO. X XWWW: http://pecl.php.net/package/PDO_OCI END-of-pecl-PDO_OCI/pkg-descr echo c - pecl-PDO_OCI/files mkdir -p pecl-PDO_OCI/files > /dev/null 2>&1 echo x - pecl-PDO_OCI/files/patch-config.m4 sed 's/^X//' >pecl-PDO_OCI/files/patch-config.m4 << 'END-of-pecl-PDO_OCI/files/patch-config.m4' X--- config.m4.orig Wed Jul 27 05:48:08 2005 X+++ config.m4 Mon Oct 10 10:56:17 2005 X@@ -106,7 +106,7 @@ X ;; X X 8.1) X- PHP_ADD_LIBRARY(clntsh, 1, PDO_OCI_SHARED_LIBADD) X+ PHP_ADD_LIBRARY_WITH_PATH(oci8, ., PDO_OCI_SHARED_LIBADD) X ;; X X 9.0) END-of-pecl-PDO_OCI/files/patch-config.m4 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051010091949.23FE626D04A>