summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2016-03-02 14:45:49 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-03 10:49:00 +0000
commitc12e91953433c266bec894b8030c2f7049e2359d (patch)
tree1181eca6c239b60f585828130bbfd87e7554cf06 /meta/recipes-core
parent73a43fc15e0463c39baaadecab78fb3ef51b8cd0 (diff)
downloadpoky-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/recipes-core')
-rw-r--r--meta/recipes-core/udev/eudev_3.1.5.bb124
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 @@
1SUMMARY = "eudev is a fork of systemd's udev" 1SUMMARY = "eudev is a fork of systemd's udev"
2HOMEPAGE = "https://wiki.gentoo.org/wiki/Eudev" 2HOMEPAGE = "https://wiki.gentoo.org/wiki/Eudev"
3SRC_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
15LICENSE = "GPLv2.0+" 3LICENSE = "GPLv2.0+"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
16 5
17inherit autotools update-rc.d 6DEPENDS = "glib-2.0 glib-2.0-native gperf-native kmod libxslt-native util-linux"
7
8PROVIDES = "udev"
9
10SRC_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
19SRC_URI[md5sum] = "e130f892d8744e292cb855db79935f68" 22SRC_URI[md5sum] = "e130f892d8744e292cb855db79935f68"
20SRC_URI[sha256sum] = "ce9d5fa91e3a42c7eb95512ca0fa2a631e89833053066bb6cdf42046b2a88553" 23SRC_URI[sha256sum] = "ce9d5fa91e3a42c7eb95512ca0fa2a631e89833053066bb6cdf42046b2a88553"
21 24
22LIC_FILES_CHKSUM="file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 25inherit autotools update-rc.d
23 26
24DEPENDS = "glib-2.0-native glib-2.0 util-linux libxslt-native gperf-native kmod" 27EXTRA_OECONF = " \
28 --sbindir=${base_sbindir} \
29 --libexecdir=${nonarch_base_libdir} \
30 --with-rootlibdir=${base_libdir} \
31 --with-rootprefix= \
32"
25 33
26PROVIDES = "udev" 34do_install_append() {
27RPROVIDES_${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
29PACKAGES =+ "udev-cache" 41 install -d ${D}${sysconfdir}/default
30PACKAGES =+ "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
32INITSCRIPT_PACKAGES = "eudev udev-cache" 65INITSCRIPT_PACKAGES = "eudev udev-cache"
33INITSCRIPT_NAME_eudev = "udev" 66INITSCRIPT_NAME_eudev = "udev"
@@ -35,59 +68,22 @@ INITSCRIPT_PARAMS_eudev = "start 04 S ."
35INITSCRIPT_NAME_udev-cache = "udev-cache" 68INITSCRIPT_NAME_udev-cache = "udev-cache"
36INITSCRIPT_PARAMS_udev-cache = "start 36 S ." 69INITSCRIPT_PARAMS_udev-cache = "start 36 S ."
37 70
38RRECOMMENDS_${PN} += "udev-cache" 71PACKAGES =+ "libudev"
39 72PACKAGES =+ "udev-cache"
40
41FILES_libudev = "${base_libdir}/libudev.so.*"
42 73
43FILES_${PN} += "${libexecdir} ${nonarch_base_libdir}/udev ${bindir}/udevadm" 74FILES_${PN} += "${libexecdir} ${nonarch_base_libdir}/udev ${bindir}/udevadm"
44
45
46FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \ 75FILES_${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 " 79FILES_libudev = "${base_libdir}/libudev.so.*"
51FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache" 80FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache"
52 81
53EXTRA_OECONF = "--with-rootlibdir=${base_libdir} \
54 --sbindir=${base_sbindir} \
55 --libexecdir=${nonarch_base_libdir} \
56 --with-rootprefix= \
57"
58do_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
90python () { 82python () {
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
87RRECOMMENDS_${PN} += "udev-cache"
88
89RPROVIDES_${PN} = "hotplug udev"