diff options
| author | Malte Schmidt <malte.schmidt@weidmueller.com> | 2023-11-16 12:54:56 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-20 15:30:52 +0000 |
| commit | e45d4b483065c18535a2dbe9ff13e179f110f21f (patch) | |
| tree | 3e788d5b8f87f2757814b5b9d9f77ea5f4e9a205 | |
| parent | f1350f189692eb1c23d7d14a08c106ad0505b2b2 (diff) | |
| download | poky-e45d4b483065c18535a2dbe9ff13e179f110f21f.tar.gz | |
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>
| -rw-r--r-- | meta/recipes-extended/sysstat/sysstat_12.7.4.bb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-extended/sysstat/sysstat_12.7.4.bb b/meta/recipes-extended/sysstat/sysstat_12.7.4.bb index 134fd5cf96..660bc634a0 100644 --- a/meta/recipes-extended/sysstat/sysstat_12.7.4.bb +++ b/meta/recipes-extended/sysstat/sysstat_12.7.4.bb | |||
| @@ -48,9 +48,9 @@ do_install() { | |||
| 48 | install -m 0644 ${WORKDIR}/99_sysstat ${D}/etc/default/volatiles | 48 | install -m 0644 ${WORKDIR}/99_sysstat ${D}/etc/default/volatiles |
| 49 | fi | 49 | fi |
| 50 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 50 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 51 | install -d ${D}${sysconfdir}/tmpfiles.d | 51 | install -d ${D}${nonarch_libdir}/tmpfiles.d |
| 52 | echo "d ${localstatedir}/log/sa - - - -" \ | 52 | echo "d ${localstatedir}/log/sa - - - -" \ |
| 53 | > ${D}${sysconfdir}/tmpfiles.d/sysstat.conf | 53 | > ${D}${nonarch_libdir}/tmpfiles.d/sysstat.conf |
| 54 | 54 | ||
| 55 | # Unless both cron and systemd are enabled, install our own | 55 | # Unless both cron and systemd are enabled, install our own |
| 56 | # systemd unit file. Otherwise the package will install one. | 56 | # systemd unit file. Otherwise the package will install one. |
| @@ -70,7 +70,11 @@ pkg_postinst:${PN} () { | |||
| 70 | fi | 70 | fi |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | FILES:${PN} += "${systemd_system_unitdir} ${nonarch_base_libdir}/systemd" | 73 | FILES:${PN} += " \ |
| 74 | ${systemd_system_unitdir} \ | ||
| 75 | ${nonarch_base_libdir}/systemd \ | ||
| 76 | ${nonarch_libdir}/tmpfiles.d \ | ||
| 77 | " | ||
| 74 | 78 | ||
| 75 | TARGET_CC_ARCH += "${LDFLAGS}" | 79 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 76 | 80 | ||
