# $Id$ PNAME="pmount" PVER="0.9.13" PBUILD="r10" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="pmount allows normal users to mount devices without any entries in /etc/fstab." HOMEPAGE="http://www.piware.de/projects.shtml" DEPEND=">= sys-fs/sysfsutils-2.0 >= sys-apps/dbus-1.2 >= sys-apps/hal-0.5.11" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://www.piware.de/projects/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-dbus-close.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 } 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 }