blob: 87892e510a62adc11ee6681407fc2a623e9f38c9 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hotplug/hotplug-20020401.ebuild,v 1.7 2002/10/20 18:54:50 vapier Exp $
# source maintainers named it hotplug-YYYY_MM_DD instead of hotplug-YYYYMMDD
MY_P=`echo ${P}|sed 's/-\(....\)\(..\)\(..\)/-\1_\2_\3/'`
S=${WORKDIR}/${MY_P}
DESCRIPTION="USB and PCI hotplug scripts"
SRC_URI="http://unc.dl.sourceforge.net/sourceforge/linux-hotplug/${MY_P}.tar.gz"
HOMEPAGE="http://linux-hotplug.sourceforge.net"
KEYWORDS="x86"
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}
cd ${S}/etc/hotplug
patch -p0 < ${FILESDIR}/${P}-pci.rc-gentoo.diff
patch -p0 < ${FILESDIR}/${P}-usb.rc-gentoo.diff
}
src_install() {
into /
dosbin sbin/hotplug
doman *.8
dodoc README ChangeLog
cd ${S}/etc/hotplug
insinto /etc/hotplug
doins blacklist hotplug.functions usb.distmap usb.handmap usb.usermap
exeinto /etc/hotplug
doexe *.agent *.rc
dodir /etc/hotplug/usb /etc/hotplug/pci
exeinto /etc/init.d
newexe ${FILESDIR}/hotplug.rc hotplug
insinto /etc/conf.d
newins ${FILESDIR}/usb.conf usb
}
pkg_postinst() {
ewarn "WARNING: The fxload program was spliced off this package"
ewarn "WARNING: emerge fxload if you need it"
}
|