]> git.ipfire.org Git - ipfire-3.x.git/blob - lfs/initscripts
Some fixes.
[ipfire-3.x.git] / lfs / initscripts
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include Config
26
27 PKG_NAME = initscripts
28 PKG_VER = ipfire
29
30 THISAPP = $(PKG_NAME)
31 DIR_APP = $(DIR_SOURCE)/$(THISAPP)
32
33 OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
34
35 SCRIPTS = \
36 checkfs \
37 cleanfs \
38 haldaemon \
39 halt \
40 lighttpd \
41 localnet \
42 messagebus \
43 modules \
44 mountfs \
45 mountkernfs \
46 network \
47 ntpd \
48 openldap \
49 random \
50 reboot \
51 sendsignals \
52 setclock \
53 swap \
54 sysctl \
55 syslog-ng \
56 udev \
57 udev_retry
58
59 ###############################################################################
60 # Top-level Rules
61 ###############################################################################
62
63 install : $(OBJECT)
64
65 download :
66
67 ###############################################################################
68 # Installation Details
69 ###############################################################################
70
71 $(OBJECT) :
72 @$(PREBUILD)
73 install -d -m 755 /etc/rc0.d
74 install -d -m 755 /etc/rc1.d
75 install -d -m 755 /etc/rc2.d
76 install -d -m 755 /etc/rc3.d
77 install -d -m 755 /etc/rc4.d
78 install -d -m 755 /etc/rc5.d
79 install -d -m 755 /etc/rc6.d
80 install -d -m 755 /etc/rcS.d
81 install -d -m 755 /etc/init.d
82 install -d -m 755 /etc/init.d/boottemp
83 install -d -m 755 /etc/init.d/networking
84 install -d -m 755 /etc/init.d/networking/services
85 install -d -m 755 /etc/sysconfig
86 install -d -m 755 /etc/lsb/state
87 install -d -m 755 /lib/lsb
88
89 for i in $(DIR_APP)/core/*; do \
90 install -v -m 754 $$i /etc/init.d/; \
91 done
92 chmod 644 /etc/init.d/ipfire-functions
93
94 # Install networking scripts
95 for i in $(DIR_APP)/networking/*; do \
96 [ -d "$$i" ] && continue; \
97 install -v -m 754 $$i /etc/init.d/networking; \
98 done
99 chmod 644 /etc/init.d/networking/functions
100
101 for i in $(DIR_APP)/networking/services/*; do \
102 install -v -m 754 $$i /etc/init.d/networking/services; \
103 done
104
105 install -m 644 $(DIR_APP)/lsb/init-functions /lib/lsb/
106 install -m 644 $(DIR_APP)/lsb/manage-functions /lib/lsb/
107 install -m 644 $(DIR_APP)/etc/lsb-config /etc/lsb/
108
109 cd /etc/init.d && install_initd -v $(SCRIPTS)
110
111 for i in $(DIR_SRC)/src/initscripts/sysconfig/*; do \
112 install -v -m 644 $$i /etc/sysconfig/; \
113 done
114 chmod -v 755 /etc/sysconfig/rc.local
115
116 @$(POSTBUILD)