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

Anatol Pomozov anatolik at archlinux.org
Fri Feb 20 18:03:51 UTC 2015


    Date: Friday, February 20, 2015 @ 19:03:51
  Author: anatolik
Revision: 128043

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

Added:
  rethinkdb/repos/community-testing-i686/
  rethinkdb/repos/community-testing-i686/PKGBUILD
    (from rev 128042, rethinkdb/trunk/PKGBUILD)
  rethinkdb/repos/community-testing-i686/increase_test_tries.patch
    (from rev 128042, rethinkdb/trunk/increase_test_tries.patch)
  rethinkdb/repos/community-testing-i686/rethinkdb-tmpfile.conf
    (from rev 128042, rethinkdb/trunk/rethinkdb-tmpfile.conf)
  rethinkdb/repos/community-testing-i686/rethinkdb.install
    (from rev 128042, rethinkdb/trunk/rethinkdb.install)
  rethinkdb/repos/community-testing-i686/rethinkdb.service
    (from rev 128042, rethinkdb/trunk/rethinkdb.service)
  rethinkdb/repos/community-testing-x86_64/
  rethinkdb/repos/community-testing-x86_64/PKGBUILD
    (from rev 128042, rethinkdb/trunk/PKGBUILD)
  rethinkdb/repos/community-testing-x86_64/increase_test_tries.patch
    (from rev 128042, rethinkdb/trunk/increase_test_tries.patch)
  rethinkdb/repos/community-testing-x86_64/rethinkdb-tmpfile.conf
    (from rev 128042, rethinkdb/trunk/rethinkdb-tmpfile.conf)
  rethinkdb/repos/community-testing-x86_64/rethinkdb.install
    (from rev 128042, rethinkdb/trunk/rethinkdb.install)
  rethinkdb/repos/community-testing-x86_64/rethinkdb.service
    (from rev 128042, rethinkdb/trunk/rethinkdb.service)

----------------------------------------------------+
 community-testing-i686/PKGBUILD                    |   71 +++++++++++++++++++
 community-testing-i686/increase_test_tries.patch   |   13 +++
 community-testing-i686/rethinkdb-tmpfile.conf      |    1 
 community-testing-i686/rethinkdb.install           |   22 +++++
 community-testing-i686/rethinkdb.service           |   12 +++
 community-testing-x86_64/PKGBUILD                  |   71 +++++++++++++++++++
 community-testing-x86_64/increase_test_tries.patch |   13 +++
 community-testing-x86_64/rethinkdb-tmpfile.conf    |    1 
 community-testing-x86_64/rethinkdb.install         |   22 +++++
 community-testing-x86_64/rethinkdb.service         |   12 +++
 10 files changed, 238 insertions(+)

