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

Evangelos Foutras foutrelis at gemini.archlinux.org
Mon Nov 22 01:59:56 UTC 2021


    Date: Monday, November 22, 2021 @ 01:59:55
  Author: foutrelis
Revision: 1054194

archrelease: copy trunk to community-staging-x86_64

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

------------------+
 PKGBUILD         |   58 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 couchdb.service  |   42 ++++++++++++++++++++++++++++++++++++++
 couchdb.sysusers |    1 
 couchdb.tmpfiles |    3 ++
 datadirs.ini     |    3 ++
 5 files changed, 107 insertions(+)

Copied: couchdb/repos/community-staging-x86_64/PKGBUILD (from rev 1054193, couchdb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-22 01:59:55 UTC (rev 1054194)
@@ -0,0 +1,58 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: 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=3.2.0
+pkgrel=2
+pkgdesc="Document-oriented database that can be queried and indexed in a MapReduce fashion using JSON"
+arch=(x86_64)
+url="https://couchdb.apache.org"
+license=(Apache)
+depends=(icu js78 zlib)
+optdepends=('erlang-nox: for weatherreport')
+makedepends=(erlang-nox)
+backup=('etc/couchdb/local.ini'
+        'etc/couchdb/vm.args')
+source=("https://www-eu.apache.org/dist/couchdb/source/${pkgver}/apache-couchdb-${pkgver}.tar.gz"{,.asc}
+        couchdb.service
+        couchdb.sysusers
+        couchdb.tmpfiles
+        datadirs.ini)
+sha256sums=('8bea574faa6bb0926c670542d8318c322268cf7e6614dab318dea734ccf1b00c'
+            'SKIP'
+            '38f3e489c031b8c6eacd8b9da3ca91362d7929e8f5e3c8b0e4cf5401c67bf7bb'
+            '3ed1ad2a37a068ce194b03fb72eb35285d60fa7faf2d2c2bb710703d229108a8'
+            '0ce806cbc5e18e60b17be9fd2cdbd4c7f12cc84ca95b079efdede16ddb5f3efd'
+            '937ca3498aab47b3f2226d027fa8a1a95de55cbb463373099e28cb9a6c7046ac')
+validpgpkeys=(2EC788AE3F239FA13E82D215CDE711289384AE37  # Joan Touzet (CODE SIGNING KEY) <wohali at apache.org>
+              D2B17F9DA23C0A10991AF2E3D9EE01E47852AEE4  # Jan Lehnardt <jan at apache.org>
+              0BD7A98499C4AB41C910EE65FC04DFBC9657A78E) # Nick Vatamaniuc <vatamane at gmail.com>
+
+prepare() {
+  cd apache-couchdb-${pkgver}
+  sed -i 's|$ROOTDIR/etc/vm.args|/etc/couchdb/vm.args|' rel/files/couchdb.in
+}
+
+build() {
+  cd apache-couchdb-${pkgver}
+  ./configure --spidermonkey-version 78
+  make release
+}
+
+package() {
+  cd apache-couchdb-${pkgver}
+  install -dm755 "${pkgdir}"/usr/lib/
+  install -dm755 "${pkgdir}"/etc/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
+
+  cd "${srcdir}"
+  install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
+  install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
+  install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
+  install -Dm644 datadirs.ini -t "${pkgdir}"/usr/lib/couchdb/etc/
+}

Copied: couchdb/repos/community-staging-x86_64/couchdb.service (from rev 1054193, couchdb/trunk/couchdb.service)
===================================================================
--- community-staging-x86_64/couchdb.service	                        (rev 0)
+++ community-staging-x86_64/couchdb.service	2021-11-22 01:59:55 UTC (rev 1054194)
@@ -0,0 +1,42 @@
+[Unit]
+Description=CouchDB Server
+
+[Service]
+User=couchdb
+Group=couchdb
+Type=simple
+WorkingDirectory=~
+StateDirectory=couchdb
+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
+ReadWritePaths=/etc/couchdb/local.ini
+Restart=always
+RestartSec=2s
+AmbientCapabilities=
+CapabilityBoundingSet=
+LockPersonality=true
+# Not compatible with the use of JS
+#MemoryDenyWriteExecute=true
+NoNewPrivileges=True
+PrivateDevices=true
+PrivateTmp=true
+PrivateUsers=true
+ProtectClock=true
+ProtectControlGroups=yes
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelLogs=true
+ProtectKernelModules=yes
+ProtectKernelTunables=true
+ProtectProc=invisible
+ProtectSystem=strict
+RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
+RestrictNamespaces=true
+RestrictRealtime=true
+RestrictSUIDSGID=true
+SystemCallArchitectures=native
+SystemCallFilter=@system-service
+SystemCallErrorNumber=EPERM
+
+[Install]
+WantedBy=multi-user.target

Copied: couchdb/repos/community-staging-x86_64/couchdb.sysusers (from rev 1054193, couchdb/trunk/couchdb.sysusers)
===================================================================
--- community-staging-x86_64/couchdb.sysusers	                        (rev 0)
+++ community-staging-x86_64/couchdb.sysusers	2021-11-22 01:59:55 UTC (rev 1054194)
@@ -0,0 +1 @@
+u couchdb - "CouchDB daemon" /var/lib/couchdb

Copied: couchdb/repos/community-staging-x86_64/couchdb.tmpfiles (from rev 1054193, couchdb/trunk/couchdb.tmpfiles)
===================================================================
--- community-staging-x86_64/couchdb.tmpfiles	                        (rev 0)
+++ community-staging-x86_64/couchdb.tmpfiles	2021-11-22 01:59:55 UTC (rev 1054194)
@@ -0,0 +1,3 @@
+d /var/lib/couchdb 0755 couchdb couchdb
+x /var/lib/couchdb
+z /etc/couchdb/local.ini - couchdb couchdb

Copied: couchdb/repos/community-staging-x86_64/datadirs.ini (from rev 1054193, couchdb/trunk/datadirs.ini)
===================================================================
--- community-staging-x86_64/datadirs.ini	                        (rev 0)
+++ community-staging-x86_64/datadirs.ini	2021-11-22 01:59:55 UTC (rev 1054194)
@@ -0,0 +1,3 @@
+[couchdb]
+database_dir = /var/lib/couchdb
+view_index_dir = /var/lib/couchdb



More information about the arch-commits mailing list