From 0aa82057a60be6ccc80397f90c07a2dd53f2b9d6 Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Fri, 20 Nov 2020 00:40:10 +0300 Subject: [PATCH] add usb-modeswitch. --- hardware/mobile/usb-modeswitch/actions.py | 23 +++++ hardware/mobile/usb-modeswitch/pspec.xml | 97 +++++++++++++++++++ .../mobile/usb-modeswitch/translations.xml | 8 ++ 3 files changed, 128 insertions(+) create mode 100644 hardware/mobile/usb-modeswitch/actions.py create mode 100644 hardware/mobile/usb-modeswitch/pspec.xml create mode 100644 hardware/mobile/usb-modeswitch/translations.xml diff --git a/hardware/mobile/usb-modeswitch/actions.py b/hardware/mobile/usb-modeswitch/actions.py new file mode 100644 index 0000000000..43382284fe --- /dev/null +++ b/hardware/mobile/usb-modeswitch/actions.py @@ -0,0 +1,23 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +SNAPSHOT="20191128" + +def build(): + autotools.make("CC='%s' CFLAGS='%s'" % (get.CC(), get.CFLAGS())) + +def install(): + autotools.rawInstall("DESTDIR='%s'" % get.installDIR()) + autotools.rawInstall("-C ../usb-modeswitch-data-%s DESTDIR='%s'" % (SNAPSHOT, get.installDIR())) + + pisitools.removeDir("/etc/usb_modeswitch.d") + + pisitools.dodoc("ChangeLog", "COPYING", "README") + diff --git a/hardware/mobile/usb-modeswitch/pspec.xml b/hardware/mobile/usb-modeswitch/pspec.xml new file mode 100644 index 0000000000..c34217a89d --- /dev/null +++ b/hardware/mobile/usb-modeswitch/pspec.xml @@ -0,0 +1,97 @@ + + + + + usb-modeswitch + https://www.draisberghof.de/usb_modeswitch/ + + PisiLinux Community + admins@pisilinux.org + + GPLv2+ + app:console + hardware.mobile + Mode switching tool for broadband devices + usb-modeswitch brings up your data card into operational mode. When plugged in, they identify themselves as CD-ROM and present some non-Linux compatible installation files. This tool deactivates those CD-ROM devices and enables the real communication interface. It supports most devices manufactured by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel. + + https://www.draisberghof.de/usb_modeswitch/usb-modeswitch-2.6.1.tar.bz2 + + + https://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20191128.tar.bz2 + + + tcl-devel + libusb-devel + + + + + usb-modeswitch + + libusb + + + /etc + /usr/sbin + /lib/udev + /lib/udev/rules.d + /usr/share/usb_modeswitch + /var/lib/usb_modeswitch + /usr/share/man + /usr/share/doc + + + + + + 2020-09-12 + 2.6.1 + Ver. bump + fury + wascheme@tuta.io + + + 2019-11-31 + 2.6.0 + Ver. bump + fury + wascheme@tuta.io + + + 2014-08-18 + 2.2.0 + Version bump. + Vedat Demir + vedat@pisilinux.org + + + 2014-03-07 + 1.2.7 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2014-02-17 + 1.2.5 + Rebuild. + PisiLinux Community + admins@pisilinux.org + + + 2013-04-12 + 1.2.5 + V.Bump + PisiLinux Community + admins@pisilinux.org + + + 2011-08-03 + 1.1.8 + First release + Pisi Linux Admins + admins@pisilinux.org + + + + diff --git a/hardware/mobile/usb-modeswitch/translations.xml b/hardware/mobile/usb-modeswitch/translations.xml new file mode 100644 index 0000000000..eb0be756e9 --- /dev/null +++ b/hardware/mobile/usb-modeswitch/translations.xml @@ -0,0 +1,8 @@ + + + + usb-modeswitch + Genişbant cihazlar için kip değiştirme aracı + usb-modeswitch, genişbant cihazları CD-ROM kipinden, ağ kartı kipine geçirir. Bu cihazlar, Linux dışındaki işletim sistemlerine sürücülerini otomatik yükleyebilmek için ilk takıldıklarında kendilerini CD-ROM olarak tanıtırlar. Bu araçla, bu kip pasif hale getirilip, iletişim arayüzü etkinleştirilir. Huawei, T-Mobile, Vodafone, Option, ZTE ve Novatel tarafından üretilen cihazlar desteklenmektedir. + +