diff options
author | Alex Dupre <ale@FreeBSD.org> | 2013-06-24 14:32:11 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2013-06-24 14:32:11 +0000 |
commit | 7fe96c109332ecdb411ceef911efd11085a88346 (patch) | |
tree | fd816d2c8b34ef7db2d6bcabe7358eaa7fb2d04f /databases | |
parent | 47b48988aa7fe1c1c0f221ce9cb124af07f62a16 (diff) | |
download | ports-7fe96c109332ecdb411ceef911efd11085a88346.tar.gz ports-7fe96c109332ecdb411ceef911efd11085a88346.zip |
Notes
Diffstat (limited to 'databases')
22 files changed, 405 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 6e885de5c036..648f1fa126df 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -633,6 +633,22 @@ SUBDIR += php53-sqlite SUBDIR += php53-sqlite3 SUBDIR += php53-sybase_ct + SUBDIR += php55-dba + SUBDIR += php55-interbase + SUBDIR += php55-mssql + SUBDIR += php55-mysql + SUBDIR += php55-mysqli + SUBDIR += php55-odbc + SUBDIR += php55-pdo + SUBDIR += php55-pdo_dblib + SUBDIR += php55-pdo_firebird + SUBDIR += php55-pdo_mysql + SUBDIR += php55-pdo_odbc + SUBDIR += php55-pdo_pgsql + SUBDIR += php55-pdo_sqlite + SUBDIR += php55-pgsql + SUBDIR += php55-sqlite3 + SUBDIR += php55-sybase_ct SUBDIR += phpminiadmin SUBDIR += phpmyadmin SUBDIR += phpmyadmin35 diff --git a/databases/php55-dba/Makefile b/databases/php55-dba/Makefile new file mode 100644 index 000000000000..f8c379a08655 --- /dev/null +++ b/databases/php55-dba/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -dba + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-dba/files/patch-config.m4 b/databases/php55-dba/files/patch-config.m4 new file mode 100644 index 000000000000..1df828460e05 --- /dev/null +++ b/databases/php55-dba/files/patch-config.m4 @@ -0,0 +1,50 @@ +--- config.m4.orig 2012-11-21 06:12:20.000000000 +0100 ++++ config.m4 2012-12-12 10:18:42.000000000 +0100 +@@ -320,6 +320,38 @@ + THIS_PREFIX=$i + THIS_INCLUDE=$i/db4/db.h + break ++ elif test -f "$i/include/db5/db.h"; then ++ THIS_PREFIX=$i ++ THIS_INCLUDE=$i/include/db5/db.h ++ break ++ elif test -f "$i/include/db48/db.h"; then ++ THIS_PREFIX=$i ++ THIS_INCLUDE=$i/include/db48/db.h ++ break ++ elif test -f "$i/include/db47/db.h"; then ++ THIS_PREFIX=$i ++ THIS_INCLUDE=$i/include/db47/db.h ++ break ++ elif test -f "$i/include/db46/db.h"; then ++ THIS_PREFIX=$i ++ THIS_INCLUDE=$i/include/db46/db.h ++ break ++ elif test -f "$i/include/db44/db.h"; then ++ THIS_PREFIX=$i ++ THIS_INCLUDE=$i/include/db44/db.h ++ break ++ elif test -f "$i/include/db43/db.h"; then ++ THIS_PREFIX=$i ++ THIS_INCLUDE=$i/include/db43/db.h ++ break ++ elif test -f "$i/include/db42/db.h"; then ++ THIS_PREFIX=$i ++ THIS_INCLUDE=$i/include/db42/db.h ++ break ++ elif test -f "$i/include/db41/db.h"; then ++ THIS_PREFIX=$i ++ THIS_INCLUDE=$i/include/db41/db.h ++ break + elif test -f "$i/include/db5.1/db.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/db5.1/db.h +@@ -362,7 +394,7 @@ + break + fi + done +- PHP_DBA_DB_CHECK(4, db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)]) ++ PHP_DBA_DB_CHECK(4, db-5 db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)]) + fi + PHP_DBA_STD_RESULT(db4,Berkeley DB4) + diff --git a/databases/php55-interbase/Makefile b/databases/php55-interbase/Makefile new file mode 100644 index 000000000000..5ad561868ef4 --- /dev/null +++ b/databases/php55-interbase/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -interbase + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-mssql/Makefile b/databases/php55-mssql/Makefile new file mode 100644 index 000000000000..b7105fba3a9e --- /dev/null +++ b/databases/php55-mssql/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -mssql + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-mysql/Makefile b/databases/php55-mysql/Makefile new file mode 100644 index 000000000000..613989b04f66 --- /dev/null +++ b/databases/php55-mysql/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -mysql + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-mysqli/Makefile b/databases/php55-mysqli/Makefile new file mode 100644 index 000000000000..0725ba0b3756 --- /dev/null +++ b/databases/php55-mysqli/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -mysqli + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-mysqli/files/patch-php_mysqli_structs.h b/databases/php55-mysqli/files/patch-php_mysqli_structs.h new file mode 100644 index 000000000000..d0daeee9ee54 --- /dev/null +++ b/databases/php55-mysqli/files/patch-php_mysqli_structs.h @@ -0,0 +1,10 @@ +--- php_mysqli_structs.h.orig 2010-07-26 15:52:54.000000000 +0200 ++++ php_mysqli_structs.h 2010-07-26 15:53:14.000000000 +0200 +@@ -54,6 +54,7 @@ + #define WE_HAD_MBSTATE_T + #endif + ++#define HAVE_ULONG 1 + #include <my_global.h> + + #if !defined(HAVE_MBRLEN) && defined(WE_HAD_MBRLEN) diff --git a/databases/php55-odbc/Makefile b/databases/php55-odbc/Makefile new file mode 100644 index 000000000000..367500f04518 --- /dev/null +++ b/databases/php55-odbc/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -odbc + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-odbc/files/patch-config.m4 b/databases/php55-odbc/files/patch-config.m4 new file mode 100644 index 000000000000..c809732b1047 --- /dev/null +++ b/databases/php55-odbc/files/patch-config.m4 @@ -0,0 +1,124 @@ +--- config.m4.orig 2007-07-31 15:02:00.000000000 +0200 ++++ config.m4 2011-04-26 13:57:31.000000000 +0200 +@@ -99,9 +99,12 @@ + dnl + dnl configure options + dnl ++PHP_ARG_ENABLE(odbc,, ++[ --enable-odbc Enable ODBC support with selected driver]) ++ + if test -z "$ODBC_TYPE"; then + PHP_ARG_WITH(adabas,, +-[ --with-adabas[=DIR] Include Adabas D support [/usr/local]]) ++[ --with-adabas[=DIR] Include Adabas D support [/usr/local]], no, no) + + if test "$PHP_ADABAS" != "no"; then + AC_MSG_CHECKING([for Adabas support]) +@@ -128,7 +131,7 @@ + + if test -z "$ODBC_TYPE"; then + PHP_ARG_WITH(sapdb,, +-[ --with-sapdb[=DIR] Include SAP DB support [/usr/local]]) ++[ --with-sapdb[=DIR] Include SAP DB support [/usr/local]], no, no) + + if test "$PHP_SAPDB" != "no"; then + AC_MSG_CHECKING([for SAP DB support]) +@@ -146,7 +149,7 @@ + + if test -z "$ODBC_TYPE"; then + PHP_ARG_WITH(solid,, +-[ --with-solid[=DIR] Include Solid support [/usr/local/solid]]) ++[ --with-solid[=DIR] Include Solid support [/usr/local/solid]], no, no) + + if test "$PHP_SOLID" != "no"; then + AC_MSG_CHECKING(for Solid support) +@@ -171,7 +174,7 @@ + + if test -z "$ODBC_TYPE"; then + PHP_ARG_WITH(ibm-db2,, +-[ --with-ibm-db2[=DIR] Include IBM DB2 support [/home/db2inst1/sqllib]]) ++[ --with-ibm-db2[=DIR] Include IBM DB2 support [/home/db2inst1/sqllib]], no, no) + + if test "$PHP_IBM_DB2" != "no"; then + AC_MSG_CHECKING(for IBM DB2 support) +@@ -208,7 +211,7 @@ + + if test -z "$ODBC_TYPE"; then + PHP_ARG_WITH(ODBCRouter,, +-[ --with-ODBCRouter[=DIR] Include ODBCRouter.com support [/usr]]) ++[ --with-ODBCRouter[=DIR] Include ODBCRouter.com support [/usr]], no, no) + + if test "$PHP_ODBCROUTER" != "no"; then + AC_MSG_CHECKING(for ODBCRouter.com support) +@@ -229,7 +232,7 @@ + if test -z "$ODBC_TYPE"; then + PHP_ARG_WITH(empress,, + [ --with-empress[=DIR] Include Empress support [\$EMPRESSPATH] +- (Empress Version >= 8.60 required)]) ++ (Empress Version >= 8.60 required)], no, no) + + if test "$PHP_EMPRESS" != "no"; then + AC_MSG_CHECKING(for Empress support) +@@ -253,7 +256,7 @@ + PHP_ARG_WITH(empress-bcs,, + [ --with-empress-bcs[=DIR] + Include Empress Local Access support [\$EMPRESSPATH] +- (Empress Version >= 8.60 required)]) ++ (Empress Version >= 8.60 required)], no, no) + + if test "$PHP_EMPRESS_BCS" != "no"; then + AC_MSG_CHECKING(for Empress local access support) +@@ -291,7 +294,7 @@ + + if test -z "$ODBC_TYPE"; then + PHP_ARG_WITH(birdstep,, +-[ --with-birdstep[=DIR] Include Birdstep support [/usr/local/birdstep]]) ++[ --with-birdstep[=DIR] Include Birdstep support [/usr/local/birdstep]], no, no) + + if test "$PHP_BIRDSTEP" != "no"; then + AC_MSG_CHECKING(for Birdstep support) +@@ -346,7 +349,7 @@ + running this configure script: + CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\" + LDFLAGS=-lunix +- CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"]) ++ CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"], no, no) + + if test "$PHP_CUSTOM_ODBC" != "no"; then + AC_MSG_CHECKING(for a custom ODBC support) +@@ -366,7 +369,7 @@ + + if test -z "$ODBC_TYPE"; then + PHP_ARG_WITH(iodbc,, +-[ --with-iodbc[=DIR] Include iODBC support [/usr/local]]) ++[ --with-iodbc[=DIR] Include iODBC support [/usr/local]], no, no) + + if test "$PHP_IODBC" != "no"; then + AC_MSG_CHECKING(for iODBC support) +@@ -387,7 +390,7 @@ + + if test -z "$ODBC_TYPE"; then + PHP_ARG_WITH(esoob,, +-[ --with-esoob[=DIR] Include Easysoft OOB support [/usr/local/easysoft/oob/client]]) ++[ --with-esoob[=DIR] Include Easysoft OOB support [/usr/local/easysoft/oob/client]], no, no) + + if test "$PHP_ESOOB" != "no"; then + AC_MSG_CHECKING(for Easysoft ODBC-ODBC Bridge support) +@@ -407,7 +410,7 @@ + + if test -z "$ODBC_TYPE"; then + PHP_ARG_WITH(unixODBC,, +-[ --with-unixODBC[=DIR] Include unixODBC support [/usr/local]]) ++[ --with-unixODBC[=DIR] Include unixODBC support [/usr/local]], no, no) + + if test "$PHP_UNIXODBC" != "no"; then + AC_MSG_CHECKING(for unixODBC support) +@@ -428,7 +431,7 @@ + + if test -z "$ODBC_TYPE"; then + PHP_ARG_WITH(dbmaker,, +-[ --with-dbmaker[=DIR] Include DBMaker support]) ++[ --with-dbmaker[=DIR] Include DBMaker support], no, no) + + if test "$PHP_DBMAKER" != "no"; then + AC_MSG_CHECKING(for DBMaker support) diff --git a/databases/php55-pdo/Makefile b/databases/php55-pdo/Makefile new file mode 100644 index 000000000000..875656d76931 --- /dev/null +++ b/databases/php55-pdo/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -pdo + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-pdo_dblib/Makefile b/databases/php55-pdo_dblib/Makefile new file mode 100644 index 000000000000..54b1ce812367 --- /dev/null +++ b/databases/php55-pdo_dblib/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -pdo_dblib + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-pdo_dblib/files/patch-dblib_driver.c b/databases/php55-pdo_dblib/files/patch-dblib_driver.c new file mode 100644 index 000000000000..a167784e9067 --- /dev/null +++ b/databases/php55-pdo_dblib/files/patch-dblib_driver.c @@ -0,0 +1,15 @@ +--- dblib_driver.c.orig 2013-06-24 15:17:35.000000000 +0200 ++++ dblib_driver.c 2013-06-24 15:20:43.000000000 +0200 +@@ -274,9 +274,9 @@ + ,{"5.0",DBVERSION_70} /* FIXME: This does not work with Sybase, but environ will */ + ,{"6.0",DBVERSION_70} + ,{"7.0",DBVERSION_70} +- ,{"7.1",DBVERSION_71} +- ,{"7.2",DBVERSION_72} +- ,{"8.0",DBVERSION_72} ++ ,{"7.1",DBVERSION_80} ++ ,{"7.2",DBVERSION_80} ++ ,{"8.0",DBVERSION_80} + ,{"10.0",DBVERSION_100} + ,{"auto",0} /* Only works with FreeTDS. Other drivers will bork */ + diff --git a/databases/php55-pdo_firebird/Makefile b/databases/php55-pdo_firebird/Makefile new file mode 100644 index 000000000000..13d8dafb9386 --- /dev/null +++ b/databases/php55-pdo_firebird/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -pdo_firebird + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-pdo_mysql/Makefile b/databases/php55-pdo_mysql/Makefile new file mode 100644 index 000000000000..f41e345f2590 --- /dev/null +++ b/databases/php55-pdo_mysql/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -pdo_mysql + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-pdo_odbc/Makefile b/databases/php55-pdo_odbc/Makefile new file mode 100644 index 000000000000..0a56fc628d12 --- /dev/null +++ b/databases/php55-pdo_odbc/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -pdo_odbc + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-pdo_pgsql/Makefile b/databases/php55-pdo_pgsql/Makefile new file mode 100644 index 000000000000..abde19108f02 --- /dev/null +++ b/databases/php55-pdo_pgsql/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -pdo_pgsql + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-pdo_sqlite/Makefile b/databases/php55-pdo_sqlite/Makefile new file mode 100644 index 000000000000..b0546cc6c8fd --- /dev/null +++ b/databases/php55-pdo_sqlite/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -pdo_sqlite + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-pgsql/Makefile b/databases/php55-pgsql/Makefile new file mode 100644 index 000000000000..b6223ec6191f --- /dev/null +++ b/databases/php55-pgsql/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -pgsql + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-pgsql/files/patch-pgsql.c b/databases/php55-pgsql/files/patch-pgsql.c new file mode 100644 index 000000000000..a4abfc39dff3 --- /dev/null +++ b/databases/php55-pgsql/files/patch-pgsql.c @@ -0,0 +1,30 @@ +--- pgsql.c.orig 2010-01-03 10:23:27.000000000 +0100 ++++ pgsql.c 2010-03-08 11:00:26.000000000 +0100 +@@ -63,6 +63,7 @@ + #define PGSQL_MAX_LENGTH_OF_LONG 30 + #define PGSQL_MAX_LENGTH_OF_DOUBLE 60 + ++#if UINT_MAX > LONG_MAX + #define PGSQL_RETURN_OID(oid) do { \ + if (oid > LONG_MAX) { \ + smart_str s = {0}; \ +@@ -72,7 +73,9 @@ + } \ + RETURN_LONG((long)oid); \ + } while(0) +- ++#else ++#define PGSQL_RETURN_OID(oid) RETURN_LONG((long)oid) ++#endif + + #if HAVE_PQSETNONBLOCKING + #define PQ_SETNONBLOCKING(pg_link, flag) PQsetnonblocking(pg_link, flag) +@@ -728,7 +731,7 @@ + static int le_link, le_plink, le_result, le_lofp, le_string; + + /* {{{ _php_pgsql_trim_message */ +-static char * _php_pgsql_trim_message(const char *message, int *len) ++static char * _php_pgsql_trim_message(const char *message, size_t *len) + { + register int i = strlen(message)-1; + diff --git a/databases/php55-sqlite3/Makefile b/databases/php55-sqlite3/Makefile new file mode 100644 index 000000000000..28efa9176b92 --- /dev/null +++ b/databases/php55-sqlite3/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -sqlite3 + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php55-sybase_ct/Makefile b/databases/php55-sybase_ct/Makefile new file mode 100644 index 000000000000..cd9fe95a2f74 --- /dev/null +++ b/databases/php55-sybase_ct/Makefile @@ -0,0 +1,10 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +CATEGORIES= databases + +MASTERDIR= ${.CURDIR}/../../lang/php55 + +PKGNAMESUFFIX= -sybase_ct + +.include "${MASTERDIR}/Makefile" |