From f452b03972a2f3a295e0f10b18c44b01f696648b Mon Sep 17 00:00:00 2001 From: Kyle Nusbaum Date: Wed, 11 Sep 2019 09:50:17 -0500 Subject: [PATCH] New package: pdsh-2.33 --- srcpkgs/pdsh/patches/fix_configure_ac.patch | 18 +++++++++ srcpkgs/pdsh/template | 45 +++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 srcpkgs/pdsh/patches/fix_configure_ac.patch create mode 100644 srcpkgs/pdsh/template diff --git a/srcpkgs/pdsh/patches/fix_configure_ac.patch b/srcpkgs/pdsh/patches/fix_configure_ac.patch new file mode 100644 index 00000000000..9be920cd9c6 --- /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 00000000000..e9dabded083 --- /dev/null +++ b/srcpkgs/pdsh/template @@ -0,0 +1,45 @@ +# Template file for 'pdsh' +pkgname=pdsh +version=2.33 +revision=1 +archs="x86_64 i686 aarch64 armv7l" +wrksrc=pdsh-pdsh-${version} +build_style=gnu-configure +configure_args=" + $(vopt_if with_rsh --with-rsh) + $(vopt_if with_exec --with-exec) + $(vopt_if with_ssh --with-ssh) + $(vopt_if with_mrsh --with-mrsh) + $(vopt_if with_xcpu --with-xcpu) + $(vopt_if with_netgroup --with-netgroup) + $(vopt_if with_readline --with-readline) +" +hostmakedepends="automake autoconf libtool git gettext" +makedepends=" + $(vopt_if with_mrsh munge-devel) + $(vopt_if with_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="with_rsh with_exec with_ssh with_mrsh with_xcpu with_netgroup with_readline" +build_options_default="with_rsh with_exec with_ssh with_mrsh with_readline" +desc_option_with_rsh="Include support for the rsh remote module" +desc_option_with_exec="Include support for the exec remote module" +desc_option_with_ssh="Include support for the ssh remote module" +desc_option_with_mrsh="Include support for the mrsh remote module" +desc_option_with_xcpu="Include support for the xcpu remote module" +desc_option_with_netgroup="allows pdsh to use standard netgroup entries to build lists of target hosts." +desc_option_with_readline="Include readline support" + +pre_configure() { + ./bootstrap +} + +post_install() { + rm ${DESTDIR}/usr/lib/pdsh/*.a +}