Date: Monday, April 7, 2014 @ 11:52:02
  Author: spupykin
Revision: 108894

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

-------------------------------------------+
 community-staging-i686/PKGBUILD           |   47 ++++++++++++++++++++++++++++
 community-staging-i686/couchdb.install    |   22 +++++++++++++
 community-staging-i686/couchdb.service    |   12 +++++++
 community-staging-i686/couchdb.tmpfiles   |    1 
 community-staging-x86_64/PKGBUILD         |   47 ++++++++++++++++++++++++++++
 community-staging-x86_64/couchdb.install  |   22 +++++++++++++
 community-staging-x86_64/couchdb.service  |   12 +++++++
 community-staging-x86_64/couchdb.tmpfiles |    1 
 8 files changed, 164 insertions(+)

Copied: couchdb/repos/community-staging-i686/PKGBUILD (from rev 108893, 
couchdb/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD                             (rev 0)
+++ community-staging-i686/PKGBUILD     2014-04-07 09:52:02 UTC (rev 108894)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Sergej Pupykin <[email protected]>
+# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
+# Contributor: Michael Fellinger <[email protected]>
+
+pkgname=couchdb
+pkgver=1.5.0
+pkgrel=2
+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')
+#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=('55a2f86469e0697817da8defee730f04'
+         'SKIP'
+         '8914a7ffc6745f94106d96206709acb4'
+         '1e254ebe32eeb061be64193bafa35dbf')
+
+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
+
+  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 108893, 
couchdb/trunk/couchdb.install)
===================================================================
--- community-staging-i686/couchdb.install                              (rev 0)
+++ community-staging-i686/couchdb.install      2014-04-07 09:52:02 UTC (rev 
108894)
@@ -0,0 +1,22 @@
+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
+}
+
+post_remove() {
+       userdel couchdb &>/dev/null
+}

Copied: couchdb/repos/community-staging-i686/couchdb.service (from rev 108893, 
couchdb/trunk/couchdb.service)
===================================================================
--- community-staging-i686/couchdb.service                              (rev 0)
+++ community-staging-i686/couchdb.service      2014-04-07 09:52:02 UTC (rev 
108894)
@@ -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 108893, 
couchdb/trunk/couchdb.tmpfiles)
===================================================================
--- community-staging-i686/couchdb.tmpfiles                             (rev 0)
+++ community-staging-i686/couchdb.tmpfiles     2014-04-07 09:52:02 UTC (rev 
108894)
@@ -0,0 +1 @@
+d /run/couchdb 0755 couchdb daemon -

Copied: couchdb/repos/community-staging-x86_64/PKGBUILD (from rev 108893, 
couchdb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2014-04-07 09:52:02 UTC (rev 108894)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Sergej Pupykin <[email protected]>
+# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
+# Contributor: Michael Fellinger <[email protected]>
+
+pkgname=couchdb
+pkgver=1.5.0
+pkgrel=2
+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')
+#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=('55a2f86469e0697817da8defee730f04'
+         'SKIP'
+         '8914a7ffc6745f94106d96206709acb4'
+         '1e254ebe32eeb061be64193bafa35dbf')
+
+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
+
+  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 
108893, couchdb/trunk/couchdb.install)
===================================================================
--- community-staging-x86_64/couchdb.install                            (rev 0)
+++ community-staging-x86_64/couchdb.install    2014-04-07 09:52:02 UTC (rev 
108894)
@@ -0,0 +1,22 @@
+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
+}
+
+post_remove() {
+       userdel couchdb &>/dev/null
+}

Copied: couchdb/repos/community-staging-x86_64/couchdb.service (from rev 
108893, couchdb/trunk/couchdb.service)
===================================================================
--- community-staging-x86_64/couchdb.service                            (rev 0)
+++ community-staging-x86_64/couchdb.service    2014-04-07 09:52:02 UTC (rev 
108894)
@@ -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 
108893, couchdb/trunk/couchdb.tmpfiles)
===================================================================
--- community-staging-x86_64/couchdb.tmpfiles                           (rev 0)
+++ community-staging-x86_64/couchdb.tmpfiles   2014-04-07 09:52:02 UTC (rev 
108894)
@@ -0,0 +1 @@
+d /run/couchdb 0755 couchdb daemon -

Reply via email to