--- usb-modeswitch-0.9.7.orig/debian/docs +++ usb-modeswitch-0.9.7/debian/docs @@ -0,0 +1 @@ +README --- usb-modeswitch-0.9.7.orig/debian/usb_modeswitch.sgml +++ usb-modeswitch-0.9.7/debian/usb_modeswitch.sgml @@ -0,0 +1,315 @@ +Didier"> + Raboud"> + + January 30, 2009"> + 1"> + didier@raboud.com"> + + USB-MODESWITCH"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2009 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + Switching tool for controlling "flip flop" USB devices + + + + &dhpackage; + + + + + + + DESCRIPTION + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + + + + Several new USB devices have their proprietary Windows drivers onboard, + especially WAN dongles. When plugged in for the first time, they act + like a flash storage and start installing the driver from there. If + the driver is already installed, the storage device vanishes and + a new device, such as an USB modem, shows up. This is called the + "ZeroCD" feature. + + + On Debian, this is not needed, since the driver is included as a + Linux kernel module, such as "usbserial". However, the device still + shows up as "usb-storage" by default. &dhpackage; solves that + issue by sending the command which actually performs the switching + of the device from "usb-storage" to "usbserial". + + + + + OPTIONS + + These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. + + + + + + + + Show summary of options. + + + + + + + + + Set Vendor number to look for. + + + + + + + + + Set Model number to look for. + + + + + + + + + Target Vendor; needed for success check. + + + + + + + + + Target Model; needed for success check. + + + + + + + + + Target Device Class; if found, quit + + + + + + + + + Where to direct command sequence + + + + + + + + + Command sequence to send + + + + + + + + + If given, read response from there + + + + + + + + + Whether to just detach the storage driver + + + + + + + + + Whether to just apply the Huawei mode + + + + + + + + + Whether to just apply the Sierra mode + + + + + + + + + Whether to just apply the Sony mode + + + + + + + + + Whether to reset the device in the end + + + + + + + + + Load different config file + + + + + + + + + + Don't show progress or error messages + + + + + + + + + Print all settings before running + + + + + + + + + Check switching result after [nr] secs + + + + + + + + + Select initial USB interface (default: 0) + + + + + + + + + Select USB configuration + + + + + + + + + Select alternative USB interface setting + + + + + + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (and may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + --- usb-modeswitch-0.9.7.orig/debian/watch +++ usb-modeswitch-0.9.7/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://www.draisberghof.de/usb_modeswitch/ usb_modeswitch-(.*)\.tar\.bz2 --- usb-modeswitch-0.9.7.orig/debian/rules +++ usb-modeswitch-0.9.7/debian/rules @@ -0,0 +1,109 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CC = gcc +CFLAGS = -g -Wall # sane warning options vary between programs +LDFLAGS = # none + +ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + $(CC) $(CFLAGS) -o usb_modeswitch usb_modeswitch.c -lusb + + docbook-to-man debian/usb_modeswitch.sgml > usb_modeswitch.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Delete the generated binary + rm -f usb_modeswitch + # Delete the generated manpage + rm -f usb_modeswitch.1 + # Delete the generated udev rule + rm -f usb_modeswitch.rules + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + dh_install usb_modeswitch /usr/sbin + dh_install usb_modeswitch.conf /etc + +# Build architecture-independent files here. +binary-indep: install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman usb_modeswitch.1 + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure + +# Path to the debian directory +# DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname ) +# UPSTREAM_VERSION ?=$(shell uscan --dehs | sed -n 's/.*\(.*\)<\/upstream-version>.*/\1/p') +# +# get-orig-source: +# cd ${DEBIAN_DIR}/.. && uscan --force-download --repack --- usb-modeswitch-0.9.7.orig/debian/README.Debian +++ usb-modeswitch-0.9.7/debian/README.Debian @@ -0,0 +1,19 @@ +usb-modeswitch for Ubuntu +------------------------- + +Use usb_modeswitch to make your modem switch from appearing as a storage device +to acting as a 3G modem. The file /etc/usb_modeswitch.conf contains the +configuration details for supported devices. There are two ways to make make +usb_modeswitch work: + +1) Pass the right values to usb_modeswitch to manually switch the device to +modem mode. This can also be done from a script, and may even be done by +another package such as zte-mf627-switch. + +2) Modify the configuration file /etc/usb_modeswitch.conf and uncomment (i.e. +remove the ";") for the entry corresponding to your device. usb_modeswitch +will then work without needing to enter the right values each time. + + +Many thanks to Didier Raboud for the Debian package that this package is +based on and to Josua Dietze for writing usb_modeswitch. --- usb-modeswitch-0.9.7.orig/debian/changelog +++ usb-modeswitch-0.9.7/debian/changelog @@ -0,0 +1,54 @@ +usb-modeswitch (0.9.7-1~ppa1) jaunty; urgency=low + * Adapted Debian package for Ubuntu + * Removed functionality to generate a usb_modeswitch.rules file to avoid + possible conflicts with existing functionality in Ubuntu + * Modified Readme.DEBIAN file to reflect changes + + -- Liam Green-Hughes Thu, 07 May 2009 20:09:18 +0100 + +usb-modeswitch (0.9.7-1) unstable; urgency=low + + * 0.9.7 new upstream release. + "Updated SonyMode, MD 400 now stable; automatic default endpoint detection + from Andrew Bird." + - Sony Ericsson MD400 now working + - Automatic bulk endpoint detection + * debian/copyright + - Point to GPL version 2, thanks to lintian --pedantic. + + -- Didier Raboud Thu, 16 Apr 2009 11:34:47 +0200 + +usb-modeswitch (0.9.7~beta1-1) experimental; urgency=low + + * 0.9.7beta new upstream release. + "Major code clean up, optional success control (both suggested by Daniel + Cooper), new devices" + * New build system (not used in Debian yet). + * New option to enable success control (--success) + - Manpage updated + * New devices + - Option iCON 210,401 + - Vodafone K3760 + - ZTE MF636 (aka "Telstra / BigPond 7.2 Mobile Card") + - Sierra Wireless Compass 597 + - MobiData MBD-200HU + - Hyundai Mobile MB-810 + * Bump Standards to 3.8.1. No changes needed. + + -- Didier Raboud Mon, 30 Mar 2009 19:44:55 +0200 + +usb-modeswitch (0.9.6-2) unstable; urgency=low + + * debian/copyright: Make clear that the packaging is GPLv2+, as + usb-modeswitch itself + * debian/mkrules.py: Generate udev rules based on /etc/usb-modeswitch.conf + * Add gcom and wvdial to Suggests. + + -- Didier Raboud Sat, 14 Feb 2009 12:32:43 +0100 + +usb-modeswitch (0.9.6-1) unstable; urgency=low + + * Initial release (Closes: #453732) + * Description taken from the ITP, thanks to Aurélien GÉRÔME. + + -- Didier Raboud Tue, 03 Feb 2009 14:11:19 +0100 --- usb-modeswitch-0.9.7.orig/debian/compat +++ usb-modeswitch-0.9.7/debian/compat @@ -0,0 +1 @@ +7 --- usb-modeswitch-0.9.7.orig/debian/copyright +++ usb-modeswitch-0.9.7/debian/copyright @@ -0,0 +1,46 @@ +This package was made by: + + Liam Green-Hughes on Thu, 07 May 2009 20:09:18 +0100 + +It was adapted from a Debian package downloaded from: + + http://packages.debian.org/squeeze/usb-modeswitch + +Original debianisation by: + + Didier Raboud on Fri, 30 Jan 2009 16:15:18 +0100 + +It was downloaded from: + + http://www.draisberghof.de/usb_modeswitch/ + +Copyright: + + Copyright 2007, 2008 Josua Dietze (mail to the name from "usb_modeswitch.c" + at the domain "draisberghof.de"; please do not post the complete address + to The Net !) or write a personal message through the forum to "Josh" + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +This PPA package is: + + Copyright (C) 2009, Liam Green-Hughes + +and is licensed under the GPLv2+, as usb-modeswitch itself and the original Debian package, see above. --- usb-modeswitch-0.9.7.orig/debian/control +++ usb-modeswitch-0.9.7/debian/control @@ -0,0 +1,25 @@ +Source: usb-modeswitch +Section: comm +Priority: extra +Maintainer: Liam Green-Hughes +Build-Depends: debhelper (>= 7), libusb-dev, docbook-to-man, python +Standards-Version: 3.8.1 +Homepage: http://www.draisberghof.de/usb_modeswitch/ + +Package: usb-modeswitch +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: gcom, wvdial +Description: mode switching tool for controlling "flip flop" USB devices + Several new USB devices have their proprietary Windows drivers onboard, + especially WAN dongles. When plugged in for the first time, they act + like a flash storage and start installing the driver from there. If + the driver is already installed, the storage device vanishes and + a new device, such as an USB modem, shows up. This is called the + "ZeroCD" feature. + . + On Ubuntu, this is not needed, since the driver is included as a + Linux kernel module, such as "usbserial". However, the device still + shows up as "usb-storage" by default. usb-modeswitch solves that + issue by sending the command which actually performs the switching + of the device from "usb-storage" to "usbserial".