[arch-commits] Commit in couchdb/repos (12 files)

Jan de Groot jgc at archlinux.org
Thu Mar 23 11:51:23 UTC 2017


    Date: Thursday, March 23, 2017 @ 11:51:22
  Author: jgc
Revision: 218518

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  couchdb/repos/community-staging-i686/
  couchdb/repos/community-staging-i686/PKGBUILD
    (from rev 218517, couchdb/trunk/PKGBUILD)
  couchdb/repos/community-staging-i686/couchdb.install
    (from rev 218517, couchdb/trunk/couchdb.install)
  couchdb/repos/community-staging-i686/couchdb.service
    (from rev 218517, couchdb/trunk/couchdb.service)
  couchdb/repos/community-staging-i686/couchdb.tmpfiles
    (from rev 218517, couchdb/trunk/couchdb.tmpfiles)
  couchdb/repos/community-staging-i686/datadirs.ini
    (from rev 218517, couchdb/trunk/datadirs.ini)
  couchdb/repos/community-staging-x86_64/
  couchdb/repos/community-staging-x86_64/PKGBUILD
    (from rev 218517, couchdb/trunk/PKGBUILD)
  couchdb/repos/community-staging-x86_64/couchdb.install
    (from rev 218517, couchdb/trunk/couchdb.install)
  couchdb/repos/community-staging-x86_64/couchdb.service
    (from rev 218517, couchdb/trunk/couchdb.service)
  couchdb/repos/community-staging-x86_64/couchdb.tmpfiles
    (from rev 218517, couchdb/trunk/couchdb.tmpfiles)
  couchdb/repos/community-staging-x86_64/datadirs.ini
    (from rev 218517, couchdb/trunk/datadirs.ini)

-------------------------------------------+
 community-staging-i686/PKGBUILD           |   58 ++++++++++++++++++++++++++++
 community-staging-i686/couchdb.install    |   16 +++++++
 community-staging-i686/couchdb.service    |   15 +++++++
 community-staging-i686/couchdb.tmpfiles   |    1 
 community-staging-i686/datadirs.ini       |    3 +
 community-staging-x86_64/PKGBUILD         |   58 ++++++++++++++++++++++++++++
 community-staging-x86_64/couchdb.install  |   16 +++++++
 community-staging-x86_64/couchdb.service  |   15 +++++++
 community-staging-x86_64/couchdb.tmpfiles |    1 
 community-staging-x86_64/datadirs.ini     |    3 +
 10 files changed, 186 insertions(+)

