# $Id: PKGBUILD 113780 2014-06-30 11:59:55Z spupykin $ # Maintainer: Sergej Pupykin # Contributors: # Andrei Antoukh - niwi@niwi.be - http://www.niwi.be # henning mueller pkgname=glusterfs pkgver=3.5.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 libaio) makedepends=(flex bison) optdepends=('rpcbind: NFS' 'glib2: qemu-block') source=($pkgname-$pkgver.tar.gz::https://github.com/gluster/glusterfs/archive/v$pkgver.tar.gz) md5sums=('8ca66470225704339b94317616977301') prepare() { cd $srcdir/$pkgname-$pkgver find -type f -name '*.py' -exec sed -i \ -e 's:env\ python:env\ python2:' \ -e 's:/usr/bin/python:/usr/bin/python2:' {} \; } build() { cd $srcdir/$pkgname-$pkgver ./autogen.sh ./configure \ --prefix=/usr \ --sbindir=/usr/bin \ --with-mountutildir=/usr/bin \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/share/man \ --libexecdir=/usr/lib/$pkgname \ --with-systemddir=/usr/lib/systemd/system \ PYTHON=python2 LEXLIB= make } package() { cd $srcdir/$pkgname-$pkgver 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/ cp -rf \ $srcdir/$pkgname-$pkgver/doc/* \ $pkgdir/usr/share/doc/glusterfs/ rm -rf $pkgdir/var/run } # vim:set ts=2 sw=2 et: