# 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 cmake-utils

DESCRIPTION="One-Time Passwords auth module for PAM"
HOMEPAGE="http://bla.thera.be/archives/29" # Maybe savannah soon
SRC_URI="http://thera.be/my_public/my_projects/otpasswd/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="virtual/pam dev-libs/gmp dev-libs/openssl dev-util/cmake"
RDEPEND="${DEPEND}"

src_configure() {
	cmake-utils_src_configure
}

src_compile() {
	cmake-utils_src_compile
}

src_install() {
	cmake-utils_src_install
	dodoc 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   otpasswd-login"
	einfo "For a more complete description of possible configurations,"
	einfo "see the README file."
}
