Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Sep 2019 20:37:45 +0000 (UTC)
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r511703 - in head/misc: . utouch-kmod
Message-ID:  <201909092037.x89KbjLu097473@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wulf (src committer)
Date: Mon Sep  9 20:37:45 2019
New Revision: 511703
URL: https://svnweb.freebsd.org/changeset/ports/511703

Log:
  utouch - driver for absolute USB HID mouses emulated by some virtualization
  systems like Virtual Box, BHyve, e.t.c. It uses evdev protocol to communicate
  with userland applications like libinput and xf86-input-evdev.
  
  The driver should be installed in to the guest FreeBSD system. Host system
  should be configured to emulate mouse as a single-touch USB tablet.
  
  WWW: https://github.com/wulf7/utouch
  
  It is a temporary solution until absolute coords support is added to ums(4)
  driver. That is why it is not imported into the base system.
  
  PR:		240261
  Approved by:	koobs

Added:
  head/misc/utouch-kmod/
  head/misc/utouch-kmod/Makefile   (contents, props changed)
  head/misc/utouch-kmod/distinfo   (contents, props changed)
  head/misc/utouch-kmod/pkg-descr   (contents, props changed)
  head/misc/utouch-kmod/pkg-message   (contents, props changed)
Modified:
  head/misc/Makefile

Modified: head/misc/Makefile
==============================================================================
--- head/misc/Makefile	Mon Sep  9 20:36:10 2019	(r511702)
+++ head/misc/Makefile	Mon Sep  9 20:37:45 2019	(r511703)
@@ -510,6 +510,7 @@
     SUBDIR += usbids
     SUBDIR += usbrh-libusb
     SUBDIR += utftools
+    SUBDIR += utouch-kmod
     SUBDIR += valentina
     SUBDIR += valspeak
     SUBDIR += vdmfec

Added: head/misc/utouch-kmod/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/utouch-kmod/Makefile	Mon Sep  9 20:37:45 2019	(r511703)
@@ -0,0 +1,41 @@
+# Created by: Vladimir Kondratyev <wulf@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	utouch-kmod
+PORTVERSION=	0.0.1
+CATEGORIES=	misc
+
+MAINTAINER=	wulf@FreeBSD.org
+COMMENT=	Kernel driver for absolute USB HID mouses
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		kmod uidfix
+
+OPTIONS_DEFINE=	SOURCE
+OPTIONS_DEFAULT=SOURCE
+SOURCE_DESC=	Install kernel module sources
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	wulf7
+GH_PROJECT=	utouch
+
+PLIST_FILES=	${KMODDIR}/utouch.ko
+
+KMODSRC_DIR=	sys/modules/${PORTNAME}
+KMODSRC_FILES=	Makefile utouch.c
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MSOURCE}
+PLIST_FILES+=	${KMODSRC_FILES:S|^|${KMODSRC_DIR}/|}
+.endif
+
+post-install-SOURCE-on:
+	${MKDIR} ${STAGEDIR}${PREFIX}/${KMODSRC_DIR}
+.for file in ${KMODSRC_FILES}
+	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/${KMODSRC_DIR}
+.endfor
+
+.include <bsd.port.mk>

Added: head/misc/utouch-kmod/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/utouch-kmod/distinfo	Mon Sep  9 20:37:45 2019	(r511703)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1567539845
+SHA256 (wulf7-utouch-0.0.1_GH0.tar.gz) = cb173ac478d51af06f3c6cac86c4f4613c8f7f1cb5a23867aae745fa99bdb4ba
+SIZE (wulf7-utouch-0.0.1_GH0.tar.gz) = 5338

Added: head/misc/utouch-kmod/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/utouch-kmod/pkg-descr	Mon Sep  9 20:37:45 2019	(r511703)
@@ -0,0 +1,9 @@
+utouch - Kernel driver for absolute USB HID mouses emulated by some
+virtualization systems like Virtual Box, BHyve, etc. It uses evdev
+protocol to communicate with userland applications like libinput and
+xf86-input-evdev.
+
+The driver should be installed in to the guest FreeBSD system. Host system
+should be configured to emulate mouse as a single-touch USB tablet.
+
+WWW: https://github.com/wulf7/utouch

Added: head/misc/utouch-kmod/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/utouch-kmod/pkg-message	Mon Sep  9 20:37:45 2019	(r511703)
@@ -0,0 +1,14 @@
+[
+{ type: install
+  message: <<EOM
+To load installed driver in to the kernel type:
+"kldload /boot/modules/utouch.ko"
+
+It may be necessary to unload conflicting uhid(4) driver
+with "kldunload uhid" after utouch.ko has been loaded.
+
+To load driver automaticaly at the boot time add
+utouch_load="YES" string to /boot/loader.conf file.
+EOM
+}
+]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909092037.x89KbjLu097473>