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
commit79c2c9621da757cb703784fcc3f438e095187a81 (patch)
tree138330b5040647decde3f326f8c5e6410d7bf12d /sys-apps
parentbump to 2.0.0, mostly win32 enhancements. clean up repoman warnings. (diff)
downloadgentoo-2-79c2c9621da757cb703784fcc3f438e095187a81.tar.gz
gentoo-2-79c2c9621da757cb703784fcc3f438e095187a81.tar.bz2
gentoo-2-79c2c9621da757cb703784fcc3f438e095187a81.zip
initial import
(Portage version: 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..179e7800a9c7
--- /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 1374 RMD160 d41e1c10d37500998f034ce68f6f121a7de6a462 SHA1 91ce9df1ab8eff60c2ea8c62f7da109fd8479f9e SHA256 c4e69c20762c359278946d2992385e2e55078432ae845d925dc9b949b292fcce
+MISC ChangeLog 371 RMD160 f015a6033db4f4b28adaeff0f4f7692943617bec SHA1 0077821a604dd5f886c91dfe78ecd74ba49f9e57 SHA256 6ce70b53f5216af8cb3582eaf21e6b918815274ad3af424806a406a56150631b
+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
+}