1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= usb-modeswitch
7 SDESC[standard]= USB mode switching tool
8 HOMEPAGE= https://www.draisberghof.de/usb_modeswitch/
9 CONTACT= Michael_Reim[kraileth@elderlinux.org]
12 SITES[main]= https://www.draisberghof.de/usb_modeswitch/
13 DISTFILE[1]= usb-modeswitch-2.6.1.tar.bz2:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 ONLY_FOR_OPSYS= freebsd dragonfly
22 RUN_DEPENDS= usb-modeswitch-data:single:standard
23 B_DEPS[linux]= libusb:dev:standard
24 B_DEPS[netbsd]= libusb:dev:standard
25 BR_DEPS[linux]= libusb:primary:standard
26 BR_DEPS[netbsd]= libusb:primary:standard
30 DISTNAME= usb-modeswitch-2.6.1
32 LICENSE= GPLv2+:single
33 LICENSE_TERMS= single:{{WRKDIR}}/TERMS
34 LICENSE_FILE= GPLv2+:{{WRKSRC}}/COPYING
35 LICENSE_AWK= TERMS:"include <stdlib.h>"
36 LICENSE_SOURCE= TERMS:{{WRKSRC}}/usb_modeswitch.h
39 FPC_EQUIVALENT= sysutils/usb_modeswitch
42 ${REINPLACE_CMD} 's|`pkg-config --libs --cflags libusb-1.0`|-lusb|' ${WRKSRC}/Makefile
45 ${INSTALL_PROGRAM} ${WRKSRC}/usb_modeswitch ${STAGEDIR}${PREFIX}/sbin
46 ${INSTALL_DATA} ${WRKSRC}/usb_modeswitch.conf ${STAGEDIR}${PREFIX}/etc/usb_modeswitch.conf.sample
47 ${MKDIR} -p ${STAGEDIR}${PREFIX}/man/man1
48 ${INSTALL_MAN} ${WRKSRC}/usb_modeswitch.1 ${STAGEDIR}${PREFIX}/man/man1
50 [FILE:1026:descriptions/desc.single]
51 USB_ModeSwitch is (surprise!) a mode switching tool for controlling
52 'multi-mode' USB devices.
54 More and more USB devices (especially high-speed WAN stuff, based on cell
55 phone chipsets which are able to change their USB connection mode) have
56 their MS Windows drivers onboard; when plugged in for the first time they
57 act like a flash storage and start installing the driver from there. After
58 installation (and on every consecutive plugging) the driver switches the
59 mode internally, the storage device vanishes (in most cases), and a new
60 device (like an USB modem) shows up. Modem maker "Option" calls that
61 feature "ZeroCD (TM)" since it eliminates the need for shipping a separate
64 On *nix platform this does not work for obvious reasons and the required
65 mode switching has to be triggered manually. USB_ModeSwitch makes this
66 process easy to handle by taking the important parameters from a
67 configuration file and doing all the initialization and communication
68 stuff, with heavy help from "libusb".
72 5195d9e136e52f658f19e9f93e4f982b1b67bffac197d0a455cd8c2cd245fa34 45471 usb-modeswitch-2.6.1.tar.bz2
75 [FILE:85:manifests/plist.single]
76 @sample etc/usb_modeswitch.conf.sample
77 man/man1/usb_modeswitch.1