diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd-conf_1.0.bb')
-rw-r--r-- | meta/recipes-core/systemd/systemd-conf_1.0.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd-conf_1.0.bb b/meta/recipes-core/systemd/systemd-conf_1.0.bb new file mode 100644 index 0000000000..752ad7c2b7 --- /dev/null +++ b/meta/recipes-core/systemd/systemd-conf_1.0.bb | |||
@@ -0,0 +1,46 @@ | |||
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 | |||
8 | inherit features_check | ||
9 | REQUIRED_DISTRO_FEATURES += "usrmerge" | ||
10 | |||
11 | PE = "1" | ||
12 | |||
13 | PACKAGECONFIG ??= "dhcp-ethernet" | ||
14 | PACKAGECONFIG[dhcp-ethernet] = "" | ||
15 | |||
16 | SRC_URI = "\ | ||
17 | file://journald.conf \ | ||
18 | file://logind.conf \ | ||
19 | file://system.conf \ | ||
20 | file://system.conf-qemuall \ | ||
21 | file://wired.network \ | ||
22 | " | ||
23 | |||
24 | do_install() { | ||
25 | install -D -m0644 ${UNPACKDIR}/journald.conf ${D}${systemd_unitdir}/journald.conf.d/00-${PN}.conf | ||
26 | install -D -m0644 ${UNPACKDIR}/logind.conf ${D}${systemd_unitdir}/logind.conf.d/00-${PN}.conf | ||
27 | install -D -m0644 ${UNPACKDIR}/system.conf ${D}${systemd_unitdir}/system.conf.d/00-${PN}.conf | ||
28 | |||
29 | if ${@bb.utils.contains('PACKAGECONFIG', 'dhcp-ethernet', 'true', 'false', d)}; then | ||
30 | install -D -m0644 ${UNPACKDIR}/wired.network ${D}${systemd_unitdir}/network/80-wired.network | ||
31 | fi | ||
32 | } | ||
33 | |||
34 | # Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52 | ||
35 | do_install:append:qemuall() { | ||
36 | install -D -m0644 ${UNPACKDIR}/system.conf-qemuall ${D}${systemd_unitdir}/system.conf.d/01-${PN}.conf | ||
37 | } | ||
38 | |||
39 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
40 | |||
41 | FILES:${PN} = "\ | ||
42 | ${systemd_unitdir}/journald.conf.d/ \ | ||
43 | ${systemd_unitdir}/logind.conf.d/ \ | ||
44 | ${systemd_unitdir}/system.conf.d/ \ | ||
45 | ${systemd_unitdir}/network/ \ | ||
46 | " | ||