[arch-commits] Commit in rethinkdb/repos (14 files)

Jelle van der Waa jelle at archlinux.org
Fri Feb 10 21:38:29 UTC 2017


    Date: Friday, February 10, 2017 @ 21:38:29
  Author: jelle
Revision: 211792

db-move: moved rethinkdb from [community-staging] to [community-testing] (i686, x86_64)

Added:
  rethinkdb/repos/community-testing-i686/
  rethinkdb/repos/community-testing-i686/PKGBUILD
    (from rev 211791, rethinkdb/repos/community-staging-i686/PKGBUILD)
  rethinkdb/repos/community-testing-i686/rethinkdb-tmpfile.conf
    (from rev 211791, rethinkdb/repos/community-staging-i686/rethinkdb-tmpfile.conf)
  rethinkdb/repos/community-testing-i686/rethinkdb.install
    (from rev 211791, rethinkdb/repos/community-staging-i686/rethinkdb.install)
  rethinkdb/repos/community-testing-i686/rethinkdb.service
    (from rev 211791, rethinkdb/repos/community-staging-i686/rethinkdb.service)
  rethinkdb/repos/community-testing-i686/rethinkdb.sysusers
    (from rev 211791, rethinkdb/repos/community-staging-i686/rethinkdb.sysusers)
  rethinkdb/repos/community-testing-x86_64/
  rethinkdb/repos/community-testing-x86_64/PKGBUILD
    (from rev 211791, rethinkdb/repos/community-staging-x86_64/PKGBUILD)
  rethinkdb/repos/community-testing-x86_64/rethinkdb-tmpfile.conf
    (from rev 211791, rethinkdb/repos/community-staging-x86_64/rethinkdb-tmpfile.conf)
  rethinkdb/repos/community-testing-x86_64/rethinkdb.install
    (from rev 211791, rethinkdb/repos/community-staging-x86_64/rethinkdb.install)
  rethinkdb/repos/community-testing-x86_64/rethinkdb.service
    (from rev 211791, rethinkdb/repos/community-staging-x86_64/rethinkdb.service)
  rethinkdb/repos/community-testing-x86_64/rethinkdb.sysusers
    (from rev 211791, rethinkdb/repos/community-staging-x86_64/rethinkdb.sysusers)
Deleted:
  rethinkdb/repos/community-staging-i686/
  rethinkdb/repos/community-staging-x86_64/

-------------------------------------------------+
 community-testing-i686/PKGBUILD                 |   72 ++++++++++++++++++++++
 community-testing-i686/rethinkdb-tmpfile.conf   |    1 
 community-testing-i686/rethinkdb.install        |   15 ++++
 community-testing-i686/rethinkdb.service        |   12 +++
 community-testing-i686/rethinkdb.sysusers       |    1 
 community-testing-x86_64/PKGBUILD               |   72 ++++++++++++++++++++++
 community-testing-x86_64/rethinkdb-tmpfile.conf |    1 
 community-testing-x86_64/rethinkdb.install      |   15 ++++
 community-testing-x86_64/rethinkdb.service      |   12 +++
 community-testing-x86_64/rethinkdb.sysusers     |    1 
 10 files changed, 202 insertions(+)

