summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Yan2015-07-23 20:15:05 +0800
committerFelix Yan2015-07-23 20:15:05 +0800
commit8125e5edf08ac3d78708d11bf96f78e1be166d96 (patch)
tree34365d2ab28485bbd4e61f08a4b5b42a15b31b12
downloadaur-php53-mongo.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD31
-rw-r--r--mongo.ini28
3 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..567eed75ca7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = php53-mongo
+ pkgdesc = Officially supported PHP 5.3 driver for MongoDB
+ pkgver = 1.5.8
+ pkgrel = 1
+ url = http://www.mongodb.org/display/DOCS/PHP+Language+Center
+ arch = i686
+ arch = x86_64
+ license = Apache
+ depends = php53
+ backup = etc/php/conf.d/mongo.ini
+ source = http://pecl.php.net/get/mongo-1.5.8.tgz
+ source = mongo.ini
+ sha256sums = 7253436179755aa0235ecdf62b89e085f59138c935a8865dbc7c70ab5b07646c
+ sha256sums = c89685eee842d5c3a85149a5bb8e310e62bf1a17f94183bb66401593ab2b191b
+
+pkgname = php53-mongo
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8b6fe8374a9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: BlackEagle < ike DOT devolder AT gmail DOT com >
+# Contributor: Jarek Sedlacek <jareksedlacek@gmail.com>
+
+pkgname=php53-mongo
+pkgver=1.5.8
+pkgrel=1
+pkgdesc="Officially supported PHP 5.3 driver for MongoDB"
+arch=("i686" "x86_64")
+url="http://www.mongodb.org/display/DOCS/PHP+Language+Center"
+license=("Apache")
+depends=("php53")
+backup=("etc/php/conf.d/mongo.ini")
+source=(
+ "http://pecl.php.net/get/mongo-$pkgver.tgz"
+ "mongo.ini"
+)
+
+build() {
+ cd mongo-$pkgver
+ phpize
+ ./configure --prefix=/usr --enable-mongo
+}
+
+package() {
+ cd mongo-$pkgver
+ make INSTALL_ROOT="$pkgdir" install
+ install -Dm644 "$srcdir/mongo.ini" "$pkgdir/etc/php/conf.d/mongo.ini"
+}
+sha256sums=('7253436179755aa0235ecdf62b89e085f59138c935a8865dbc7c70ab5b07646c'
+ 'c89685eee842d5c3a85149a5bb8e310e62bf1a17f94183bb66401593ab2b191b')
diff --git a/mongo.ini b/mongo.ini
new file mode 100644
index 00000000000..e9e8dbac1a3
--- /dev/null
+++ b/mongo.ini
@@ -0,0 +1,28 @@
+; Tell PHP to load the Mongo Extension on startup
+extension=mongo.so
+
+[mongo]
+; If the driver should reconnect to mongo
+mongo.auto_reconnect = False
+
+; Whether to allow persistent connections
+mongo.allow_persistent = On
+
+; Maximum number of persistent connections (-1 means unlimited)
+mongo.max_persistent = -1
+
+; Maximum number of links (persistent and non-persistent, -1 means unlimited)
+mongo.max_connections = -1
+
+; Default host for mongo connection
+mongo.default_host = localhost
+
+; Default port for mongo database
+mongo.default_port = 27017
+
+; When saving files to the database, size of chunks to split them into
+mongo.chunk_size = 262400
+
+; Specify an alternate character to $ to use for special db functions ($set, $push, $exists, etc.)
+mongo.cmd = "$"
+