summaryrefslogtreecommitdiff
path: root/community/couchdb/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/couchdb/PKGBUILD')
-rw-r--r--community/couchdb/PKGBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/community/couchdb/PKGBUILD b/community/couchdb/PKGBUILD
index 2722803ac..5c57a031e 100644
--- a/community/couchdb/PKGBUILD
+++ b/community/couchdb/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 58574 2011-11-15 15:35:36Z spupykin $
+# $Id: PKGBUILD 61260 2011-12-26 21:33:37Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
# Previous Contributor: Michael Fellinger <m.fellinger@gmail.com>
pkgname=couchdb
pkgver=1.2.0
-pkgrel=1git20111115
+pkgrel=2git20111115
pkgdesc="A document-oriented database that can be queried and indexed in a MapReduce fashion using JSON"
arch=('i686' 'x86_64' 'mips64el')
url="http://couchdb.apache.org"
@@ -21,7 +21,7 @@ backup=('etc/couchdb/local.ini'
source=("http://arch.p5n.pp.ru/~sergej/dl/apache-couchdb-$pkgver.git20111115.tar.gz"
"rc-script.patch")
md5sums=('b4236a36a473e3a1c81e7548de194c47'
- '559b5e1483c3fb3e4327a9c58181a46c')
+ '8a3b1a1ff98a6411827ad991db7a355b')
build() {
cd "$srcdir/apache-$pkgname-$pkgver"
@@ -30,14 +30,14 @@ build() {
sed -i 's|-ljs|-lmozjs185|' configure
[ -f Makefile ] || ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
- patch etc/init/couchdb <$srcdir/rc-script.patch
+ patch -R etc/init/couchdb <$srcdir/rc-script.patch
}
package() {
cd "$srcdir/apache-$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
- install -Dm755 etc/default/couchdb $pkgdir/etc/conf.d/couchdb
+ 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