diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2016-03-02 14:45:49 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-03 10:49:00 +0000 |
commit | c12e91953433c266bec894b8030c2f7049e2359d (patch) | |
tree | 1181eca6c239b60f585828130bbfd87e7554cf06 /meta | |
parent | 73a43fc15e0463c39baaadecab78fb3ef51b8cd0 (diff) | |
download | poky-c12e91953433c266bec894b8030c2f7049e2359d.tar.gz |
eudev: recipe formatting improvements
Formatting improvements only, no functional changes.
(From OE-Core rev: d32ed5dd1dcadf206162b823bcb2f539e0ff5ad3)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/udev/eudev_3.1.5.bb | 124 |
1 files changed, 60 insertions, 64 deletions
diff --git a/meta/recipes-core/udev/eudev_3.1.5.bb b/meta/recipes-core/udev/eudev_3.1.5.bb index 8a23e6cb23..c15dd89c67 100644 --- a/meta/recipes-core/udev/eudev_3.1.5.bb +++ b/meta/recipes-core/udev/eudev_3.1.5.bb | |||
@@ -1,33 +1,66 @@ | |||
1 | SUMMARY = "eudev is a fork of systemd's udev" | 1 | SUMMARY = "eudev is a fork of systemd's udev" |
2 | HOMEPAGE = "https://wiki.gentoo.org/wiki/Eudev" | 2 | HOMEPAGE = "https://wiki.gentoo.org/wiki/Eudev" |
3 | SRC_URI = "https://github.com/gentoo/${PN}/archive/v${PV}.tar.gz \ | ||
4 | file://init \ | ||
5 | file://local.rules \ | ||
6 | file://udev-cache \ | ||
7 | file://udev-cache.default \ | ||
8 | file://run.rules \ | ||
9 | file://udev.rules \ | ||
10 | file://devfs-udev.rules \ | ||
11 | file://links.conf \ | ||
12 | file://permissions.rules \ | ||
13 | " | ||
14 | |||
15 | LICENSE = "GPLv2.0+" | 3 | LICENSE = "GPLv2.0+" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
16 | 5 | ||
17 | inherit autotools update-rc.d | 6 | DEPENDS = "glib-2.0 glib-2.0-native gperf-native kmod libxslt-native util-linux" |
7 | |||
8 | PROVIDES = "udev" | ||
9 | |||
10 | SRC_URI = "https://github.com/gentoo/${BPN}/archive/v${PV}.tar.gz \ | ||
11 | file://devfs-udev.rules \ | ||
12 | file://init \ | ||
13 | file://links.conf \ | ||
14 | file://local.rules \ | ||
15 | file://permissions.rules \ | ||
16 | file://run.rules \ | ||
17 | file://udev-cache \ | ||
18 | file://udev-cache.default \ | ||
19 | file://udev.rules \ | ||
20 | " | ||
18 | 21 | ||
19 | SRC_URI[md5sum] = "e130f892d8744e292cb855db79935f68" | 22 | SRC_URI[md5sum] = "e130f892d8744e292cb855db79935f68" |
20 | SRC_URI[sha256sum] = "ce9d5fa91e3a42c7eb95512ca0fa2a631e89833053066bb6cdf42046b2a88553" | 23 | SRC_URI[sha256sum] = "ce9d5fa91e3a42c7eb95512ca0fa2a631e89833053066bb6cdf42046b2a88553" |
21 | 24 | ||
22 | LIC_FILES_CHKSUM="file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 25 | inherit autotools update-rc.d |
23 | 26 | ||
24 | DEPENDS = "glib-2.0-native glib-2.0 util-linux libxslt-native gperf-native kmod" | 27 | EXTRA_OECONF = " \ |
28 | --sbindir=${base_sbindir} \ | ||
29 | --libexecdir=${nonarch_base_libdir} \ | ||
30 | --with-rootlibdir=${base_libdir} \ | ||
31 | --with-rootprefix= \ | ||
32 | " | ||
25 | 33 | ||
26 | PROVIDES = "udev" | 34 | do_install_append() { |
27 | RPROVIDES_${PN} = "hotplug udev" | 35 | install -d ${D}${sysconfdir}/init.d |
36 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev | ||
37 | install -m 0755 ${WORKDIR}/udev-cache ${D}${sysconfdir}/init.d/udev-cache | ||
38 | sed -i s%@UDEVD@%${base_sbindir}/udevd% ${D}${sysconfdir}/init.d/udev | ||
39 | sed -i s%@UDEVD@%${base_sbindir}/udevd% ${D}${sysconfdir}/init.d/udev-cache | ||
28 | 40 | ||
29 | PACKAGES =+ "udev-cache" | 41 | install -d ${D}${sysconfdir}/default |
30 | PACKAGES =+ "libudev" | 42 | install -m 0755 ${WORKDIR}/udev-cache.default ${D}${sysconfdir}/default/udev-cache |
43 | |||
44 | touch ${D}${sysconfdir}/udev/cache.data | ||
45 | |||
46 | install -d ${D}${sysconfdir}/udev/rules.d | ||
47 | install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules | ||
48 | |||
49 | # Use classic network interface naming scheme | ||
50 | touch ${D}${sysconfdir}/udev/rules.d/80-net-name-slot.rules | ||
51 | |||
52 | # Fix for multilib systems where libs along with confs are installed incorrectly | ||
53 | if ! [ -d ${D}${nonarch_base_libdir}/udev ] | ||
54 | then | ||
55 | install -d ${D}${nonarch_base_libdir}/udev | ||
56 | mv ${D}${base_libdir}/udev ${D}${nonarch_base_libdir} | ||
57 | fi | ||
58 | |||
59 | # hid2hci has moved to bluez4. removed in udev as of version 169 | ||
60 | rm -f ${D}${base_libdir}/udev/hid2hci | ||
61 | |||
62 | echo 'udev_run="/var/run/udev"' >> ${D}${sysconfdir}/udev/udev.conf | ||
63 | } | ||
31 | 64 | ||
32 | INITSCRIPT_PACKAGES = "eudev udev-cache" | 65 | INITSCRIPT_PACKAGES = "eudev udev-cache" |
33 | INITSCRIPT_NAME_eudev = "udev" | 66 | INITSCRIPT_NAME_eudev = "udev" |
@@ -35,59 +68,22 @@ INITSCRIPT_PARAMS_eudev = "start 04 S ." | |||
35 | INITSCRIPT_NAME_udev-cache = "udev-cache" | 68 | INITSCRIPT_NAME_udev-cache = "udev-cache" |
36 | INITSCRIPT_PARAMS_udev-cache = "start 36 S ." | 69 | INITSCRIPT_PARAMS_udev-cache = "start 36 S ." |
37 | 70 | ||
38 | RRECOMMENDS_${PN} += "udev-cache" | 71 | PACKAGES =+ "libudev" |
39 | 72 | PACKAGES =+ "udev-cache" | |
40 | |||
41 | FILES_libudev = "${base_libdir}/libudev.so.*" | ||
42 | 73 | ||
43 | FILES_${PN} += "${libexecdir} ${nonarch_base_libdir}/udev ${bindir}/udevadm" | 74 | FILES_${PN} += "${libexecdir} ${nonarch_base_libdir}/udev ${bindir}/udevadm" |
44 | |||
45 | |||
46 | FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \ | 75 | FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \ |
47 | ${includedir}/libudev.h ${libdir}/libudev.so \ | 76 | ${includedir}/libudev.h ${libdir}/libudev.so \ |
48 | ${includedir}/udev.h ${libdir}/libudev.la \ | 77 | ${includedir}/udev.h ${libdir}/libudev.la \ |
49 | ${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc \ | 78 | ${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc" |
50 | " | 79 | FILES_libudev = "${base_libdir}/libudev.so.*" |
51 | FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache" | 80 | FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache" |
52 | 81 | ||
53 | EXTRA_OECONF = "--with-rootlibdir=${base_libdir} \ | ||
54 | --sbindir=${base_sbindir} \ | ||
55 | --libexecdir=${nonarch_base_libdir} \ | ||
56 | --with-rootprefix= \ | ||
57 | " | ||
58 | do_install_append(){ | ||
59 | install -d ${D}${sysconfdir}/init.d | ||
60 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev | ||
61 | install -m 0755 ${WORKDIR}/udev-cache ${D}${sysconfdir}/init.d/udev-cache | ||
62 | sed -i s%@UDEVD@%${base_sbindir}/udevd% ${D}${sysconfdir}/init.d/udev | ||
63 | sed -i s%@UDEVD@%${base_sbindir}/udevd% ${D}${sysconfdir}/init.d/udev-cache | ||
64 | |||
65 | install -d ${D}${sysconfdir}/default | ||
66 | install -m 0755 ${WORKDIR}/udev-cache.default ${D}${sysconfdir}/default/udev-cache | ||
67 | |||
68 | touch ${D}${sysconfdir}/udev/cache.data | ||
69 | |||
70 | install -d ${D}${sysconfdir}/udev/rules.d/ | ||
71 | |||
72 | install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules | ||
73 | |||
74 | # Fix for multilib systems where libs along with confs are installed incorrectly | ||
75 | if ! [ -d ${D}${nonarch_base_libdir}/udev ] | ||
76 | then | ||
77 | install -d ${D}${nonarch_base_libdir}/udev | ||
78 | mv ${D}${base_libdir}/udev ${D}${nonarch_base_libdir} | ||
79 | fi | ||
80 | |||
81 | # hid2hci has moved to bluez4. removed in udev as of version 169 | ||
82 | rm -f ${D}${base_libdir}/udev/hid2hci | ||
83 | |||
84 | echo 'udev_run="/var/run/udev"' >> ${D}${sysconfdir}/udev/udev.conf | ||
85 | |||
86 | # Use classic network interface naming scheme | ||
87 | touch ${D}${sysconfdir}/udev/rules.d/80-net-name-slot.rules | ||
88 | } | ||
89 | |||
90 | python () { | 82 | python () { |
91 | if bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d): | 83 | if bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d): |
92 | raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES") | 84 | raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES") |
93 | } | 85 | } |
86 | |||
87 | RRECOMMENDS_${PN} += "udev-cache" | ||
88 | |||
89 | RPROVIDES_${PN} = "hotplug udev" | ||