# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 inherit eutils pam DESCRIPTION="A PAM module that can mount volumes for a user session e.g. encrypted home directories" HOMEPAGE="http://pam-mount.souceforge.net" #go get the source from sourceforge! SRC_URI="mirror://sourceforge/pam-mount/${P}.tbz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64" IUSE="crypt" DEPEND=">=sys-libs/pam-0.72 >=openssl-0.9.7c-r2 >=glib-2.0.0" RDEPEND="$DEPEND crypt? ( >=sys-fs/cryptsetup-luks )" src_unpack() { unpack ${A} cd ${S} # Gentoo installs cryptsetup in /bin, this patches the relevant # locations, in srcipts/(u)mount.crypt and adds gentoo specific # comments to pam_mount.conf epatch ${FILESDIR}/pam_mount-gentoo-paths-and-examples.patch } src_compile() { econf \ --libdir=/lib \ "--with-pam-dir=$(getpam_mod_dir)" || die "econf failed" emake || die "make failed" } src_install() { einstall || die "make install failed" insinto /etc/security insopts -m0644 doins ${S}/config/pam_mount.conf #insinto /etc/pam.d #doins ${FILESDIR}/login ${FILESDIR}/kde dodir /sbin dosym /usr/bin/mount.crypt /sbin/mount.crypt dodoc README TODO AUTHORS ChangeLog FAQ INSTALL NEWS ${FILESDIR}/login ${FILESDIR}/kde }