]>
Commit | Line | Data |
---|---|---|
cd1a2927 | 1 | ############################################################################### |
cd1a2927 | 2 | # # |
70df8302 MT |
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 # | |
cd1a2927 | 7 | # it under the terms of the GNU General Public License as published by # |
70df8302 | 8 | # the Free Software Foundation, either version 3 of the License, or # |
cd1a2927 MT |
9 | # (at your option) any later version. # |
10 | # # | |
70df8302 | 11 | # This program is distributed in the hope that it will be useful, # |
cd1a2927 MT |
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 # | |
70df8302 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # |
cd1a2927 | 18 | # # |
cd1a2927 MT |
19 | ############################################################################### |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
42819464 | 27 | PKG_NAME = initscripts |
8985a698 | 28 | PKG_VER = ipfire |
7b9e5f10 | 29 | |
42819464 MT |
30 | THISAPP = $(PKG_NAME) |
31 | DIR_APP = $(DIR_SOURCE)/$(THISAPP) | |
32 | ||
6679675b | 33 | OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP) |
cd1a2927 | 34 | |
9af97c9c MT |
35 | SCRIPTS = \ |
36 | checkfs \ | |
37 | cleanfs \ | |
9af97c9c MT |
38 | haldaemon \ |
39 | halt \ | |
eae9985b | 40 | lighttpd \ |
9af97c9c MT |
41 | localnet \ |
42 | messagebus \ | |
9af97c9c MT |
43 | modules \ |
44 | mountfs \ | |
45 | mountkernfs \ | |
46 | network \ | |
47 | ntpd \ | |
48 | openldap \ | |
1bce9b03 | 49 | random \ |
9af97c9c MT |
50 | reboot \ |
51 | sendsignals \ | |
52 | setclock \ | |
9af97c9c MT |
53 | swap \ |
54 | sysctl \ | |
09053c41 | 55 | syslog-ng \ |
9af97c9c MT |
56 | udev \ |
57 | udev_retry | |
58 | ||
cd1a2927 MT |
59 | ############################################################################### |
60 | # Top-level Rules | |
61 | ############################################################################### | |
62 | ||
6679675b | 63 | install : $(OBJECT) |
cd1a2927 | 64 | |
cd1a2927 MT |
65 | download : |
66 | ||
cd1a2927 MT |
67 | ############################################################################### |
68 | # Installation Details | |
69 | ############################################################################### | |
70 | ||
6679675b | 71 | $(OBJECT) : |
cd1a2927 | 72 | @$(PREBUILD) |
42819464 MT |
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 | |
2a1879b5 MT |
77 | install -d -m 755 /etc/rc4.d |
78 | install -d -m 755 /etc/rc5.d | |
42819464 | 79 | install -d -m 755 /etc/rc6.d |
2a1879b5 | 80 | install -d -m 755 /etc/rcS.d |
42819464 MT |
81 | install -d -m 755 /etc/init.d |
82 | install -d -m 755 /etc/init.d/boottemp | |
fd0c0a9f MT |
83 | install -d -m 755 /etc/init.d/networking |
84 | install -d -m 755 /etc/init.d/networking/services | |
73d9a908 | 85 | install -d -m 755 /etc/sysconfig |
42819464 MT |
86 | install -d -m 755 /etc/lsb/state |
87 | install -d -m 755 /lib/lsb | |
73d9a908 | 88 | |
42819464 MT |
89 | for i in $(DIR_APP)/core/*; do \ |
90 | install -v -m 754 $$i /etc/init.d/; \ | |
9c16cd92 | 91 | done |
42819464 MT |
92 | chmod 644 /etc/init.d/ipfire-functions |
93 | ||
fd0c0a9f | 94 | # Install networking scripts |
b8c91a33 | 95 | for i in $(DIR_APP)/networking/*; do \ |
7c0048b5 | 96 | [ -d "$$i" ] && continue; \ |
69854f50 | 97 | install -v -m 754 $$i /etc/init.d/networking; \ |
fd0c0a9f | 98 | done |
7c0048b5 | 99 | chmod 644 /etc/init.d/networking/functions |
fd0c0a9f | 100 | |
69854f50 MT |
101 | for i in $(DIR_APP)/networking/services/*; do \ |
102 | install -v -m 754 $$i /etc/init.d/networking/services; \ | |
fd0c0a9f MT |
103 | done |
104 | ||
42819464 MT |
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 | ||
5101fac1 | 109 | cd /etc/init.d && install_initd -v $(SCRIPTS) |
9c16cd92 | 110 | |
65998e0a MT |
111 | for i in $(DIR_SRC)/src/initscripts/sysconfig/*; do \ |
112 | install -v -m 644 $$i /etc/sysconfig/; \ | |
113 | done | |
42819464 MT |
114 | chmod -v 755 /etc/sysconfig/rc.local |
115 | ||
cd1a2927 | 116 | @$(POSTBUILD) |