Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2020 22:10:22 +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: r543383 - head/sysutils/iichid
Message-ID:  <202007242210.06OMAMF3065265@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wulf (src committer)
Date: Fri Jul 24 22:10:22 2020
New Revision: 543383
URL: https://svnweb.freebsd.org/changeset/ports/543383

Log:
  sysutils/iichid: Update to 0.0.3
  
  Most important changes:
  
  * USB transport backend is stable now and included in to port. It is disabled
    by default as it has greater priority than OS drivers.
  * hcons - Consumer page AKA Multimedia keys and hsctrl - System control page
    AKA Power keys drivers are added. They should replace sysutils/uhidd port
    that became unusable since recent X11 switchover to evdev.
  * hidraw - Exports raw HID data in uhid(4) and Linux hidraw-compatible way.
  
  Take maintainership, as suggested by imp@
  
  PR:		247787
  Submitted by:	Miguel Gocobachi <miguel@gocobachi.dev>
  Reviewed by:	koobs (ports)
  Approved by:	koobs (ports), imp (maintainer)
  Differential Revision:	https://reviews.freebsd.org/D25538

Modified:
  head/sysutils/iichid/Makefile
  head/sysutils/iichid/distinfo
  head/sysutils/iichid/pkg-message

Modified: head/sysutils/iichid/Makefile
==============================================================================
--- head/sysutils/iichid/Makefile	Fri Jul 24 21:37:13 2020	(r543382)
+++ head/sysutils/iichid/Makefile	Fri Jul 24 22:10:22 2020	(r543383)
@@ -2,18 +2,18 @@
 # $FreeBSD$
 
 PORTNAME=	iichid
-DISTVERSION=	0.0.1
+DISTVERSION=	0.0.3
 CATEGORIES=	sysutils
 
-MAINTAINER=	imp@FreeBSD.org
+MAINTAINER=	wulf@FreeBSD.org
 COMMENT=	Generic FreeBSD HID layer for I2C and USB devices
 
 LICENSE=	BSD2CLAUSE
-#LICENSE_FILE=	Not yet packaged
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 IGNORE_FreeBSD_11=	Requires FreeBSD 12.1 or later
 ONLY_FOR_ARCHS=		aarch64 amd64 i386
-ONLY_FOR_ARCHS_REASON=	Requires architecture supporting ACPI
+ONLY_FOR_ARCHS_REASON=	I2C transport requires architecture supporting ACPI
 
 USES=	kmod uidfix
 
@@ -26,9 +26,16 @@ 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
+# USB backend is disabled by default as it interferes with existing USB drivers
+OPTIONS_DEFINE=		DEBUG I2C USB
+OPTIONS_DEFAULT=	I2C
+I2C_DESC=		HID over I2C support
+USB_DESC=		HID over USB support
+
+I2C_MAKE_ARGS_OFF=	-DDISABLE_I2CHID
+USB_MAKE_ARGS_OFF=	-DDISABLE_USBHID
+
+post-patch-DEBUG-off:
+	${REINPLACE_CMD} -e '/iichid_debug =/s/1/0/' ${WRKSRC}/iichid.c
 
 .include <bsd.port.mk>

Modified: head/sysutils/iichid/distinfo
==============================================================================
--- head/sysutils/iichid/distinfo	Fri Jul 24 21:37:13 2020	(r543382)
+++ head/sysutils/iichid/distinfo	Fri Jul 24 22:10:22 2020	(r543383)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1581662226
-SHA256 (wulf7-iichid-0.0.1_GH0.tar.gz) = 282540487df1eb3f202f7beb440f68f43801662cb8f817931f09879c1f007a98
-SIZE (wulf7-iichid-0.0.1_GH0.tar.gz) = 51001
+TIMESTAMP = 1594041772
+SHA256 (wulf7-iichid-0.0.3_GH0.tar.gz) = a548af4c2bfd121ec766d4203c70900b256a4b6e99cf4d9f643b9cfc8818efc7
+SIZE (wulf7-iichid-0.0.3_GH0.tar.gz) = 88651

Modified: head/sysutils/iichid/pkg-message
==============================================================================
--- head/sysutils/iichid/pkg-message	Fri Jul 24 21:37:13 2020	(r543382)
+++ head/sysutils/iichid/pkg-message	Fri Jul 24 22:10:22 2020	(r543383)
@@ -1,5 +1,11 @@
+[
+{ type: install
+  message: <<EOM
 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
+EOM
+}
+]



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