1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="pam module for simple one time password authentication"
8 HOMEPAGE="http://www.cavecanen.org/cs/projects/pam_sotp/"
9 SRC_URI="http://www.cavecanen.org/cs/projects/pam_sotp/dl/${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
16 DEPEND=">=sys-libs/pam-0.78-r3"
25 use urandom && myconf="--with-randomdev=/dev/urandom"
26 econf --libdir="/$(get_libdir)" $(use_enable debug) ${myconf} || die "econf failed"
27 emake || die "emake failed"
31 dopamd etc/pam.d/otppasswd
32 dopammod src/pam/${PN}.so
33 diropts -m0770 -o root -g shadow
36 dobin src/utils/otppasswd
37 fowners root:shadow /usr/bin/otppasswd
38 fperms 2755 /usr/bin/otppasswd
40 dodoc AUTHORS ChangeLog NEWS README
41 dohtml doc/manual/html/*