---
name: uhidd
version: 0.2.1_1
origin: sysutils/uhidd
comment: Userland USB HID device driver using libusb20
arch: freebsd:9:x86:64
www: http://wiki.FreeBSD.org/uhidd
maintainer: kaiwang27@gmail.com
prefix: /usr/local
licenselogic: single
flatsize: 189419
desc: "uhidd is a userland driver/daemon for USB HID devices (e.g. mouse,\nkeyboard)
  using libusb20. The driver aims to support USB HID devices\nwith multiple Top-Level
  application collections in one interface, i.e,\nHID devices with multiple logical
  device sharing one endpoint.\n\nWWW:\thttp://wiki.FreeBSD.org/uhidd\n"
deps:
  cuse4bsd-kmod: {origin: multimedia/cuse4bsd-kmod, version: 0.1.27}
categories: [sysutils]
options: {DEVD: on}
files:
  /usr/local/etc/devd/uhidd-devd.conf.sample: 4630963cedcd984489debd059980e31dae7b466e0d04c4871bf7f625b6fb0e39
  /usr/local/etc/rc.d/uhidd: cf39c45fe0eb5c0ffbfba67bfe3c8d318b8ff2baf5a30a5579144a53ccdb45e8
  /usr/local/man/man5/uhidd.conf.5.gz: da3c837a571d40baeab67adb7020ef8e8248f970c228b9b40e4865e56209e9ec
  /usr/local/man/man8/uhidd.8.gz: 8335874dcc4a6b6702f2fe2c16519efe6e2d4d250525fc6654f6a8867e6ef79e
  /usr/local/sbin/uhidd: 7433766963924bc87201bd01558c08e695d88fa6c9d2681a210bd6d682167556
scripts:
  post-install: |
    if [ ! -f /usr/local/etc/devd/uhidd-devd.conf ]; then mkdir -p /usr/local/etc/devd; cp -p /usr/local/etc/devd/uhidd-devd.conf.sample /usr/local/etc/devd/uhidd-devd.conf; fi
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/devd/uhidd-devd.conf.sample /usr/local/etc/devd/uhidd-devd.conf; then rm -f /usr/local/etc/devd/uhidd-devd.conf; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
message: "==============================================================================\n\nTo
  use uhidd daemon for USB HID devices, depends on which sub class\ndriver you want
  to attach, to avoid confilicts between the daemon and\nthe kernel drivers, you should
  either use the command line option '-u'\nto instruct the daemon to detach active
  kernel drivers attached to\na device, or you should remove some of those entries
  'device ums',\n'device ukbd', or 'device uhid' from your kernel config file and\nrecompile
  the kernel.\n\nNote that if the USB kernel drivers are compiled as kernel modules,\nyou
  should also remove the relevant devd(8) rules in /etc/devd/usb.conf\nconfig file,
  so those modules will not be loaded automatically by devd(8)\nwhen devices are attached.\n\nIf
  you want to run uhidd deamon at the startup, add the following lines to\n/etc/rc.conf:\n\n\tuhidd_flags=\"-kmohsu\"\n\tuhidd_enable=\"YES\"\n\nNote
  that you need to modify the uhidd_flags (command line options)\naccording to which
  sub class drivers you want to use.\n\nTo manually start/stop uhidd daemon on certain
  device, run:\n\n\t/usr/local/etc/rc.d/uhidd [start|stop] /dev/ugen.X.Y\n\nSee http://wiki.FreeBSD.org/uhidd
  for more details about how to install and\nsetup the daemon.\n\n==============================================================================\n"
