# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs pam DESCRIPTION="Linux-PAM module that allows a user to be chrooted in auth, account, or session." HOMEPAGE="http://sourceforge.net/projects/pam-chroot" SRC_URI="mirror://sourceforge/pam-chroot/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/pam" RDEPEND="${DEPEND}" src_compile() { emake CC="$(tc-getCC)" CFLAGS="-fPIC ${CFLAGS}" || die "emake failed" } src_install() { dopammod "${S}/pam_chroot.so" dopamsecurity . chroot.conf dodoc CREDITS LICENSE TROUBLESHOOTING options || die "dodoc failed" }