summaryrefslogtreecommitdiff
path: root/community/couchdb
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-10-18 10:38:15 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-10-18 10:38:15 -0300
commit59d570b2f4d752b3cd4dfcdf2ce8c75993d9c2eb (patch)
tree452fb18314fb6d4393552d1ef1190a3168353f44 /community/couchdb
parentbb3524a1ba0370174d0c586ae94cd503b562a207 (diff)
parent9e3985ed7c9851da65023a0ab3d0739cce1858e2 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community-staging/gambas2/PKGBUILD community-staging/gambas3/PKGBUILD community-staging/libextractor/PKGBUILD community-staging/pdf2djvu/PKGBUILD community/dante/PKGBUILD community/gnunet/PKGBUILD community/luafilesystem/PKGBUILD community/luajit/PKGBUILD community/python-mpi4py/PKGBUILD community/python-psutil/PKGBUILD extra/gnome-python-desktop/PKGBUILD extra/pycrypto/PKGBUILD extra/pygobject/PKGBUILD extra/pygobject2/PKGBUILD extra/pyopenssl/PKGBUILD extra/python/PKGBUILD extra/vde2/PKGBUILD gnome-unstable/clutter-gtk/PKGBUILD gnome-unstable/clutter/PKGBUILD gnome-unstable/eog/PKGBUILD gnome-unstable/evolution-data-server/PKGBUILD gnome-unstable/gcr/PKGBUILD gnome-unstable/gnome-desktop/PKGBUILD gnome-unstable/gnome-keyring/PKGBUILD gnome-unstable/gnome-themes-standard/PKGBUILD gnome-unstable/gobject-introspection/PKGBUILD staging/kdebase-workspace/PKGBUILD testing/iputils/PKGBUILD testing/php/PKGBUILD testing/php/php-fpm.conf.in.patch testing/php/php-fpm.service testing/php/rc.d.php-fpm
Diffstat (limited to 'community/couchdb')
-rw-r--r--community/couchdb/PKGBUILD13
-rw-r--r--community/couchdb/couchdb.service12
-rw-r--r--community/couchdb/couchdb.tmpfiles1
3 files changed, 23 insertions, 3 deletions
diff --git a/community/couchdb/PKGBUILD b/community/couchdb/PKGBUILD
index 1c08888cc..2f7e40085 100644
--- a/community/couchdb/PKGBUILD
+++ b/community/couchdb/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 75754 2012-08-30 21:02:43Z spupykin $
+# $Id: PKGBUILD 78310 2012-10-17 14:02:05Z spupykin $
# 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=4
+pkgrel=5
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"
@@ -17,9 +17,13 @@ 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")
+ "couchdb.service"
+ "couchdb.tmpfiles"
+ "rc-script.patch")
md5sums=('a5cbbcaac288831b3d8a08b725657f10'
'890a85b22219ea113a4901a289c442f8'
+ '8914a7ffc6745f94106d96206709acb4'
+ '1e254ebe32eeb061be64193bafa35dbf'
'8a3b1a1ff98a6411827ad991db7a355b')
build() {
@@ -42,4 +46,7 @@ package() {
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
+
+ install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+ install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf
}
diff --git a/community/couchdb/couchdb.service b/community/couchdb/couchdb.service
new file mode 100644
index 000000000..50284f4c3
--- /dev/null
+++ b/community/couchdb/couchdb.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=CouchDB Server
+
+[Service]
+User=couchdb
+Type=forking
+PermissionsStartOnly=true
+ExecStart=/usr/bin/couchdb -b -o /dev/null -e /dev/null
+ExecStop=/usr/bin/couchdb -d
+
+[Install]
+WantedBy=multi-user.target
diff --git a/community/couchdb/couchdb.tmpfiles b/community/couchdb/couchdb.tmpfiles
new file mode 100644
index 000000000..de4378746
--- /dev/null
+++ b/community/couchdb/couchdb.tmpfiles
@@ -0,0 +1 @@
+d /run/couchdb 0755 couchdb daemon -