# Template file for 'pdsh'
pkgname=pdsh
version=2.34
revision=1
archs="~*-musl"
wrksrc="pdsh-pdsh-${version}"
build_style=gnu-configure
configure_args="
 --disable-static-modules
 $(vopt_with rsh)
 $(vopt_with exec)
 $(vopt_with ssh)
 $(vopt_with mrsh)
 $(vopt_with xcpu)
 $(vopt_with netgroup)
 $(vopt_with readline)
"
hostmakedepends="automake autoconf libtool"
makedepends="
 $(vopt_if mrsh munge-devel)
 $(vopt_if readline readline-devel)
"
short_desc="High performance, parallel remote shell utility"
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/chaos/pdsh"
distfiles="https://github.com/chaos/pdsh/archive/pdsh-${version}.tar.gz"
checksum=36e1b3c734ae9b4baf054c656b9735206cc56b290d2c0ec4f7825cdd9f7dff54

build_options="rsh exec ssh mrsh xcpu netgroup readline"
build_options_default="rsh exec ssh mrsh readline"
desc_option_rsh="Include support for the rsh remote module"
desc_option_exec="Include support for the exec remote module"
desc_option_mrsh="Include support for the mrsh remote module"
desc_option_xcpu="Include support for the xcpu remote module"
desc_option_netgroup="allows pdsh to use standard netgroup entries to build lists of target hosts."

pre_configure() {
	./bootstrap
}
