-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitmethod-systemd.make
62 lines (49 loc) · 2.42 KB
/
initmethod-systemd.make
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*-makefile-*-
#
# Copyright (C) 2011 by Michael Olbrich <[email protected]>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_INITMETHOD_SYSTEMD) += initmethod-systemd
INITMETHOD_SYSTEMD_VERSION := 1.0.0
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/initmethod-systemd.targetinstall:
@$(call targetinfo)
@$(call install_init, initmethod-systemd)
@$(call install_fixup,initmethod-systemd,PRIORITY,optional)
@$(call install_fixup,initmethod-systemd,SECTION,base)
@$(call install_fixup,initmethod-systemd,AUTHOR,"Michael Olbrich <[email protected]>")
@$(call install_fixup,initmethod-systemd,DESCRIPTION,missing)
@$(call install_alternative, initmethod-systemd, 0, 0, 0755, /lib/init/initmethod-bbinit-functions.sh)
ifdef PTXCONF_INITMETHOD_SYSTEMD_IFUPDOWN
@$(call install_alternative, initmethod-systemd, 0, 0, 0755, \
/lib/systemd/ifupdown-prepare)
@$(call install_alternative, initmethod-systemd, 0, 0, 0644, \
/lib/systemd/system/ifupdown-prepare.service)
@$(call install_link, initmethod-systemd, ../ifupdown-prepare.service, \
/lib/systemd/system/ifupdown.service.wants/ifupdown-prepare.service)
@$(call install_alternative, initmethod-systemd, 0, 0, 0644, \
/lib/systemd/system/ifupdown.service)
@$(call install_link, initmethod-systemd, ../ifupdown.service, \
/lib/systemd/system/network.target.wants/ifupdown.service)
@$(call install_link, initmethod-systemd, ../network.target, \
/lib/systemd/system/multi-user.target.wants/network.target)
@$(call install_alternative, initmethod-systemd, 0, 0, 0644, /etc/network/interfaces)
@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-down.d)
@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-up.d)
@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-pre-down.d)
@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-post-down.d)
@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-pre-up.d)
@$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-post-up.d)
endif
@$(call install_finish,initmethod-systemd)
@$(call touch)
# vim: syntax=make