A small mode switching tool for controlling "flip flop" (multiple

device) USB gear.
This commit is contained in:
Timur I. Bakeyev 2012-01-14 14:48:37 +00:00
parent fe6fe6dac1
commit 4093906419
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289166
5 changed files with 46 additions and 0 deletions

View file

@ -915,6 +915,7 @@
SUBDIR += upsd
SUBDIR += upsdaemon
SUBDIR += uptimed
SUBDIR += usb_modeswitch
SUBDIR += usbhotkey
SUBDIR += usbutils
SUBDIR += uschedule

View file

@ -0,0 +1,28 @@
# New ports collection makefile for: usb_modeswitch
# Date created: 14 January 2011
# Whom: Alexander V. Chernikov <melifaro@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= usb_modeswitch
PORTVERSION= 1.2.1
CATEGORIES= sysutils
MASTER_SITES= http://www.draisberghof.de/usb_modeswitch/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= melifaro@ipfw.ru
COMMENT= Handling Mode-Switching USB Devices
LICENSE= GPLv2
MAKE_JOBS_UNSAFE= yes
MAN1= usb_modeswitch.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/usb_modeswitch ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/usb_modeswitch.conf ${PREFIX}/etc/usb_modeswitch.conf.sample
${INSTALL_MAN} ${WRKSRC}/usb_modeswitch.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (usb-modeswitch-1.2.1.tar.bz2) = 88a253ef86a8aeeba9e6d5b40dd8a7b6b82d166b02bf6af922bf60f370b4d6cb
SIZE (usb-modeswitch-1.2.1.tar.bz2) = 256713

View file

@ -0,0 +1,11 @@
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/

View file

@ -0,0 +1,4 @@
sbin/usb_modeswitch
etc/usb_modeswitch.conf.sample
@exec if [ ! -f %D/etc/usb_modeswitch.conf ] ; then cp -p %D/%F %B/usb_modeswitch.conf; fi
@unexec if cmp -s %D/etc/usb_modeswitch.conf.sample %D/etc/usb_modeswitch.conf; then rm -f %D/etc/usb_modeswitch.conf ; fi