void-packages/srcpkgs/pdsh/template
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

40 lines
1.2 KiB
Bash

# 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
}