1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit pam eutils flag-o-matic readme.gentoo
9 DESCRIPTION="Uses ssh-agent to provide single sign-on"
10 HOMEPAGE="http://pam-ssh.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/pam-ssh/${P}.tar.xz"
13 LICENSE="BSD-2 BSD ISC"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
18 # Only supports OpenSSH via `ssh-agent` #282993
25 You can enable pam_ssh for system authentication by enabling
26 the pam_ssh USE flag on sys-auth/pambase.
30 epatch "${FILESDIR}"/${P}-dot-ssh-check.patch #503424#c5
34 # hide all the otherwise-exported symbols that may clash with
35 # other software loading the PAM modules (see bug #274924 as an
37 append-ldflags -Wl,--version-script="${FILESDIR}"/pam_symbols.ver
39 # Set the cache var so the configure script doesn't go probing hardcoded
40 # file system paths and picking up the wrong thing.
41 export ac_cv_openssldir=''
43 # Avoid cross-compiling funkiness and requiring openssh at build time.
44 export PATH_SSH_AGENT="${EPREFIX}/usr/bin/ssh-agent"
47 "--with-pam-dir=$(getpam_mod_dir)"
52 prune_libtool_files --modules
53 readme.gentoo_create_doc
57 if has_version "<${CATEGORY}/${PN}-2.0" ; then #554150
58 ewarn "Upstream pam_ssh has changed where ssh keys live. Only keys in your"
59 ewarn "~/.ssh/login-keys.d/ will be accepted for authentication."