summaryrefslogtreecommitdiffstats
path: root/meta/packages/udev/udev_145.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/udev/udev_145.bb')
-rw-r--r--meta/packages/udev/udev_145.bb67
1 files changed, 67 insertions, 0 deletions
diff --git a/meta/packages/udev/udev_145.bb b/meta/packages/udev/udev_145.bb
new file mode 100644
index 0000000000..8db92b8206
--- /dev/null
+++ b/meta/packages/udev/udev_145.bb
@@ -0,0 +1,67 @@
1DESCRIPTION = "udev is a daemon which dynamically creates and removes device nodes from \
2/dev/, handles hotplug events and loads drivers at boot time. It replaces \
3the hotplug package and requires a kernel not older than 2.6.12."
4RPROVIDES_${PN} = "hotplug"
5
6PR = "r4"
7
8SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
9 file://run.rules \
10 "
11
12SRC_URI_append_h2200 = " file://50-hostap_cs.rules "
13PACKAGE_ARCH_h2200 = "h2200"
14
15require udev.inc
16
17INITSCRIPT_PARAMS = "start 03 S ."
18
19FILES_${PN} += "${base_libdir}/udev/*"
20FILES_${PN}-dbg += "${base_libdir}/udev/.debug"
21UDEV_EXTRAS = "extras/firmware/ extras/scsi_id/ extras/volume_id/"
22#EXTRA_OEMAKE += "libudevdir=/lib/udev libdir=${base_libdir} prefix="
23
24exec_prefix = ""
25
26EXTRA_OECONF = "--with-udev-prefix= --disable-extras"
27
28do_install () {
29 install -d ${D}${usrsbindir} \
30 ${D}${sbindir}
31 oe_runmake 'DESTDIR=${D}' INSTALL=install install
32 install -d ${D}${sysconfdir}/init.d
33 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
34
35 install -d ${D}${sysconfdir}/udev/rules.d/
36
37 cp ${S}/rules/rules.d/* ${D}${sysconfdir}/udev/rules.d/
38 cp ${S}/rules/packages/* ${D}${sysconfdir}/udev/rules.d/
39 install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules
40 #install -m 0644 ${WORKDIR}/permissions.rules ${D}${sysconfdir}/udev/rules.d/permissions.rules
41 #install -m 0644 ${WORKDIR}/run.rules ${D}${sysconfdir}/udev/rules.d/run.rules
42 #install -m 0644 ${WORKDIR}/udev.rules ${D}${sysconfdir}/udev/rules.d/udev.rules
43 install -m 0644 ${WORKDIR}/links.conf ${D}${sysconfdir}/udev/links.conf
44 #if [ "${UDEV_DEVFS_RULES}" = "1" ]; then
45 # install -m 0644 ${WORKDIR}/devfs-udev.rules ${D}${sysconfdir}/udev/rules.d/devfs-udev.rules
46 #fi
47
48 # Remove some default rules that don't work well on embedded devices
49 #rm ${D}${sysconfdir}/udev/rules.d/60-persistent-input.rules
50 #rm ${D}${sysconfdir}/udev/rules.d/60-persistent-storage.rules
51 #rm ${D}${sysconfdir}/udev/rules.d/60-persistent-storage-tape.rules
52
53 install -d ${D}${sysconfdir}/udev/scripts/
54
55 install -m 0755 ${WORKDIR}/mount.sh ${D}${sysconfdir}/udev/scripts/mount.sh
56 install -m 0755 ${WORKDIR}/network.sh ${D}${sysconfdir}/udev/scripts
57
58 install -d ${D}${base_libdir}/udev/
59}
60
61do_install_append_h2200() {
62 install -m 0644 ${WORKDIR}/50-hostap_cs.rules ${D}${sysconfdir}/udev/rules.d/50-hostap_cs.rules
63}
64
65do_stage () {
66 autotools_stage_all
67} \ No newline at end of file