blob: abb05f23057a8154f63d2ad548a1109dcbe6baed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_ssh/pam_ssh-1.92.ebuild,v 1.13 2008/08/10 22:47:01 ricmm Exp $
inherit pam eutils
DESCRIPTION="Uses ssh-agent to provide single sign-on"
HOMEPAGE="http://pam-ssh.sourceforge.net/"
SRC_URI="mirror://sourceforge/pam-ssh/${P}.tar.bz2"
LICENSE="BSD as-is"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86"
IUSE=""
# Doesn't work on OpenPAM.
DEPEND="sys-libs/pam
sys-devel/libtool"
RDEPEND="sys-libs/pam
virtual/ssh"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-1.91-debian.patch" #105546
epatch "${FILESDIR}/${PN}-1.91-syslog.patch" # glibc-2.4
}
src_compile() {
econf \
"--with-pam-dir=$(getpam_mod_dir)" \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
dodoc AUTHORS ChangeLog NEWS README TODO
}
pkg_postinst() {
elog "You can enable pam_ssh for system authentication by enabling"
elog "the ssh USE flag on sys-auth/pambase."
}
|