diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2021-08-31 21:46:56 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2021-08-31 21:46:56 +0200 |
commit | f9107d44feefa780b2b7af71e7a1b8a68bfbfa7e (patch) | |
tree | 83c9ead10ac09101ec1d1af00819cdb24956da69 | |
parent | aed4d6dc705e7cb281ebaa51019aada81ee6c154 (diff) |
add xf86-input-mouse 1.9.3
-rw-r--r-- | x11/xf86-input-mouse/Makefile | 29 | ||||
-rw-r--r-- | x11/xf86-input-mouse/distinfo | 2 | ||||
-rw-r--r-- | x11/xf86-input-mouse/patches/patch-src_bsd_mouse_c | 52 | ||||
-rw-r--r-- | x11/xf86-input-mouse/pkg/DESCR | 6 | ||||
-rw-r--r-- | x11/xf86-input-mouse/pkg/PLIST | 7 |
5 files changed, 96 insertions, 0 deletions
diff --git a/x11/xf86-input-mouse/Makefile b/x11/xf86-input-mouse/Makefile new file mode 100644 index 0000000..ce2b4d6 --- /dev/null +++ b/x11/xf86-input-mouse/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile.template,v 1.83 2019/07/02 12:03:14 sthen Exp $ +COMMENT = input driver for the X mouse +DISTNAME = xf86-input-mouse-1.9.3 +CATEGORIES = x11 + +HOMEPAGE = https://gitlab.freedesktop.org/xorg/driver/xf86-input-mouse + +MAINTAINER = xenocara@openbsd.org + +# MIT +PERMIT_PACKAGE = Yes + +MASTER_SITES = ${MASTER_SITE_XORG:=driver/} + +MODULES = xenocara + +BUILD_DEPENDS = x11/xorg-server + +SEPARATE_BUILD = Yes +CONFIGURE_STYLE = gnu +CONFIGURE_ARGS+= --with-xorg-module-dir=${X11BASE}/lib/modules + +NO_TEST = Yes + +post-fake: + cd ${FAKEDIR}${X11BASE}/man/man4 ; ln -sf mousedrv.4 mouse.4 ; \ + chown -h ${MANOWN}:${MANGRP} mouse.4 + +.include <bsd.port.mk> diff --git a/x11/xf86-input-mouse/distinfo b/x11/xf86-input-mouse/distinfo new file mode 100644 index 0000000..9979555 --- /dev/null +++ b/x11/xf86-input-mouse/distinfo @@ -0,0 +1,2 @@ +SHA256 (xf86-input-mouse-1.9.3.tar.gz) = cfOqChjf4cpcsjXskhDzNXHPX7vZCsW1UwapVPZ6pcY= +SIZE (xf86-input-mouse-1.9.3.tar.gz) = 463247 diff --git a/x11/xf86-input-mouse/patches/patch-src_bsd_mouse_c b/x11/xf86-input-mouse/patches/patch-src_bsd_mouse_c new file mode 100644 index 0000000..621cad9 --- /dev/null +++ b/x11/xf86-input-mouse/patches/patch-src_bsd_mouse_c @@ -0,0 +1,52 @@ +$OpenBSD$ + +Index: src/bsd_mouse.c +--- src/bsd_mouse.c.orig ++++ src/bsd_mouse.c +@@ -70,6 +70,10 @@ static void usbSigioReadInput (int fd, void *closure); + #endif + static const char *FindDevice(InputInfoPtr, const char *, int); + ++#ifdef X_PRIVSEP ++extern int priv_open_device(const char *); ++#endif ++ + #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) + /* These are for FreeBSD and DragonFly */ + #define DEFAULT_MOUSE_DEV "/dev/mouse" +@@ -281,7 +285,11 @@ FindDevice(InputInfoPtr pInfo, const char *protocol, i + struct stat sb; + + for (pdev = mouseDevs; *pdev; pdev++) { ++#ifndef X_PRIVSEP + SYSCALL (fd = open(*pdev, O_RDWR | O_NONBLOCK)); ++#else ++ fd = priv_open_device(*pdev); ++#endif + if (fd == -1) { + #ifdef DEBUG + ErrorF("Cannot open %s (%s)\n", *pdev, strerror(errno)); +@@ -364,7 +372,11 @@ FindDevice(InputInfoPtr pInfo, const char *protocol, i + const char **pdev; + + for (pdev = mouseDevs; *pdev; pdev++) { ++#ifndef X_PRIVSEP + SYSCALL(fd = open(*pdev, O_RDWR | O_NONBLOCK)); ++#else ++ fd = priv_open_device(*pdev); ++#endif + if (fd != -1) { + /* Set the Device option. */ + pInfo->options = +@@ -449,6 +461,11 @@ wsconsReadInput(InputInfoPtr pInfo) + #endif + #ifdef WSCONS_EVENT_MOUSE_ABSOLUTE_W + case WSCONS_EVENT_MOUSE_ABSOLUTE_W: ++ ++event; ++ continue; ++#endif ++#ifdef WSCONS_EVENT_SYNC ++ case WSCONS_EVENT_SYNC: + ++event; + continue; + #endif diff --git a/x11/xf86-input-mouse/pkg/DESCR b/x11/xf86-input-mouse/pkg/DESCR new file mode 100644 index 0000000..b2aebef --- /dev/null +++ b/x11/xf86-input-mouse/pkg/DESCR @@ -0,0 +1,6 @@ +mouse is an Xorg input driver for mice. The driver supports most +available mouse types and interfaces, though the level of support for +types of mice depends on the OS. + +The mouse driver functions as a pointer input device. Multiple mice +are supported by multiple instances of this driver. diff --git a/x11/xf86-input-mouse/pkg/PLIST b/x11/xf86-input-mouse/pkg/PLIST new file mode 100644 index 0000000..4a843ea --- /dev/null +++ b/x11/xf86-input-mouse/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $OpenBSD: PLIST,v$ +include/xorg/xf86-mouse-properties.h +lib/modules/input/mouse_drv.a +lib/modules/input/mouse_drv.la +@so lib/modules/input/mouse_drv.so +lib/pkgconfig/xorg-mouse.pc +@man man/man4/mousedrv.4 |