# $Id: PKGBUILD 69293 2012-04-12 17:54:48Z tdziedzic $ # Maintainer: Thomas Dziedzic < gostrc at gmail > # Contributor: Mathias Stearn # Contributor: Alec Thomas pkgname=mongodb pkgver=2.0.4 pkgrel=4 pkgdesc='A high-performance, open source, schema-free document-oriented database.' arch=('i686' 'x86_64' 'mips64el') url='http://www.mongodb.org' license=('AGPL3') depends=('boost-libs') makedepends=('scons' 'boost') #checkdepends=('python2-pymongo') optdepends=('libpcap: needed for mongosniff') backup=('etc/mongodb.conf') install="mongodb.install" source=("http://downloads.mongodb.org/src/mongodb-src-r${pkgver}.tar.gz" 'mongodb.rc' 'mongodb.conf' '0001-Backport-for-mongodb-2.0.4-Ignore-fork-and-logpath-w.patch' '0002-Backport-for-mongodb-2.0.4-Don-t-check-proc-pid-exe-.patch') md5sums=('099bc701a3d190a040123c58958e8f67' '9c67e00f4626ad761a8f7d4e037a54d7' '4839fe1d638187ca3226e8267b947318' 'fdbf06b005b3a73a2b6caca257ec8f64' '659f6538f1ee3292809f638a4a37cbad') build() { export SCONSFLAGS="$MAKEFLAGS" cd mongodb-src-r${pkgver} # 0001 suggested to backport along with 0002 # 0002 backported for https://jira.mongodb.org/browse/SERVER-5358 # also fixes https://bugs.archlinux.org/task/29050 patch -Np1 -i ${srcdir}/0001-Backport-for-mongodb-2.0.4-Ignore-fork-and-logpath-w.patch patch -Np1 -i ${srcdir}/0002-Backport-for-mongodb-2.0.4-Don-t-check-proc-pid-exe-.patch # fix python name for smoke tests #sed \ # -e 's/python/&2/' \ # -i SConstruct scons \ all \ --full } <