* runit 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
```
24 lines
702 B
Bash
24 lines
702 B
Bash
# Template file for 'rpcbind'
|
|
pkgname=rpcbind
|
|
version=1.2.6
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-warmstarts --with-statedir=/run --with-rpcuser=rpc
|
|
--with-systemdsystemunitdir=no"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libtirpc-devel"
|
|
short_desc="Converts RPC program numbers into universal addresses"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://rpcbind.sourceforge.net"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
|
|
checksum=5613746489cae5ae23a443bb85c05a11741a5f12c8f55d2bb5e83b9defeee8de
|
|
system_accounts="rpc"
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
vsv rpcbind
|
|
vman man/rpcbind.8
|
|
vman man/rpcinfo.8
|
|
}
|