1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils pam autotools
7 DESCRIPTION="A PAM module that can mount volumes for a user session e.g. encrypted home directories"
8 HOMEPAGE="http://pam-mount.souceforge.net"
9 SRC_URI="mirror://sourceforge/pam-mount/${P}.tbz2"
14 KEYWORDS="~x86 ~amd64"
17 DEPEND=">=sys-libs/pam-0.78-r3
18 >=dev-libs/openssl-0.9.7i
21 crypt? ( sys-fs/cryptsetup-luks )
28 # Gentoo installs cryptsetup in /bin, this patches the relevant
29 # locations, in srcipts/(u)mount.crypt and adds gentoo specific
30 # comments to pam_mount.conf
31 epatch "${FILESDIR}/${PN}-gentoo-paths-and-examples.patch" || die "patch failed"
35 # fixes the sanity check failure
36 _elibtoolize --copy --force
39 --libdir=/$(get_libdir) \
40 --with-pam-dir=$(getpam_mod_dir) || die "econf failed"
41 emake || die "emake failed"
45 emake DESTDIR="${D}" install || die "install failed"
49 doins "${S}/config/pam_mount.conf"
50 dopamd "${FILESDIR}/system-auth"
53 dosym /usr/bin/mount.crypt /sbin/mount.crypt
55 dodoc README TODO AUTHORS ChangeLog FAQ NEWS
59 einfo "In order to use pam_mount you will need to configure it."
60 einfo "After the modifications in /etc/security/pam_mount.conf you "
61 einfo "can create the encrypted directory using the mkehd command."
62 einfo "Please use mkhed -h for more informations."
64 einfo "If you want to encrypt the home directories you will need a "
65 einfo "kernel with device-mapper and crypto (AES or any other chipher)"
68 einfo "This ebuild only modifies the /etc/pam.d/system-auth file to"
69 einfo "support pam_mount. If you have any programs that use pam with "
70 einfo "a configuration file that does NOT include system-auth you will "
71 einfo "need to modify this file too. Look at /etc/pam.d/system-auth or "
72 einfo "the /usr/share/doc/${PF}/README file for more informations."