summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-02-20 09:02:39 -0500
committerDave Reisner <dreisner@archlinux.org>2014-02-20 09:05:59 -0500
commite288d6a81a7731fd61029db0ff8938f4f3e72856 (patch)
tree5d2318a86e42ee1e49c3c02141a52f707b7488a5 /Makefile.am
parentdb57f3c6d11864f4227bb6734a0d509695a32a7d (diff)
readd journald.so install hooks under libsystemd.so
Inadvertently removed in add00dfd1f05.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index c71367d32a..08b94d7b14 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2047,6 +2047,20 @@ libsystemd_la_LIBADD = \
$(RT_LIBS) \
-lresolv
+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*
+
+INSTALL_EXEC_HOOKS += libsystemd-install-hook
+UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
+
pkgconfiglib_DATA += \
src/libsystemd/libsystemd.pc