# Template file for 'moosefs'
pkgname=moosefs
version=4.59.2
revision=1
build_style=gnu-configure
configure_args="--localstatedir=/var/lib --with-default-user=_mfs
 --with-default-group=_mfs"
hostmakedepends="automake libtool pkg-config python3"
makedepends="zlib-devel libpcap-devel fuse-devel"
short_desc="Fault tolerant, network distributed file system"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://moosefs.com/"
distfiles="https://github.com/moosefs/moosefs/archive/refs/tags/v${version}.tar.gz"
checksum=12edd2fea891f59408fb2298c8e496738151f747cb38948402efee00a7c86fea
python_version=3
system_accounts="_mfs"

pre_configure() {
	sed -i 's,AC_RUN_IFELSE,AC_LINK_IFELSE,g' configure.ac
	autoreconf -fi
}

post_install() {
	mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
	for f in chunkserver master metalogger gui; do
		vsv mfs${f}
	done
}
