[arch-commits] Commit in gearmand/trunk (PKGBUILD gearmand.install user.conf)

Massimiliano Torromeo mtorromeo at archlinux.org
Fri Feb 6 15:00:53 UTC 2015


    Date: Friday, February 6, 2015 @ 16:00:53
  Author: mtorromeo
Revision: 127189

upgpkg: gearmand 1.1.12-7

No user removal at uninstall time

Added:
  gearmand/trunk/user.conf
Modified:
  gearmand/trunk/PKGBUILD
  gearmand/trunk/gearmand.install

------------------+
 PKGBUILD         |   19 +++++++++++--------
 gearmand.install |   11 +----------
 user.conf        |    1 +
 3 files changed, 13 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-02-06 10:20:07 UTC (rev 127188)
+++ PKGBUILD	2015-02-06 15:00:53 UTC (rev 127189)
@@ -6,7 +6,7 @@
 
 pkgname=gearmand
 pkgver=1.1.12
-pkgrel=6
+pkgrel=7
 pkgdesc="Distributed job queue server."
 arch=('i686' 'x86_64')
 depends=('libevent' 'boost-libs' 'libmariadbclient' 'postgresql-libs' 'sqlite' 'hiredis')
@@ -20,10 +20,11 @@
 backup=('etc/gearmand.conf')
 source=(https://launchpad.net/$pkgname/1.2/$pkgver/+download/$pkgname-$pkgver.tar.gz
         gearmand.service
-        gearmand.conf)
+        gearmand.conf
+        user.conf)
 
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd "$srcdir"/$pkgname-$pkgver
   export LDFLAGS="$LDFLAGS -lboost_system"
   ./configure \
     --prefix=/usr \
@@ -36,15 +37,17 @@
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd "$srcdir"/$pkgname-$pkgver
   make DESTDIR="$pkgdir" install
-  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
 
   cd "$srcdir"
-  install -Dm644 gearmand.service "$pkgdir/usr/lib/systemd/system/gearmand.service"
-  install -Dm644 gearmand.conf "$pkgdir/etc/gearmand.conf"
+  install -Dm644 gearmand.service "$pkgdir"/usr/lib/systemd/system/gearmand.service
+  install -Dm644 gearmand.conf "$pkgdir"/etc/gearmand.conf
+	install -Dm644 user.conf "$pkgdir"/usr/lib/sysusers.d/gearmand.conf
 }
 
 sha256sums=('973d7a3523141a84c7b757c6f243febbc89a3631e919b532c056c814d8738acb'
             'dee38ad4e614969047253b8c4996b8cdf33c981b0df215b6627356fd4cbafa33'
-            '6c14fdcd94105338e13bdd59dbed4f9b77430a517b2c125ac2e6d3bc43bdf506')
+            '6c14fdcd94105338e13bdd59dbed4f9b77430a517b2c125ac2e6d3bc43bdf506'
+            '02f11878d7c32039385586e527006f5cbb08444007f6c72a012e8acd8a855aef')

Modified: gearmand.install
===================================================================
--- gearmand.install	2015-02-06 10:20:07 UTC (rev 127188)
+++ gearmand.install	2015-02-06 15:00:53 UTC (rev 127189)
@@ -1,12 +1,3 @@
 post_install() {
-  getent group gearmand >/dev/null 2>&1 || groupadd -g 113 gearmand &>/dev/null
-  getent passwd gearmand >/dev/null 2>&1 || useradd -u 113 -g gearmand -d /dev/null -s /bin/false gearmand &>/dev/null
+  systemd-sysusers gearmand.conf
 }
-
-post_upgrade() {
-  post_install $1
-}
-
-post_remove() {
-  userdel gearmand
-}

Added: user.conf
===================================================================
--- user.conf	                        (rev 0)
+++ user.conf	2015-02-06 15:00:53 UTC (rev 127189)
@@ -0,0 +1 @@
+u gearmand 116 "gearmand user"



More information about the arch-commits mailing list