summaryrefslogtreecommitdiff
path: root/databases/php-mongodb
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2019-03-05 14:26:42 +0000
committeradam <adam@pkgsrc.org>2019-03-05 14:26:42 +0000
commita9713f0c601f5c676e028cd3e76bac5da524d30a (patch)
treed9697e84d39f7277a1081e631461fad609fd1b2a /databases/php-mongodb
parent94ba033771dfb80e83ac766326289b29eea6aa5e (diff)
downloadpkgsrc-a9713f0c601f5c676e028cd3e76bac5da524d30a.tar.gz
php-mongodb: updated to 1.5.3
MongoDB PHP Driver 1.5.0: It supports all new features for MongoDB 2.6, including: Aggregate can now return a cursor Aggregation pipelines can now be explained Possible to set maxTimeMS for commands and queries Transparent support for the new command-based MongoDB write API New MongoWriteBatch classes (using the new MongoDB write API) Support for MongoDB Enterprise features (e.g. Kerberos, LDAP, X509) Option to tune acceptable server latency for secondary reads (secondaryAcceptableLatencyMS) With this release, some driver functionality which was previously documented as deprecated will now formally raise deprecation notices. This includes: Instantiating the Mongo class Calling MongoCursor::slaveOkay() "wtimeout" and "safe" options for MongoCollection write operations Manipulating public properties on core classes (such as $collection->w) MongoDB PHP Driver 1.4.0: The 1.4 series introduced fundemental changes in how connections are created to the MongoDB servers. The driver now utilizes PHP native streams, so all normal PHP stream options apply. Furthermore, an experimental Stream Context Support was added. The 1.4.x series also added support for MongoDB 2.4.x. The most important improvements however deal with the handling of replica sets, especially nodes that timeout and nodes that are unreachable for various reasons. Besides the improvements to replica set handling, this release addresses issues with read preferences through mongos nodes. It also adds support for SSL enabled connections as well as journal and fsync connection string options.
Diffstat (limited to 'databases/php-mongodb')
-rw-r--r--databases/php-mongodb/Makefile23
-rw-r--r--databases/php-mongodb/distinfo10
-rw-r--r--databases/php-mongodb/patches/patch-config.m454
3 files changed, 16 insertions, 71 deletions
diff --git a/databases/php-mongodb/Makefile b/databases/php-mongodb/Makefile
index fa375aa92c8..f25dbc26d3a 100644
--- a/databases/php-mongodb/Makefile
+++ b/databases/php-mongodb/Makefile
@@ -1,24 +1,23 @@
-# $NetBSD: Makefile,v 1.3 2018/01/07 20:56:44 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2019/03/05 14:26:42 adam Exp $
-MODNAME= mongodb
-PECL_VERSION= 1.3.4
-CATEGORIES+= databases
+MODNAME= mongodb
+PECL_VERSION= 1.5.3
+CATEGORIES+= databases
-MAINTAINER= bartosz.kuzma@gmail.com
-HOMEPAGE= http://docs.mongodb.org/ecosystem/drivers/php/
-COMMENT= MongoDB database driver
-LICENSE= apache-2.0
+MAINTAINER= bartosz.kuzma@gmail.com
+HOMEPAGE= http://docs.mongodb.org/ecosystem/drivers/php/
+COMMENT= MongoDB database driver
+LICENSE= apache-2.0
+DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.3.0:../../textproc/php-json
+
+USE_TOOLS+= pkg-config
CONFIGURE_ARGS+= --with-libbson
CONFIGURE_ARGS+= --with-libmongoc
CONFIGURE_ARGS+= --with-openssl-dir=${BUILDLINK_PREFIX.openssl}
-USE_TOOLS+= pkg-config
-
-DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.3.0:../../textproc/php-json
.include "../../security/openssl/buildlink3.mk"
.include "../../databases/mongo-c-driver/buildlink3.mk"
-.include "../../devel/libbson/buildlink3.mk"
.include "../../devel/snappy/buildlink3.mk"
.include "../../lang/php/ext.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/php-mongodb/distinfo b/databases/php-mongodb/distinfo
index f12e7609743..a930a72f502 100644
--- a/databases/php-mongodb/distinfo
+++ b/databases/php-mongodb/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2017/12/06 21:18:00 jdolecek Exp $
+$NetBSD: distinfo,v 1.3 2019/03/05 14:26:42 adam Exp $
-SHA1 (php-mongodb/mongodb-1.3.4.tgz) = 261ee149dbab50818297c80507335ddd1379d23e
-RMD160 (php-mongodb/mongodb-1.3.4.tgz) = 16c40fea2457c43853c6a9524c212ab9b30e134a
-SHA512 (php-mongodb/mongodb-1.3.4.tgz) = 016d61adab4b1ca697fa8c2f3d1198d1cc12f047e28de1abf17019ff1c7ab191c75696f206ad443c953242d07391d5397ded25369d4ed59ddfea8f5346b7f408
-Size (php-mongodb/mongodb-1.3.4.tgz) = 848798 bytes
+SHA1 (php-mongodb/mongodb-1.5.3.tgz) = 48162f8182f4c757998c3f8149e750030d8cbb35
+RMD160 (php-mongodb/mongodb-1.5.3.tgz) = 6a2e8f85687c068402d72b7d85df640c5bb5b30e
+SHA512 (php-mongodb/mongodb-1.5.3.tgz) = 35704e75bd7867a436d953c00c7560c9a08a4fa8f3555d7cc00aeda34e87c6c7aa7ecc1d7f674747e34f4f8dac35d320f6317e60229528ea9782bbe669bafec0
+Size (php-mongodb/mongodb-1.5.3.tgz) = 1059580 bytes
SHA1 (patch-config.m4) = 54a41bf20a5a0b2972920620698ecf2bb8c358dd
diff --git a/databases/php-mongodb/patches/patch-config.m4 b/databases/php-mongodb/patches/patch-config.m4
deleted file mode 100644
index 9ce109ee8f2..00000000000
--- a/databases/php-mongodb/patches/patch-config.m4
+++ /dev/null
@@ -1,54 +0,0 @@
-$NetBSD: patch-config.m4,v 1.2 2017/12/06 21:18:00 jdolecek Exp $
-
---- config.m4.orig 2017-12-01 18:41:35.000000000 +0000
-+++ config.m4
-@@ -216,7 +216,7 @@ if test "$MONGODB" != "no"; then
- [ --with-libmongoc Use system libmongoc], no, no)
-
- if test "$PHP_LIBBSON" != "no"; then
-- if test "$PHP_LIBMONGOC" == "no"; then
-+ if test "$PHP_LIBMONGOC" = "no"; then
- AC_MSG_ERROR(Cannot use system libbson and bundled libmongoc)
- fi
-
-@@ -254,7 +254,7 @@ if test "$MONGODB" != "no"; then
- AC_MSG_RESULT(...)
-
- if test "$PHP_LIBMONGOC" != "no"; then
-- if test "$PHP_LIBBSON" == "no"; then
-+ if test "$PHP_LIBBSON" = "no"; then
- AC_MSG_ERROR(Cannot use system libmongoc and bundled libbson)
- fi
-
-@@ -402,11 +402,11 @@ if test "$MONGODB" != "no"; then
- PHP_ADD_BUILD_DIR([$ext_builddir/src/MongoDB/Exception/])
- PHP_ADD_BUILD_DIR([$ext_builddir/src/MongoDB/Monitoring/])
- PHP_ADD_BUILD_DIR([$ext_builddir/src/contrib/])
-- if test "$PHP_LIBMONGOC" == "no"; then
-+ if test "$PHP_LIBMONGOC" = "no"; then
- PHP_ADD_INCLUDE([$ext_srcdir/src/libmongoc/src/mongoc/])
- PHP_ADD_BUILD_DIR([$ext_builddir/src/libmongoc/src/mongoc/])
- fi
-- if test "$PHP_LIBBSON" == "no"; then
-+ if test "$PHP_LIBBSON" = "no"; then
- m4_include(src/libbson/build/autotools/CheckAtomics.m4)
- m4_include(src/libbson/build/autotools/FindDependencies.m4)
- m4_include(src/libbson/build/autotools/m4/ac_compile_check_sizeof.m4)
-@@ -449,7 +449,7 @@ if test "$MONGODB" != "no"; then
- AC_SUBST(BSON_HAVE_SNPRINTF, 0)
- fi
-
-- if test "$PHP_LIBMONGOC" == "no"; then
-+ if test "$PHP_LIBMONGOC" = "no"; then
- backup_srcdir=${srcdir}
- srcdir=${srcdir}/src/libmongoc/
- m4_include(src/libmongoc/build/autotools/Versions.m4)
-@@ -463,7 +463,7 @@ if test "$MONGODB" != "no"; then
- AC_OUTPUT($srcdir/src/libmongoc/src/mongoc/mongoc-config.h)
- AC_OUTPUT($srcdir/src/libmongoc/src/mongoc/mongoc-version.h)
- fi
-- if test "$PHP_LIBBSON" == "no"; then
-+ if test "$PHP_LIBBSON" = "no"; then
- backup_srcdir=${srcdir}
- srcdir=${srcdir}/src/libbson/
- m4_include(src/libbson/build/autotools/Versions.m4)