1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 | # Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils linux-info
DESCRIPTION="M-Audio DFU firmware loader for MobilePre, Ozone, Sonica and Transit USB audio interfaces"
HOMEPAGE="http://usb-midi-fw.sourceforge.net/"
SRC_URI="mirror://sourceforge/usb-midi-fw/${P}.tar.gz"
LICENSE="GPL-2 madfuload"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
pkg_setup() {
if ! kernel_is ge 2 6 8 ; then
die "Kernel >= 2.6.8 needed.";
fi
linux-info_pkg_setup
}
src_unpack() {
unpack ${A} || die "unpacking sources failed"
cd "${S}" || die "cd ${S} failed"
epatch "${FILESDIR}/${P}-udevinfo-autotools.patch" "${FILESDIR}/${P}-udevinfo-configure.patch"
}
src_compile() {
econf
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
dodoc README || die "adding documentation failed"
}
pkg_postinst() {
einfo "You need to reload udev rules before connecting the device:"
einfo "# udevadm control --reload-rules"
einfo "Also you might have to change the MobilePre RUN parameter"
einfo "in /etc/udev/rules.d/42-madfuload.rules to"
einfo "\"/usr/sbin/madfuload -l -D %E{DEVICE} -3 -f /usr/share/usb/maudio/ma004103.bin\""
}
|
This item will be deleted in 2 days
URL: http://dpaste.com/111019/