Copied: couchdb/repos/community-staging-i686/PKGBUILD (from rev 218517, couchdb/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-03-23 11:51:22 UTC (rev 218518)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
+# Contributor: Michael Fellinger <m.fellinger at gmail.com>
+
+pkgname=couchdb
+pkgver=2.0.0
+pkgrel=7
+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-nox' 'js185' 'openssl' 'curl' 'util-linux')
+makedepends=('autoconf-archive' 'git')
+install=couchdb.install
+backup=('etc/couchdb/local.ini'
+	'etc/couchdb/vm.args')
+validpgpkeys=('E0AF0A194D55C84E4A19A801CDB0C0F904F4EE9B'
+	      'D2B17F9DA23C0A10991AF2E3D9EE01E47852AEE4')
+source=("http://www.eu.apache.org/dist/couchdb/source/$pkgver/apache-couchdb-$pkgver.tar.gz"{,.asc}
+	"couchdb.service"
+	"couchdb.tmpfiles"
+	"datadirs.ini")
+md5sums=('402fc02df28a5297a56cedebbae42524'
+         'SKIP'
+         '38cea6d9b533a22dadc22538a921c282'
+         '1e254ebe32eeb061be64193bafa35dbf'
+         'cd649a705805e6193ae72aea33a2e4bd')
+
+prepare() {
+  cd "$srcdir/apache-couchdb-$pkgver"
+  sed -i 's|$ROOTDIR/etc/vm.args|/etc/couchdb/vm.args|' rel/overlay/bin/couchdb
+}
+
+build() {
+  cd "$srcdir/apache-couchdb-$pkgver"
+  ./configure
+  make release
+}
+
+package() {
+  cd "$srcdir/apache-couchdb-$pkgver"
+  install -dm0755 "$pkgdir"/usr/lib/
+  install -dm0755 "$pkgdir"/etc/couchdb/
+  install -dm0755 "$pkgdir"/var/lib/couchdb/
+
+  cp -r rel/couchdb "$pkgdir"/usr/lib/couchdb
+  mv "$pkgdir"/usr/lib/couchdb/etc/local.ini "$pkgdir"/etc/couchdb/local.ini
+  mv "$pkgdir"/usr/lib/couchdb/etc/vm.args "$pkgdir"/etc/couchdb/vm.args
+
+  # use system erts
+#  rm -rf "$pkgdir"/usr/lib/couchdb/erts-*
+#  _erts=$(cd /usr/lib/erlang/ && ls -1d erts-*)
+#  ln -s /usr/lib/erlang/${_erts} "$pkgdir"/usr/lib/couchdb/${_erts}
+
+  install -Dm0644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+  install -Dm0644 "$srcdir"/datadirs.ini "$pkgdir"/usr/lib/couchdb/etc/datadirs.ini
+}

Copied: couchdb/repos/community-staging-i686/couchdb.install (from rev 218517, couchdb/trunk/couchdb.install)
===================================================================
--- community-staging-i686/couchdb.install	                        (rev 0)
+++ community-staging-i686/couchdb.install	2017-03-23 11:51:22 UTC (rev 218518)
@@ -0,0 +1,16 @@
+post_install() {
+    id couchdb &>/dev/null || \
+        useradd -r -c "CouchDB daemon" -g daemon -d /var/lib/couchdb -s /bin/false couchdb
+    chown couchdb.daemon /etc/couchdb/local.ini
+    chown -R couchdb.daemon /var/lib/couchdb
+}
+
+pre_upgrade() {
+    id couchdb &>/dev/null || \
+        useradd -r -c "CouchDB daemon" -g daemon -d /var/lib/couchdb -s /bin/false couchdb
+}
+
+post_upgrade() {
+    chown couchdb.daemon /etc/couchdb/local.ini
+    chown -R couchdb.daemon /var/lib/couchdb
+}

Copied: couchdb/repos/community-staging-i686/couchdb.service (from rev 218517, couchdb/trunk/couchdb.service)
===================================================================
--- community-staging-i686/couchdb.service	                        (rev 0)
+++ community-staging-i686/couchdb.service	2017-03-23 11:51:22 UTC (rev 218518)
@@ -0,0 +1,15 @@
+[Unit]
+Description=CouchDB Server
+
+[Service]
+User=couchdb
+Type=simple
+Environment="ERL_FLAGS=-couch_ini /usr/lib/couchdb/etc/default.ini /usr/lib/couchdb/etc/datadirs.ini /etc/couchdb/local.ini"
+ExecStart=/usr/lib/couchdb/bin/couchdb
+ProtectSystem=true
+ProtectHome=true
+NoNewPrivileges=true
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target

Copied: couchdb/repos/community-staging-i686/couchdb.tmpfiles (from rev 218517, couchdb/trunk/couchdb.tmpfiles)
===================================================================
--- community-staging-i686/couchdb.tmpfiles	                        (rev 0)
+++ community-staging-i686/couchdb.tmpfiles	2017-03-23 11:51:22 UTC (rev 218518)
@@ -0,0 +1 @@
+d /run/couchdb 0755 couchdb daemon -

Copied: couchdb/repos/community-staging-i686/datadirs.ini (from rev 218517, couchdb/trunk/datadirs.ini)
===================================================================
--- community-staging-i686/datadirs.ini	                        (rev 0)
+++ community-staging-i686/datadirs.ini	2017-03-23 11:51:22 UTC (rev 218518)
@@ -0,0 +1,3 @@
+[couchdb]
+database_dir = /var/lib/couchdb
+view_index_dir = /var/lib/couchdb

Copied: couchdb/repos/community-staging-x86_64/PKGBUILD (from rev 218517, couchdb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-03-23 11:51:22 UTC (rev 218518)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
+# Contributor: Michael Fellinger <m.fellinger at gmail.com>
+
+pkgname=couchdb
+pkgver=2.0.0
+pkgrel=7
+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-nox' 'js185' 'openssl' 'curl' 'util-linux')
+makedepends=('autoconf-archive' 'git')
+install=couchdb.install
+backup=('etc/couchdb/local.ini'
+	'etc/couchdb/vm.args')
+validpgpkeys=('E0AF0A194D55C84E4A19A801CDB0C0F904F4EE9B'
+	      'D2B17F9DA23C0A10991AF2E3D9EE01E47852AEE4')
+source=("http://www.eu.apache.org/dist/couchdb/source/$pkgver/apache-couchdb-$pkgver.tar.gz"{,.asc}
+	"couchdb.service"
+	"couchdb.tmpfiles"
+	"datadirs.ini")
+md5sums=('402fc02df28a5297a56cedebbae42524'
+         'SKIP'
+         '38cea6d9b533a22dadc22538a921c282'
+         '1e254ebe32eeb061be64193bafa35dbf'
+         'cd649a705805e6193ae72aea33a2e4bd')
+
+prepare() {
+  cd "$srcdir/apache-couchdb-$pkgver"
+  sed -i 's|$ROOTDIR/etc/vm.args|/etc/couchdb/vm.args|' rel/overlay/bin/couchdb
+}
+
+build() {
+  cd "$srcdir/apache-couchdb-$pkgver"
+  ./configure
+  make release
+}
+
+package() {
+  cd "$srcdir/apache-couchdb-$pkgver"
+  install -dm0755 "$pkgdir"/usr/lib/
+  install -dm0755 "$pkgdir"/etc/couchdb/
+  install -dm0755 "$pkgdir"/var/lib/couchdb/
+
+  cp -r rel/couchdb "$pkgdir"/usr/lib/couchdb
+  mv "$pkgdir"/usr/lib/couchdb/etc/local.ini "$pkgdir"/etc/couchdb/local.ini
+  mv "$pkgdir"/usr/lib/couchdb/etc/vm.args "$pkgdir"/etc/couchdb/vm.args
+
+  # use system erts
+#  rm -rf "$pkgdir"/usr/lib/couchdb/erts-*
+#  _erts=$(cd /usr/lib/erlang/ && ls -1d erts-*)
+#  ln -s /usr/lib/erlang/${_erts} "$pkgdir"/usr/lib/couchdb/${_erts}
+
+  install -Dm0644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+  install -Dm0644 "$srcdir"/datadirs.ini "$pkgdir"/usr/lib/couchdb/etc/datadirs.ini
+}

Copied: couchdb/repos/community-staging-x86_64/couchdb.install (from rev 218517, couchdb/trunk/couchdb.install)
===================================================================
--- community-staging-x86_64/couchdb.install	                        (rev 0)
+++ community-staging-x86_64/couchdb.install	2017-03-23 11:51:22 UTC (rev 218518)
@@ -0,0 +1,16 @@
+post_install() {
+    id couchdb &>/dev/null || \
+        useradd -r -c "CouchDB daemon" -g daemon -d /var/lib/couchdb -s /bin/false couchdb
+    chown couchdb.daemon /etc/couchdb/local.ini
+    chown -R couchdb.daemon /var/lib/couchdb
+}
+
+pre_upgrade() {
+    id couchdb &>/dev/null || \
+        useradd -r -c "CouchDB daemon" -g daemon -d /var/lib/couchdb -s /bin/false couchdb
+}
+
+post_upgrade() {
+    chown couchdb.daemon /etc/couchdb/local.ini
+    chown -R couchdb.daemon /var/lib/couchdb
+}

Copied: couchdb/repos/community-staging-x86_64/couchdb.service (from rev 218517, couchdb/trunk/couchdb.service)
===================================================================
--- community-staging-x86_64/couchdb.service	                        (rev 0)
+++ community-staging-x86_64/couchdb.service	2017-03-23 11:51:22 UTC (rev 218518)
@@ -0,0 +1,15 @@
+[Unit]
+Description=CouchDB Server
+
+[Service]
+User=couchdb
+Type=simple
+Environment="ERL_FLAGS=-couch_ini /usr/lib/couchdb/etc/default.ini /usr/lib/couchdb/etc/datadirs.ini /etc/couchdb/local.ini"
+ExecStart=/usr/lib/couchdb/bin/couchdb
+ProtectSystem=true
+ProtectHome=true
+NoNewPrivileges=true
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target

Copied: couchdb/repos/community-staging-x86_64/couchdb.tmpfiles (from rev 218517, couchdb/trunk/couchdb.tmpfiles)
===================================================================
--- community-staging-x86_64/couchdb.tmpfiles	                        (rev 0)
+++ community-staging-x86_64/couchdb.tmpfiles	2017-03-23 11:51:22 UTC (rev 218518)
@@ -0,0 +1 @@
+d /run/couchdb 0755 couchdb daemon -

Copied: couchdb/repos/community-staging-x86_64/datadirs.ini (from rev 218517, couchdb/trunk/datadirs.ini)
===================================================================
--- community-staging-x86_64/datadirs.ini	                        (rev 0)
+++ community-staging-x86_64/datadirs.ini	2017-03-23 11:51:22 UTC (rev 218518)
@@ -0,0 +1,3 @@
+[couchdb]
+database_dir = /var/lib/couchdb
+view_index_dir = /var/lib/couchdb


More information about the arch-commits mailing list