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

Anatol Pomozov anatolik at archlinux.org
Sun Sep 6 04:15:23 UTC 2015


    Date: Sunday, September 6, 2015 @ 06:15:23
  Author: anatolik
Revision: 139251

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

Added:
  rethinkdb/repos/community-i686/PKGBUILD
    (from rev 139250, rethinkdb/trunk/PKGBUILD)
  rethinkdb/repos/community-i686/rethinkdb-tmpfile.conf
    (from rev 139250, rethinkdb/trunk/rethinkdb-tmpfile.conf)
  rethinkdb/repos/community-i686/rethinkdb.install
    (from rev 139250, rethinkdb/trunk/rethinkdb.install)
  rethinkdb/repos/community-i686/rethinkdb.service
    (from rev 139250, rethinkdb/trunk/rethinkdb.service)
  rethinkdb/repos/community-x86_64/PKGBUILD
    (from rev 139250, rethinkdb/trunk/PKGBUILD)
  rethinkdb/repos/community-x86_64/rethinkdb-tmpfile.conf
    (from rev 139250, rethinkdb/trunk/rethinkdb-tmpfile.conf)
  rethinkdb/repos/community-x86_64/rethinkdb.install
    (from rev 139250, rethinkdb/trunk/rethinkdb.install)
  rethinkdb/repos/community-x86_64/rethinkdb.service
    (from rev 139250, rethinkdb/trunk/rethinkdb.service)
Deleted:
  rethinkdb/repos/community-i686/PKGBUILD
  rethinkdb/repos/community-i686/rethinkdb-tmpfile.conf
  rethinkdb/repos/community-i686/rethinkdb.install
  rethinkdb/repos/community-i686/rethinkdb.service
  rethinkdb/repos/community-x86_64/PKGBUILD
  rethinkdb/repos/community-x86_64/rethinkdb-tmpfile.conf
  rethinkdb/repos/community-x86_64/rethinkdb.install
  rethinkdb/repos/community-x86_64/rethinkdb.service

-----------------------------------------+
 /PKGBUILD                               |  138 ++++++++++++++++++++++++++++++
 /rethinkdb-tmpfile.conf                 |    2 
 /rethinkdb.install                      |   44 +++++++++
 /rethinkdb.service                      |   24 +++++
 community-i686/PKGBUILD                 |   70 ---------------
 community-i686/rethinkdb-tmpfile.conf   |    1 
 community-i686/rethinkdb.install        |   22 ----
 community-i686/rethinkdb.service        |   12 --
 community-x86_64/PKGBUILD               |   70 ---------------
 community-x86_64/rethinkdb-tmpfile.conf |    1 
 community-x86_64/rethinkdb.install      |   22 ----
 community-x86_64/rethinkdb.service      |   12 --
 12 files changed, 208 insertions(+), 210 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2015-09-06 04:14:27 UTC (rev 139250)
+++ community-i686/PKGBUILD	2015-09-06 04:15:23 UTC (rev 139251)
@@ -1,70 +0,0 @@
-# $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.1.2
-_tag=rethinkdb-$pkgver
-pkgrel=1
-pkgdesc='Distributed powerful and scalable NoSQL database'
-arch=(i686 x86_64)
-url='http://www.rethinkdb.com/'
-license=(AGPL)
-depends=(protobuf ncurses curl icu)
-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
-)
-sha256sums=('e46495ccd95e8b2bd855211f48ecd6964a64b520b951115d46b9b9e55cb48322'
-            '656d3a42e75d087e723f71aa320fdd91cbbb82071ef72eb11fd3e4a619b429a4'
-            'e56bffa2b9ebc3a00ef566ab2be0719a633c89d961a2461dfa2d9ffdb258c1a2')
-
-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
-  ./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
-  # 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-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-i686/PKGBUILD (from rev 139250, rethinkdb/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2015-09-06 04:15:23 UTC (rev 139251)
@@ -0,0 +1,69 @@
+# $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.1.3
+_tag=rethinkdb-$pkgver
+pkgrel=1
+pkgdesc='Distributed powerful and scalable NoSQL database'
+arch=(i686 x86_64)
+url='http://www.rethinkdb.com/'
+license=(AGPL)
+depends=(protobuf ncurses curl icu)
+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
+)
+sha256sums=('8dbfbd89e1053eda7acde7e0bb9c4ceb64c5371ceb9b3e16019e6fc60776890f'
+            '656d3a42e75d087e723f71aa320fdd91cbbb82071ef72eb11fd3e4a619b429a4'
+            'e56bffa2b9ebc3a00ef566ab2be0719a633c89d961a2461dfa2d9ffdb258c1a2')
+
+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
+  ./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
+  # 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-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
+}

Deleted: community-i686/rethinkdb-tmpfile.conf
===================================================================
--- community-i686/rethinkdb-tmpfile.conf	2015-09-06 04:14:27 UTC (rev 139250)
+++ community-i686/rethinkdb-tmpfile.conf	2015-09-06 04:15:23 UTC (rev 139251)
@@ -1 +0,0 @@
-d /run/rethinkdb 0755 rethinkdb rethinkdb -
\ No newline at end of file

Copied: rethinkdb/repos/community-i686/rethinkdb-tmpfile.conf (from rev 139250, rethinkdb/trunk/rethinkdb-tmpfile.conf)
===================================================================
--- community-i686/rethinkdb-tmpfile.conf	                        (rev 0)
+++ community-i686/rethinkdb-tmpfile.conf	2015-09-06 04:15:23 UTC (rev 139251)
@@ -0,0 +1 @@
+d /run/rethinkdb 0755 rethinkdb rethinkdb -
\ No newline at end of file

Deleted: community-i686/rethinkdb.install
===================================================================
--- community-i686/rethinkdb.install	2015-09-06 04:14:27 UTC (rev 139250)
+++ community-i686/rethinkdb.install	2015-09-06 04:15:23 UTC (rev 139251)
@@ -1,22 +0,0 @@
-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-i686/rethinkdb.install (from rev 139250, rethinkdb/trunk/rethinkdb.install)
===================================================================
--- community-i686/rethinkdb.install	                        (rev 0)
+++ community-i686/rethinkdb.install	2015-09-06 04:15:23 UTC (rev 139251)
@@ -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."
+}

Deleted: community-i686/rethinkdb.service
===================================================================
--- community-i686/rethinkdb.service	2015-09-06 04:14:27 UTC (rev 139250)
+++ community-i686/rethinkdb.service	2015-09-06 04:15:23 UTC (rev 139251)
@@ -1,12 +0,0 @@
-[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-i686/rethinkdb.service (from rev 139250, rethinkdb/trunk/rethinkdb.service)
===================================================================
--- community-i686/rethinkdb.service	                        (rev 0)
+++ community-i686/rethinkdb.service	2015-09-06 04:15:23 UTC (rev 139251)
@@ -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

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2015-09-06 04:14:27 UTC (rev 139250)
+++ community-x86_64/PKGBUILD	2015-09-06 04:15:23 UTC (rev 139251)
@@ -1,70 +0,0 @@
-# $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.1.2
-_tag=rethinkdb-$pkgver
-pkgrel=1
-pkgdesc='Distributed powerful and scalable NoSQL database'
-arch=(i686 x86_64)
-url='http://www.rethinkdb.com/'
-license=(AGPL)
-depends=(protobuf ncurses curl icu)
-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
-)
-sha256sums=('e46495ccd95e8b2bd855211f48ecd6964a64b520b951115d46b9b9e55cb48322'
-            '656d3a42e75d087e723f71aa320fdd91cbbb82071ef72eb11fd3e4a619b429a4'
-            'e56bffa2b9ebc3a00ef566ab2be0719a633c89d961a2461dfa2d9ffdb258c1a2')
-
-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
-  ./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
-  # 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-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-x86_64/PKGBUILD (from rev 139250, rethinkdb/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-09-06 04:15:23 UTC (rev 139251)
@@ -0,0 +1,69 @@
+# $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.1.3
+_tag=rethinkdb-$pkgver
+pkgrel=1
+pkgdesc='Distributed powerful and scalable NoSQL database'
+arch=(i686 x86_64)
+url='http://www.rethinkdb.com/'
+license=(AGPL)
+depends=(protobuf ncurses curl icu)
+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
+)
+sha256sums=('8dbfbd89e1053eda7acde7e0bb9c4ceb64c5371ceb9b3e16019e6fc60776890f'
+            '656d3a42e75d087e723f71aa320fdd91cbbb82071ef72eb11fd3e4a619b429a4'
+            'e56bffa2b9ebc3a00ef566ab2be0719a633c89d961a2461dfa2d9ffdb258c1a2')
+
+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
+  ./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
+  # 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-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
+}

Deleted: community-x86_64/rethinkdb-tmpfile.conf
===================================================================
--- community-x86_64/rethinkdb-tmpfile.conf	2015-09-06 04:14:27 UTC (rev 139250)
+++ community-x86_64/rethinkdb-tmpfile.conf	2015-09-06 04:15:23 UTC (rev 139251)
@@ -1 +0,0 @@
-d /run/rethinkdb 0755 rethinkdb rethinkdb -
\ No newline at end of file

Copied: rethinkdb/repos/community-x86_64/rethinkdb-tmpfile.conf (from rev 139250, rethinkdb/trunk/rethinkdb-tmpfile.conf)
===================================================================
--- community-x86_64/rethinkdb-tmpfile.conf	                        (rev 0)
+++ community-x86_64/rethinkdb-tmpfile.conf	2015-09-06 04:15:23 UTC (rev 139251)
@@ -0,0 +1 @@
+d /run/rethinkdb 0755 rethinkdb rethinkdb -
\ No newline at end of file

Deleted: community-x86_64/rethinkdb.install
===================================================================
--- community-x86_64/rethinkdb.install	2015-09-06 04:14:27 UTC (rev 139250)
+++ community-x86_64/rethinkdb.install	2015-09-06 04:15:23 UTC (rev 139251)
@@ -1,22 +0,0 @@
-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-x86_64/rethinkdb.install (from rev 139250, rethinkdb/trunk/rethinkdb.install)
===================================================================
--- community-x86_64/rethinkdb.install	                        (rev 0)
+++ community-x86_64/rethinkdb.install	2015-09-06 04:15:23 UTC (rev 139251)
@@ -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."
+}

Deleted: community-x86_64/rethinkdb.service
===================================================================
--- community-x86_64/rethinkdb.service	2015-09-06 04:14:27 UTC (rev 139250)
+++ community-x86_64/rethinkdb.service	2015-09-06 04:15:23 UTC (rev 139251)
@@ -1,12 +0,0 @@
-[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-x86_64/rethinkdb.service (from rev 139250, rethinkdb/trunk/rethinkdb.service)
===================================================================
--- community-x86_64/rethinkdb.service	                        (rev 0)
+++ community-x86_64/rethinkdb.service	2015-09-06 04:15:23 UTC (rev 139251)
@@ -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