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

29 lines
909 B
Bash

# Template file for 'pam_ssh_agent_auth'
pkgname=pam_ssh_agent_auth
version=0.10.3
revision=3
build_style=gnu-configure
configure_args="--without-openssl-header-check"
hostmakedepends="perl"
makedepends="openssl-devel pam-devel"
short_desc="PAM module providing authentication through a ssh agent"
maintainer="Iskander Zemmouri <iskander.zemmouri@mailbox.org>"
license="MIT"
homepage="http://pamsshagentauth.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/pamsshagentauth/${pkgname}-${version}.tar.bz2"
checksum=3c53d358d6eaed1b211239df017c27c6f9970995d14102ae67bae16d4f47a763
post_extract() {
vsed -e '/^AR=/d' -i Makefile.in -i openbsd-compat/Makefile.in
vsed -e 's/^LD=.*/LD=$(CC)/' -i Makefile.in
}
do_install() {
vman pam_ssh_agent_auth.8
vmkdir /usr/lib/security
vcopy pam_ssh_agent_auth.so /usr/lib/security
}
post_install() {
sed -n '1,28p' pam_ssh_agent_auth.c > LICENSE
vlicense LICENSE
}