Compare commits
No commits in common. "c10s" and "c8s" have entirely different histories.
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/usb-modeswitch-2.5.2.tar.bz2
|
26
0001-usb_modeswitch-count-the-target-devices-from-zero.patch
Normal file
26
0001-usb_modeswitch-count-the-target-devices-from-zero.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 99cade3624c432a478e624f278692cdedf4e0450 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lubomir Rintel <lkundrak@v3.sk>
|
||||||
|
Date: Fri, 18 Aug 2017 10:40:41 +0200
|
||||||
|
Subject: [PATCH] usb_modeswitch: count the target devices from zero
|
||||||
|
|
||||||
|
Most likely a typo here.
|
||||||
|
---
|
||||||
|
usb_modeswitch.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/usb_modeswitch.c b/usb_modeswitch.c
|
||||||
|
index 3239946..1b3bf9d 100644
|
||||||
|
--- a/usb_modeswitch.c
|
||||||
|
+++ b/usb_modeswitch.c
|
||||||
|
@@ -1582,7 +1582,7 @@ int checkSuccess()
|
||||||
|
* description is read for syslog message
|
||||||
|
*/
|
||||||
|
// Wait counter passed on from previous loop
|
||||||
|
- for (i=i; i < CheckSuccess; i++) {
|
||||||
|
+ for (i=0; i < CheckSuccess; i++) {
|
||||||
|
SHOW_PROGRESS(output," Search for target devices ...\n");
|
||||||
|
dev = search_devices(&newTargetCount, TargetVendor, TargetProductList,
|
||||||
|
TargetClass, 0, SEARCH_TARGET);
|
||||||
|
--
|
||||||
|
2.14.3
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
usb_modeswitch package is retired on branch c10s for CS-2310
|
|
74
device_reference-utf8.patch
Normal file
74
device_reference-utf8.patch
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
--- device_reference.txt 2014-05-29 22:18:46.000000000 +0200
|
||||||
|
+++ device_reference_utf8.txt 2014-11-24 20:51:17.647221466 +0100
|
||||||
|
@@ -60,7 +60,7 @@
|
||||||
|
########################################################
|
||||||
|
# Option GlobeTrotter GT MAX 3.6 (aka "T-Mobile Web'n'walk Card Compact II")
|
||||||
|
#
|
||||||
|
-# Contributor: Bernd Holzmüller
|
||||||
|
+# Contributor: Bernd Holzmüller
|
||||||
|
|
||||||
|
DefaultVendor= 0x05c6
|
||||||
|
DefaultProduct= 0x1000
|
||||||
|
@@ -279,7 +279,7 @@
|
||||||
|
#
|
||||||
|
# Probably works with DetachStorageOnly too
|
||||||
|
#
|
||||||
|
-# Contributor: Flávio Moringa and others
|
||||||
|
+# Contributor: Flávio Moringa and others
|
||||||
|
|
||||||
|
DefaultVendor= 0x19d2
|
||||||
|
DefaultProduct= 0x2000
|
||||||
|
@@ -777,7 +777,7 @@
|
||||||
|
#
|
||||||
|
# Recommended init command: ATE0V1&D2&C1S0=0
|
||||||
|
#
|
||||||
|
-# Contributor: Jérôme Oufella
|
||||||
|
+# Contributor: Jérôme Oufella
|
||||||
|
|
||||||
|
DefaultVendor= 0x1004
|
||||||
|
DefaultProduct= 0x1000
|
||||||
|
@@ -1336,7 +1336,7 @@
|
||||||
|
########################################################
|
||||||
|
# LG HDM-2100 (EVDO Rev.A USB modem)
|
||||||
|
#
|
||||||
|
-# Contributor: Jérôme Oufella
|
||||||
|
+# Contributor: Jérôme Oufella
|
||||||
|
|
||||||
|
DefaultVendor= 0x1004
|
||||||
|
DefaultProduct=0x607f
|
||||||
|
@@ -1641,7 +1641,7 @@
|
||||||
|
########################################################
|
||||||
|
# Huawei U8110 / U8300 / Joy, Vodafone 845 (Android smartphone)
|
||||||
|
#
|
||||||
|
-# Contributor: David Erosa GarcÃÂa
|
||||||
|
+# Contributor: David Erosa García
|
||||||
|
|
||||||
|
DefaultVendor= 0x12d1
|
||||||
|
DefaultProduct=0x1031
|
||||||
|
@@ -1658,7 +1658,7 @@
|
||||||
|
########################################################
|
||||||
|
# Nokia CS-10
|
||||||
|
#
|
||||||
|
-# Contributor: Wacław Sierek
|
||||||
|
+# Contributor: Wacław Sierek
|
||||||
|
|
||||||
|
DefaultVendor= 0x0421
|
||||||
|
DefaultProduct=0x060c
|
||||||
|
@@ -1700,7 +1700,7 @@
|
||||||
|
#######################################################
|
||||||
|
# Samsung GT-B3730
|
||||||
|
#
|
||||||
|
-# Contributor: Per Øyvind Karlsen
|
||||||
|
+# Contributor: Per Øyvind Karlsen
|
||||||
|
|
||||||
|
DefaultVendor= 0x04e8
|
||||||
|
DefaultProduct=0x689a
|
||||||
|
@@ -1771,7 +1771,7 @@
|
||||||
|
#######################################################
|
||||||
|
# Huawei EC168C (from Zantel)
|
||||||
|
#
|
||||||
|
-# Contributor: Ã…smund Hjulstad
|
||||||
|
+# Contributor: Åsmund Hjulstad
|
||||||
|
|
||||||
|
DefaultVendor= 0x12d1
|
||||||
|
DefaultProduct=0x1446
|
3839
device_reference.txt
Normal file
3839
device_reference.txt
Normal file
File diff suppressed because it is too large
Load Diff
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-8
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (usb-modeswitch-2.5.2.tar.bz2) = ad2a7e5134379664fca83b85803e52ec8e3fe3c2d6c633eb5af3c291c43b15ca4a67198612864de01d146a029ee5c475c8c7dc71d16e3a475b532837c5dd34ea
|
203
usb_modeswitch.spec
Normal file
203
usb_modeswitch.spec
Normal file
@ -0,0 +1,203 @@
|
|||||||
|
%define source_name usb-modeswitch
|
||||||
|
|
||||||
|
Name: usb_modeswitch
|
||||||
|
Version: 2.5.2
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: USB Modeswitch gets mobile broadband cards in operational mode
|
||||||
|
Summary(de): USB Modeswitch aktiviert UMTS-Karten
|
||||||
|
Group: Applications/System
|
||||||
|
License: GPLv2+
|
||||||
|
URL: http://www.draisberghof.de/usb_modeswitch/
|
||||||
|
|
||||||
|
Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2
|
||||||
|
Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt
|
||||||
|
|
||||||
|
# Submitted upstream (2014-11-24)
|
||||||
|
Patch0: device_reference-utf8.patch
|
||||||
|
# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2733
|
||||||
|
Patch1: 0001-usb_modeswitch-count-the-target-devices-from-zero.patch
|
||||||
|
|
||||||
|
BuildRequires: libusbx-devel
|
||||||
|
BuildRequires: jimtcl-devel
|
||||||
|
BuildRequires: systemd
|
||||||
|
Requires: usb_modeswitch-data >= 20121109
|
||||||
|
Requires: systemd
|
||||||
|
|
||||||
|
%description
|
||||||
|
USB Modeswitch brings up your datacard into operational mode. When plugged
|
||||||
|
in they identify themselves as cdrom and present some non-Linux compatible
|
||||||
|
installation files. This tool deactivates this cdrom-device and enables
|
||||||
|
the real communication device. It supports most devices built and
|
||||||
|
sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel.
|
||||||
|
|
||||||
|
%description -l de
|
||||||
|
USB Modeswitch deaktiviert die CDROM-Emulation einiger UMTS-Karten.
|
||||||
|
Dadurch erkennt Linux die Datenkarte und kann damit Internet-
|
||||||
|
Verbindungen aufbauen. Die gängigen Karten von Huawei, T-Mobile,
|
||||||
|
Vodafone, Option, ZTE und Novatell werden unterstützt.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{source_name}-%{version}
|
||||||
|
cp -f %{SOURCE1} device_reference.txt
|
||||||
|
|
||||||
|
%patch0 -p0
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{set_build_flags}
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
||||||
|
make install \
|
||||||
|
DESTDIR=$RPM_BUILD_ROOT \
|
||||||
|
SYSDIR=$RPM_BUILD_ROOT%{_unitdir} \
|
||||||
|
UDEVDIR=$RPM_BUILD_ROOT%{_prefix}/lib/udev
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_sbindir}/usb_modeswitch
|
||||||
|
%{_sbindir}/usb_modeswitch_dispatcher
|
||||||
|
%{_mandir}/man1/usb_modeswitch.1.gz
|
||||||
|
%{_mandir}/man1/usb_modeswitch_dispatcher.1.gz
|
||||||
|
%{_prefix}/lib/udev/usb_modeswitch
|
||||||
|
%{_unitdir}/usb_modeswitch@.service
|
||||||
|
%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
|
||||||
|
%doc COPYING README ChangeLog device_reference.txt
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Feb 28 2018 Lubomir Rintel <lkundrak@v3.sk> - 2.5.2-1
|
||||||
|
- New 2.5.2 release
|
||||||
|
|
||||||
|
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 2.5.1-3
|
||||||
|
- Use LDFLAGS from redhat-rpm-config
|
||||||
|
|
||||||
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Aug 18 2017 Lubomir Rintel <lkundrak@v3.sk> - 2.5.1-1
|
||||||
|
- New 2.5.1 release
|
||||||
|
|
||||||
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 29 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-5
|
||||||
|
- Bump the release number to be higher than in Fedora 24
|
||||||
|
|
||||||
|
* Thu Jul 21 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-3
|
||||||
|
- Fix undefined behavior in config parser (rh #1352055)
|
||||||
|
|
||||||
|
* Wed Jul 20 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-2
|
||||||
|
- Add the previously omitted systemd service file (rh #1352055)
|
||||||
|
- Fix crash with invalid arguments (rh #1358472)
|
||||||
|
|
||||||
|
* Wed Jun 22 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-1
|
||||||
|
- New 2.4.0 release
|
||||||
|
|
||||||
|
* Tue May 03 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.3.0-1
|
||||||
|
- New 2.3.0 release
|
||||||
|
|
||||||
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.5-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Aug 18 2015 Lubomir Rintel <lkundrak@v3.sk> - 2.2.5-1
|
||||||
|
- New 2.2.5 release
|
||||||
|
|
||||||
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Feb 22 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2.2.1-1
|
||||||
|
- New 2.2.1 release
|
||||||
|
|
||||||
|
* Mon Nov 24 2014 Till Maas <opensource@till.name> - 2.2.0-2
|
||||||
|
- Update device_reference.txt, make it proper UTF-8
|
||||||
|
|
||||||
|
* Tue Aug 26 2014 Robert M. Albrecht <mail@romal.de> - 2.2.0-1
|
||||||
|
- New upstream release
|
||||||
|
- Fixed a typo in the description
|
||||||
|
|
||||||
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Apr 16 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.1-1
|
||||||
|
- Update to 2.1.1
|
||||||
|
|
||||||
|
* Tue Jan 28 2014 Dan Williams <dcbw@redhat.com> - 2.0.1-2
|
||||||
|
- Resurrect manpage patch
|
||||||
|
|
||||||
|
* Mon Jan 6 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.0.1-1
|
||||||
|
- Update to 2.0.1 and build against libusbx (RHBZ 994974)
|
||||||
|
- Use distro jimtcl (RHBZ 967314)
|
||||||
|
- Fix build on aarch64
|
||||||
|
- Cleanup and modernise spec
|
||||||
|
|
||||||
|
* Wed Aug 28 2013 Thomas Haller <thaller@redhat.com> 1.2.7-3
|
||||||
|
- Add manual page for usb_modeswitch_dispatcher and fix errors in
|
||||||
|
manual page of usb_modeswitch (rhbz#948451, rhbz#884203).
|
||||||
|
|
||||||
|
* Mon Aug 26 2013 Dan Williams <dcbw@redhat.com> - 1.2.7-2
|
||||||
|
- Fix udev helper path
|
||||||
|
|
||||||
|
* Fri Aug 16 2013 Dan Williams <dcbw@redhat.com> - 1.2.7-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Fri Jul 26 2013 Dan Williams <dcbw@redhat.com> - 1.2.6-2
|
||||||
|
- Fix udev directories
|
||||||
|
|
||||||
|
* Wed Jun 12 2013 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.2.6
|
||||||
|
- New upstream release.
|
||||||
|
|
||||||
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Nov 13 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.2.5-1
|
||||||
|
- New upstream release. Resolves rhbz#875832
|
||||||
|
|
||||||
|
* Fri Aug 24 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.2.4-1
|
||||||
|
- New upstream release. Resolves rhbz#785539
|
||||||
|
|
||||||
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Apr 24 2012 Dan Williams <dcbw@redhat.com> 1.2.3-1
|
||||||
|
- Update to new upstream release
|
||||||
|
- Build TCL tool as a static binary to remove dependency on TCL itself rhbz#760839
|
||||||
|
|
||||||
|
* Wed Jan 25 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.2.2-2
|
||||||
|
- Add usb_modeswitch.sh udev script and move Tcl dispatcher script to sbindir,
|
||||||
|
resolves rhbz#782614, patch from Dominic Cleal
|
||||||
|
- Fix bus/device-based search, from deb#656248
|
||||||
|
|
||||||
|
* Fri Jan 20 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.2.2
|
||||||
|
- New upstream version 1.2.2
|
||||||
|
|
||||||
|
* Fri Jan 06 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.2.1-1
|
||||||
|
- New upstream version 1.2.1
|
||||||
|
|
||||||
|
* Tue Oct 25 2011 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.2.0-1
|
||||||
|
- New upstream
|
||||||
|
- use device_reference.txt from upstream
|
||||||
|
|
||||||
|
* Mon Mar 28 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 1.1.7-1
|
||||||
|
- New upstream release. Resolves rhbz#625004
|
||||||
|
- Update spec to match current guidelines
|
||||||
|
- Fix relevant rpmlint errors and warnings
|
||||||
|
|
||||||
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Dec 30 2010 Dan Williams <dcbw@redhat.com> 1.1.6-1
|
||||||
|
- New upstream version
|
Loading…
Reference in New Issue
Block a user