void-packages/srcpkgs/pam_ssh/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

26 lines
780 B
Bash

# Template file for 'pam_ssh'
pkgname=pam_ssh
version=2.3
revision=3
build_style=gnu-configure
configure_args="--with-pam-dir=/usr/lib/security ac_cv_openssldir=/usr
--includedir=${XBPS_CROSS_BASE}/usr/include
--libdir=${XBPS_CROSS_BASE}/usr/lib"
hostmakedepends="openssh"
makedepends="openssl-devel pam-devel"
short_desc="PAM module providing single sign-on behavior for SSH"
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
license="BSD-2-Clause"
homepage="http://pam-ssh.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/pam-ssh/${pkgname}-${version}.tar.xz"
checksum=0c456f6a5c9e47ce6825ac50d467e7a797e14239b2b9a72bfeb2df0100f4af31
CFLAGS="-fcommon"
if [ "${XBPS_TARGET_LIBC}" = "musl" ]; then
makedepends+=" musl-legacy-compat"
fi
post_install() {
vlicense COPYING
}