Makefile.am | 3 ++ configure.ac | 38 ++++++++++++++++++++++++-- man/.gitignore | 3 -- man/Makefile.am | 14 +++++---- man/vmmouse_detect.1 | 58 ----------------------------------------- man/vmmouse_detect.man | 58 +++++++++++++++++++++++++++++++++++++++++ shared/Makefile.am | 2 - src/vmmouse.c | 11 ++----- tools/50-vmmouse.conf | 7 ++++ tools/69-xorg-vmmouse.rules.in | 1 tools/Makefile.am | 24 +++++++++++++++- tools/hal-probe-vmmouse.in | 1 12 files changed, 139 insertions(+), 81 deletions(-)
New commits: commit 01f03ca8fbca96957d6c2718f4279e31cb406c2f Author: Peter Hutterer <[email protected]> Date: Fri Apr 9 08:30:26 2010 +1000 Bump for 12.6.9 release. Signed-off-by: Peter Hutterer <[email protected]> diff --git a/configure.ac b/configure.ac index 8bd1926..472c705 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,7 @@ AC_PREREQ(2.57) AC_INIT([xf86-input-vmmouse], - 12.6.8, + 12.6.9, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xf86-input-vmmouse) commit 7b2ff5322b298ed8458c7442a16b8c0a14bcc5dc Author: Peter Hutterer <[email protected]> Date: Fri Apr 9 07:57:17 2010 +1000 man: move vmmouse_detect back to section 1 Was moved to section 4 in commit 36c2cd8ec6d3bf7191a98a04a876e8d7b6f64d5d, "man: build vmmouse_detect man page". Signed-off-by: Peter Hutterer <[email protected]> Reviewed-by: Alan Coopersmith <[email protected]> diff --git a/man/Makefile.am b/man/Makefile.am index 142eb1d..d59d374 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -23,13 +23,17 @@ drivermandir = $(DRIVER_MAN_DIR) -driverman_PRE = @[email protected] @driver_n...@_detect.man +driverman_PRE = @[email protected] driverman_DATA = $(driverman_PRE:m...@driver_man_suffix@) -EXTRA_DIST = @[email protected] @driver_n...@_detect.man +appmandir = $(APP_MAN_DIR) +appman_PRE = @driver_n...@_detect.man +appman_DATA = $(appman_PRE:m...@app_man_suffix@) -CLEANFILES = $(driverman_DATA) +EXTRA_DIST = @[email protected] $(appman_PRE) + +CLEANFILES = $(driverman_DATA) $(appman_DATA) # Strings to replace in man pages XORGRELSTRING = @PACKAGE_STRING@ @@ -51,3 +55,5 @@ SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man .man.$(DRIVER_MAN_SUFFIX): $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ +.man.$(APP_MAN_SUFFIX): + $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ diff --git a/man/vmmouse_detect.man b/man/vmmouse_detect.man index a7b884e..53cc36d 100644 --- a/man/vmmouse_detect.man +++ b/man/vmmouse_detect.man @@ -18,7 +18,7 @@ .\" .\" That's right, although mdetect itself is under the QPL, this manpage is .\" under the GPL. Enjoy! -.TH vmmouse_detect __drivermansuffix__ __vendorversion__ +.TH vmmouse_detect __appmansuffix__ __vendorversion__ .SH NAME vmmouse_detect \- VMware mouse device autodetection tool .SH SYNOPSIS commit 21f53010d204c681e1a82b176841c2d4af8f61d8 Author: Michel Dänzer <[email protected]> Date: Thu Apr 8 16:18:07 2010 +0200 Bump for 12.6.8 release. diff --git a/configure.ac b/configure.ac index 7623b98..8bd1926 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,7 @@ AC_PREREQ(2.57) AC_INIT([xf86-input-vmmouse], - 12.6.7, + 12.6.8, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xf86-input-vmmouse) commit 80f671233e583ae085986bce12057fc45da444aa Author: Michel Dänzer <[email protected]> Date: Thu Apr 1 18:35:38 2010 +0200 Add InputClass support. The InputClass can match the tag "vmmouse". A sample xorg.conf.d snippet is provided to try and make sure the driver will be loaded automatically in a compatible VM also if the X server uses udev instead of HAL. The configure script tries to determine if and where it makes sense to install the udev rule and xorg.conf.d snippet but allows overriding both. Thanks to Timo Aaltonen for the udev rules file and Dan Nicholson and Simon Thum for review and suggestions for improvement. diff --git a/Makefile.am b/Makefile.am index daf09d4..f1ad5af 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,6 +18,9 @@ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# Ensure xorg.conf.d snippets are installed below $(prefix) for distcheck +DISTCHECK_CONFIGURE_FLAGS = --with-xorg-conf-dir='$${datadir}/X11/xorg.conf.d' + SUBDIRS = shared src tools fdi man MAINTAINERCLEANFILES = ChangeLog INSTALL .PHONY: ChangeLog INSTALL diff --git a/configure.ac b/configure.ac index e39fcbb..7623b98 100644 --- a/configure.ac +++ b/configure.ac @@ -59,6 +59,14 @@ AC_ARG_WITH(xorg-module-dir, inputdir=${moduledir}/input AC_SUBST(inputdir) +AC_ARG_WITH(xorg-conf-dir, + AC_HELP_STRING([--with-xorg-conf-dir=DIR], + [Default xorg.conf.d directory [[default=from $PKG_CONFIG xorg-server]]]), + [XORG_CONF_DIR="$withval"], + [XORG_CONF_DIR="`$PKG_CONFIG --variable=sysconfigdir xorg-server`"]) +AC_SUBST(XORG_CONF_DIR) +AM_CONDITIONAL(HAS_XORG_CONF_DIR, [test "x$XORG_CONF_DIR" != "x" && test "x$XORG_CONF_DIR" != "xno"]) + AC_ARG_WITH(hal-bin-dir, AC_HELP_STRING([--with-hal-bin-dir=DIR], [Directory where HAL binaries where installed [[default=$bindir]]]), @@ -85,6 +93,29 @@ AC_ARG_WITH(hal-fdi-dir, HAL_FDI_DIR=${halfdidir} AC_SUBST(HAL_FDI_DIR) +case $host_os in + linux*) + if test "x$prefix" = "xNONE" -o "x$prefix" = "x/usr" -o "x$prefix" = "x/usr/local" ; then + slashlibdir=/lib + else + slashlibdir=$prefix/lib + fi + UDEV_RULES_DIR=$slashlibdir/udev/rules.d + ;; + *) + UDEV_RULES_DIR=no + ;; +esac + +AC_ARG_WITH(udev-rules-dir, + AC_HELP_STRING([--with-udev-rules-dir=DIR], + [Default udev rules.d directory + [[default=($prefix)/lib/udev/rules.d on Linux, none otherwise]]]), + [UDEV_RULES_DIR="$withval"], + []) +AC_SUBST(UDEV_RULES_DIR) +AM_CONDITIONAL(HAS_UDEV_RULES_DIR, [test "x$UDEV_RULES_DIR" != "xno"]) + # Checks for extensions XORG_DRIVER_CHECK_EXT(RANDR, randrproto) XORG_DRIVER_CHECK_EXT(XINPUT, inputproto) diff --git a/tools/50-vmmouse.conf b/tools/50-vmmouse.conf new file mode 100644 index 0000000..35c438e --- /dev/null +++ b/tools/50-vmmouse.conf @@ -0,0 +1,7 @@ +Section "InputClass" + Identifier "vmmouse" + MatchIsPointer "on" + MatchTag "vmmouse" + Driver "vmmouse" +EndSection + diff --git a/tools/69-xorg-vmmouse.rules.in b/tools/69-xorg-vmmouse.rules.in new file mode 100644 index 0000000..0d7f028 --- /dev/null +++ b/tools/69-xorg-vmmouse.rules.in @@ -0,0 +1 @@ +ACTION=="add|change", ENV{ID_INPUT_MOUSE}=="?*", ATTRS{description}=="i8042 AUX port", PROGRAM="__BIN_PREFIX__/vmmouse_detect", ENV{ID_INPUT.tags}="vmmouse" diff --git a/tools/Makefile.am b/tools/Makefile.am index f5b8902..8c40369 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -36,3 +36,23 @@ hal-probe-vmmouse: hal-probe-vmmouse.in EXTRA_DIST = hal-probe-vmmouse.in CLEANFILES = hal-probe-vmmouse + +if HAS_XORG_CONF_DIR + +confdir=$(XORG_CONF_DIR) +dist_conf_DATA = 50-vmmouse.conf + +endif + +if HAS_UDEV_RULES_DIR + +udevdir=$(UDEV_RULES_DIR) +udev_DATA = 69-xorg-vmmouse.rules + +$(udev_DATA): $(udev_DATA).in + sed -e 's|__BIN_PREFIX__|$(bindir)|g' < $< > $@ + +EXTRA_DIST += $(udev_DATA).in +CLEANFILES += $(udev_DATA) + +endif # HAS_UDEV_RULES_DIR diff --git a/tools/hal-probe-vmmouse.in b/tools/hal-probe-vmmouse.in index 1f75e25..42c9da3 100755 --- a/tools/hal-probe-vmmouse.in +++ b/tools/hal-probe-vmmouse.in @@ -26,5 +26,6 @@ __BIN_PREFIX__/vmmouse_detect if [ $? -eq 0 ]; then __HAL_BIN_PREFIX__/hal-set-property --direct --udi "$UDI" --key input.x11_driver --string "vmmouse" + __HAL_BIN_PREFIX__/hal-set-property --direct --udi "$UDI" --key input.tags --string "vmmouse" fi commit b9c3bc94ee86a72216e9738aaecede80cc1c043c Author: Michel Dänzer <[email protected]> Date: Thu Apr 8 16:09:51 2010 +0200 Improve make rule for hal-probe-vmmouse. Make sure changes to hal-probe-vmmouse.in get picked up automatically and simplify the way it's passed to sed. Thanks to Dan Nicholson for the suggestion. diff --git a/tools/Makefile.am b/tools/Makefile.am index c00d65d..f5b8902 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -28,10 +28,10 @@ INCLUDES = -I$(top_srcdir)/shared calloutsdir=$(HAL_CALLOUTS_DIR) callouts_SCRIPTS = hal-probe-vmmouse -hal-probe-vmmouse: +hal-probe-vmmouse: hal-probe-vmmouse.in sed -e 's|__BIN_PREFIX__|$(bindir)|g' \ -e 's|__HAL_BIN_PREFIX__|$(HAL_BIN_DIR)|g' \ - < $(srcdir)/[email protected] > $@ + < $< > $@ EXTRA_DIST = hal-probe-vmmouse.in commit 36c2cd8ec6d3bf7191a98a04a876e8d7b6f64d5d Author: Gaetan Nadon <[email protected]> Date: Fri Mar 26 20:44:23 2010 -0400 man: build vmmouse_detect man page The generated file was checked-in and was wrong. The file suffix is now computed based on the platform The macro substitution has been restored Reviewed-by: Dan Nicholson <[email protected]> Signed-off-by: Gaetan Nadon <[email protected]> diff --git a/configure.ac b/configure.ac index 6fc3b6a..e39fcbb 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,7 @@ AM_CONFIG_HEADER([config.h]) AC_DISABLE_STATIC AC_PROG_LIBTOOL AC_PROG_CC +AC_PROG_SED AH_TOP([#include "xorg-server.h"]) diff --git a/man/.gitignore b/man/.gitignore deleted file mode 100644 index f2c0616..0000000 --- a/man/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Add & Override for this directory and it's subdirectories -# Override default pattern *.[0-9] from top level .gitignore -!vmmouse_detect.1 diff --git a/man/Makefile.am b/man/Makefile.am index 2671512..142eb1d 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -21,20 +21,16 @@ # DEALINGS IN THE SOFTWARE. # -man_MANS = @driver_n...@_detect.1 - drivermandir = $(DRIVER_MAN_DIR) -driverman_PRE = @[email protected] +driverman_PRE = @[email protected] @driver_n...@_detect.man driverman_DATA = $(driverman_PRE:m...@driver_man_suffix@) -EXTRA_DIST = @[email protected] @driver_n...@_detect.1 +EXTRA_DIST = @[email protected] @driver_n...@_detect.man CLEANFILES = $(driverman_DATA) -SED = sed - # Strings to replace in man pages XORGRELSTRING = @PACKAGE_STRING@ XORGMANNAME = X Version 11 @@ -54,4 +50,4 @@ MAN_SUBSTS = \ SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man .man.$(DRIVER_MAN_SUFFIX): - sed $(MAN_SUBSTS) < $< > $@ + $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ diff --git a/man/vmmouse_detect.1 b/man/vmmouse_detect.1 deleted file mode 100644 index ca1ec71..0000000 --- a/man/vmmouse_detect.1 +++ /dev/null @@ -1,58 +0,0 @@ -.\" This manpage is copyright (C) 2007 Canonical, Ltd -.\" Author: Bryce Harrington <[email protected]> -.\" -.\" This is free software; you may redistribute it and/or modify -.\" it under the terms of the GNU General Public License as -.\" published by the Free Software Foundation; either version 2, -.\" or (at your option) any later version. -.\" -.\" This is distributed in the hope that it will be useful, but -.\" WITHOUT ANY WARRANTY; without even the implied warranty of -.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -.\" GNU General Public License for more details. -.\" -.\" You should have received a copy of the GNU General Public License -.\" along with the Debian GNU/Linux system; if not, write to the Free -.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA -.\" 02111-1307 USA -.\" -.\" That's right, although mdetect itself is under the QPL, this manpage is -.\" under the GPL. Enjoy! -.TH vmmouse_detect 1 "2007-07-19" "Debian GNU/Linux" -.SH NAME -vmmouse_detect \- VMware mouse device autodetection tool -.SH SYNOPSIS -vmmouse_detect -.SH OPTIONS -vmmouse_detect has no options -.SH DESCRIPTION -.B vmmouse_detect -is a tool for detecting if running in a VMware environment where vmmouse -is used. It exits with a 0 return value if the vmmouse client is -enabled, and 1 if not. -.SH DIAGNOSTICS -.BR vmmouse_detect 's -exit status is used to communicate information. -.IP 0 -.B vmmouse_detect -found a mouse and exited normally. -.IP 1 -Either the vmmouse client was not enabled, or it is not being run from -within a VMware virtual machine. -.SH BUGS -Please report bugs in -.B vmmouse_detect -<https://bugs.launchpad.net/ubuntu/+source/mdetect/vmmouse_detect>. -.SH AUTHORS -.B vmmouse_detect -is copyright 2007 VMware, Inc. -.SH LICENSING -The -.B vmmouse_detect -source code is licensed under a BSD-like license. See COPYING for -details. -.PP -This manual page is licensed under the GNU General Public License. -.SH SEE ALSO -.IR mdetect (1), -.IR XFree86 (1) diff --git a/man/vmmouse_detect.man b/man/vmmouse_detect.man new file mode 100644 index 0000000..a7b884e --- /dev/null +++ b/man/vmmouse_detect.man @@ -0,0 +1,58 @@ +.\" This manpage is copyright (C) 2007 Canonical, Ltd +.\" Author: Bryce Harrington <[email protected]> +.\" +.\" This is free software; you may redistribute it and/or modify +.\" it under the terms of the GNU General Public License as +.\" published by the Free Software Foundation; either version 2, +.\" or (at your option) any later version. +.\" +.\" This is distributed in the hope that it will be useful, but +.\" WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with the Debian GNU/Linux system; if not, write to the Free +.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +.\" 02111-1307 USA +.\" +.\" That's right, although mdetect itself is under the QPL, this manpage is +.\" under the GPL. Enjoy! +.TH vmmouse_detect __drivermansuffix__ __vendorversion__ +.SH NAME +vmmouse_detect \- VMware mouse device autodetection tool +.SH SYNOPSIS +vmmouse_detect +.SH OPTIONS +vmmouse_detect has no options +.SH DESCRIPTION +.B vmmouse_detect +is a tool for detecting if running in a VMware environment where vmmouse +is used. It exits with a 0 return value if the vmmouse client is +enabled, and 1 if not. +.SH DIAGNOSTICS +.BR vmmouse_detect 's +exit status is used to communicate information. +.IP 0 +.B vmmouse_detect +found a mouse and exited normally. +.IP 1 +Either the vmmouse client was not enabled, or it is not being run from +within a VMware virtual machine. +.SH BUGS +Please report bugs in +.B vmmouse_detect +<https://bugs.launchpad.net/ubuntu/+source/mdetect/vmmouse_detect>. +.SH AUTHORS +.B vmmouse_detect +is copyright 2007 VMware, Inc. +.SH LICENSING +The +.B vmmouse_detect +source code is licensed under a BSD-like license. See COPYING for +details. +.PP +This manual page is licensed under the GNU General Public License. +.SH SEE ALSO +.IR mdetect (1), +.IR XFree86 (1) commit 27813c665b0eed0b3d8b4db5fcb555f20fe60c4a Author: Gaetan Nadon <[email protected]> Date: Sat Mar 20 13:21:12 2010 -0400 make: remove unrequired INCLUDES = -I$(srcdir) Already covered by DEFAULT_INCLUDES Signed-off-by: Gaetan Nadon <[email protected]> Reviewed-by: Dan Nicholson <[email protected]> Signed-off-by: Peter Hutterer <[email protected]> diff --git a/shared/Makefile.am b/shared/Makefile.am index feedffa..33c5862 100644 --- a/shared/Makefile.am +++ b/shared/Makefile.am @@ -18,8 +18,6 @@ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -INCLUDES = -I$(srcdir) - noinst_LTLIBRARIES = l...@[email protected] l...@driver_name@_la_SOURCES = @driver_n...@_defs.h \ @driver_n...@_client.c @driver_n...@_client.h \ commit 40ba06b1389ab68482b3aa3ed69292011c09f9dd Author: Jakob Bornecrantz <[email protected]> Date: Thu Mar 18 16:23:27 2010 +0100 Bump for 12.6.7 release. diff --git a/configure.ac b/configure.ac index 0d73779..6fc3b6a 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,7 @@ AC_PREREQ(2.57) AC_INIT([xf86-input-vmmouse], - 12.6.6, + 12.6.7, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xf86-input-vmmouse) commit fae10ac6c613f6de847e152d615e6da421147139 Author: Julien Cristau <[email protected]> Date: Fri Feb 26 17:30:08 2010 +0100 vmmouse: don't hardcode the module version in the source XORG_RELEASE_VERSION gives us that info from configure.ac, let's use it. Signed-off-by: Julien Cristau <[email protected]> diff --git a/src/vmmouse.c b/src/vmmouse.c index 1f4774a..0394fb8 100644 --- a/src/vmmouse.c +++ b/src/vmmouse.c @@ -97,14 +97,11 @@ /* * Version constants */ -#define VMMOUSE_MAJOR_VERSION 12 -#define VMMOUSE_MINOR_VERSION 6 -#define VMMOUSE_PATCHLEVEL 5 #define VMMOUSE_DRIVER_VERSION \ - (VMMOUSE_MAJOR_VERSION * 65536 + VMMOUSE_MINOR_VERSION * 256 + VMMOUSE_PATCHLEVEL) + (PACKAGE_VERSION_MAJOR * 65536 + PACKAGE_VERSION_MINOR * 256 + PACKAGE_VERSION_PATCHLEVEL) #define VMMOUSE_DRIVER_VERSION_STRING \ - VMW_STRING(VMMOUSE_MAJOR_VERSION) "." VMW_STRING(VMMOUSE_MINOR_VERSION) \ - "." VMW_STRING(VMMOUSE_PATCHLEVEL) + VMW_STRING(PACKAGE_VERSION_MAJOR) "." VMW_STRING(PACKAGE_VERSION_MINOR) \ + "." VMW_STRING(PACKAGE_VERSION_PATCHLEVEL) /* * Standard four digit version string expected by VMware Tools installer. @@ -1217,7 +1214,7 @@ static XF86ModuleVersionInfo VMMouseVersionRec = { MODINFOSTRING1, MODINFOSTRING2, XORG_VERSION_CURRENT, - VMMOUSE_MAJOR_VERSION, VMMOUSE_MINOR_VERSION, VMMOUSE_PATCHLEVEL, + PACKAGE_VERSION_MAJOR, PACKAGE_VERSION_MINOR, PACKAGE_VERSION_PATCHLEVEL, ABI_CLASS_XINPUT, ABI_XINPUT_VERSION, MOD_CLASS_XINPUT, commit f3ef776415820c7da1728d1fe27dd56dc24e935f Author: Julien Cristau <[email protected]> Date: Wed Feb 10 02:16:43 2010 +0100 Bump to 12.6.6 Signed-off-by: Julien Cristau <[email protected]> diff --git a/configure.ac b/configure.ac index 64a42f7..0d73779 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,7 @@ AC_PREREQ(2.57) AC_INIT([xf86-input-vmmouse], - 12.6.5, + 12.6.6, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xf86-input-vmmouse) commit ae58da22e6f4798498a1e9a0b1b6c6c0f19e2532 Author: Julien Cristau <[email protected]> Date: Wed Feb 10 02:15:38 2010 +0100 Require xorg-macros 1.4 for XORG_INSTALL Signed-off-by: Julien Cristau <[email protected]> diff --git a/configure.ac b/configure.ac index 80248c9..64a42f7 100644 --- a/configure.ac +++ b/configure.ac @@ -34,8 +34,8 @@ AM_MAINTAINER_MODE # Require xorg-macros: XORG_DEFAULT_OPTIONS m4_ifndef([XORG_MACROS_VERSION], - [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])]) -XORG_MACROS_VERSION(1.3) + [m4_fatal([must install xorg-macros 1.4 or later before running autoconf/autogen])]) +XORG_MACROS_VERSION(1.4) XORG_DEFAULT_OPTIONS DRIVER_NAME=vmmouse -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

