blob: 77a14898e0dd82a65b069b11a1ec73153df0ea6e (
plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hotplug/hotplug-20020114.ebuild,v 1.11 2003/02/13 16:00:33 vapier Exp $
# source maintainers named it hotplug-YYYY_MM_DD instead of hotplug-YYYYMMDD
S=${WORKDIR}/${P}
DESCRIPTION="USB hotplug utilities"
SRC_URI="mirror://sourceforge/linux-hotplug/hotplug-2002_01_14.tar.gz"
HOMEPAGE="http://linux-hotplug.sourceforge.net"
KEYWORDS="x86 ppc sparc "
SLOT="0"
LICENSE="GPL-2"
# hotplug needs pcimodules utility provided by pcitutils-2.1.9-r1
DEPEND="virtual/glibc
>=sys-apps/pciutils-2.1.9
>=sys-apps/usbutils-0.9"
src_unpack() {
unpack ${A}
# move it to dir which matches ebuild name
mv ${WORKDIR}/hotplug-2002_01_14 ${S}
# replace scripts which have redhat specific stuff
cp ${FILESDIR}/pci.rc ${S}/etc/hotplug/pci.rc
cp ${FILESDIR}/usb.rc ${S}/etc/hotplug/usb.rc
}
src_compile() {
# compile fxload program
make PREFIX="" all || die
}
src_install() {
into /
dosbin sbin/hotplug
doman *.8
dodoc README ChangeLog Makefile mkinstalldirs hotplug.spec
# fxload usb firmware downloader
cd ${S}/fxload
doman *.8
docinto fxload
dodoc README.txt Makefile
cd ${S}/etc/hotplug
insinto /etc/hotplug
doins *
exeinto /etc/hotplug
doexe *.agent
newexe ${FILESDIR}/pci.rc pci.rc
newexe ${FILESDIR}/usb.rc usb.rc
exeinto /etc/init.d
newexe ${FILESDIR}/hotplug.rc hotplug
}
|