From df4e45a41dbb2c5b9600f2c2f824f8e3efbc5bf0 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Jun 2013 00:06:13 -0700 Subject: Wed Jun 12 00:06:12 PDT 2013 --- community/php-mongo/PKGBUILD | 31 +++++++++++++++++++++++++++++++ community/php-mongo/mongo.ini | 28 ++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 community/php-mongo/PKGBUILD create mode 100644 community/php-mongo/mongo.ini (limited to 'community/php-mongo') diff --git a/community/php-mongo/PKGBUILD b/community/php-mongo/PKGBUILD new file mode 100644 index 000000000..33213a413 --- /dev/null +++ b/community/php-mongo/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 92665 2013-06-11 09:54:52Z idevolder $ +# Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com > +# Contributor: Jarek Sedlacek + +pkgname=php-mongo +pkgver=1.4.1 +pkgrel=2 +pkgdesc="Officially supported PHP driver for MongoDB" +arch=("i686" "x86_64") +url="http://www.mongodb.org/display/DOCS/PHP+Language+Center" +license=("APACHE") +depends=("php") +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=('230e7d26eaa826c7aacfc90fd1128f8c390216abe7f588d3bbcd130bd1fb84b6' + 'c89685eee842d5c3a85149a5bb8e310e62bf1a17f94183bb66401593ab2b191b') diff --git a/community/php-mongo/mongo.ini b/community/php-mongo/mongo.ini new file mode 100644 index 000000000..e9e8dbac1 --- /dev/null +++ b/community/php-mongo/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 = "$" + -- cgit v1.2.3-54-g00ecf