summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorfhajny <fhajny>2015-06-13 13:48:37 +0000
committerfhajny <fhajny>2015-06-13 13:48:37 +0000
commit081c7ecd0837969efd91c91f7fd6861ca2e51ee5 (patch)
treebf2c30e25b1781a9e69fe305763d3470460f6ff7 /databases
parent0ee8d8f474627dbd0eb90214c20cb998cb617a6c (diff)
downloadpkgsrc-081c7ecd0837969efd91c91f7fd6861ca2e51ee5.tar.gz
Import the PECL mongo 1.6.9 module as databases/php-mongo.
Provides an interface for communicating with the Mongo database in PHP.
Diffstat (limited to 'databases')
-rw-r--r--databases/php-mongo/DESCR1
-rw-r--r--databases/php-mongo/Makefile15
-rw-r--r--databases/php-mongo/distinfo5
-rw-r--r--databases/php-mongo/options.mk14
4 files changed, 35 insertions, 0 deletions
diff --git a/databases/php-mongo/DESCR b/databases/php-mongo/DESCR
new file mode 100644
index 00000000000..e2d7eb3c086
--- /dev/null
+++ b/databases/php-mongo/DESCR
@@ -0,0 +1 @@
+Interface for communicating with the Mongo database in PHP.
diff --git a/databases/php-mongo/Makefile b/databases/php-mongo/Makefile
new file mode 100644
index 00000000000..9ee5cf751f0
--- /dev/null
+++ b/databases/php-mongo/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2015/06/13 13:48:37 fhajny Exp $
+
+MODNAME= mongo
+PECL_VERSION= 1.6.9
+CATEGORIES+= databases
+
+MAINTAINER= filip@joyent.com
+HOMEPAGE= http://pecl.php.net/package/mongo
+COMMENT= MongoDB database driver
+LICENSE= apache-2.0
+
+.include "options.mk"
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/php-mongo/distinfo b/databases/php-mongo/distinfo
new file mode 100644
index 00000000000..9f11c79cff1
--- /dev/null
+++ b/databases/php-mongo/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2015/06/13 13:48:37 fhajny Exp $
+
+SHA1 (php-mongo/mongo-1.6.9.tgz) = 2524623d147c0821ea852ca1c84204d2afb32a87
+RMD160 (php-mongo/mongo-1.6.9.tgz) = c14132882e166a1fc95107ccc879684f78b3907f
+Size (php-mongo/mongo-1.6.9.tgz) = 208955 bytes
diff --git a/databases/php-mongo/options.mk b/databases/php-mongo/options.mk
new file mode 100644
index 00000000000..f7d432b8ad4
--- /dev/null
+++ b/databases/php-mongo/options.mk
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2015/06/13 13:48:37 fhajny Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.php-mongo
+PKG_SUPPORTED_OPTIONS= sasl
+PKG_SUGGESTED_OPTIONS= sasl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Msasl)
+CONFIGURE_ARGS+= --with-mongo-sasl=${BUILDLINK_PREFIX.cyrus-sasl}
+.include "../../security/cyrus-sasl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-mongo-sasl
+.endif