[arch-commits] Commit in glusterfs/trunk (PKGBUILD glusterfs.install)
Sergej Pupykin
spupykin at nymeria.archlinux.org
Mon Jun 2 10:47:05 UTC 2014
Date: Monday, June 2, 2014 @ 12:47:05
Author: spupykin
Revision: 112464
upgpkg: glusterfs 3.5.0-2
upd
Added:
glusterfs/trunk/glusterfs.install
Modified:
glusterfs/trunk/PKGBUILD
-------------------+
PKGBUILD | 7 ++++++-
glusterfs.install | 7 +++++++
2 files changed, 13 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-06-02 10:46:30 UTC (rev 112463)
+++ PKGBUILD 2014-06-02 10:47:05 UTC (rev 112464)
@@ -7,11 +7,12 @@
pkgname=glusterfs
pkgver=3.5.0
_basever=`echo $pkgver | cut -f1-2 -d.`
-pkgrel=1
+pkgrel=2
pkgdesc='Is a cluster file-system capable of scaling to several peta-bytes.'
arch=(i686 x86_64)
url='http://www.gluster.org/'
license=(GPL2 LGPL3)
+install=glusterfs.install
depends=(fuse python2 libxml2)
makedepends=(flex bison)
source=(http://download.gluster.org/pub/gluster/glusterfs/$_basever/$pkgver/glusterfs-$pkgver.tar.gz)
@@ -45,6 +46,9 @@
make -j1 DESTDIR=$pkgdir install
+ mkdir -p $pkgdir/usr/lib/tmpfiles.d
+ echo "d /var/run/glusterfs 0755 root root -" >$pkgdir/usr/lib/tmpfiles.d/glusterfs.conf
+
install -D -m 644 \
$srcdir/$pkgname-$pkgver/{README,INSTALL,COPYING*} \
$pkgdir/usr/share/doc/glusterfs/
@@ -52,6 +56,7 @@
cp -rf \
$srcdir/$pkgname-$pkgver/doc/* \
$pkgdir/usr/share/doc/glusterfs/
+ rm -rf $pkgdir/var/run
}
# vim:set ts=2 sw=2 et:
Added: glusterfs.install
===================================================================
--- glusterfs.install (rev 0)
+++ glusterfs.install 2014-06-02 10:47:05 UTC (rev 112464)
@@ -0,0 +1,7 @@
+post_install() {
+ systemd-tmpfiles --create glusterfs.conf
+}
+
+post_upgrade() {
+ systemd-tmpfiles --create glusterfs.conf
+}
More information about the arch-commits
mailing list