[arch-commits] Commit in glusterfs/trunk (PKGBUILD glusterfs.sysusers)

Eli Schwartz eschwartz at archlinux.org
Fri Jul 6 19:55:27 UTC 2018


    Date: Friday, July 6, 2018 @ 19:55:27
  Author: eschwartz
Revision: 353920

upgpkg: glusterfs 1:4.1.0-3

Install sysusers snippet to go with the tmpfiles snippet from upstream

Taken from the spec file post-install defined upstream when the tmfiles snippet
was defined as the gluster user.
https://github.com/gluster/glusterfs/commit/0e50c4b3ea734456c14e2d7a578463999bd332c3#diff-2ff225a80c517b29494303926fc4e6bc

Added:
  glusterfs/trunk/glusterfs.sysusers
Modified:
  glusterfs/trunk/PKGBUILD

--------------------+
 PKGBUILD           |   12 +++++++++---
 glusterfs.sysusers |    1 +
 2 files changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-06 19:22:29 UTC (rev 353919)
+++ PKGBUILD	2018-07-06 19:55:27 UTC (rev 353920)
@@ -7,7 +7,7 @@
 pkgname=glusterfs
 epoch=1
 pkgver=4.1.0
-pkgrel=2
+pkgrel=3
 pkgdesc='Is a cluster file-system capable of scaling to several peta-bytes.'
 arch=(x86_64)
 url='http://www.gluster.org/'
@@ -24,8 +24,10 @@
 makedepends=(rpcsvc-proto)
 optdepends=('glib2: qemu-block')
 #source=($pkgname-$pkgver.tar.gz::https://github.com/gluster/glusterfs/archive/v$pkgver.tar.gz)
-source=(https://bits.gluster.org/pub/gluster/glusterfs/src/glusterfs-$pkgver.tar.gz)
-sha256sums=('14474a8027a613c242db2b862e8e8d041f70ae3e8e193163dd7792f3e1946ed9')
+source=(https://bits.gluster.org/pub/gluster/glusterfs/src/glusterfs-$pkgver.tar.gz
+        glusterfs.sysusers)
+sha256sums=('14474a8027a613c242db2b862e8e8d041f70ae3e8e193163dd7792f3e1946ed9'
+            'a470d07aedb2674adfb295b4775e490b48816b87974946da4dcf62aa0d72108a')
 
 prepare() {
   cd "$srcdir"/$pkgname-$pkgver
@@ -57,6 +59,10 @@
 
   make -j1 DESTDIR="$pkgdir" install
 
+  # https://bugzilla.redhat.com/show_bug.cgi?id=1598900
+  install -Dm644 "$srcdir"/glusterfs.sysusers \
+    "$pkgdir"/usr/lib/sysusers.d/glusterfs.conf
+
   install -D -m 644 \
     "$srcdir"/$pkgname-$pkgver/{README.md,INSTALL,COPYING*} \
     "$pkgdir"/usr/share/doc/glusterfs/

Added: glusterfs.sysusers
===================================================================
--- glusterfs.sysusers	                        (rev 0)
+++ glusterfs.sysusers	2018-07-06 19:55:27 UTC (rev 353920)
@@ -0,0 +1 @@
+u gluster - "GlusterFS daemons" /var/run/gluster -



More information about the arch-commits mailing list