mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
62 lines
1.6 KiB
Bash
62 lines
1.6 KiB
Bash
# 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
|
|
pkgver=3.12.3
|
|
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
|
|
depends=('fuse' 'python2' 'libxml2' 'libaio' 'liburcu')
|
|
makedepends=('flex' 'bison')
|
|
optdepends=('rpcbind: NFS'
|
|
'glib2: qemu-block')
|
|
source=(https://github.com/gluster/glusterfs/archive/v${pkgver}.tar.gz)
|
|
md5sums=('b1e3c4d504bc427cbe79379a7af94263')
|
|
|
|
prepare() {
|
|
cd $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 $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 $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 \
|
|
./{README.md,INSTALL,COPYING*} \
|
|
$pkgdir/usr/share/doc/glusterfs/
|
|
|
|
cp -rf \
|
|
doc/* \
|
|
$pkgdir/usr/share/doc/glusterfs/
|
|
rm -rf $pkgdir/var/run
|
|
sed -i 's:ExecStart=/usr/sbin/glusterd:ExecStart=/usr/bin/glusterd:g' $pkgdir/usr/lib/systemd/system/glusterd.service
|
|
}
|