mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
sysstat: use nonarch libdir for tmpfiles.d
The documentation of systemd states that /etc/tmpfiles.d should be reserved for the local administrator and packages should put their files in /usr/lib/tmpfiles.d [1]. [1] https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html (From OE-Core rev: 4db3438d500936d94b55294f21db156fb049888c) Signed-off-by: Malte Schmidt <malte.schmidt@weidmueller.com> Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f1350f1896
commit
e45d4b4830
|
|
@ -48,9 +48,9 @@ do_install() {
|
|||
install -m 0644 ${WORKDIR}/99_sysstat ${D}/etc/default/volatiles
|
||||
fi
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${sysconfdir}/tmpfiles.d
|
||||
install -d ${D}${nonarch_libdir}/tmpfiles.d
|
||||
echo "d ${localstatedir}/log/sa - - - -" \
|
||||
> ${D}${sysconfdir}/tmpfiles.d/sysstat.conf
|
||||
> ${D}${nonarch_libdir}/tmpfiles.d/sysstat.conf
|
||||
|
||||
# Unless both cron and systemd are enabled, install our own
|
||||
# systemd unit file. Otherwise the package will install one.
|
||||
|
|
@ -70,7 +70,11 @@ pkg_postinst:${PN} () {
|
|||
fi
|
||||
}
|
||||
|
||||
FILES:${PN} += "${systemd_system_unitdir} ${nonarch_base_libdir}/systemd"
|
||||
FILES:${PN} += " \
|
||||
${systemd_system_unitdir} \
|
||||
${nonarch_base_libdir}/systemd \
|
||||
${nonarch_libdir}/tmpfiles.d \
|
||||
"
|
||||
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user