]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - plymouth/patches/plymouth-0.8.6.1-create-missing-links-for-systemd-targets.patch
1e1aa95698b440ab6129bb64d443ed5c07d56000
[people/amarx/ipfire-3.x.git] / plymouth / patches / plymouth-0.8.6.1-create-missing-links-for-systemd-targets.patch
1 From edde4e0f2b85c6f298569fe219a08361b99b016b Mon Sep 17 00:00:00 2001
2 From: Frederic Crozat <fcrozat@suse.com>
3 Date: Fri, 20 Jul 2012 13:28:31 +0000
4 Subject: systemd: create missing links various targets
5
6 ---
7 diff --git a/systemd-units/Makefile.am b/systemd-units/Makefile.am
8 index 1545a04..2f5e61f 100644
9 --- a/systemd-units/Makefile.am
10 +++ b/systemd-units/Makefile.am
11 @@ -13,6 +13,58 @@ systemd_unit_templates = \
12 if ENABLE_SYSTEMD_INTEGRATION
13 systemdunitdir=$(SYSTEMD_UNIT_DIR)
14 systemdunit_DATA = $(systemd_unit_templates:.in=)
15 +
16 +install-data-hook:
17 + $(MKDIR_P) -m 0755 \
18 + $(DESTDIR)$(SYSTEMD_UNIT_DIR)/sysinit.target.wants \
19 + $(DESTDIR)$(SYSTEMD_UNIT_DIR)/multi-user.target.wants \
20 + $(DESTDIR)$(SYSTEMD_UNIT_DIR)/reboot.target.wants \
21 + $(DESTDIR)$(SYSTEMD_UNIT_DIR)/kexec.target.wants \
22 + $(DESTDIR)$(SYSTEMD_UNIT_DIR)/poweroff.target.wants \
23 + $(DESTDIR)$(SYSTEMD_UNIT_DIR)/halt.target.wants
24 + (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/sysinit.target.wants && \
25 + rm -f plymouth-start.service plymouth-read-write.service && \
26 + $(LN_S) ../plymouth-start.service && \
27 + $(LN_S) ../plymouth-read-write.service)
28 + (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/multi-user.target.wants && \
29 + rm -f plymouth-quit.service plymouth-quit-wait.service && \
30 + $(LN_S) ../plymouth-quit.service && \
31 + $(LN_S) ../plymouth-quit-wait.service)
32 + (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/reboot.target.wants && \
33 + rm -f plymouth-reboot.service && \
34 + $(LN_S) ../plymouth-reboot.service)
35 + (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/kexec.target.wants && \
36 + rm -f plymouth-kexec.service && \
37 + $(LN_S) ../plymouth-kexec.service)
38 + (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/poweroff.target.wants && \
39 + rm -f plymouth-poweroff.service && \
40 + $(LN_S) ../plymouth-poweroff.service)
41 + (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/halt.target.wants && \
42 + rm -f plymouth-halt.service && \
43 + $(LN_S) ../plymouth-halt.service)
44 +
45 +uninstall-hook:
46 + rm -f \
47 + (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/sysinit.target.wants && \
48 + rm -f plymouth-start.service plymouth-read-write.service) \
49 + (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/multi-user.target.wants && \
50 + rm -f plymouth-quit.service plymouth-quit-wait.service) \
51 + (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/reboot.target.wants && \
52 + rm -f plymouth-reboot.service) \
53 + (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/kexec.target.wants && \
54 + rm -f plymouth-kexec.service) \
55 + (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/poweroff.target.wants && \
56 + rm -f plymouth-poweroff.service) \
57 + (cd $(DESTDIR)$(SYSTEMD_UNIT_DIR)/halt.target.wants && \
58 + rm -f plymouth-halt.service) \
59 + rmdir --ignore-fail-on-non-empty \
60 + $(DESTDIR)$(SYSTEMD_UNIT_DIR)/sysinit.target.wants \
61 + $(DESTDIR)$(SYSTEMD_UNIT_DIR)/multi-user.target.wants \
62 + $(DESTDIR)$(SYSTEMD_UNIT_DIR)/reboot.target.wants \
63 + $(DESTDIR)$(SYSTEMD_UNIT_DIR)/kexec.target.wants \
64 + $(DESTDIR)$(SYSTEMD_UNIT_DIR)/poweroff.target.wants \
65 + $(DESTDIR)$(SYSTEMD_UNIT_DIR)/halt.target.wants
66 +
67 endif
68
69 EXTRA_DIST = $(systemd_unit_templates) $(systemdunit_DATA)
70 --
71 cgit v0.9.0.2-2-gbebe