chiark / gitweb /
fedora: add compat unit for /sbin/halt.local
[elogind.git] / Makefile.am
index b15cb123bef3e444fcda02a48910b057cbe33324..f129525f2e944ddfb31283e24f92bb87d4c25c8a 100644 (file)
@@ -174,6 +174,7 @@ dist_systemunit_DATA = \
        units/rpcbind.target \
        units/rtc-set.target \
        units/shutdown.target \
+       units/final.target \
        units/umount.target \
        units/sigpwr.target \
        units/sockets.target \
@@ -231,6 +232,9 @@ nodist_systemunit_DATA = \
        units/systemd-tmpfiles.service \
        units/systemd-user-sessions.service \
        units/syslog.target \
+       units/halt.service \
+       units/poweroff.service \
+       units/reboot.service \
        units/kexec.service
 
 dist_sessionunit_DATA = \
@@ -265,18 +269,18 @@ EXTRA_DIST = \
        units/systemd-tmpfiles.service.in \
        units/systemd-user-sessions.service.in \
        units/syslog.target.in \
+       units/halt.service.in \
+       units/poweroff.service.in \
+       units/reboot.service.in \
        units/kexec.service.in \
        units/session/exit.service.in \
        systemd.pc.in
 
 if TARGET_FEDORA
 dist_systemunit_DATA += \
-       units/fedora/halt.service \
-       units/fedora/killall.service \
-       units/fedora/poweroff.service \
        units/fedora/prefdm.service \
        units/fedora/rc-local.service \
-       units/fedora/reboot.service \
+       units/fedora/halt-local.service \
        units/fedora/sysinit.service \
        units/fedora/single.service \
        units/fedora/plymouth-quit.service \
@@ -287,10 +291,6 @@ endif
 
 if TARGET_DEBIAN
 dist_systemunit_DATA += \
-       units/debian/halt.service \
-       units/debian/killall.service \
-       units/debian/poweroff.service \
-       units/debian/reboot.service \
        units/debian/fsck.target \
        units/debian/umountfs.service \
        units/debian/umountnfs.service \
@@ -299,28 +299,18 @@ endif
 
 if TARGET_SUSE
 dist_systemunit_DATA += \
-       units/suse/halt.service \
-       units/suse/poweroff.service \
-       units/suse/reboot.service \
        units/suse/fsck.target
 endif
 
 if TARGET_GENTOO
 dist_systemunit_DATA += \
-       units/gentoo/halt.service \
-       units/gentoo/killall.service \
-       units/gentoo/poweroff.service \
-       units/gentoo/reboot.service \
        units/gentoo/xdm.service
 endif
 
 if TARGET_ARCH
 dist_systemunit_DATA += \
        units/arch/sysinit.service \
-       units/arch/rc-local.service \
-       units/arch/halt.service \
-       units/arch/poweroff.service \
-       units/arch/reboot.service
+       units/arch/rc-local.service
 endif
 
 dist_doc_DATA = \
@@ -1129,7 +1119,8 @@ if TARGET_FEDORA
                $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
                $(DESTDIR)$(systemunitdir)/halt.target.wants \
                $(DESTDIR)$(systemunitdir)/rescue.target.wants \
-               $(DESTDIR)$(systemunitdir)/multi-user.target.wants
+               $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
+               $(DESTDIR)$(systemunitdir)/final.target.wants
        ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
                rm -f display-manager.service && \
                $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
@@ -1139,6 +1130,9 @@ if TARGET_FEDORA
        ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
                rm -f rc-local.service && \
                $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
+       ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
+               rm -f halt-local.service && \
+               $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
        ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
                rm -f single.service && \
                $(LN_S) $(systemunitdir)/single.service single.service )