1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils pam autotools
9 DESCRIPTION="A PAM module that can mount volumes for a user session e.g. encrypted home directories"
10 HOMEPAGE="http://pam-mount.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/pam-mount/${P}.tar.bz2"
15 KEYWORDS="~amd64 ~x86"
18 DEPEND=">=sys-libs/pam-0.78-r3
19 >=dev-libs/openssl-0.9.7i
22 crypt? ( sys-fs/cryptsetup-luks )
29 # Gentoo installs cryptsetup in /bin, this patches the relevant
30 # locations, in scripts/(u)mount.crypt and adds gentoo specific
31 # comments to pam_mount.conf
32 epatch "${FILESDIR}/${PN}-gentoo-paths-and-examples.patch"
39 --with-slibdir=/$(get_libdir) || die "econf failed"
40 emake || die "emake failed"
44 emake DESTDIR="${D}" install || die "install failed"
48 doins "${S}/config/pam_mount.conf"
49 dopamd "${FILESDIR}/system-auth"
51 dodoc README TODO AUTHORS ChangeLog FAQ NEWS
55 elog "In order to use pam_mount you will need to configure it."
56 elog "After the modifications in /etc/security/pam_mount.conf you "
57 elog "can create the encrypted directory using the mkehd command."
58 elog "Please use mkhed -h for more informations."
60 elog "If you want to encrypt the home directories you will need a "
61 elog "kernel with device-mapper and crypto (AES or any other chipher)"
64 elog "This ebuild only modifies the /etc/pam.d/system-auth file to"
65 elog "support pam_mount. If you have any programs that use pam with "
66 elog "a configuration file that does NOT include system-auth you will "
67 elog "need to modify this file too. Look at /etc/pam.d/system-auth or "
68 elog "the /usr/share/doc/${PF}/README file for more informations."