# $Id$ PNAME="pmount" PVER="0.9.20" PBUILD="r1" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="pmount allows normal users to mount devices without any entries in /etc/fstab." HOMEPAGE="http://pmount.alioth.debian.org/" DEPEND=">= sys-apps/util-linux-2.16 >= sys-apps/dbus-1.3 >= sys-apps/hal-0.5.13" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( https://alioth.debian.org/frs/download.php/3127/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-dbus-close.patch mirror://${PNAME}/${PNAME}-${PVER}-ext4.patch ) UP2DATE="updatecmd http://www.piware.de/projects/ | grep ${PNAME}- | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # do not close a shared connection, fixes crashes with dbus 1.0 mpatch ${PNAME}-${PVER}-dbus-close.patch || die # support for ext4 mpatch ${PNAME}-${PVER}-ext4.patch || die } src_compile() { cd ${SRCDIR} mconfigure --enable-hal || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # fix permissions chgrp plugdev ${BINDIR}/usr/bin/{pmount,pumount,pmount-hal} || die chmod 4710 ${BINDIR}/usr/bin/{pmount,pumount,pmount-hal} || die minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die } preinstall() { # adds plugdev group ${MLIBDIR}/mgroupadd -o "-g 302" plugdev } postinstall() { # needed by pmount [ ! -d ${MROOT}/media ] && install -o root -g root -d ${MROOT}/media }