uhidd is a userland driver/daemon for USB HID devices (e.g., mouse,
keyboard) using libusb20. The driver aims to support USB HID devices
with multiple Top-Level application collections in one interface i.e.,
HID devices with multiple logical device sharing one endpoint.
===> The following configuration options are available for uhidd-0.2.1_6:
DEVD=on: Install devd(8) files
===> Use 'make config' to modify these settings
To use uhidd daemon for USB HID devices, depends on which sub class
driver you want to attach, to avoid conflicts between the daemon and
the kernel drivers, you should either use the command line option '-u'
to instruct the daemon to detach active kernel drivers attached to
a device, or you should remove some of those entries 'device ums',
'device ukbd', or 'device uhid' from your kernel config file and
recompile the kernel.
Note that if the USB kernel drivers are compiled as kernel modules,
you should also remove the relevant devd(8) rules in /etc/devd/usb.conf,
adjust devmatch_blacklist in /etc/rc.conf or define UQ_KBD_IGNORE,
UQ_UMS_IGNORE, UQ_HID_IGNORE via usbconfig(8), so those modules will not
be loaded automatically by devd(8) when devices are attached.
If you want to run uhidd daemon at the startup, add the following lines to
/etc/rc.conf:
uhidd_flags="-kmohsu"
uhidd_enable="YES"
Note that you need to modify the uhidd_flags (command line options)
according to which sub class drivers you want to use.
To manually start/stop uhidd daemon on certain device, run:
service uhidd [start|stop] /dev/ugen.X.Y
See http://wiki.FreeBSD.org/uhidd for more details about how to install and
setup the daemon.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
Simplify port-specific manpages location after r523104
Not all of my ports are covered because:
- USES=cmake requires patching devel/cmake to undo BSD-specific defaults
(A good example why BSD quirks should stay in ports, not to be upstreamed)
- USES=meson and GNU_CONFIGURE require dropping --mandir argument
- ponscripter-sekai requires Templates/BSD.local.dist to NOT create PREFIX/man
sysutils/uhidd: unbreak build on 11.0
Only call basename(3) when qualifying for "const" as /dev/ prefix in
/dev/ugen%d.%d is unused.
uhidd.c:234:16: error: passing 'const char *' to parameter of type 'char *'
discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
basename(hi->dev));
^~~~~~~
/usr/include/libgen.h:38:22: note: passing argument to parameter here
char *basename(char *);
^
Reported by: antoine (exp-run), ed (ping)
PR: 209747
sysutils/uhidd: grab and modernize
- Add CUSE option and enable on FreeBSD 11.0-CURRENT
- Convert to vendor install
- Convert to option target helpers
- Convert to service(8) that runs rc.d in sanitized environment
- Convert DEVD substitution to SUB_LIST (without SUB_FILES)
- Reformat patches with makepatch
- Fix PREFIX != LOCALBASE for libcuse4bsd.so
- Remove no longer required byacc(1) workaround
- Take maintainership
- Add patch to fix the build on FreeBSD 10 and beyond. [1]
- Set LICENSE, adjust LIB_DEPENDS to the new syntax, adjust WWW to the new
format.
PR: ports/185011 [1]
Submitted by: Kai Wang <kaiwang27@gmail.com> (maintainer)
Style fixes and remove unconditional use of [
Users should see some microseconds shaved off boot :)
Approved by: Kai Wang (maintainer)
Feature safe: yes
This patch has been committed into uhidd upstream and will be included
in the next uhidd release. However it seems that the next release will take some
time and some people want/need this patch so temporarily add it.
PR: ports/159313
Submitted by: Test Rat <ttsestt@gmail.com>
Reviewed by: Kai Wang <kaiwang27@gmail.com>
Requested by: Jan Beich jbeich@tormail.net
Approved by: maintainer
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
- respect PREFIX for location of uhidd.conf
- use PTHREAD_LIBS instead of -lpthread
- try to guess kernel sources based on SYSDIR (used by bsd.kmod.mk)
or SRC_BASE (used by ports like virtualbox and kqemu)
- use KMODDIR in plist, too
- I don't think SUB_FILES needs to be *after* bsd.port.pre.mk
- inherit DEBUG_FLAGS from make.conf, not only from command line
- mimic bsd.kmod.mk in installing .symbols file and add entry to plist
PR: ports/147898
Submitted by: Anonymous <swell.k@gmail.com>
Approved by: Kai Wang <kaiwang27@gmail.com> (maintainer)
uhidd is a userland driver/daemon for USB HID devices (e.g. mouse,
keyboard) using libusb20. The driver aims to support USB HID devices
with multiple Top-Level application collections in one interface, i.e,
HID devices with multiple logical device sharing one endpoint.
WWW: http://wiki.FreeBSD.org/uhidd
PR: ports/137793
Feature safe: yes
Submitted by: Kai Wang <kaiwang27 at gmail.com>