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

Sergej Pupykin spupykin at archlinux.org
Sun Apr 5 21:04:10 UTC 2015


    Date: Sunday, April 5, 2015 @ 23:04:10
  Author: spupykin
Revision: 130721

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 130720, couchdb/trunk/PKGBUILD)
  couchdb/repos/community-staging-i686/couchdb.install
    (from rev 130720, couchdb/trunk/couchdb.install)
  couchdb/repos/community-staging-i686/couchdb.service
    (from rev 130720, couchdb/trunk/couchdb.service)
  couchdb/repos/community-staging-i686/couchdb.tmpfiles
    (from rev 130720, couchdb/trunk/couchdb.tmpfiles)
  couchdb/repos/community-staging-x86_64/
  couchdb/repos/community-staging-x86_64/PKGBUILD
    (from rev 130720, couchdb/trunk/PKGBUILD)
  couchdb/repos/community-staging-x86_64/couchdb.install
    (from rev 130720, couchdb/trunk/couchdb.install)
  couchdb/repos/community-staging-x86_64/couchdb.service
    (from rev 130720, couchdb/trunk/couchdb.service)
  couchdb/repos/community-staging-x86_64/couchdb.tmpfiles
    (from rev 130720, couchdb/trunk/couchdb.tmpfiles)

-------------------------------------------+
 community-staging-i686/PKGBUILD           |   53 ++++++++++++++++++++++++++++
 community-staging-i686/couchdb.install    |   18 +++++++++
 community-staging-i686/couchdb.service    |   12 ++++++
 community-staging-i686/couchdb.tmpfiles   |    1 
 community-staging-x86_64/PKGBUILD         |   53 ++++++++++++++++++++++++++++
 community-staging-x86_64/couchdb.install  |   18 +++++++++
 community-staging-x86_64/couchdb.service  |   12 ++++++
 community-staging-x86_64/couchdb.tmpfiles |    1 
 8 files changed, 168 insertions(+)

