# Template file for 'pam_ssh'
pkgname=pam_ssh
version=2.3
revision=4
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
}
