systemd-conf_1.0.bb 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. SUMMARY = "Systemd system configuration"
  2. DESCRIPTION = "Systemd may require slightly different configuration for \
  3. different machines. For example, qemu machines require a longer \
  4. DefaultTimeoutStartSec setting."
  5. LICENSE = "MIT"
  6. LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
  7. inherit features_check
  8. REQUIRED_DISTRO_FEATURES += "usrmerge"
  9. PE = "1"
  10. PACKAGECONFIG ??= "dhcp-ethernet"
  11. PACKAGECONFIG[dhcp-ethernet] = ""
  12. SRC_URI = "\
  13. file://journald.conf \
  14. file://logind.conf \
  15. file://system.conf \
  16. file://system.conf-qemuall \
  17. file://wired.network \
  18. "
  19. S = "${UNPACKDIR}"
  20. do_install() {
  21. install -D -m0644 ${S}/journald.conf ${D}${systemd_unitdir}/journald.conf.d/00-${PN}.conf
  22. install -D -m0644 ${S}/logind.conf ${D}${systemd_unitdir}/logind.conf.d/00-${PN}.conf
  23. install -D -m0644 ${S}/system.conf ${D}${systemd_unitdir}/system.conf.d/00-${PN}.conf
  24. if ${@bb.utils.contains('PACKAGECONFIG', 'dhcp-ethernet', 'true', 'false', d)}; then
  25. install -D -m0644 ${S}/wired.network ${D}${systemd_unitdir}/network/80-wired.network
  26. fi
  27. }
  28. # Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52
  29. do_install:append:qemuall() {
  30. install -D -m0644 ${S}/system.conf-qemuall ${D}${systemd_unitdir}/system.conf.d/01-${PN}.conf
  31. }
  32. PACKAGE_ARCH = "${MACHINE_ARCH}"
  33. FILES:${PN} = "\
  34. ${systemd_unitdir}/journald.conf.d/ \
  35. ${systemd_unitdir}/logind.conf.d/ \
  36. ${systemd_unitdir}/system.conf.d/ \
  37. ${systemd_unitdir}/network/ \
  38. "