summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend')
-rw-r--r--meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend b/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend
new file mode 100644
index 0000000000..2c73732400
--- /dev/null
+++ b/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend
@@ -0,0 +1,26 @@
1inherit systemd
2
3PRINC := "${@int(PRINC) + 3}"
4
5# look for files in the layer first
6FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
7
8SRC_URI += "file://busybox-syslog.service.in \
9 file://busybox-klogd.service.in \
10 file://busybox-syslog.default"
11
12SYSTEMD_PACKAGES = "${PN}-syslog-systemd"
13SYSTEMD_SERVICE_${PN}-syslog-systemd = "busybox-syslog.service"
14
15do_install_append() {
16 install -d ${D}${sysconfdir}/default
17 install -m 0644 ${WORKDIR}/busybox-syslog.default ${D}${sysconfdir}/default/busybox-syslog
18
19 sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-syslog.service.in \
20 > ${D}${systemd_unitdir}/system/busybox-syslog.service
21 sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \
22 > ${D}${systemd_unitdir}/system/busybox-klogd.service
23
24 ln -sf /dev/null ${D}${systemd_unitdir}/system/syslog.service
25}
26FILES_${PN}-syslog-systemd = "${systemd_unitdir}/system/syslog.service"