desktop/glusterfs/PKGBUILD

62 lines
1.6 KiB
Bash
Raw Normal View History

2015-11-19 06:46:22 +08:00
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributors:
# Andrei Antoukh - niwi@niwi.be - http://www.niwi.be
# henning mueller <henning@orgizm.net>
pkgname=glusterfs
2017-12-02 03:10:16 +08:00
pkgver=3.12.3
2015-11-19 06:46:22 +08:00
pkgrel=1
pkgdesc='Is a cluster file-system capable of scaling to several peta-bytes.'
arch=(x86_64)
url='http://www.gluster.org/'
license=(GPL2 LGPL3)
install=glusterfs.install
2017-12-02 03:10:16 +08:00
depends=('fuse' 'python2' 'libxml2' 'libaio' 'liburcu')
makedepends=('flex' 'bison')
2015-11-19 06:46:22 +08:00
optdepends=('rpcbind: NFS'
'glib2: qemu-block')
2016-05-22 18:46:14 +08:00
source=(https://github.com/gluster/glusterfs/archive/v${pkgver}.tar.gz)
2017-12-02 03:10:16 +08:00
md5sums=('b1e3c4d504bc427cbe79379a7af94263')
2015-11-19 06:46:22 +08:00
prepare() {
2017-12-02 03:10:16 +08:00
cd $pkgname-$pkgver
2015-11-19 06:46:22 +08:00
find -type f -name '*.py' -exec sed -i \
-e 's:env\ python:env\ python2:' \
-e 's:/usr/bin/python:/usr/bin/python2:' {} \;
}
build() {
2017-12-02 03:10:16 +08:00
cd $pkgname-$pkgver
2015-11-19 06:46:22 +08:00
./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() {
2017-12-02 03:10:16 +08:00
cd $pkgname-$pkgver
2015-11-19 06:46:22 +08:00
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 \
2017-12-02 03:10:16 +08:00
./{README.md,INSTALL,COPYING*} \
2015-11-19 06:46:22 +08:00
$pkgdir/usr/share/doc/glusterfs/
cp -rf \
2017-12-02 03:10:16 +08:00
doc/* \
2015-11-19 06:46:22 +08:00
$pkgdir/usr/share/doc/glusterfs/
rm -rf $pkgdir/var/run
2017-12-02 03:10:16 +08:00
sed -i 's:ExecStart=/usr/sbin/glusterd:ExecStart=/usr/bin/glusterd:g' $pkgdir/usr/lib/systemd/system/glusterd.service
2015-11-19 06:46:22 +08:00
}