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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Mon Nov 7 18:05:42 UTC 2016


    Date: Monday, November 7, 2016 @ 18:05:42
  Author: bpiotrowski
Revision: 194957

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

Added:
  tarantool/repos/community-staging-i686/
  tarantool/repos/community-staging-i686/PKGBUILD
    (from rev 194956, tarantool/trunk/PKGBUILD)
  tarantool/repos/community-staging-i686/tarantool.install
    (from rev 194956, tarantool/trunk/tarantool.install)
  tarantool/repos/community-staging-x86_64/
  tarantool/repos/community-staging-x86_64/PKGBUILD
    (from rev 194956, tarantool/trunk/PKGBUILD)
  tarantool/repos/community-staging-x86_64/tarantool.install
    (from rev 194956, tarantool/trunk/tarantool.install)

--------------------------------------------+
 community-staging-i686/PKGBUILD            |   85 +++++++++++++++++++++++++++
 community-staging-i686/tarantool.install   |   22 ++++++
 community-staging-x86_64/PKGBUILD          |   85 +++++++++++++++++++++++++++
 community-staging-x86_64/tarantool.install |   22 ++++++
 4 files changed, 214 insertions(+)

Copied: tarantool/repos/community-staging-i686/PKGBUILD (from rev 194956, tarantool/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2016-11-07 18:05:42 UTC (rev 194957)
@@ -0,0 +1,85 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+pkgname=tarantool
+_commit=1c01afde9477d82c315e5ad1f748e5308f5e8b59
+pkgver=1.7.1.r179
+pkgrel=2
+pkgdesc='Lua application server integrated with a database management system'
+arch=(i686 x86_64)
+url='http://www.tarantool.org'
+license=(BSD)
+depends=(readline ncurses zlib libyaml openssl)
+makedepends=(git cmake systemd)
+checkdepends=(python2-daemon python2-gevent python2-tarantool)
+install=tarantool.install
+source=(git://github.com/tarantool/tarantool.git#commit=$_commit
+        git://github.com/tarantool/luajit.git
+        git://github.com/tarantool/msgpuck.git
+        git://github.com/rtsisyk/luafun.git
+        #git://github.com/tarantool/sophia.git
+        git://github.com/tarantool/lz4.git
+        git://github.com/tarantool/libyaml.git
+        git://github.com/tarantool/zstd.git
+        git://github.com/tarantool/test-run.git
+        git://github.com/tarantool/small.git)
+sha1sums=('SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP')
+
+pkgver() {
+  cd tarantool
+  git describe | sed 's/^v//; s/-/.r/; s/-.*//'
+}
+
+build() {
+  cd tarantool
+
+  # tarantool uses git submodule, handle this
+  git submodule init
+  git config -f .gitmodules 'submodule.third_party/luajit.url' "$srcdir/luajit"
+  git config -f .gitmodules 'submodule.src/lib/msgpuck.url' "$srcdir/msgpuck"
+  git config -f .gitmodules 'submodule.third_party/luafun.url' "$srcdir/luafun"
+  #git config -f .gitmodules 'submodule.sophia.url' "$srcdir/sophia"
+  git config -f .gitmodules 'submodule.third_party/libyaml.url' "$srcdir/libyaml"
+  git config -f .gitmodules 'submodule.third_party/lz4.url' "$srcdir/lz4"
+  git config -f .gitmodules 'submodule.third_party/zstd.url' "$srcdir/zstd"
+  git config -f .gitmodules 'submodule.test-run.url' "$srcdir/test-run"
+  git config -f .gitmodules 'submodule.src/lib/small.url' "$srcdir/small"
+  git submodule sync
+  git submodule update
+
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_BINDIR=/usr/bin \
+    -DCMAKE_INSTALL_SYSCONFDIR=/etc \
+    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DENABLE_BUNDLED_LIBYAML:BOOL=OFF \
+    -DENABLE_BACKTRACE:BOOL=ON \
+    -DWITH_SYSTEMD:BOOL=ON \
+    -DENABLE_DIST:BOOL=ON \
+    .
+
+  make
+}
+
+check() {
+  cd tarantool/test
+  ./test-run.py --suite box
+}
+
+package() {
+  cd tarantool
+  make install DESTDIR="$pkgdir"
+
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  rm -r "$pkgdir/var/run"
+}

Copied: tarantool/repos/community-staging-i686/tarantool.install (from rev 194956, tarantool/trunk/tarantool.install)
===================================================================
--- community-staging-i686/tarantool.install	                        (rev 0)
+++ community-staging-i686/tarantool.install	2016-11-07 18:05:42 UTC (rev 194957)
@@ -0,0 +1,22 @@
+post_upgrade() {
+  getent group tarantool >/dev/null || groupadd --system tarantool &>/dev/null
+  getent passwd tarantool >/dev/null || useradd --system -g tarantool -d /var/lib/tarantool -s /bin/false -c "Tarantool Server" tarantool &>/dev/null
+
+  if type -P systemd-tmpfiles &> /dev/null; then
+    systemd-tmpfiles --create tarantool.conf
+  fi
+
+  mkdir -p /var/run/tarantool
+
+  chown -R tarantool:tarantool /var/run/tarantool/
+  chown -R tarantool:tarantool /var/lib/tarantool/
+  chown -R tarantool:tarantool /var/log/tarantool/
+}
+
+post_install() {
+  post_upgrade
+}
+
+post_remove() {
+  echo "Tarantool data directory '/var/lib/tarantool' is left untouched. Remove it if you really sure you won't need your data in the future."
+}

Copied: tarantool/repos/community-staging-x86_64/PKGBUILD (from rev 194956, tarantool/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2016-11-07 18:05:42 UTC (rev 194957)
@@ -0,0 +1,85 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+pkgname=tarantool
+_commit=1c01afde9477d82c315e5ad1f748e5308f5e8b59
+pkgver=1.7.1.r179
+pkgrel=2
+pkgdesc='Lua application server integrated with a database management system'
+arch=(i686 x86_64)
+url='http://www.tarantool.org'
+license=(BSD)
+depends=(readline ncurses zlib libyaml openssl)
+makedepends=(git cmake systemd)
+checkdepends=(python2-daemon python2-gevent python2-tarantool)
+install=tarantool.install
+source=(git://github.com/tarantool/tarantool.git#commit=$_commit
+        git://github.com/tarantool/luajit.git
+        git://github.com/tarantool/msgpuck.git
+        git://github.com/rtsisyk/luafun.git
+        #git://github.com/tarantool/sophia.git
+        git://github.com/tarantool/lz4.git
+        git://github.com/tarantool/libyaml.git
+        git://github.com/tarantool/zstd.git
+        git://github.com/tarantool/test-run.git
+        git://github.com/tarantool/small.git)
+sha1sums=('SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP')
+
+pkgver() {
+  cd tarantool
+  git describe | sed 's/^v//; s/-/.r/; s/-.*//'
+}
+
+build() {
+  cd tarantool
+
+  # tarantool uses git submodule, handle this
+  git submodule init
+  git config -f .gitmodules 'submodule.third_party/luajit.url' "$srcdir/luajit"
+  git config -f .gitmodules 'submodule.src/lib/msgpuck.url' "$srcdir/msgpuck"
+  git config -f .gitmodules 'submodule.third_party/luafun.url' "$srcdir/luafun"
+  #git config -f .gitmodules 'submodule.sophia.url' "$srcdir/sophia"
+  git config -f .gitmodules 'submodule.third_party/libyaml.url' "$srcdir/libyaml"
+  git config -f .gitmodules 'submodule.third_party/lz4.url' "$srcdir/lz4"
+  git config -f .gitmodules 'submodule.third_party/zstd.url' "$srcdir/zstd"
+  git config -f .gitmodules 'submodule.test-run.url' "$srcdir/test-run"
+  git config -f .gitmodules 'submodule.src/lib/small.url' "$srcdir/small"
+  git submodule sync
+  git submodule update
+
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_BINDIR=/usr/bin \
+    -DCMAKE_INSTALL_SYSCONFDIR=/etc \
+    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DENABLE_BUNDLED_LIBYAML:BOOL=OFF \
+    -DENABLE_BACKTRACE:BOOL=ON \
+    -DWITH_SYSTEMD:BOOL=ON \
+    -DENABLE_DIST:BOOL=ON \
+    .
+
+  make
+}
+
+check() {
+  cd tarantool/test
+  ./test-run.py --suite box
+}
+
+package() {
+  cd tarantool
+  make install DESTDIR="$pkgdir"
+
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  rm -r "$pkgdir/var/run"
+}

Copied: tarantool/repos/community-staging-x86_64/tarantool.install (from rev 194956, tarantool/trunk/tarantool.install)
===================================================================
--- community-staging-x86_64/tarantool.install	                        (rev 0)
+++ community-staging-x86_64/tarantool.install	2016-11-07 18:05:42 UTC (rev 194957)
@@ -0,0 +1,22 @@
+post_upgrade() {
+  getent group tarantool >/dev/null || groupadd --system tarantool &>/dev/null
+  getent passwd tarantool >/dev/null || useradd --system -g tarantool -d /var/lib/tarantool -s /bin/false -c "Tarantool Server" tarantool &>/dev/null
+
+  if type -P systemd-tmpfiles &> /dev/null; then
+    systemd-tmpfiles --create tarantool.conf
+  fi
+
+  mkdir -p /var/run/tarantool
+
+  chown -R tarantool:tarantool /var/run/tarantool/
+  chown -R tarantool:tarantool /var/lib/tarantool/
+  chown -R tarantool:tarantool /var/log/tarantool/
+}
+
+post_install() {
+  post_upgrade
+}
+
+post_remove() {
+  echo "Tarantool data directory '/var/lib/tarantool' is left untouched. Remove it if you really sure you won't need your data in the future."
+}



More information about the arch-commits mailing list