summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2008-08-25 22:28:34 +0000
committerWolfram Schlich <wschlich@gentoo.org>2008-08-25 22:28:34 +0000
commit0b566fe29aa5d3f84f784681b60d1515cb58d6b6 (patch)
tree90210473886d6a18d476c16104dbcc9fd17523f5 /sys-apps
parentbump to 2.0.0, mostly win32 enhancements. clean up repoman warnings. (diff)
downloadhistorical-0b566fe29aa5d3f84f784681b60d1515cb58d6b6.tar.gz
historical-0b566fe29aa5d3f84f784681b60d1515cb58d6b6.tar.bz2
historical-0b566fe29aa5d3f84f784681b60d1515cb58d6b6.zip
initial import
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.24-gentoo-r5-1 i686
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/usb_modeswitch/ChangeLog12
-rw-r--r--sys-apps/usb_modeswitch/Manifest6
-rw-r--r--sys-apps/usb_modeswitch/files/91-usb_modeswitch.rules.udev-ge-1061
-rw-r--r--sys-apps/usb_modeswitch/files/91-usb_modeswitch.rules.udev-lt-1061
-rw-r--r--sys-apps/usb_modeswitch/metadata.xml10
-rw-r--r--sys-apps/usb_modeswitch/usb_modeswitch-0.9.4.ebuild50
6 files changed, 80 insertions, 0 deletions
diff --git a/sys-apps/usb_modeswitch/ChangeLog b/sys-apps/usb_modeswitch/ChangeLog
new file mode 100644
index 000000000000..932f85414276
--- /dev/null
+++ b/sys-apps/usb_modeswitch/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for sys-apps/usb_modeswitch
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usb_modeswitch/ChangeLog,v 1.1 2008/08/25 22:28:23 wschlich Exp $
+
+*usb_modeswitch-0.9.4 (25 Aug 2008)
+
+ 25 Aug 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +files/91-usb_modeswitch.rules.udev-ge-106,
+ +files/91-usb_modeswitch.rules.udev-lt-106, +metadata.xml,
+ +usb_modeswitch-0.9.4.ebuild:
+ initial import
+
diff --git a/sys-apps/usb_modeswitch/Manifest b/sys-apps/usb_modeswitch/Manifest
new file mode 100644
index 000000000000..eb9a1faa73d3
--- /dev/null
+++ b/sys-apps/usb_modeswitch/Manifest
@@ -0,0 +1,6 @@
+AUX 91-usb_modeswitch.rules.udev-ge-106 103 RMD160 8f8e937275ea9a20a04706367c4a88c8fcc3fced SHA1 ac1abd61fe39e4e4c06a30d36b91b92675570343 SHA256 59780e741b77e9c607337788ecfd649d1e15d685775c4bde054bebd6db475507
+AUX 91-usb_modeswitch.rules.udev-lt-106 102 RMD160 7087efbe9bf0036d0667ad3d4da0519fb8bf69e1 SHA1 be900037f59f229b8d701230ef2bcc56a1546e6f SHA256 6e3c63255665389c40f8a3bd665fdfdfa81992c45475f5cdde434f90a1a6c51e
+DIST usb_modeswitch-0.9.4.tar.bz2 22498 RMD160 ee2c890e29da356dca7a4cee1e4d2ddca167f536 SHA1 358ef293f841f419720445ab2c109cc5c81b3978 SHA256 ffed8af4865753c845c67e0b0787dcdbcf4038e80f528805fdc04dea24fa7ee2
+EBUILD usb_modeswitch-0.9.4.ebuild 1489 RMD160 bb9c184fe31c6078def5aa0eddac9a45c235a5b3 SHA1 2547b8d5200079c90081dca971f746250f34c405 SHA256 1cf5f588b51b70505f5a55e54f8b1eca2b9062a687d321c0c9dc87aeddc07f47
+MISC ChangeLog 468 RMD160 d095ccb7cfd3fe9cb9be6d51f4c2aba083413256 SHA1 8cbdb0859df2260cb1cc33d6c3ea58143233356b SHA256 1b558f949fe9414a0a3222d73218d883f007e6e19b80b80e21497996366d4b06
+MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43
diff --git a/sys-apps/usb_modeswitch/files/91-usb_modeswitch.rules.udev-ge-106 b/sys-apps/usb_modeswitch/files/91-usb_modeswitch.rules.udev-ge-106
new file mode 100644
index 000000000000..f24e04cb1c16
--- /dev/null
+++ b/sys-apps/usb_modeswitch/files/91-usb_modeswitch.rules.udev-ge-106
@@ -0,0 +1 @@
+#SUBSYSTEMS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="1000", RUN+="/usr/sbin/usb_modeswitch"
diff --git a/sys-apps/usb_modeswitch/files/91-usb_modeswitch.rules.udev-lt-106 b/sys-apps/usb_modeswitch/files/91-usb_modeswitch.rules.udev-lt-106
new file mode 100644
index 000000000000..2129576a5eb1
--- /dev/null
+++ b/sys-apps/usb_modeswitch/files/91-usb_modeswitch.rules.udev-lt-106
@@ -0,0 +1 @@
+#SUBSYSTEM=="usb", SYSFS{idVendor}=="05c6", SYSFS{idProduct}=="1000", RUN+="/usr/sbin/usb_modeswitch"
diff --git a/sys-apps/usb_modeswitch/metadata.xml b/sys-apps/usb_modeswitch/metadata.xml
new file mode 100644
index 000000000000..a7162e9b7104
--- /dev/null
+++ b/sys-apps/usb_modeswitch/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>wschlich@gentoo.org</email>
+ <name>Wolfram Schlich</name>
+ <description>Primary maintainer</description>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-apps/usb_modeswitch/usb_modeswitch-0.9.4.ebuild b/sys-apps/usb_modeswitch/usb_modeswitch-0.9.4.ebuild
new file mode 100644
index 000000000000..1ae6addfeb19
--- /dev/null
+++ b/sys-apps/usb_modeswitch/usb_modeswitch-0.9.4.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usb_modeswitch/usb_modeswitch-0.9.4.ebuild,v 1.1 2008/08/25 22:28:23 wschlich Exp $
+
+inherit toolchain-funcs
+
+DESCRIPTION="USB_ModeSwitch is a tool for controlling 'flip flop' (multiple devices) USB gear like UMTS sticks."
+HOMEPAGE="http://www.draisberghof.de/usb_modeswitch/"
+SRC_URI="http://www.draisberghof.de/usb_modeswitch/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="dev-libs/libusb"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ $(tc-getCC) ${CFLAGS} ${LDFLAGS} -l usb -o usb_modeswitch usb_modeswitch.c \
+ || die 'failed to compile usb_modeswitch'
+}
+
+src_install() {
+ dosbin usb_modeswitch
+ insinto /etc
+ doins usb_modeswitch.conf
+ if has_version '>=sys-fs/udev-0'; then
+ insinto /etc/udev
+ if has_version '>=sys-fs/udev-106'; then
+ newins "${FILESDIR}"/91-usb_modeswitch.rules.udev-ge-106 \
+ 91-usb_modeswitch.rules
+ elif has_version '<sys-fs/udev-106'; then
+ newins "${FILESDIR}"/91-usb_modeswitch.rules.udev-lt-106 \
+ 91-usb_modeswitch.rules
+ fi
+ fi
+}
+
+pkg_postinst() {
+ echo
+ if has_version '>=sys-fs/udev-0'; then
+ einfo 'For automated mode switching via udev, use "lsusb"'
+ einfo 'to find the correct values for your device and modify'
+ einfo 'them in /etc/udev/rules.d/91-usb_modeswitch.rules'
+ fi
+ einfo 'You should also read the documentation on'
+ einfo "${HOMEPAGE}"
+ echo
+}