Copied: rethinkdb/repos/community-testing-i686/PKGBUILD (from rev 211791, rethinkdb/repos/community-staging-i686/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2017-02-10 21:38:29 UTC (rev 211792)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Sigmund Lahn <sigmund at lahn.no>
+
+pkgname=rethinkdb
+pkgver=2.3.5
+_tag=rethinkdb-$pkgver
+pkgrel=4
+pkgdesc='Distributed powerful and scalable NoSQL database'
+arch=(i686 x86_64)
+url='http://www.rethinkdb.com/'
+license=(AGPL)
+depends=(protobuf ncurses curl)
+makedepends=(boost python2 wget gcc5) # gcc5 is workaround for https://github.com/rethinkdb/rethinkdb/issues/5757
+backup=(etc/rethinkdb/instances.d/default.conf)
+install=rethinkdb.install
+options=(!emptydirs)
+source=(
+  https://download.rethinkdb.com/dist/$_tag.tgz
+  rethinkdb-tmpfile.conf
+  rethinkdb.service
+  rethinkdb.sysusers
+)
+sha256sums=('dd8aeee169b177179bfe080725f0560443e0f26dae875b32ae25d90cf2f8ee10'
+            '656d3a42e75d087e723f71aa320fdd91cbbb82071ef72eb11fd3e4a619b429a4'
+            'e56bffa2b9ebc3a00ef566ab2be0719a633c89d961a2461dfa2d9ffdb258c1a2'
+            '0660e0c7c093b440718486e1d0138322cf393da43e1fc92fb712b8282db76b5c')
+
+prepare() {
+  cd $_tag
+
+  sed \
+    -e 's|#!/usr/bin/python|#!/usr/bin/python2|' \
+    -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    -i scripts/*.py external/v8_*/tools/*.py
+  sed -e 's|exec python|exec python2|g' -i external/v8_*/build/gyp/gyp
+  sed -e 's|\bpython\b|python2|g' -i external/v8_*/{Makefile,*/*.gyp,*/*.gypi,*/*/*.gyp}
+}
+
+build() {
+  cd $_tag
+  export PYTHON=/usr/bin/python2
+  CXX=g++-5 ./configure --fetch v8 --fetch jemalloc --dynamic all --enable-precompiled-web --prefix=/usr --sysconfdir=/etc
+  make ALLOW_WARNINGS=1
+}
+
+check() {
+  cd $_tag
+
+  # these tests are flaky and extremely slow in Arch chroot
+  # make build/release/rethinkdb-unittest
+  # ./build/release/rethinkdb-unittest --gtest_filter=-RDBBtree.*:RDBInterrupt.*
+  # some tests might be flaky on btrfs filesystem
+}
+
+package() {
+  cd $_tag
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 "$srcdir"/rethinkdb.sysusers "$pkgdir"/usr/lib/sysusers.d/rethinkdb.conf
+  install -Dm644 "$srcdir"/rethinkdb-tmpfile.conf "$pkgdir"/usr/lib/tmpfiles.d/rethinkdb.conf
+  install -Dm644 "$srcdir"/rethinkdb.service "$pkgdir"/usr/lib/systemd/system/rethinkdb at .service
+
+  # create 'default' database instance
+  mv "$pkgdir"/etc/rethinkdb/default.conf.sample "$pkgdir"/etc/rethinkdb/instances.d/default.conf
+  sed -e 's|# directory=/var/lib/rethinkdb|directory=/var/lib/rethinkdb|' \
+      -i "$pkgdir"/etc/rethinkdb/instances.d/default.conf
+
+  # Arch uses systemd, no need for init.d scripts
+  rm -r "$pkgdir"/etc/init.d
+}

Copied: rethinkdb/repos/community-testing-i686/rethinkdb-tmpfile.conf (from rev 211791, rethinkdb/repos/community-staging-i686/rethinkdb-tmpfile.conf)
===================================================================
--- community-testing-i686/rethinkdb-tmpfile.conf	                        (rev 0)
+++ community-testing-i686/rethinkdb-tmpfile.conf	2017-02-10 21:38:29 UTC (rev 211792)
@@ -0,0 +1 @@
+d /run/rethinkdb 0755 rethinkdb rethinkdb -
\ No newline at end of file

Copied: rethinkdb/repos/community-testing-i686/rethinkdb.install (from rev 211791, rethinkdb/repos/community-staging-i686/rethinkdb.install)
===================================================================
--- community-testing-i686/rethinkdb.install	                        (rev 0)
+++ community-testing-i686/rethinkdb.install	2017-02-10 21:38:29 UTC (rev 211792)
@@ -0,0 +1,15 @@
+post_install() {
+  if [ -d /var/lib/rethinkdb ]; then
+    echo "Database directory '/var/lib/rethinkdb' already exists. If you want to recreate default database then delete the directory and run 'rethinkdb create -d /var/lib/rethinkdb/default'."
+  fi
+
+  if [ ! -d /var/lib/rethinkdb/default ]; then
+    mkdir -p /var/lib/rethinkdb
+    /usr/bin/rethinkdb create -d /var/lib/rethinkdb/default
+  fi
+  chown -R rethinkdb:rethinkdb /var/lib/rethinkdb
+}
+
+post_remove() {
+  echo "RethinkDB data directory '/var/lib/rethinkdb' is left untouched. Remove it if you really sure you won't need your data in the future."
+}

Copied: rethinkdb/repos/community-testing-i686/rethinkdb.service (from rev 211791, rethinkdb/repos/community-staging-i686/rethinkdb.service)
===================================================================
--- community-testing-i686/rethinkdb.service	                        (rev 0)
+++ community-testing-i686/rethinkdb.service	2017-02-10 21:38:29 UTC (rev 211792)
@@ -0,0 +1,12 @@
+[Unit]
+Description=RethinkDB database server for instance '%i'
+
+[Service]
+User=rethinkdb
+Group=rethinkdb
+ExecStart=/usr/bin/rethinkdb serve --config-file /etc/rethinkdb/instances.d/%i.conf
+KillMode=process
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target

Copied: rethinkdb/repos/community-testing-i686/rethinkdb.sysusers (from rev 211791, rethinkdb/repos/community-staging-i686/rethinkdb.sysusers)
===================================================================
--- community-testing-i686/rethinkdb.sysusers	                        (rev 0)
+++ community-testing-i686/rethinkdb.sysusers	2017-02-10 21:38:29 UTC (rev 211792)
@@ -0,0 +1 @@
+u rethinkdb - "Rethinkdb daemon user" /var/lib/rethinkdb

Copied: rethinkdb/repos/community-testing-x86_64/PKGBUILD (from rev 211791, rethinkdb/repos/community-staging-x86_64/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-02-10 21:38:29 UTC (rev 211792)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Sigmund Lahn <sigmund at lahn.no>
+
+pkgname=rethinkdb
+pkgver=2.3.5
+_tag=rethinkdb-$pkgver
+pkgrel=4
+pkgdesc='Distributed powerful and scalable NoSQL database'
+arch=(i686 x86_64)
+url='http://www.rethinkdb.com/'
+license=(AGPL)
+depends=(protobuf ncurses curl)
+makedepends=(boost python2 wget gcc5) # gcc5 is workaround for https://github.com/rethinkdb/rethinkdb/issues/5757
+backup=(etc/rethinkdb/instances.d/default.conf)
+install=rethinkdb.install
+options=(!emptydirs)
+source=(
+  https://download.rethinkdb.com/dist/$_tag.tgz
+  rethinkdb-tmpfile.conf
+  rethinkdb.service
+  rethinkdb.sysusers
+)
+sha256sums=('dd8aeee169b177179bfe080725f0560443e0f26dae875b32ae25d90cf2f8ee10'
+            '656d3a42e75d087e723f71aa320fdd91cbbb82071ef72eb11fd3e4a619b429a4'
+            'e56bffa2b9ebc3a00ef566ab2be0719a633c89d961a2461dfa2d9ffdb258c1a2'
+            '0660e0c7c093b440718486e1d0138322cf393da43e1fc92fb712b8282db76b5c')
+
+prepare() {
+  cd $_tag
+
+  sed \
+    -e 's|#!/usr/bin/python|#!/usr/bin/python2|' \
+    -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    -i scripts/*.py external/v8_*/tools/*.py
+  sed -e 's|exec python|exec python2|g' -i external/v8_*/build/gyp/gyp
+  sed -e 's|\bpython\b|python2|g' -i external/v8_*/{Makefile,*/*.gyp,*/*.gypi,*/*/*.gyp}
+}
+
+build() {
+  cd $_tag
+  export PYTHON=/usr/bin/python2
+  CXX=g++-5 ./configure --fetch v8 --fetch jemalloc --dynamic all --enable-precompiled-web --prefix=/usr --sysconfdir=/etc
+  make ALLOW_WARNINGS=1
+}
+
+check() {
+  cd $_tag
+
+  # these tests are flaky and extremely slow in Arch chroot
+  # make build/release/rethinkdb-unittest
+  # ./build/release/rethinkdb-unittest --gtest_filter=-RDBBtree.*:RDBInterrupt.*
+  # some tests might be flaky on btrfs filesystem
+}
+
+package() {
+  cd $_tag
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 "$srcdir"/rethinkdb.sysusers "$pkgdir"/usr/lib/sysusers.d/rethinkdb.conf
+  install -Dm644 "$srcdir"/rethinkdb-tmpfile.conf "$pkgdir"/usr/lib/tmpfiles.d/rethinkdb.conf
+  install -Dm644 "$srcdir"/rethinkdb.service "$pkgdir"/usr/lib/systemd/system/rethinkdb at .service
+
+  # create 'default' database instance
+  mv "$pkgdir"/etc/rethinkdb/default.conf.sample "$pkgdir"/etc/rethinkdb/instances.d/default.conf
+  sed -e 's|# directory=/var/lib/rethinkdb|directory=/var/lib/rethinkdb|' \
+      -i "$pkgdir"/etc/rethinkdb/instances.d/default.conf
+
+  # Arch uses systemd, no need for init.d scripts
+  rm -r "$pkgdir"/etc/init.d
+}

Copied: rethinkdb/repos/community-testing-x86_64/rethinkdb-tmpfile.conf (from rev 211791, rethinkdb/repos/community-staging-x86_64/rethinkdb-tmpfile.conf)
===================================================================
--- community-testing-x86_64/rethinkdb-tmpfile.conf	                        (rev 0)
+++ community-testing-x86_64/rethinkdb-tmpfile.conf	2017-02-10 21:38:29 UTC (rev 211792)
@@ -0,0 +1 @@
+d /run/rethinkdb 0755 rethinkdb rethinkdb -
\ No newline at end of file

Copied: rethinkdb/repos/community-testing-x86_64/rethinkdb.install (from rev 211791, rethinkdb/repos/community-staging-x86_64/rethinkdb.install)
===================================================================
--- community-testing-x86_64/rethinkdb.install	                        (rev 0)
+++ community-testing-x86_64/rethinkdb.install	2017-02-10 21:38:29 UTC (rev 211792)
@@ -0,0 +1,15 @@
+post_install() {
+  if [ -d /var/lib/rethinkdb ]; then
+    echo "Database directory '/var/lib/rethinkdb' already exists. If you want to recreate default database then delete the directory and run 'rethinkdb create -d /var/lib/rethinkdb/default'."
+  fi
+
+  if [ ! -d /var/lib/rethinkdb/default ]; then
+    mkdir -p /var/lib/rethinkdb
+    /usr/bin/rethinkdb create -d /var/lib/rethinkdb/default
+  fi
+  chown -R rethinkdb:rethinkdb /var/lib/rethinkdb
+}
+
+post_remove() {
+  echo "RethinkDB data directory '/var/lib/rethinkdb' is left untouched. Remove it if you really sure you won't need your data in the future."
+}

Copied: rethinkdb/repos/community-testing-x86_64/rethinkdb.service (from rev 211791, rethinkdb/repos/community-staging-x86_64/rethinkdb.service)
===================================================================
--- community-testing-x86_64/rethinkdb.service	                        (rev 0)
+++ community-testing-x86_64/rethinkdb.service	2017-02-10 21:38:29 UTC (rev 211792)
@@ -0,0 +1,12 @@
+[Unit]
+Description=RethinkDB database server for instance '%i'
+
+[Service]
+User=rethinkdb
+Group=rethinkdb
+ExecStart=/usr/bin/rethinkdb serve --config-file /etc/rethinkdb/instances.d/%i.conf
+KillMode=process
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target

Copied: rethinkdb/repos/community-testing-x86_64/rethinkdb.sysusers (from rev 211791, rethinkdb/repos/community-staging-x86_64/rethinkdb.sysusers)
===================================================================
--- community-testing-x86_64/rethinkdb.sysusers	                        (rev 0)
+++ community-testing-x86_64/rethinkdb.sysusers	2017-02-10 21:38:29 UTC (rev 211792)
@@ -0,0 +1 @@
+u rethinkdb - "Rethinkdb daemon user" /var/lib/rethinkdb



More information about the arch-commits mailing list