diff options
author | John J. Ellis <jje@gentoo.org> | 2003-05-22 11:30:38 +0000 |
---|---|---|
committer | John J. Ellis <jje@gentoo.org> | 2003-05-22 11:30:38 +0000 |
commit | 309d1516ab595dba5a77e75dd6ba46a51d09444f (patch) | |
tree | c856c72ebd04177aa2e6d855a18a447e26ad47c7 /media-sound/usbmidi | |
parent | Initial revision (~x86 masked) (diff) | |
download | gentoo-2-309d1516ab595dba5a77e75dd6ba46a51d09444f.tar.gz gentoo-2-309d1516ab595dba5a77e75dd6ba46a51d09444f.tar.bz2 gentoo-2-309d1516ab595dba5a77e75dd6ba46a51d09444f.zip |
Initial revision (~x86 masked)
Diffstat (limited to 'media-sound/usbmidi')
-rw-r--r-- | media-sound/usbmidi/ChangeLog | 11 | ||||
-rw-r--r-- | media-sound/usbmidi/Manifest | 4 | ||||
-rw-r--r-- | media-sound/usbmidi/files/digest-usbmidi-1.0 | 1 | ||||
-rw-r--r-- | media-sound/usbmidi/files/ezusbmidi | 41 | ||||
-rw-r--r-- | media-sound/usbmidi/files/ezusbmidi.usermap | 4 | ||||
-rw-r--r-- | media-sound/usbmidi/usbmidi-1.0.ebuild | 39 |
6 files changed, 98 insertions, 2 deletions
diff --git a/media-sound/usbmidi/ChangeLog b/media-sound/usbmidi/ChangeLog new file mode 100644 index 000000000000..96dcc43f1a17 --- /dev/null +++ b/media-sound/usbmidi/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for media-sound/usbmidi +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/usbmidi/ChangeLog,v 1.1 2003/05/22 11:30:15 jje Exp $ + +*usbmidi-1.0 (22 May 2003) + + 22 May 2003; root <root@gentoo.org> usbmidi-1.0.ebuild, files/ezusbmidi, + files/ezusbmidi.usermap: + Initial revision. + + Submitted by: robh@gentoo.org diff --git a/media-sound/usbmidi/Manifest b/media-sound/usbmidi/Manifest index 042631723ca2..03a83834efe7 100644 --- a/media-sound/usbmidi/Manifest +++ b/media-sound/usbmidi/Manifest @@ -1,5 +1,5 @@ -MD5 8e7507ed5ced15b925f1bb8fe13f01ec usbmidi-1.0.ebuild 1010 -MD5 6af8f97c561b1b3a6824ef03960bae0b ChangeLog 313 +MD5 34aeeacfe7a1ace71e6faac08d13748a usbmidi-1.0.ebuild 1108 +MD5 f5fe3cbf2cdc87b92a1c149257c9d879 ChangeLog 402 MD5 b6b08b082cdd69678d1034f0d6b9b129 files/digest-usbmidi-1.0 67 MD5 7708d9c50a42ddfbf40aed3e6d480b60 files/ezusbmidi 947 MD5 007cb1fe02b3ca041259d819d8958608 files/ezusbmidi.usermap 174 diff --git a/media-sound/usbmidi/files/digest-usbmidi-1.0 b/media-sound/usbmidi/files/digest-usbmidi-1.0 new file mode 100644 index 000000000000..26c4447fdc2f --- /dev/null +++ b/media-sound/usbmidi/files/digest-usbmidi-1.0 @@ -0,0 +1 @@ +MD5 4ca0058c16096a3bef2a0c90f5b2f571 usbmidi-20030126.tar.gz 64447 diff --git a/media-sound/usbmidi/files/ezusbmidi b/media-sound/usbmidi/files/ezusbmidi new file mode 100644 index 000000000000..105332b5c567 --- /dev/null +++ b/media-sound/usbmidi/files/ezusbmidi @@ -0,0 +1,41 @@ +#!/bin/sh +FIRMWARE= +FLAGS= +LOADER=/sbin/fxload +# pre-renumeration device IDs +case $PRODUCT in +# Midisport 1x1 +763/1010/*) + FIRMWARE=/usr/share/usb/ezusbmidi/ezusbmidi1x1.ihx + ;; +# Midisport 2x2 +763/1001/*) + FIRMWARE=/usr/share/usb/ezusbmidi/ezusbmidi2x2.ihx + ;; +esac +# quit unless we were called to download some firmware +if [ "$FIRMWARE" = "" ]; then + if [ -x /usr/bin/logger ]; then + /usr/bin/logger -t $0 "there is not a firmware for $PRODUCT ??" + fi + exit 1 +fi +# missing firmware? +if [ ! -r $FIRMWARE ]; then + if [ -x /usr/bin/logger ]; then + /usr/bin/logger -t $0 "missing $FIRMWARE for $PRODUCT ??" + fi + exit 1 +fi +# missing loader? +if [ ! -x $LOADER ]; then + if [ -x /usr/bin/logger ]; then + /usr/bin/logger -t $0 "missing $LOADER ??" + fi + exit 1 +fi +if [ -x /usr/bin/logger ]; then + /usr/bin/logger -t $0 "load $FIRMWARE for $PRODUCT to $DEVICE" +fi +$LOADER $FLAGS -I $FIRMWARE + diff --git a/media-sound/usbmidi/files/ezusbmidi.usermap b/media-sound/usbmidi/files/ezusbmidi.usermap new file mode 100644 index 000000000000..67440fc227ae --- /dev/null +++ b/media-sound/usbmidi/files/ezusbmidi.usermap @@ -0,0 +1,4 @@ +ezusbmidi 0x0003 0x0763 0x1010 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 +ezusbmidi 0x0003 0x0763 0x1001 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 + + diff --git a/media-sound/usbmidi/usbmidi-1.0.ebuild b/media-sound/usbmidi/usbmidi-1.0.ebuild new file mode 100644 index 000000000000..8ae7b2f0dd05 --- /dev/null +++ b/media-sound/usbmidi/usbmidi-1.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/usbmidi/usbmidi-1.0.ebuild,v 1.1 2003/05/22 11:30:15 jje Exp $ + +DESCRIPTION="Sets up hotplugging support for MidiMan midisport 1x1/2x2 usb devices" +HOMEPAGE="http:///" +SRC_URI="http://member.nifty.ne.jp/Breeze/softwares/unix/bin/usbmidi-20030126.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND="" + +RDEPEND="sys-apps/hotplug + sys-apps/ezusb2131 + sys-apps/fxload" + +S="${WORKDIR}/usbmidi-20030126" +src_install() { + insinto ${D}/usr/share/usb/ezusbmidi + doins ${S}/testing/MidiSport/ezusbmidi*.ihx + + insinto /etc/hotplug/usb + doins ${FILESDIR}/ezusbmidi.usermap + + exeinto /etc/hotplug/usb + doexe ${FILESDIR}/ezusbmidi +} + +pkg_postinst() { + einfo "" + einfo "Now the firmware is installed and hotplug has been setup." + einfo "Please unplug the midisport, then plug it back in." + einfo "The light should start to glow, if that happens its worked." + einfo "The midisport ports will appear as 'normal' midi ports under /dev" + einfo "" +} + |