diff --git a/srcpkgs/pdsh/patches/fix_configure_ac.patch b/srcpkgs/pdsh/patches/fix_configure_ac.patch new file mode 100644 index 0000000000..9be920cd9c --- /dev/null +++ b/srcpkgs/pdsh/patches/fix_configure_ac.patch @@ -0,0 +1,18 @@ +configure.ac relies on git, which doesn't work for release tarball. +See: https://github.com/chaos/pdsh/issues/116 +--- configure.ac 2017-06-28 19:28:26.000000000 -0500 ++++ configure.ac 2019-09-11 08:41:27.613006239 -0500 +@@ -4,12 +4,11 @@ + # Copyright (C) 2000-2002 Regents of the University of California + # See ./DISCLAIMER + # + # This file is to be processed with autoconf to generate a configure script. + +-AC_INIT([pdsh], +- m4_esyscmd([git describe --always | awk '/.*/ {sub(/^pdsh-/, ""); printf "%s",$1; exit}'])) ++AC_INIT([pdsh], 2) + + AC_CONFIG_SRCDIR([pdsh]) + AC_CONFIG_AUX_DIR([config]) + AC_CONFIG_MACRO_DIR([config]) + AC_CONFIG_SRCDIR([src/pdsh/dsh.h]) diff --git a/srcpkgs/pdsh/template b/srcpkgs/pdsh/template new file mode 100644 index 0000000000..ad136987bd --- /dev/null +++ b/srcpkgs/pdsh/template @@ -0,0 +1,40 @@ +# Template file for 'pdsh' +pkgname=pdsh +version=2.33 +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 " +license="GPL-2.0-or-later" +homepage="https://github.com/chaos/pdsh" +distfiles="https://github.com/chaos/pdsh/archive/pdsh-${version}.tar.gz" +checksum=c026ccf06e4f1c6c52414282a865e45362405aa09f7d09fa86aaec98f6413554 + +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 +}