summaryrefslogtreecommitdiff
path: root/community/ozerocdoff
diff options
context:
space:
mode:
Diffstat (limited to 'community/ozerocdoff')
-rw-r--r--community/ozerocdoff/PKGBUILD37
-rw-r--r--community/ozerocdoff/remove-old-rules.patch79
2 files changed, 0 insertions, 116 deletions
diff --git a/community/ozerocdoff/PKGBUILD b/community/ozerocdoff/PKGBUILD
deleted file mode 100644
index aa5cb4031..000000000
--- a/community/ozerocdoff/PKGBUILD
+++ /dev/null
@@ -1,37 +0,0 @@
-# $Id: PKGBUILD 91884 2013-05-28 18:09:59Z spupykin $
-# Maintainer: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
-
-pkgname=ozerocdoff
-pkgver=2
-pkgrel=8
-pkgdesc="Userspace driver for Option High Speed Mobile Devices"
-arch=('i686' 'x86_64')
-url="http://www.pharscape.org/ozerocdoff.html"
-depends=('bash' 'libusb-compat')
-license=('GPL2')
-options=('!emptydirs')
-source=(udev.tar.gz::"http://www.pharscape.org/forum/index.php?action=dlattach;topic=545.0;attach=4"
- "remove-old-rules.patch")
-md5sums=('88a78f9380d9591f8d20a657b72e3e5c'
- '28ed1afd16fdec92de3baf66b32b0b12')
-
-prepare() {
- cd "${srcdir}/udev"
- patch -p1 <$srcdir/remove-old-rules.patch
- sed -i 's|usr/sbin|usr/bin|g' Makefile
-}
-
-build() {
- cd "${srcdir}/udev"
- make clean
- make
-}
-
-package() {
- cd "${srcdir}/udev"
- make DESTDIR="${pkgdir}" install
- rm -rf $pkgdir/usr/lib/hal
- rm -rf $pkgdir/usr/share/hal
- mkdir -p $pkgdir/usr/lib
- mv $pkgdir/etc/udev $pkgdir/usr/lib
-}
diff --git a/community/ozerocdoff/remove-old-rules.patch b/community/ozerocdoff/remove-old-rules.patch
deleted file mode 100644
index 3a95877e2..000000000
--- a/community/ozerocdoff/remove-old-rules.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-diff -wbBur udev/hso.udev udev.my/hso.udev
---- udev/hso.udev 2008-06-19 14:34:07.000000000 +0400
-+++ udev.my/hso.udev 2012-01-07 15:31:02.000000000 +0400
-@@ -1,8 +1,5 @@
- ACTION!="add", GOTO="hso_end"
-
--# Syntax switch, need possibly for upcoming Distros
--ATTR{dev}!="?*", GOTO="hso_old_syntax"
--
- ############################### NEW SYNTAX ###############################
-
- LABEL="hso_new_syntax"
-@@ -63,65 +60,11 @@
- SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTR{hsotype}=="PCSC", SYMLINK+="wpcsc0"
- GOTO="hso_tty_permission"
-
--
--############################### OLD SYNTAX ###############################
--
--LABEL="hso_old_syntax"
--#RUN+="/binb/touch /tmp/udev-syntax-old"
--
--# enable Selective suspend in USB core system by a helper script
--SUBSYSTEM=="usb", SYSFS{idVendor}=="0af0", SYSFS{bDeviceClass}=="ff", RUN+="/usr/sbin/osetsuspend udev %k"
--
--# send rezero command via ozerocdoff, which uses usblib for all known ZCOPTION devices, supported by bundled driver
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="6711", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="6731", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="6751", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="6771", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="6791", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="6811", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="6911", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="6951", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="6971", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7011", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7031", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7051", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7071", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7111", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7211", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7251", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7271", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7311", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="c031", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="d031", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="d033", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7301", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7361", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7401", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7501", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7601", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"
--# Note SYSTEMS and ATTRS is not supported by udev from Xandros/EeePC
--
--# add device node links to all possible device
--SUBSYSTEM=="tty", SYSFS{hsotype}=="Control", SYMLINK+="wctrl0"
--SUBSYSTEM=="tty", SYSFS{hsotype}=="Application", SYMLINK+="wapp0"
--SUBSYSTEM=="tty", SYSFS{hsotype}=="Application", SYMLINK+="wappa0"
--SUBSYSTEM=="tty", SYSFS{hsotype}=="Application2",SYMLINK+="wappb0"
--SUBSYSTEM=="tty", SYSFS{hsotype}=="Diagnostic", SYMLINK+="wdiag0"
--SUBSYSTEM=="tty", SYSFS{hsotype}=="Diagnostic", SYMLINK+="wdiaga0"
--SUBSYSTEM=="tty", SYSFS{hsotype}=="Diagnostic2", SYMLINK+="wdiagb0"
--SUBSYSTEM=="tty", SYSFS{hsotype}=="Modem", SYMLINK+="wmodem0"
--SUBSYSTEM=="tty", SYSFS{hsotype}=="GPS", SYMLINK+="wgps0"
--SUBSYSTEM=="tty", SYSFS{hsotype}=="GPS_Control", SYMLINK+="wgpsc0"
--SUBSYSTEM=="tty", SYSFS{hsotype}=="PCSC", SYMLINK+="wpcsc0"
--# Note use here SYSFS instead of ATTR to be compatible to Xandros/EeePC
--# Note use no extra check for SUBSYSTEMS=="usb", ATTRS{DRIVERS}="hso", because it is not supported by Xandros/EeePC
--
--
- ############################### COMMON SYNTAX ###############################
-
- LABEL="hso_tty_permission"
- # setup group proper group rights
--KERNEL=="ttyHS[0-9]*", NAME="%k", GROUP="dialout", MODE="0660"
-+KERNEL=="ttyHS[0-9]*", GROUP="network", MODE="0660"
-
-
- SUBSYSTEM!="usb", GOTO="hso_end"