blob: 0508c73cbd6a008456f9edb07fd187c55565a3c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit toolchain-funcs pam flag-o-matic
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() {
append-flags "-fPIC"
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
}
src_install() {
dopammod "${S}/pam_chroot.so"
dopamsecurity . chroot.conf
dodoc CREDITS TROUBLESHOOTING options
}
|