# $Id$ PNAME="udisks" PVER="1.0.5" PBUILD="r1" PCAT="sys-fs" DESCRIPTION="Daemon providing interfaces to work with storage devices." HOMEPAGE="http://www.freedesktop.org/wiki/Software/udisks" DEPEND=">= dev-libs/glib2-2.40 >= sys-apps/dbus-1.8 >= dev-libs/dbus-glib-0.102 >= sys-fs/udev-211 >= sys-apps/polkit-0.112 >= sys-fs/parted-3.1 >= sys-fs/lvm2-2.02.85 >= dev-libs/libatasmart-0.18 >= sys-apps/sg3-utils-1.36 >= virtual/eject >= net-dns/avahi-0.6.31" SDEPEND=">= dev-util/pkgconfig-0.25 >= dev-util/intltool-0.50 >= dev-libs/libxslt-1.1.26 >= app-text/docbook-xsl-stylesheets-1.76" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( http://hal.freedesktop.org/releases/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-1.0.3-ntfs3g.patch mirror://${PNAME}/${PNAME}-1.0.3-tmp.patch ) UP2TARBALL="${PNAME}" UP2DATE="updatecmd_freedesktop hal gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # support ntfs-3g mpatch ${PNAME}-1.0.3-ntfs3g.patch || die # don't use /var/run/udisks but /tmp mpatch ${PNAME}-1.0.3-tmp.patch || die # fix install locations for usr-move # use configure not configure.ac as we need gtkdoc-utils for regen sed -i -e 's:slashlibdir=/lib:slashlibdir=/usr/lib:g' \ -e 's:slashsbindir=/sbin:slashsbindir=/usr/sbin:g' configure || die } src_compile() { cd ${SRCDIR} mconfigure \ --libexecdir=/usr/$(mlibdir)/${PNAME} \ --localstatedir=/var \ --disable-static \ --disable-verbose-mode \ --disable-gtk-doc \ --enable-nls \ --enable-man-pages \ --enable-remote-access \ || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die mkeepdir /media || die # remove /var/run using /tmp if [[ -d ${BINDIR}/var/run ]] then rm -r ${BINDIR}/var/run || die fi minstalldocs COPYING ChangeLog NEWS README TODO || die } preinstall() { # adds plugdev group ${MLIBDIR}/mgroupadd -o "-g 302" plugdev }