mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-12 17:20:13 +00:00
busybox: remove unneeded systemd code / use ${systemd_unitdir}
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
committed by
Koen Kooi
parent
62dd0bf7eb
commit
3a5e1a0d86
@@ -1,6 +1,6 @@
|
|||||||
inherit systemd
|
inherit systemd
|
||||||
|
|
||||||
PRINC := "${@int(PRINC) + 2}"
|
PRINC := "${@int(PRINC) + 3}"
|
||||||
|
|
||||||
# look for files in the layer first
|
# look for files in the layer first
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||||
@@ -16,16 +16,11 @@ do_install_append() {
|
|||||||
install -d ${D}${sysconfdir}/default
|
install -d ${D}${sysconfdir}/default
|
||||||
install -m 0644 ${WORKDIR}/busybox-syslog.default ${D}${sysconfdir}/default/busybox-syslog
|
install -m 0644 ${WORKDIR}/busybox-syslog.default ${D}${sysconfdir}/default/busybox-syslog
|
||||||
|
|
||||||
install -d ${D}${base_libdir}/systemd/system
|
|
||||||
sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-syslog.service.in \
|
sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-syslog.service.in \
|
||||||
> ${D}${base_libdir}/systemd/system/busybox-syslog.service
|
> ${D}${systemd_unitdir}/system/busybox-syslog.service
|
||||||
sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \
|
sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \
|
||||||
> ${D}${base_libdir}/systemd/system/busybox-klogd.service
|
> ${D}${systemd_unitdir}/system/busybox-klogd.service
|
||||||
|
|
||||||
ln -sf /dev/null ${D}${base_libdir}/systemd/system/syslog.service
|
ln -sf /dev/null ${D}${systemd_unitdir}/system/syslog.service
|
||||||
}
|
}
|
||||||
|
FILES_${PN}-syslog-systemd = "${systemd_unitdir}/system/syslog.service"
|
||||||
PACKAGES += "${PN}-syslog-systemd"
|
|
||||||
|
|
||||||
RDEPENDS_${PN}-syslog-systemd += "${PN}-syslog"
|
|
||||||
FILES_${PN}-syslog-systemd = "${base_libdir}/systemd"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user