summaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-03 19:24:18 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-05 23:19:47 +0200
commitafedbb80497e0a26f2026336943b1e37a8e696af (patch)
treedaef0c503c8b4c9ac10066bf2d3a9f42561178ef /data/Makefile.am
parent5a81bb666df3d8469d282e63d452ac2dea96b313 (diff)
downloadConsoleKit2-afedbb80497e0a26f2026336943b1e37a8e696af.tar.gz
systemd: install unit files for CK logging calls
This follows the basic scheme of the Upstart scripts we already ship
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am38
1 files changed, 36 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 8c0490a..bf9e43b 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -22,11 +22,37 @@ $(service_DATA): $(service_in_files) Makefile
if HAVE_SYSTEMD
systemdsystemunit_DATA = \
- console-kit-daemon.service
+ console-kit-daemon.service \
+ console-kit-log-system-start.service \
+ console-kit-log-system-stop.service \
+ console-kit-log-system-restart.service
console-kit-daemon.service: console-kit-daemon.service.in
$(edit) $< >$@
+console-kit-log-system-start.service: console-kit-log-system-start.service.in
+ $(edit) $< >$@
+
+console-kit-log-system-stop.service: console-kit-log-system-stop.service.in
+ $(edit) $< >$@
+
+console-kit-log-system-restart.service: console-kit-log-system-restart.service.in
+ $(edit) $< >$@
+
+install-data-hook:
+ $(MKDIR_P) -m 755 \
+ $(DESTDIR)$(systemdsystemunitdir)/basic.target.wants \
+ $(DESTDIR)$(systemdsystemunitdir)/halt.target.wants \
+ $(DESTDIR)$(systemdsystemunitdir)/poweroff.target.wants \
+ $(DESTDIR)$(systemdsystemunitdir)/reboot.target.wants
+ ( cd $(DESTDIR)$(systemdsystemunitdir)/basic.target.wants && \
+ $(LN_S) ../console-kit-log-system-start.service )
+ ( cd $(DESTDIR)$(systemdsystemunitdir)/halt.target.wants && \
+ $(LN_S) ../console-kit-log-system-stop.service )
+ ( cd $(DESTDIR)$(systemdsystemunitdir)/poweroff.target.wants && \
+ $(LN_S) ../console-kit-log-system-stop.service )
+ ( cd $(DESTDIR)$(systemdsystemunitdir)/reboot.target.wants && \
+ $(LN_S) ../console-kit-log-system-restart.service )
endif
edit = sed \
@@ -43,10 +69,18 @@ EXTRA_DIST = \
$(seat_DATA) \
$(service_in_files) \
console-kit-daemon.service.in \
+ console-kit-log-system-start.service.in \
+ console-kit-log-system-stop.service.in \
+ console-kit-log-system-restart.service.in \
$(NULL)
MAINTAINERCLEANFILES = \
*~ \
Makefile.in
-CLEANFILES = $(service_DATA) console-kit-daemon.service
+CLEANFILES = \
+ $(service_DATA) \
+ console-kit-daemon.service \
+ console-kit-log-system-start.service \
+ console-kit-log-system-stop.service \
+ console-kit-log-system-restart.service