# $Id$ PNAME="xf86-input-vmmouse" PVER="12.7.0" PBUILD="r2" PCATEGORIE="x11-drivers" DESCRIPTION="Xorg input driver for ${PNAME/xf86-input-/} devices." HOMEPAGE="http://xorg.freedesktop.org" # the driver itself MCORE_ONLY_KEEP="usr/$(mlibdir)/xorg/modules/input/vmmouse_drv.so" # xorg config MCORE_ONLY_KEEP+=" etc/X11/xorg.conf.d" # udev rules (*/lib/udev* also on multilib systems!!) MCORE_ONLY_KEEP+=" lib/udev/rules.d" # vmmouse detection tool used by udev MCORE_ONLY_KEEP+=" usr/bin/vmmouse_detect" sminclude xorg mtools mcore-split UP2DATE="updatecmd_xorg ${PNAME}" src_compile() { cd ${SRCDIR} # use /lib for udev dir on multilib systems too! xorg_src_configure \ --with-udev-rules-dir=/lib/udev/rules.d \ --with-hal-callouts-dir=/usr/bin \ || die mmake || die } mcore_generic_src_install() { cd ${SRCDIR} xorg_src_install || die # install xorg.conf.d for udev vmmouse driver minstalldir /etc/X11/xorg.conf.d || die minstallfile tools/50-vmmouse.conf /etc/X11/xorg.conf.d || die } # reload udev to get the provided udev rules recognized postinstall() { if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]] then udevadm control --reload-rules fi } postremove() { if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]] then udevadm control --reload-rules fi }