Merge oe-devel@oe-devel.bkbits.net:packages
[vuplus_openembedded] / hotplug / hotplug_20040329.oe
1 SECTION = "base"
2 DESCRIPTION = "This package contains the scripts necessary \
3 for hotplug Linux support, and lets you plug in new devices \
4 and use them immediately."
5 LICENSE = "GPL"
6 SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/hotplug-2004_03_29.tar.gz \
7            file://busybox.patch;patch=1 \
8            file://fix-net.agent \
9            file://update-usb.usermap \
10            file://logcheck-ignore \
11            file://sleeve.agent file://sleeve.rc file://mmc.agent \
12            file://usbd.agent"
13 S = "${WORKDIR}/hotplug-2004_03_29"
14 PR = "r3"
15
16 INITSCRIPT_NAME = "hotplug"
17 INITSCRIPT_PARAMS = "start 40 S . stop 89 0 6 ."
18
19 inherit update-rc.d
20
21 do_compile () {
22         :
23 }
24
25 oldmandir := "${mandir}"
26 oldsbindir := "${sbindir}"
27 prefix = ""
28 exec_prefix = ""
29 FILES_hotplug_append = " ${oldsbindir}"
30 FILES_hotplug-doc_append = " ${oldmandir}"
31
32 export DEBFIX = "sed -e 's:sysconfig/usb:default/hotplug.usb:'"
33 do_install () {
34         install -d ${D}/${sysconfdir}/logcheck/ignore.d \
35                    ${D}/${oldmandir} ${D}/${oldsbindir}
36         oe_runmake prefix=${D}${prefix} exec_prefix=${D}${exec_prefix} \
37                    etcdir=${D}${sysconfdir} sbindir=${D}${sbindir} \
38                    mandir=${D}${oldmandir} install
39         sh ${WORKDIR}/fix-net.agent ${D}
40         install -m 0755 ${WORKDIR}/update-usb.usermap ${D}/${oldsbindir}/
41         install -m 0644 ${WORKDIR}/logcheck-ignore ${D}/${sysconfdir}/logcheck/ignore.d/hotplug
42         install -m 0755 ${WORKDIR}/sleeve.agent ${D}${sysconfdir}/hotplug/
43         install -m 0755 ${WORKDIR}/sleeve.rc ${D}${sysconfdir}/hotplug/
44         install -m 0755 ${WORKDIR}/mmc.agent ${D}${sysconfdir}/hotplug/
45         install -m 0755 ${WORKDIR}/usbd.agent ${D}${sysconfdir}/hotplug/
46 }