# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/pmount/pmount-0.9.17.ebuild,v 1.2 2008/02/21 13:12:23 flameeyes Exp $ inherit eutils DESCRIPTION="Policy based mounter that gives the ability to mount removable devices as a user" HOMEPAGE="http://pmount.alioth.debian.org/" SRC_URI="http://alioth.debian.org/frs/download.php/2247/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" IUSE="crypt hal" RDEPEND="hal? ( >=sys-apps/dbus-0.33 >=sys-apps/hal-0.5.2 ) >=sys-fs/sysfsutils-1.3.0 crypt? ( || ( >=sys-fs/cryptsetup-1.0.5 sys-fs/cryptsetup-luks ) )" DEPEND="${RDEPEND} >=dev-util/intltool-0.21" pkg_setup() { enewgroup plugdev } src_unpack() { unpack ${A} cd "${S}" # Fix make check wrt #202150. echo src/luks.c >> po/POTFILES.skip echo src/realpath.c >> po/POTFILES.skip } src_compile() { econf $(use_enable hal) \ --with-cryptsetup-prog=/bin/cryptsetup emake || die "emake failed" } src_install () { # this is where we mount stuff # moved to hal as of 0.5.7-r1 #keepdir /media # Must be run SETUID exeinto /usr/bin exeopts -m 4710 -g plugdev doexe src/pmount src/pumount src/pmount-hal dodoc AUTHORS ChangeLog TODO doman man/pmount.1 man/pumount.1 man/pmount-hal.1 insinto /etc doins etc/pmount.allow } pkg_postinst() { elog elog "This package has been installed setuid. The permissions are as such that" elog "only users that belong to the plugdev group are allowed to run this." elog elog "Please add your user to the plugdev group to be able to mount USB drives" }