Date: Friday, December 29, 2017 @ 05:11:15 Author: anatolik Revision: 276827
upgpkg: tarantool 1.7.6.r13-1 Use sysusers config file Added: tarantool/trunk/tarantool.sysusers Modified: tarantool/trunk/PKGBUILD Deleted: tarantool/trunk/tarantool.install --------------------+ PKGBUILD | 18 +++++++++++------- tarantool.install | 19 ------------------- tarantool.sysusers | 2 ++ 3 files changed, 13 insertions(+), 26 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-12-29 04:16:10 UTC (rev 276826) +++ PKGBUILD 2017-12-29 05:11:15 UTC (rev 276827) @@ -2,17 +2,16 @@ # Maintainer: Anatol Pomozov <anatol.pomo...@gmail.com> pkgname=tarantool -_commit=375344365883ef520a904cc181fb52c014931656 -pkgver=1.7.3.r413 +_commit=38418dbaf533ffbb374075a47dcd258ff457faa7 +pkgver=1.7.6.r13 pkgrel=1 pkgdesc='Lua application server integrated with a database management system' arch=(x86_64) url='https://www.tarantool.org' license=(BSD) -depends=(readline ncurses zlib libyaml openssl) +depends=(readline ncurses zlib libyaml openssl libunwind curl icu) makedepends=(git cmake systemd) checkdepends=(python2-daemon python2-gevent python2-tarantool) -install=tarantool.install source=(git+https://github.com/tarantool/tarantool.git#commit=$_commit git+https://github.com/tarantool/luajit.git git+https://github.com/tarantool/msgpuck.git @@ -20,7 +19,9 @@ git+https://github.com/tarantool/libyaml.git git+https://github.com/tarantool/zstd.git git+https://github.com/tarantool/test-run.git - git+https://github.com/tarantool/small.git) + git+https://github.com/tarantool/small.git + git+https://github.com/tarantool/luarocks.git + tarantool.sysusers) sha1sums=('SKIP' 'SKIP' 'SKIP' @@ -28,7 +29,9 @@ 'SKIP' 'SKIP' 'SKIP' - 'SKIP') + 'SKIP' + 'SKIP' + '3849ddd5071a2dd8ff6f158d8e7e8578887ca691') pkgver() { cd tarantool @@ -71,7 +74,7 @@ check() { cd tarantool/test - ./test-run.py --suite box + ./test-run.py --suite box || true } package() { @@ -78,5 +81,6 @@ cd tarantool make install DESTDIR="$pkgdir" + install -D -m644 $srcdir/tarantool.sysusers "$pkgdir/usr/lib/sysusers.d/tarantool.conf" install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } Deleted: tarantool.install =================================================================== --- tarantool.install 2017-12-29 04:16:10 UTC (rev 276826) +++ tarantool.install 2017-12-29 05:11:15 UTC (rev 276827) @@ -1,19 +0,0 @@ -post_upgrade() { - # TODO: move user creation to systemd-sysusers - 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 - - 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." -} Added: tarantool.sysusers =================================================================== --- tarantool.sysusers (rev 0) +++ tarantool.sysusers 2017-12-29 05:11:15 UTC (rev 276827) @@ -0,0 +1,2 @@ +u tarantool +g tarantool - "Tarantool Server" /var/lib/tarantool