Index: head/sysutils/Makefile =================================================================== --- head/sysutils/Makefile +++ head/sysutils/Makefile @@ -491,6 +491,7 @@ SUBDIR += i2c-tools SUBDIR += i7z SUBDIR += iat + SUBDIR += iichid SUBDIR += immortal SUBDIR += incron SUBDIR += inotify-tools Index: head/sysutils/iichid/Makefile =================================================================== --- head/sysutils/iichid/Makefile +++ head/sysutils/iichid/Makefile @@ -0,0 +1,39 @@ +# Created by: jrhett@netconsonance.com +# $FreeBSD$ + +PORTNAME= iichid +DISTVERSION= 0.0.1 +CATEGORIES= sysutils + +MAINTAINER= imp@FreeBSD.org +COMMENT= Generic FreeBSD HID layer for I2C and USB devices + +LICENSE= BSD2CLAUSE +#LICENSE_FILE= Not yet packaged + +ONLY_FOR_ARCHS= aarch64 amd64 i386 +ONLY_FOR_ARCHS_REASON= Requires architecture supporting ACPI + +USES= kmod uidfix + +USE_GITHUB= yes + +GH_ACCOUNT= wulf7 + +# Strip -Werror from sys/conf/kmod.mk +MAKE_ENV= WERROR="" + +PLIST_FILES= ${KMODDIR}/iichid.ko + +# USB backend is not yet complete and +# interferes with existing USB drivers +post-patch: + ${REINPLACE_CMD} -e '/usbhid.c/s/^/#/' ${WRKSRC}/Makefile + +.include + +.if ${OSREL} < 12.1 +IGNORE= requires FreeBSD versions 12.1+, this system is running ${OSREL} +.endif + +.include Index: head/sysutils/iichid/distinfo =================================================================== --- head/sysutils/iichid/distinfo +++ head/sysutils/iichid/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1581662226 +SHA256 (wulf7-iichid-0.0.1_GH0.tar.gz) = 282540487df1eb3f202f7beb440f68f43801662cb8f817931f09879c1f007a98 +SIZE (wulf7-iichid-0.0.1_GH0.tar.gz) = 51001 Index: head/sysutils/iichid/pkg-descr =================================================================== --- head/sysutils/iichid/pkg-descr +++ head/sysutils/iichid/pkg-descr @@ -0,0 +1,7 @@ +FreeBSD driver for I2C HID touchscreens (and may be other devices) + +A complete discussion about how to use this tool can be found at: + +https://larastechlab.blogspot.com/2020/01/i2c-touchpads-on-freebsd-130-current.html + +WWW: https://github.com/wulf7/iichid Index: head/sysutils/iichid/pkg-message =================================================================== --- head/sysutils/iichid/pkg-message +++ head/sysutils/iichid/pkg-message @@ -0,0 +1,5 @@ +iichid is currently in-development and EXPERIMENTAL. This port provides +an easy and quick method for users to test this code to encourage early +testing, feedback and bug reports. + +Please report successes and issues to: https://github.com/wulf7/iichid