1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils pam autotools
8 DESCRIPTION="pam interface to existing S/Key library/interface"
9 HOMEPAGE="http://freshmeat.net/projects/pam_skey/"
10 SRC_URI="http://kreator.esa.fer.hr/projects/tarballs/${P}.tar.gz
11 http://gentooexperimental.org/~genstef/dist/${P}-gentoo.patch.bz2"
18 DEPEND=">=sys-libs/pam-0.78-r3
19 >=app-admin/skey-1.1.5-r4"
27 epatch "${WORKDIR}/${P}-gentoo.patch"
31 econf --libdir="/$(get_libdir)" || die "econf failed"
32 emake || die "emake failed"
36 emake DESTDIR="${D}" install || die "install failed"
41 elog "To use this, you need to add something like"
43 elog "auth [success=done ignore=ignore auth_err=die default=bad] pam_skey.so"
44 elog "auth sufficient pam_unix.so likeauth nullok try_first_pass"
46 elog "to appropriate place in /etc/pam.d/system-auth"
47 elog "Consult the documentation for instructions."