iptraf-ng: Create /var/log and /var/lib subdirs at runtime

This ensures that /var can be empty during build and populated only at
runtime

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2021-11-03 22:49:51 -07:00
parent 700a2783b4
commit 62386145de
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1,3 @@
d /run/iptraf-ng 0755 root root -
d /var/log/iptraf-ng 0755 root root -
d /var/lib/iptraf-ng 0755 root root -

View File

@ -41,7 +41,6 @@ do_compile() {
do_install() {
oe_runmake DESTDIR=${D} install
install -d -m 0755 ${D}${localstatedir}/{log,lib}/iptraf-ng
install -D -m 0644 -p ${S}/iptraf-ng-logrotate.conf ${D}${sysconfdir}/logrotate.d/iptraf-ng
install -Dm 0644 ${WORKDIR}/iptraf-ng-tmpfiles.conf ${D}${libdir}/tmpfiles.d/iptraf-ng-tmpfiles.conf
}