diff options
author | Kay Sievers <kay@vrfy.org> | 2014-02-22 17:58:05 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-02-22 18:12:39 +0100 |
commit | 0031ccd3060593f8c411e76a7764dffe8326f21f (patch) | |
tree | 1f46695e663486a72212a68b23f09bb652d139ad | |
parent | df40be6a145ef929f1e55805cf6927b8e262d012 (diff) |
build-sys: create /var/log/journal/ in journald section
-rw-r--r-- | Makefile.am | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am index c4598b8747..0699712686 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2071,11 +2071,6 @@ libsystemd_la_LIBADD = \ libsystemd-install-hook: libname=libsystemd.so && $(move-to-rootlibdir) - -$(MKDIR_P) $(DESTDIR)/var/log/journal - -chown 0:0 $(DESTDIR)/var/log/journal - -chmod 755 $(DESTDIR)/var/log/journal - -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/ - -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/ libsystemd-uninstall-hook: rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so* @@ -3155,8 +3150,20 @@ endif noinst_LTLIBRARIES += \ libsystemd-journal-core.la -# ------------------------------------------------------------------------------ +journal-install-hook: + -$(MKDIR_P) $(DESTDIR)/var/log/journal + -chown 0:0 $(DESTDIR)/var/log/journal + -chmod 755 $(DESTDIR)/var/log/journal + -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/ + -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/ +journal-uninstall-hook: + -rmdir $(DESTDIR)/var/log/journal/ + +INSTALL_EXEC_HOOKS += journal-install-hook +UNINSTALL_EXEC_HOOKS += journal-uninstall-hook + +# ------------------------------------------------------------------------------ # Update catalog on installation. Do not bother if installing # in DESTDIR, since this is likely for packaging purposes. catalog-update-hook: |