diff options
author | 2009-04-15 15:57:46 +0000 | |
---|---|---|
committer | 2009-04-15 15:57:46 +0000 | |
commit | e1bb75b22ad3e282d79540a7c4b3bc6de9fb4a2b (patch) | |
tree | 1ed691d5934276f662eb7143450d1f39dd4f60ac /sys-apps | |
parent | fix typos on ChangeLogs... (diff) | |
download | jokey-e1bb75b22ad3e282d79540a7c4b3bc6de9fb4a2b.tar.gz jokey-e1bb75b22ad3e282d79540a7c4b3bc6de9fb4a2b.tar.bz2 jokey-e1bb75b22ad3e282d79540a7c4b3bc6de9fb4a2b.zip |
New usb_modeswitch
svn path=/trunk/; revision=651
Diffstat (limited to 'sys-apps')
5 files changed, 63 insertions, 0 deletions
diff --git a/sys-apps/usb_modeswitch/Manifest b/sys-apps/usb_modeswitch/Manifest new file mode 100644 index 0000000..eab1468 --- /dev/null +++ b/sys-apps/usb_modeswitch/Manifest @@ -0,0 +1,5 @@ +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.6.tar.bz2 25976 RMD160 56f4e970f941ae663669dc27d296472952354fc8 SHA1 7f758c8b86044c8d568856a401fca244920ba41f SHA256 8dd9a3efa7c20a92a6bf8dafaef70b1a98c858c678bd3e6bfd7739f4db01eadc +EBUILD usb_modeswitch-0.9.6.ebuild 1475 RMD160 27da864ff304d4d0f89c363c65f49f91238c5842 SHA1 e741cc01d08ac69a0a565772e5ebd36116107226 SHA256 b2032e5e1eb60c5167e0fb0abd2b4a8c9e71d2ff180fc2908e9980ed4c547bfa +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 0000000..f24e04c --- /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 0000000..2129576 --- /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 0000000..a7162e9 --- /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.6.ebuild b/sys-apps/usb_modeswitch/usb_modeswitch-0.9.6.ebuild new file mode 100644 index 0000000..53f5936 --- /dev/null +++ b/sys-apps/usb_modeswitch/usb_modeswitch-0.9.6.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2009 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.2 2009/02/23 09:43:15 flameeyes 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) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o usb_modeswitch usb_modeswitch.c -lusb \ + || 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/rules.d + 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() { + if has_version '>=sys-fs/udev-0'; then + elog 'For automated mode switching via udev, use "lsusb" to find the correct values' + elog 'for your device and modify them in /etc/udev/rules.d/91-usb_modeswitch.rules' + fi + elog "You should also read the documentation at ${HOMEPAGE}" +} |