mirror of
https://git.yoctoproject.org/poky
synced 2026-09-29 07:36:20 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
73a43fc15e
commit
c12e919534
@@ -1,61 +1,37 @@
|
|||||||
SUMMARY = "eudev is a fork of systemd's udev"
|
SUMMARY = "eudev is a fork of systemd's udev"
|
||||||
HOMEPAGE = "https://wiki.gentoo.org/wiki/Eudev"
|
HOMEPAGE = "https://wiki.gentoo.org/wiki/Eudev"
|
||||||
SRC_URI = "https://github.com/gentoo/${PN}/archive/v${PV}.tar.gz \
|
LICENSE = "GPLv2.0+"
|
||||||
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||||
|
|
||||||
|
DEPENDS = "glib-2.0 glib-2.0-native gperf-native kmod libxslt-native util-linux"
|
||||||
|
|
||||||
|
PROVIDES = "udev"
|
||||||
|
|
||||||
|
SRC_URI = "https://github.com/gentoo/${BPN}/archive/v${PV}.tar.gz \
|
||||||
|
file://devfs-udev.rules \
|
||||||
file://init \
|
file://init \
|
||||||
|
file://links.conf \
|
||||||
file://local.rules \
|
file://local.rules \
|
||||||
|
file://permissions.rules \
|
||||||
|
file://run.rules \
|
||||||
file://udev-cache \
|
file://udev-cache \
|
||||||
file://udev-cache.default \
|
file://udev-cache.default \
|
||||||
file://run.rules \
|
|
||||||
file://udev.rules \
|
file://udev.rules \
|
||||||
file://devfs-udev.rules \
|
"
|
||||||
file://links.conf \
|
|
||||||
file://permissions.rules \
|
|
||||||
"
|
|
||||||
|
|
||||||
LICENSE = "GPLv2.0+"
|
|
||||||
|
|
||||||
inherit autotools update-rc.d
|
|
||||||
|
|
||||||
SRC_URI[md5sum] = "e130f892d8744e292cb855db79935f68"
|
SRC_URI[md5sum] = "e130f892d8744e292cb855db79935f68"
|
||||||
SRC_URI[sha256sum] = "ce9d5fa91e3a42c7eb95512ca0fa2a631e89833053066bb6cdf42046b2a88553"
|
SRC_URI[sha256sum] = "ce9d5fa91e3a42c7eb95512ca0fa2a631e89833053066bb6cdf42046b2a88553"
|
||||||
|
|
||||||
LIC_FILES_CHKSUM="file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
inherit autotools update-rc.d
|
||||||
|
|
||||||
DEPENDS = "glib-2.0-native glib-2.0 util-linux libxslt-native gperf-native kmod"
|
EXTRA_OECONF = " \
|
||||||
|
|
||||||
PROVIDES = "udev"
|
|
||||||
RPROVIDES_${PN} = "hotplug udev"
|
|
||||||
|
|
||||||
PACKAGES =+ "udev-cache"
|
|
||||||
PACKAGES =+ "libudev"
|
|
||||||
|
|
||||||
INITSCRIPT_PACKAGES = "eudev udev-cache"
|
|
||||||
INITSCRIPT_NAME_eudev = "udev"
|
|
||||||
INITSCRIPT_PARAMS_eudev = "start 04 S ."
|
|
||||||
INITSCRIPT_NAME_udev-cache = "udev-cache"
|
|
||||||
INITSCRIPT_PARAMS_udev-cache = "start 36 S ."
|
|
||||||
|
|
||||||
RRECOMMENDS_${PN} += "udev-cache"
|
|
||||||
|
|
||||||
|
|
||||||
FILES_libudev = "${base_libdir}/libudev.so.*"
|
|
||||||
|
|
||||||
FILES_${PN} += "${libexecdir} ${nonarch_base_libdir}/udev ${bindir}/udevadm"
|
|
||||||
|
|
||||||
|
|
||||||
FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \
|
|
||||||
${includedir}/libudev.h ${libdir}/libudev.so \
|
|
||||||
${includedir}/udev.h ${libdir}/libudev.la \
|
|
||||||
${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc \
|
|
||||||
"
|
|
||||||
FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache"
|
|
||||||
|
|
||||||
EXTRA_OECONF = "--with-rootlibdir=${base_libdir} \
|
|
||||||
--sbindir=${base_sbindir} \
|
--sbindir=${base_sbindir} \
|
||||||
--libexecdir=${nonarch_base_libdir} \
|
--libexecdir=${nonarch_base_libdir} \
|
||||||
|
--with-rootlibdir=${base_libdir} \
|
||||||
--with-rootprefix= \
|
--with-rootprefix= \
|
||||||
"
|
"
|
||||||
do_install_append(){
|
|
||||||
|
do_install_append() {
|
||||||
install -d ${D}${sysconfdir}/init.d
|
install -d ${D}${sysconfdir}/init.d
|
||||||
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
|
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
|
||||||
install -m 0755 ${WORKDIR}/udev-cache ${D}${sysconfdir}/init.d/udev-cache
|
install -m 0755 ${WORKDIR}/udev-cache ${D}${sysconfdir}/init.d/udev-cache
|
||||||
@@ -67,10 +43,12 @@ do_install_append(){
|
|||||||
|
|
||||||
touch ${D}${sysconfdir}/udev/cache.data
|
touch ${D}${sysconfdir}/udev/cache.data
|
||||||
|
|
||||||
install -d ${D}${sysconfdir}/udev/rules.d/
|
install -d ${D}${sysconfdir}/udev/rules.d
|
||||||
|
|
||||||
install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules
|
install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules
|
||||||
|
|
||||||
|
# Use classic network interface naming scheme
|
||||||
|
touch ${D}${sysconfdir}/udev/rules.d/80-net-name-slot.rules
|
||||||
|
|
||||||
# Fix for multilib systems where libs along with confs are installed incorrectly
|
# Fix for multilib systems where libs along with confs are installed incorrectly
|
||||||
if ! [ -d ${D}${nonarch_base_libdir}/udev ]
|
if ! [ -d ${D}${nonarch_base_libdir}/udev ]
|
||||||
then
|
then
|
||||||
@@ -82,12 +60,30 @@ do_install_append(){
|
|||||||
rm -f ${D}${base_libdir}/udev/hid2hci
|
rm -f ${D}${base_libdir}/udev/hid2hci
|
||||||
|
|
||||||
echo 'udev_run="/var/run/udev"' >> ${D}${sysconfdir}/udev/udev.conf
|
echo 'udev_run="/var/run/udev"' >> ${D}${sysconfdir}/udev/udev.conf
|
||||||
|
|
||||||
# Use classic network interface naming scheme
|
|
||||||
touch ${D}${sysconfdir}/udev/rules.d/80-net-name-slot.rules
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
INITSCRIPT_PACKAGES = "eudev udev-cache"
|
||||||
|
INITSCRIPT_NAME_eudev = "udev"
|
||||||
|
INITSCRIPT_PARAMS_eudev = "start 04 S ."
|
||||||
|
INITSCRIPT_NAME_udev-cache = "udev-cache"
|
||||||
|
INITSCRIPT_PARAMS_udev-cache = "start 36 S ."
|
||||||
|
|
||||||
|
PACKAGES =+ "libudev"
|
||||||
|
PACKAGES =+ "udev-cache"
|
||||||
|
|
||||||
|
FILES_${PN} += "${libexecdir} ${nonarch_base_libdir}/udev ${bindir}/udevadm"
|
||||||
|
FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \
|
||||||
|
${includedir}/libudev.h ${libdir}/libudev.so \
|
||||||
|
${includedir}/udev.h ${libdir}/libudev.la \
|
||||||
|
${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc"
|
||||||
|
FILES_libudev = "${base_libdir}/libudev.so.*"
|
||||||
|
FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache"
|
||||||
|
|
||||||
python () {
|
python () {
|
||||||
if bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
|
if bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
|
||||||
raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES")
|
raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RRECOMMENDS_${PN} += "udev-cache"
|
||||||
|
|
||||||
|
RPROVIDES_${PN} = "hotplug udev"
|
||||||
|
|||||||
Reference in New Issue
Block a user