]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - plymouth/patches/plymouth-0.8.6.1-create-missing-links-for-systemd-targets.patch
plymouth: Update to 0.8.6.1.
[ipfire-3.x.git] / plymouth / patches / plymouth-0.8.6.1-create-missing-links-for-systemd-targets.patch
diff --git a/plymouth/patches/plymouth-0.8.6.1-create-missing-links-for-systemd-targets.patch b/plymouth/patches/plymouth-0.8.6.1-create-missing-links-for-systemd-targets.patch
new file mode 100644 (file)
index 0000000..1e1aa95
--- /dev/null
@@ -0,0 +1,71 @@
+From edde4e0f2b85c6f298569fe219a08361b99b016b Mon Sep 17 00:00:00 2001
+From: Frederic Crozat <fcrozat@suse.com>
+Date: Fri, 20 Jul 2012 13:28:31 +0000
+Subject: systemd: create missing links various targets
+
+---
+diff --git a/systemd-units/Makefile.am b/systemd-units/Makefile.am
+index 1545a04..2f5e61f 100644
+--- a/systemd-units/Makefile.am
++++ b/systemd-units/Makefile.am
+@@ -13,6 +13,58 @@ systemd_unit_templates =                                                     \
+ if ENABLE_SYSTEMD_INTEGRATION
+ systemdunitdir=$(SYSTEMD_UNIT_DIR)
+ systemdunit_DATA = $(systemd_unit_templates:.in=)
++
++install-data-hook:
++      $(MKDIR_P) -m 0755                                                   \
++              $(DESTDIR)$(SYSTEMD_UNIT_DIR)/sysinit.target.wants           \
++              $(DESTDIR)$(SYSTEMD_UNIT_DIR)/multi-user.target.wants        \
++              $(DESTDIR)$(SYSTEMD_UNIT_DIR)/reboot.target.wants            \
++              $(DESTDIR)$(SYSTEMD_UNIT_DIR)/kexec.target.wants             \
++              $(DESTDIR)$(SYSTEMD_UNIT_DIR)/poweroff.target.wants          \
++              $(DESTDIR)$(SYSTEMD_UNIT_DIR)/halt.target.wants
++      (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/sysinit.target.wants &&            \
++              rm -f plymouth-start.service plymouth-read-write.service &&  \
++              $(LN_S) ../plymouth-start.service &&                         \
++              $(LN_S) ../plymouth-read-write.service)
++      (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/multi-user.target.wants &&         \
++              rm -f plymouth-quit.service plymouth-quit-wait.service &&    \
++              $(LN_S) ../plymouth-quit.service &&                          \
++              $(LN_S) ../plymouth-quit-wait.service)
++      (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/reboot.target.wants &&             \
++              rm -f plymouth-reboot.service &&                             \
++              $(LN_S) ../plymouth-reboot.service)
++      (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/kexec.target.wants &&              \
++              rm -f plymouth-kexec.service &&                              \
++              $(LN_S) ../plymouth-kexec.service)
++      (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/poweroff.target.wants &&           \
++              rm -f plymouth-poweroff.service &&                           \
++              $(LN_S) ../plymouth-poweroff.service)
++      (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/halt.target.wants &&               \
++              rm -f plymouth-halt.service &&                               \
++              $(LN_S) ../plymouth-halt.service)
++
++uninstall-hook:
++      rm -f \
++      (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/sysinit.target.wants &&            \
++              rm -f plymouth-start.service plymouth-read-write.service)    \
++      (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/multi-user.target.wants &&         \
++              rm -f plymouth-quit.service plymouth-quit-wait.service)      \
++      (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/reboot.target.wants &&             \
++              rm -f plymouth-reboot.service)                               \
++      (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/kexec.target.wants &&              \
++              rm -f plymouth-kexec.service)                                \
++      (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/poweroff.target.wants &&           \
++              rm -f plymouth-poweroff.service)                             \
++      (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/halt.target.wants &&               \
++              rm -f plymouth-halt.service)                                 \
++      rmdir --ignore-fail-on-non-empty                                     \
++              $(DESTDIR)$(SYSTEMD_UNIT_DIR)/sysinit.target.wants           \
++              $(DESTDIR)$(SYSTEMD_UNIT_DIR)/multi-user.target.wants        \
++              $(DESTDIR)$(SYSTEMD_UNIT_DIR)/reboot.target.wants            \
++              $(DESTDIR)$(SYSTEMD_UNIT_DIR)/kexec.target.wants             \
++              $(DESTDIR)$(SYSTEMD_UNIT_DIR)/poweroff.target.wants          \
++              $(DESTDIR)$(SYSTEMD_UNIT_DIR)/halt.target.wants
++
+ endif
+ EXTRA_DIST = $(systemd_unit_templates) $(systemdunit_DATA)
+--
+cgit v0.9.0.2-2-gbebe