---
name: usb_modeswitch
version: 1.2.1
origin: sysutils/usb_modeswitch
comment: Handling Mode-Switching USB Devices
arch: freebsd:9:x86:64
www: http://www.draisberghof.de/usb_modeswitch/
maintainer: melifaro@ipfw.ru
prefix: /usr/local
licenselogic: single
licenses: [GPLv2]
flatsize: 71949
desc: |
  USB_ModeSwitch is (surprise!) a mode switching tool for controlling
  "flip flop" (multiple device) USB gear.

  USB_ModeSwitch makes this process easy to handle by taking the important
  parameters from a configuration file and doing all the initialization
  and communication stuff, with heavy help from "libusb". It is mainly
  used automatically - via udev events and rules - to do the switch
  without any user interaction. But it can also be run as a command line
  tool, usually when trying to make unknown devices work with it.

  WWW: http://www.draisberghof.de/usb_modeswitch/
categories: [sysutils]
files:
  /usr/local/etc/usb_modeswitch.conf.sample: c60303bda50ff8aa927731deec2ef60d16d393f35e3c11d8e29fa1312434d51e
  /usr/local/man/man1/usb_modeswitch.1.gz: 506190889e27a0fcfe4e7d060bf2639765fdf7d5a4e22455b89842691ae67584
  /usr/local/sbin/usb_modeswitch: b649481531e462c61ebb556c79f242c7430e237a73f4ad513968c1cc506ec946
  /usr/local/share/licenses/usb_modeswitch-1.2.1/GPLv2: 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643
  /usr/local/share/licenses/usb_modeswitch-1.2.1/LICENSE: 7e1394d03c5f275a402fe721ff1d1349449ea8602b52af954c76463afcdb6ef7
  /usr/local/share/licenses/usb_modeswitch-1.2.1/catalog.mk: 7007c4191ff8e803b531f59329276425d191f1de1cc51a1c2e191c486f848d1c
directories:
  /usr/local/share/licenses/usb_modeswitch-1.2.1/: n
  /usr/local/share/licenses/: y
scripts:
  post-install: |
    if [ ! -f /usr/local/etc/usb_modeswitch.conf ] ; then cp -p /usr/local/etc/usb_modeswitch.conf.sample /usr/local/etc/usb_modeswitch.conf; fi
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/usb_modeswitch.conf.sample /usr/local/etc/usb_modeswitch.conf; then rm -f /usr/local/etc/usb_modeswitch.conf ; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
