Ravenports generated: 12 Feb 2024 04:56
[ravenports.git] / bucket_ED / usb-modeswitch
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               usb-modeswitch
4 VERSION=                2.6.1
5 KEYWORDS=               sysutils
6 VARIANTS=               standard
7 SDESC[standard]=        USB mode switching tool
8 HOMEPAGE=               https://www.draisberghof.de/usb_modeswitch/
9 CONTACT=                Michael_Reim[kraileth@elderlinux.org]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://www.draisberghof.de/usb_modeswitch/
13 DISTFILE[1]=            usb-modeswitch-2.6.1.tar.bz2:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 ONLY_FOR_OPSYS=         freebsd dragonfly
21
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
27
28 USES=                   gmake
29
30 DISTNAME=               usb-modeswitch-2.6.1
31
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
37 LICENSE_SCHEME=         solo
38
39 FPC_EQUIVALENT=         sysutils/usb_modeswitch
40
41 post-patch:
42         ${REINPLACE_CMD} 's|`pkg-config --libs --cflags libusb-1.0`|-lusb|' ${WRKSRC}/Makefile
43
44 do-install:
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
49
50 [FILE:1026:descriptions/desc.single]
51 USB_ModeSwitch is (surprise!) a mode switching tool for controlling 
52 'multi-mode' USB devices.
53
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 
62 driver carrier.
63
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".
69
70
71 [FILE:107:distinfo]
72 5195d9e136e52f658f19e9f93e4f982b1b67bffac197d0a455cd8c2cd245fa34        45471 usb-modeswitch-2.6.1.tar.bz2
73
74
75 [FILE:85:manifests/plist.single]
76 @sample etc/usb_modeswitch.conf.sample
77 man/man1/usb_modeswitch.1
78 sbin/usb_modeswitch
79