diff --git a/community/glusterfs/PKGBUILD b/community/glusterfs/PKGBUILD new file mode 100644 index 000000000..843540a96 --- /dev/null +++ b/community/glusterfs/PKGBUILD @@ -0,0 +1,77 @@ +# Maintainer: Sergej Pupykin +# Contributors: +# Andrei Antoukh - niwi@niwi.be - https://www.niwi.be +# henning mueller + +# ALARM: Kevin Mihelich +# - build v7 with -DUATOMIC_NO_LINK_ERROR due to liburcu + +pkgname=glusterfs +epoch=1 +pkgver=10.0 +_major=${pkgver%%.*} +pkgrel=3 +pkgdesc='a cluster file-system capable of scaling to several peta-bytes.' +arch=(x86_64) +url='https://www.gluster.org/' +license=(GPL2 LGPL3) +install=glusterfs.install +backup=('etc/glusterfs/glusterd.vol' + 'etc/glusterfs/eventsconfig.json' + 'etc/glusterfs/gluster-rsyslog-5.8.conf' + 'etc/glusterfs/gluster-rsyslog-7.2.conf' + 'etc/glusterfs/glusterd.vol' + 'etc/glusterfs/glusterfs-georep-logrotate' + 'etc/glusterfs/glusterfs-logrotate') +depends=(fuse python libxml2 libaio liburcu attr rpcbind liburing gperftools) +makedepends=(rpcsvc-proto) +optdepends=('glib2: qemu-block' + 'python-prettytable: gluster-georep-sshkey') +source=(https://download.gluster.org/pub/gluster/glusterfs/${_major}/$pkgver/glusterfs-$pkgver.tar.gz + glusterfs.sysusers) +sha256sums=('90bb4aa2a833a7597074405dd0197bed38b115502a09c192a115bc2383df0b8d' + 'a470d07aedb2674adfb295b4775e490b48816b87974946da4dcf62aa0d72108a') + +prepare() { + cd "$srcdir"/$pkgname-$pkgver + autoreconf -fi +} + +build() { + cd "$srcdir"/$pkgname-$pkgver + [[ $CARCH == "armv7h" ]] && CFLAGS+=" -DUATOMIC_NO_LINK_ERROR" + ./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 \ + --with-tmpfilesdir=/usr/lib/tmpfiles.d \ + --enable-gnfs \ + LEXLIB= + make +} + +package() { + cd "$srcdir"/$pkgname-$pkgver + + 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/ + + cp -rf \ + "$srcdir"/$pkgname-$pkgver/doc/* \ + "$pkgdir"/usr/share/doc/glusterfs/ + rm -rf "$pkgdir"/var/run +} + +# vim:set ts=2 sw=2 et: diff --git a/community/glusterfs/glusterfs.install b/community/glusterfs/glusterfs.install new file mode 100644 index 000000000..38a5fcdf4 --- /dev/null +++ b/community/glusterfs/glusterfs.install @@ -0,0 +1,3 @@ +post_upgrade() { + echo "-- Read https://gluster.readthedocs.io/en/latest/Upgrade-Guide/ page!" +} diff --git a/community/glusterfs/glusterfs.sysusers b/community/glusterfs/glusterfs.sysusers new file mode 100644 index 000000000..f28333586 --- /dev/null +++ b/community/glusterfs/glusterfs.sysusers @@ -0,0 +1 @@ +u gluster - "GlusterFS daemons" /var/run/gluster -