diff options
| author | Callaghan, Dan <dan.callaghan@opengear.com> | 2020-02-19 22:08:03 +1000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-02-19 14:44:47 -0800 |
| commit | 28a3bbff54bf8974a4eae42870cb118151b04ebe (patch) | |
| tree | ebc795d3d38a81e42ddd4a536048464c47f8ae41 | |
| parent | ff543375f47abc994c00e05f4f70d4a83c30a25a (diff) | |
| download | meta-openembedded-28a3bbff54bf8974a4eae42870cb118151b04ebe.tar.gz | |
quagga: install tmpfiles snippet to /usr/lib/tmpfiles.d
Package-owned tmpfiles snippets belong in /usr/lib/tmpfiles.d,
/etc/tmpfiles.d is for administrator customisations.
Signed-off-by: Dan Callaghan <dan.callaghan@opengear.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-protocols/quagga/quagga.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-networking/recipes-protocols/quagga/quagga.inc b/meta-networking/recipes-protocols/quagga/quagga.inc index 2673a89769..310bc7eef0 100644 --- a/meta-networking/recipes-protocols/quagga/quagga.inc +++ b/meta-networking/recipes-protocols/quagga/quagga.inc | |||
| @@ -116,9 +116,9 @@ do_install () { | |||
| 116 | done | 116 | done |
| 117 | 117 | ||
| 118 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 118 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 119 | install -d ${D}${sysconfdir}/tmpfiles.d | 119 | install -d ${D}${nonarch_libdir}/tmpfiles.d |
| 120 | echo "d /run/quagga 0755 quagga quagga -" \ | 120 | echo "d /run/quagga 0755 quagga quagga -" \ |
| 121 | > ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf | 121 | > ${D}${nonarch_libdir}/tmpfiles.d/${BPN}.conf |
| 122 | fi | 122 | fi |
| 123 | 123 | ||
| 124 | # Remove sysinit script if sysvinit is not in DISTRO_FEATURES | 124 | # Remove sysinit script if sysvinit is not in DISTRO_FEATURES |
| @@ -166,6 +166,8 @@ FILES_${PN}-ospfclient = "${sbindir}/ospfclient ${libdir}/libospfapiclient.so.* | |||
| 166 | FILES_${PN}-watchquagga = "${sbindir}/watchquagga ${sysconfdir}/default/watchquagga \ | 166 | FILES_${PN}-watchquagga = "${sbindir}/watchquagga ${sysconfdir}/default/watchquagga \ |
| 167 | ${sysconfdir}/init.d/watchquagga" | 167 | ${sysconfdir}/init.d/watchquagga" |
| 168 | 168 | ||
| 169 | FILES_${PN} += "${nonarch_libdir}/tmpfiles.d/*.conf" | ||
| 170 | |||
| 169 | # Indicate that the default files are configuration files | 171 | # Indicate that the default files are configuration files |
| 170 | CONFFILES_${PN} = "${sysconfdir}/default/quagga \ | 172 | CONFFILES_${PN} = "${sysconfdir}/default/quagga \ |
| 171 | ${sysconfdir}/quagga/bgpd.conf \ | 173 | ${sysconfdir}/quagga/bgpd.conf \ |
