# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= usb-modeswitch VERSION= 2.6.1 KEYWORDS= sysutils VARIANTS= standard SDESC[standard]= USB mode switching tool HOMEPAGE= https://www.draisberghof.de/usb_modeswitch/ CONTACT= Michael_Reim[kraileth@elderlinux.org] DOWNLOAD_GROUPS= main SITES[main]= https://www.draisberghof.de/usb_modeswitch/ DISTFILE[1]= usb-modeswitch-2.6.1.tar.bz2:main DF_INDEX= 1 SPKGS[standard]= single OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none ONLY_FOR_OPSYS= freebsd dragonfly RUN_DEPENDS= usb-modeswitch-data:single:standard B_DEPS[linux]= libusb:dev:standard B_DEPS[netbsd]= libusb:dev:standard BR_DEPS[linux]= libusb:primary:standard BR_DEPS[netbsd]= libusb:primary:standard USES= gmake DISTNAME= usb-modeswitch-2.6.1 LICENSE= GPLv2+:single LICENSE_TERMS= single:{{WRKDIR}}/TERMS LICENSE_FILE= GPLv2+:{{WRKSRC}}/COPYING LICENSE_AWK= TERMS:"include " LICENSE_SOURCE= TERMS:{{WRKSRC}}/usb_modeswitch.h LICENSE_SCHEME= solo FPC_EQUIVALENT= sysutils/usb_modeswitch post-patch: ${REINPLACE_CMD} 's|`pkg-config --libs --cflags libusb-1.0`|-lusb|' ${WRKSRC}/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/usb_modeswitch ${STAGEDIR}${PREFIX}/sbin ${INSTALL_DATA} ${WRKSRC}/usb_modeswitch.conf ${STAGEDIR}${PREFIX}/etc/usb_modeswitch.conf.sample ${MKDIR} -p ${STAGEDIR}${PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/usb_modeswitch.1 ${STAGEDIR}${PREFIX}/man/man1 [FILE:1026:descriptions/desc.single] USB_ModeSwitch is (surprise!) a mode switching tool for controlling 'multi-mode' USB devices. More and more USB devices (especially high-speed WAN stuff, based on cell phone chipsets which are able to change their USB connection mode) have their MS Windows drivers onboard; when plugged in for the first time they act like a flash storage and start installing the driver from there. After installation (and on every consecutive plugging) the driver switches the mode internally, the storage device vanishes (in most cases), and a new device (like an USB modem) shows up. Modem maker "Option" calls that feature "ZeroCD (TM)" since it eliminates the need for shipping a separate driver carrier. On *nix platform this does not work for obvious reasons and the required mode switching has to be triggered manually. 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". [FILE:107:distinfo] 5195d9e136e52f658f19e9f93e4f982b1b67bffac197d0a455cd8c2cd245fa34 45471 usb-modeswitch-2.6.1.tar.bz2 [FILE:85:manifests/plist.single] @sample etc/usb_modeswitch.conf.sample man/man1/usb_modeswitch.1 sbin/usb_modeswitch