initscripts: umount networking filesystems before shutting of the network also for...
[opendreambox.git] / meta-opendreambox / recipes-core / udev / udev_124.bb
1 DESCRIPTION = "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 \
3 the hotplug package and requires a kernel not older than 2.6.12."
4 RPROVIDES_${PN} = "hotplug"
5
6 require udev_124.inc
7
8 PR = "${INC_PR}.5"
9
10 LD = "${CC}"
11
12 SRC_URI += "file://noasmlinkage.patch \
13             file://flags.patch \
14             file://vol_id_ld.patch \
15             file://udevtrigger_add_devname_filtering.patch \
16             file://libvolume-id-soname.patch \
17             file://mtd-exclude-persistent.patch \
18             file://mount.blacklist \
19             file://run.rules \
20             file://default \
21             file://local.rules \
22             file://41-od-linux-2.6.18-misc.rules \
23            "
24
25 FILES_${PN} += "${base_libdir}/udev/*"
26 FILES_${PN}-dbg += "${base_libdir}/udev/.debug"
27 UDEV_EXTRAS = "extras/firmware/ extras/scsi_id/ extras/volume_id/"
28 EXTRA_OEMAKE += "libudevdir=/lib/udev libdir=${base_libdir} prefix="
29
30 do_install () {
31         install -d ${D}${usrsbindir} \
32                    ${D}${sbindir}
33         oe_runmake 'DESTDIR=${D}' INSTALL=install install
34         install -d ${D}${sysconfdir}/init.d
35         install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
36
37         install -d ${D}${sysconfdir}/default
38         install -m 0755 ${WORKDIR}/default ${D}${sysconfdir}/default/udev
39
40         install -d ${D}${sysconfdir}/udev/rules.d/
41
42         install -m 0644 ${WORKDIR}/mount.blacklist     ${D}${sysconfdir}/udev/
43         install -m 0644 ${WORKDIR}/local.rules         ${D}${sysconfdir}/udev/rules.d/local.rules
44         install -m 0644 ${WORKDIR}/permissions.rules   ${D}${sysconfdir}/udev/rules.d/permissions.rules
45         install -m 0644 ${WORKDIR}/run.rules          ${D}${sysconfdir}/udev/rules.d/run.rules
46         install -m 0644 ${WORKDIR}/udev.rules          ${D}${sysconfdir}/udev/rules.d/udev.rules
47         install -m 0644 ${WORKDIR}/links.conf          ${D}${sysconfdir}/udev/links.conf
48         if [ "${UDEV_DEVFS_RULES}" = "1" ]; then
49                 install -m 0644 ${WORKDIR}/devfs-udev.rules ${D}${sysconfdir}/udev/rules.d/devfs-udev.rules
50         fi
51
52         touch ${D}${sysconfdir}/udev/saved.uname
53         touch ${D}${sysconfdir}/udev/saved.cmdline
54         touch ${D}${sysconfdir}/udev/saved.atags
55
56         install -d ${D}${sysconfdir}/udev/scripts/
57
58         install -m 0755 ${WORKDIR}/mount.sh ${D}${sysconfdir}/udev/scripts/mount.sh
59         install -m 0755 ${WORKDIR}/network.sh ${D}${sysconfdir}/udev/scripts
60
61         install -d ${D}${base_libdir}/udev/
62
63         install -m 0644 ${WORKDIR}/41-od-linux-2.6.18-misc.rules ${D}${sysconfdir}/udev/rules.d
64
65         # disable automatic mounts
66         sed -e 's,^\(.*/mount\.sh.*\)$,#\1,' -i ${D}${sysconfdir}/udev/rules.d/local.rules
67 }
68
69 SRC_URI[md5sum] = "2ea9229208154229c5d6df6222f74ad7"
70 SRC_URI[sha256sum] = "cc9f58ff58fbd3f5868e1f1e368e3c93e1f441afd0ac1dcbd5d01a9ce5b5b0d7"