summaryrefslogtreecommitdiff
path: root/community-testing/couchdb/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-04-11 10:57:18 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-04-11 10:57:18 -0300
commitc07ca5cb71d277e9f2fd5c7b94cf8a0021bdfab5 (patch)
treed9d528762b726855cc356781c89abb1768c8be28 /community-testing/couchdb/PKGBUILD
parentece2137c9569ec806aacf3740df98c399a51b21a (diff)
parent8119da2eaadf53531cad2aed70981ed4606340d6 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community-testing/sword/PKGBUILD community/freedroidrpg/PKGBUILD community/pgadmin3/PKGBUILD libre/lame-libre/PKGBUILD testing/dbus-core/PKGBUILD testing/libwebkit/PKGBUILD testing/tracker/PKGBUILD testing/udev/0001-split-usr-always-read-config-files-from-lib-udev.patch testing/udev/0002-reinstate-TIMEOUT-handling.patch testing/udev/PKGBUILD
Diffstat (limited to 'community-testing/couchdb/PKGBUILD')
-rw-r--r--community-testing/couchdb/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community-testing/couchdb/PKGBUILD b/community-testing/couchdb/PKGBUILD
new file mode 100644
index 000000000..44bb5a33d
--- /dev/null
+++ b/community-testing/couchdb/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 69092 2012-04-09 13:49:06Z tdziedzic $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
+# Contributor: Michael Fellinger <m.fellinger@gmail.com>
+
+pkgname=couchdb
+pkgver=1.2.0
+pkgrel=3
+pkgdesc="A document-oriented database that can be queried and indexed in a MapReduce fashion using JSON"
+arch=('i686' 'x86_64')
+url="http://couchdb.apache.org"
+license=('APACHE')
+depends=('icu' 'erlang' 'js' 'openssl' 'curl')
+install=couchdb.install
+options=('!libtool')
+backup=('etc/couchdb/local.ini'
+ 'etc/conf.d/couchdb'
+ 'etc/logrotate.d/couchdb')
+source=("http://www.apache.org/dist/couchdb/releases/${pkgver}/apache-${pkgname}-${pkgver}.tar.gz"{,.asc}
+ "rc-script.patch" "configure-fix.patch")
+md5sums=('a5cbbcaac288831b3d8a08b725657f10'
+ '890a85b22219ea113a4901a289c442f8'
+ '8a3b1a1ff98a6411827ad991db7a355b'
+ 'fd1669544d08bda09c3318873d51db1e')
+
+build() {
+ cd "$srcdir/apache-$pkgname-$pkgver"
+
+ # workaround for FS#26827
+ patch -Np1 < $srcdir/configure-fix.patch
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var
+ make
+
+ patch -R etc/init/couchdb <$srcdir/rc-script.patch
+}
+
+package() {
+ cd "$srcdir/apache-$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 etc/default/couchdb $pkgdir/etc/conf.d/couchdb
+ sed -i 's|\(CONFIGURATION_FILE=/etc/\)default\(/couchdb\)|\1conf.d\2|' $pkgdir/etc/rc.d/couchdb
+ sed -i 's|\(COUCHDB_OPTIONS=\)|\1"-p /var/run/couchdb/couchdb.pid"|' $pkgdir/etc/conf.d/couchdb
+
+ rm -rf $pkgdir/etc/default/ $pkgdir/var/run
+}