# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_chroot/pam_chroot-0.9.2.ebuild,v 1.2 2008/03/21 14:34:13 maekke Exp $ inherit pam DESCRIPTION="One-time password auth module for PAM (Perfect Paper Passwords)" HOMEPAGE="http://code.google.com/p/ppp-pam/" SRC_URI="http://thera.be/my_public/my_projects/ppp-pam/${P}.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="virtual/pam sys-apps/util-linux" RDEPEND="${DEPEND}" src_compile() { econf # -j1 issue sent upstream. # http://code.google.com/p/ppp-pam/issues/detail?id=25 emake -j1 || die "make failed" } src_install() { dopamd examples/otp-login || die "unable to install pam.d/otp-login" dopammod pam_ppp.so || die "unable to install pam module" dobin pppauth || die "unable to install pppauth binary" dodoc AUTHORS README || die "unable to install docs" } pkg_postinst() { einfo "To use ppp-pam for SSH authentication you might want to" einfo "update /etc/pamd.d/sshd so that the following line:" einfo "auth include system-remote-login" einfo "is replaced with:" einfo "auth include otp-login" einfo "For a more complete description of possible configurations," einfo "see the README file." }