add usb-modeswitch.

This commit is contained in:
4fury-c3440d8
2020-11-20 00:40:10 +03:00
parent 78215047ca
commit 0aa82057a6
3 changed files with 128 additions and 0 deletions
+23
View File
@@ -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")
+97
View File
@@ -0,0 +1,97 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>usb-modeswitch</Name>
<Homepage>https://www.draisberghof.de/usb_modeswitch/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2+</License>
<IsA>app:console</IsA>
<PartOf>hardware.mobile</PartOf>
<Summary>Mode switching tool for broadband devices</Summary>
<Description>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.</Description>
<Archive sha1sum="ddf2b214488aa63e7e390d1ed0113b66262af343" type="tarbz2">
https://www.draisberghof.de/usb_modeswitch/usb-modeswitch-2.6.1.tar.bz2
</Archive>
<Archive sha1sum="64e923d366fbb8c5954d17dd0e9e8b334d1863ff" type="tarbz2">
https://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20191128.tar.bz2
</Archive>
<BuildDependencies>
<Dependency>tcl-devel</Dependency>
<Dependency>libusb-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>usb-modeswitch</Name>
<RuntimeDependencies>
<Dependency>libusb</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="executable">/lib/udev</Path>
<Path fileType="data">/lib/udev/rules.d</Path>
<Path fileType="data">/usr/share/usb_modeswitch</Path>
<Path fileType="data">/var/lib/usb_modeswitch</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="7">
<Date>2020-09-12</Date>
<Version>2.6.1</Version>
<Comment>Ver. bump</Comment>
<Name>fury</Name>
<Email>wascheme@tuta.io</Email>
</Update>
<Update release="6">
<Date>2019-11-31</Date>
<Version>2.6.0</Version>
<Comment>Ver. bump</Comment>
<Name>fury</Name>
<Email>wascheme@tuta.io</Email>
</Update>
<Update release="5">
<Date>2014-08-18</Date>
<Version>2.2.0</Version>
<Comment>Version bump.</Comment>
<Name>Vedat Demir</Name>
<Email>vedat@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2014-03-07</Date>
<Version>1.2.7</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2014-02-17</Date>
<Version>1.2.5</Version>
<Comment>Rebuild.</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-04-12</Date>
<Version>1.2.5</Version>
<Comment>V.Bump</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2011-08-03</Date>
<Version>1.1.8</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>usb-modeswitch</Name>
<Summary xml:lang="tr">Genişbant cihazlar için kip değiştirme aracı</Summary>
<Description xml:lang="tr">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.</Description>
</Source>
</PISI>