Copied: couchdb/repos/community-staging-i686/PKGBUILD (from rev 130720, couchdb/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-04-05 21:04:10 UTC (rev 130721)
@@ -0,0 +1,53 @@
+# $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=1.6.1
+pkgrel=4
+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')
+makedepends=('autoconf-archive' 'git')
+install=couchdb.install
+backup=('etc/couchdb/local.ini'
+	'etc/conf.d/couchdb'
+	'etc/logrotate.d/couchdb')
+validpgpkeys=('E0AF0A194D55C84E4A19A801CDB0C0F904F4EE9B')
+#source=("git://github.com/apache/couchdb.git#commit=8d7ab8b18dd20f8785e69f4420c6f93a2edbfa60"
+source=("http://www.eu.apache.org/dist/couchdb/source/$pkgver/apache-couchdb-$pkgver.tar.gz"{,.asc}
+	"couchdb.service"
+	"couchdb.tmpfiles")
+md5sums=('01a2c8ab4fcde457529428993901a060'
+         'SKIP'
+         '8914a7ffc6745f94106d96206709acb4'
+         '1e254ebe32eeb061be64193bafa35dbf')
+
+prepare() {
+  cd "$srcdir/apache-couchdb-$pkgver"
+  sed -i 's|-Werror||g' src/couchdb/priv/Makefile.*
+}
+
+build() {
+  cd "$srcdir/apache-couchdb-$pkgver"
+  ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --localstatedir=/var
+  make
+}
+
+package() {
+  cd "$srcdir/apache-couchdb-$pkgver"
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 etc/default/couchdb $pkgdir/etc/conf.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 $pkgdir/etc/init.d
+
+  install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+  install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf
+}

Copied: couchdb/repos/community-staging-i686/couchdb.install (from rev 130720, couchdb/trunk/couchdb.install)
===================================================================
--- community-staging-i686/couchdb.install	                        (rev 0)
+++ community-staging-i686/couchdb.install	2015-04-05 21:04:10 UTC (rev 130721)
@@ -0,0 +1,18 @@
+post_install() {
+	id couchdb &>/dev/null || \
+		useradd -r -c "CouchDB daemon" -g daemon -d /var/lib/couchdb -s /bin/false couchdb
+	mkdir -p /var/run/couchdb
+	chown -R couchdb.daemon /etc/couchdb
+	chown -R couchdb.daemon /var/{lib,log,run}/couchdb
+}
+
+pre_upgrade() {
+	id couchdb &>/dev/null || \
+		useradd -r -c "CouchDB daemon" -g daemon -d /var/lib/couchdb -s /bin/false couchdb
+}
+
+post_upgrade() {
+	mkdir -p $pkgdir/var/run/couchdb
+	chown -R couchdb.daemon /etc/couchdb
+	chown -R couchdb.daemon /var/{lib,log,run}/couchdb
+}

Copied: couchdb/repos/community-staging-i686/couchdb.service (from rev 130720, couchdb/trunk/couchdb.service)
===================================================================
--- community-staging-i686/couchdb.service	                        (rev 0)
+++ community-staging-i686/couchdb.service	2015-04-05 21:04:10 UTC (rev 130721)
@@ -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

Copied: couchdb/repos/community-staging-i686/couchdb.tmpfiles (from rev 130720, couchdb/trunk/couchdb.tmpfiles)
===================================================================
--- community-staging-i686/couchdb.tmpfiles	                        (rev 0)
+++ community-staging-i686/couchdb.tmpfiles	2015-04-05 21:04:10 UTC (rev 130721)
@@ -0,0 +1 @@
+d /run/couchdb 0755 couchdb daemon -

Copied: couchdb/repos/community-staging-x86_64/PKGBUILD (from rev 130720, couchdb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-04-05 21:04:10 UTC (rev 130721)
@@ -0,0 +1,53 @@
+# $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=1.6.1
+pkgrel=4
+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')
+makedepends=('autoconf-archive' 'git')
+install=couchdb.install
+backup=('etc/couchdb/local.ini'
+	'etc/conf.d/couchdb'
+	'etc/logrotate.d/couchdb')
+validpgpkeys=('E0AF0A194D55C84E4A19A801CDB0C0F904F4EE9B')
+#source=("git://github.com/apache/couchdb.git#commit=8d7ab8b18dd20f8785e69f4420c6f93a2edbfa60"
+source=("http://www.eu.apache.org/dist/couchdb/source/$pkgver/apache-couchdb-$pkgver.tar.gz"{,.asc}
+	"couchdb.service"
+	"couchdb.tmpfiles")
+md5sums=('01a2c8ab4fcde457529428993901a060'
+         'SKIP'
+         '8914a7ffc6745f94106d96206709acb4'
+         '1e254ebe32eeb061be64193bafa35dbf')
+
+prepare() {
+  cd "$srcdir/apache-couchdb-$pkgver"
+  sed -i 's|-Werror||g' src/couchdb/priv/Makefile.*
+}
+
+build() {
+  cd "$srcdir/apache-couchdb-$pkgver"
+  ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --localstatedir=/var
+  make
+}
+
+package() {
+  cd "$srcdir/apache-couchdb-$pkgver"
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 etc/default/couchdb $pkgdir/etc/conf.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 $pkgdir/etc/init.d
+
+  install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+  install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf
+}

Copied: couchdb/repos/community-staging-x86_64/couchdb.install (from rev 130720, couchdb/trunk/couchdb.install)
===================================================================
--- community-staging-x86_64/couchdb.install	                        (rev 0)
+++ community-staging-x86_64/couchdb.install	2015-04-05 21:04:10 UTC (rev 130721)
@@ -0,0 +1,18 @@
+post_install() {
+	id couchdb &>/dev/null || \
+		useradd -r -c "CouchDB daemon" -g daemon -d /var/lib/couchdb -s /bin/false couchdb
+	mkdir -p /var/run/couchdb
+	chown -R couchdb.daemon /etc/couchdb
+	chown -R couchdb.daemon /var/{lib,log,run}/couchdb
+}
+
+pre_upgrade() {
+	id couchdb &>/dev/null || \
+		useradd -r -c "CouchDB daemon" -g daemon -d /var/lib/couchdb -s /bin/false couchdb
+}
+
+post_upgrade() {
+	mkdir -p $pkgdir/var/run/couchdb
+	chown -R couchdb.daemon /etc/couchdb
+	chown -R couchdb.daemon /var/{lib,log,run}/couchdb
+}

Copied: couchdb/repos/community-staging-x86_64/couchdb.service (from rev 130720, couchdb/trunk/couchdb.service)
===================================================================
--- community-staging-x86_64/couchdb.service	                        (rev 0)
+++ community-staging-x86_64/couchdb.service	2015-04-05 21:04:10 UTC (rev 130721)
@@ -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

Copied: couchdb/repos/community-staging-x86_64/couchdb.tmpfiles (from rev 130720, couchdb/trunk/couchdb.tmpfiles)
===================================================================
--- community-staging-x86_64/couchdb.tmpfiles	                        (rev 0)
+++ community-staging-x86_64/couchdb.tmpfiles	2015-04-05 21:04:10 UTC (rev 130721)
@@ -0,0 +1 @@
+d /run/couchdb 0755 couchdb daemon -



More information about the arch-commits mailing list