Copied: rethinkdb/repos/community-testing-i686/PKGBUILD (from rev 128042, rethinkdb/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2015-02-20 18:03:51 UTC (rev 128043)
@@ -0,0 +1,71 @@
+# $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=1.16.2
+_tag=rethinkdb-$pkgver-1
+pkgrel=1
+pkgdesc='An open-source distributed database built with love.'
+arch=(i686 x86_64)
+url='http://www.rethinkdb.com/'
+license=(AGPL)
+depends=(protobuf ncurses curl)
+makedepends=(boost python2 wget)
+backup=(etc/rethinkdb/instances.d/default.conf)
+install=rethinkdb.install
+options=(!emptydirs)
+source=(
+  http://download.rethinkdb.com/dist/$_tag.tgz
+  rethinkdb-tmpfile.conf
+  rethinkdb.service
+  increase_test_tries.patch
+)
+sha256sums=('0ec3dcfecad3a94dc0247d4ed39c02db2169e2bf5a6e925f30c374899ebc24a7'
+            '656d3a42e75d087e723f71aa320fdd91cbbb82071ef72eb11fd3e4a619b429a4'
+            'e56bffa2b9ebc3a00ef566ab2be0719a633c89d961a2461dfa2d9ffdb258c1a2'
+            'be7b453f9d96078a394c76a543316b6c93edd1b7a926c2aa97d442761a2a1d58')
+
+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
+
+  patch -p1 < ../increase_test_tries.patch
+}
+
+build() {
+  cd $_tag
+  export PYTHON=/usr/bin/python2
+  ./configure CXXFLAGS="-DBOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES" --fetch v8 --fetch jemalloc --dynamic all --enable-precompiled-web --prefix=/usr --sysconfdir=/etc
+  make
+}
+
+check() {
+  cd $_tag
+
+#  make build/release/rethinkdb-unittest
+#  ./build/release/rethinkdb-unittest
+  # some tests might be flaky on btrfs filesystem!
+}
+
+package() {
+  cd $_tag
+  make DESTDIR="$pkgdir" install
+
+  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|' \
+      -e 's|# pid-file=/var/run/rethinkdb/rethinkdb.pid|pid-file=/var/run/rethinkdb/default.pid|' \
+      -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/increase_test_tries.patch (from rev 128042, rethinkdb/trunk/increase_test_tries.patch)
===================================================================
--- community-testing-i686/increase_test_tries.patch	                        (rev 0)
+++ community-testing-i686/increase_test_tries.patch	2015-02-20 18:03:51 UTC (rev 128043)
@@ -0,0 +1,13 @@
+diff --git a/src/unittest/rdb_btree.cc b/src/unittest/rdb_btree.cc
+index 4104a8e..df46aa5 100644
+--- a/src/unittest/rdb_btree.cc
++++ b/src/unittest/rdb_btree.cc
+@@ -23,7 +23,7 @@
+ #include "unittest/unittest_utils.hpp"
+ 
+ #define TOTAL_KEYS_TO_INSERT 1000
+-#define MAX_RETRIES_FOR_SINDEX_POSTCONSTRUCT 5
++#define MAX_RETRIES_FOR_SINDEX_POSTCONSTRUCT 20
+ 
+ namespace unittest {
+ 

Copied: rethinkdb/repos/community-testing-i686/rethinkdb-tmpfile.conf (from rev 128042, rethinkdb/trunk/rethinkdb-tmpfile.conf)
===================================================================
--- community-testing-i686/rethinkdb-tmpfile.conf	                        (rev 0)
+++ community-testing-i686/rethinkdb-tmpfile.conf	2015-02-20 18:03:51 UTC (rev 128043)
@@ -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 128042, rethinkdb/trunk/rethinkdb.install)
===================================================================
--- community-testing-i686/rethinkdb.install	                        (rev 0)
+++ community-testing-i686/rethinkdb.install	2015-02-20 18:03:51 UTC (rev 128043)
@@ -0,0 +1,22 @@
+post_install() {
+  getent group rethinkdb >/dev/null || groupadd --system rethinkdb &>/dev/null
+  getent passwd rethinkdb >/dev/null || useradd --system -g rethinkdb -d /var/lib/rethinkdb -s /bin/false rethinkdb &>/dev/null
+
+  if type -P systemd-tmpfiles &> /dev/null; then
+    systemd-tmpfiles --create rethinkdb.conf
+  fi
+
+  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 128042, rethinkdb/trunk/rethinkdb.service)
===================================================================
--- community-testing-i686/rethinkdb.service	                        (rev 0)
+++ community-testing-i686/rethinkdb.service	2015-02-20 18:03:51 UTC (rev 128043)
@@ -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/PKGBUILD (from rev 128042, rethinkdb/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2015-02-20 18:03:51 UTC (rev 128043)
@@ -0,0 +1,71 @@
+# $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=1.16.2
+_tag=rethinkdb-$pkgver-1
+pkgrel=1
+pkgdesc='An open-source distributed database built with love.'
+arch=(i686 x86_64)
+url='http://www.rethinkdb.com/'
+license=(AGPL)
+depends=(protobuf ncurses curl)
+makedepends=(boost python2 wget)
+backup=(etc/rethinkdb/instances.d/default.conf)
+install=rethinkdb.install
+options=(!emptydirs)
+source=(
+  http://download.rethinkdb.com/dist/$_tag.tgz
+  rethinkdb-tmpfile.conf
+  rethinkdb.service
+  increase_test_tries.patch
+)
+sha256sums=('0ec3dcfecad3a94dc0247d4ed39c02db2169e2bf5a6e925f30c374899ebc24a7'
+            '656d3a42e75d087e723f71aa320fdd91cbbb82071ef72eb11fd3e4a619b429a4'
+            'e56bffa2b9ebc3a00ef566ab2be0719a633c89d961a2461dfa2d9ffdb258c1a2'
+            'be7b453f9d96078a394c76a543316b6c93edd1b7a926c2aa97d442761a2a1d58')
+
+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
+
+  patch -p1 < ../increase_test_tries.patch
+}
+
+build() {
+  cd $_tag
+  export PYTHON=/usr/bin/python2
+  ./configure CXXFLAGS="-DBOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES" --fetch v8 --fetch jemalloc --dynamic all --enable-precompiled-web --prefix=/usr --sysconfdir=/etc
+  make
+}
+
+check() {
+  cd $_tag
+
+#  make build/release/rethinkdb-unittest
+#  ./build/release/rethinkdb-unittest
+  # some tests might be flaky on btrfs filesystem!
+}
+
+package() {
+  cd $_tag
+  make DESTDIR="$pkgdir" install
+
+  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|' \
+      -e 's|# pid-file=/var/run/rethinkdb/rethinkdb.pid|pid-file=/var/run/rethinkdb/default.pid|' \
+      -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/increase_test_tries.patch (from rev 128042, rethinkdb/trunk/increase_test_tries.patch)
===================================================================
--- community-testing-x86_64/increase_test_tries.patch	                        (rev 0)
+++ community-testing-x86_64/increase_test_tries.patch	2015-02-20 18:03:51 UTC (rev 128043)
@@ -0,0 +1,13 @@
+diff --git a/src/unittest/rdb_btree.cc b/src/unittest/rdb_btree.cc
+index 4104a8e..df46aa5 100644
+--- a/src/unittest/rdb_btree.cc
++++ b/src/unittest/rdb_btree.cc
+@@ -23,7 +23,7 @@
+ #include "unittest/unittest_utils.hpp"
+ 
+ #define TOTAL_KEYS_TO_INSERT 1000
+-#define MAX_RETRIES_FOR_SINDEX_POSTCONSTRUCT 5
++#define MAX_RETRIES_FOR_SINDEX_POSTCONSTRUCT 20
+ 
+ namespace unittest {
+ 

Copied: rethinkdb/repos/community-testing-x86_64/rethinkdb-tmpfile.conf (from rev 128042, rethinkdb/trunk/rethinkdb-tmpfile.conf)
===================================================================
--- community-testing-x86_64/rethinkdb-tmpfile.conf	                        (rev 0)
+++ community-testing-x86_64/rethinkdb-tmpfile.conf	2015-02-20 18:03:51 UTC (rev 128043)
@@ -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 128042, rethinkdb/trunk/rethinkdb.install)
===================================================================
--- community-testing-x86_64/rethinkdb.install	                        (rev 0)
+++ community-testing-x86_64/rethinkdb.install	2015-02-20 18:03:51 UTC (rev 128043)
@@ -0,0 +1,22 @@
+post_install() {
+  getent group rethinkdb >/dev/null || groupadd --system rethinkdb &>/dev/null
+  getent passwd rethinkdb >/dev/null || useradd --system -g rethinkdb -d /var/lib/rethinkdb -s /bin/false rethinkdb &>/dev/null
+
+  if type -P systemd-tmpfiles &> /dev/null; then
+    systemd-tmpfiles --create rethinkdb.conf
+  fi
+
+  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 128042, rethinkdb/trunk/rethinkdb.service)
===================================================================
--- community-testing-x86_64/rethinkdb.service	                        (rev 0)
+++ community-testing-x86_64/rethinkdb.service	2015-02-20 18:03:51 UTC (rev 128043)
@@ -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



More information about the arch-commits mailing list