]>
Commit | Line | Data |
---|---|---|
cd1a2927 MT |
1 | ############################################################################### |
2 | # This file is part of the IPCop Firewall. # | |
3 | # # | |
4 | # IPCop is free software; you can redistribute it and/or modify # | |
5 | # it under the terms of the GNU General Public License as published by # | |
6 | # the Free Software Foundation; either version 2 of the License, or # | |
7 | # (at your option) any later version. # | |
8 | # # | |
9 | # IPCop is distributed in the hope that it will be useful, # | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
12 | # GNU General Public License for more details. # | |
13 | # # | |
14 | # You should have received a copy of the GNU General Public License # | |
15 | # along with IPCop; if not, write to the Free Software # | |
16 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # | |
17 | # # | |
18 | # Makefiles are based on LFSMake, which is # | |
19 | # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> # | |
20 | # # | |
cd1a2927 MT |
21 | ############################################################################### |
22 | ||
23 | ############################################################################### | |
24 | # Definitions | |
25 | ############################################################################### | |
26 | ||
27 | include Config | |
28 | ||
7b9e5f10 MT |
29 | VER = ipfire |
30 | ||
cd1a2927 MT |
31 | THISAPP = initscripts |
32 | DIR_APP = $(DIR_SRC)/$(THISAPP) | |
33 | TARGET = $(DIR_INFO)/$(THISAPP) | |
34 | ||
35 | ############################################################################### | |
36 | # Top-level Rules | |
37 | ############################################################################### | |
38 | ||
39 | install : $(TARGET) | |
40 | ||
41 | check : | |
42 | ||
43 | download : | |
44 | ||
45 | md5 : | |
46 | ||
47 | ############################################################################### | |
48 | # Installation Details | |
49 | ############################################################################### | |
50 | ||
51 | $(TARGET) : | |
52 | @$(PREBUILD) | |
73d9a908 | 53 | install -d -m 755 /etc/rc.d/rc0.d |
73d9a908 | 54 | install -d -m 755 /etc/rc.d/rc3.d |
73d9a908 MT |
55 | install -d -m 755 /etc/rc.d/rc6.d |
56 | install -d -m 755 /etc/rc.d/rcsysinit.d | |
57 | install -d -m 755 /etc/rc.d/init.d | |
58 | install -d -m 755 /etc/sysconfig | |
59 | ||
23104841 MT |
60 | for i in $(DIR_SRC)/src/initscripts/init.d/*; do \ |
61 | install -v -m 754 $$i /etc/rc.d/init.d/; \ | |
62 | done | |
63 | chmod 644 /etc/rc.d/init.d/functions | |
64 | ||
65998e0a MT |
65 | for i in $(DIR_SRC)/src/initscripts/sysconfig/*; do \ |
66 | install -v -m 644 $$i /etc/sysconfig/; \ | |
67 | done | |
68 | ||
73d9a908 MT |
69 | ln -sf ../init.d/sysklogd /etc/rc.d/rc0.d/K90sysklogd |
70 | ln -sf ../init.d/sendsignals /etc/rc.d/rc0.d/S60sendsignals | |
71 | ln -sf ../init.d/mountfs /etc/rc.d/rc0.d/S70mountfs | |
72 | ln -sf ../init.d/swap /etc/rc.d/rc0.d/S80swap | |
73 | ln -sf ../init.d/localnet /etc/rc.d/rc0.d/S90localnet | |
74 | ln -sf ../init.d/halt /etc/rc.d/rc0.d/S99halt | |
73d9a908 | 75 | ln -sf ../init.d/sysklogd /etc/rc.d/rc3.d/S10sysklogd |
73d9a908 MT |
76 | ln -sf ../init.d/sysklogd /etc/rc.d/rc6.d/K90sysklogd |
77 | ln -sf ../init.d/sendsignals /etc/rc.d/rc6.d/S60sendsignals | |
78 | ln -sf ../init.d/mountfs /etc/rc.d/rc6.d/S70mountfs | |
79 | ln -sf ../init.d/swap /etc/rc.d/rc6.d/S80swap | |
80 | ln -sf ../init.d/localnet /etc/rc.d/rc6.d/S90localnet | |
81 | ln -sf ../init.d/reboot /etc/rc.d/rc6.d/S99reboot | |
23104841 | 82 | ln -sf ../init.d/sshd /etc/rc.d/rc0.d/K30sshd |
23104841 | 83 | ln -sf ../init.d/sshd /etc/rc.d/rc3.d/S30sshd |
23104841 MT |
84 | ln -sf ../init.d/sshd /etc/rc.d/rc6.d/K30sshd |
85 | ln -sf ../init.d/apache /etc/rc.d/rc0.d/K28apache | |
23104841 | 86 | ln -sf ../init.d/apache /etc/rc.d/rc3.d/S32apache |
23104841 MT |
87 | ln -sf ../init.d/apache /etc/rc.d/rc6.d/K28apache |
88 | ln -sf ../init.d/fcron /etc/rc.d/rc0.d/K08fcron | |
23104841 | 89 | ln -sf ../init.d/fcron /etc/rc.d/rc3.d/S40fcron |
23104841 | 90 | ln -sf ../init.d/fcron /etc/rc.d/rc6.d/K08fcron |
3fd5feeb MT |
91 | ln -sf ../init.d/network /etc/rc.d/rc0.d/K80network |
92 | ln -sf ../init.d/network /etc/rc.d/rc3.d/S20network | |
93 | ln -sf ../init.d/network /etc/rc.d/rc6.d/K80network | |
65998e0a | 94 | |
73d9a908 MT |
95 | ln -sf ../init.d/mountkernfs /etc/rc.d/rcsysinit.d/S00mountkernfs |
96 | ln -sf ../init.d/modules /etc/rc.d/rcsysinit.d/S05modules | |
97 | ln -sf ../init.d/udev /etc/rc.d/rcsysinit.d/S10udev | |
98 | ln -sf ../init.d/swap /etc/rc.d/rcsysinit.d/S20swap | |
99 | ln -sf ../init.d/checkfs /etc/rc.d/rcsysinit.d/S30checkfs | |
100 | ln -sf ../init.d/mountfs /etc/rc.d/rcsysinit.d/S40mountfs | |
101 | ln -sf ../init.d/udev_retry /etc/rc.d/rcsysinit.d/S45udev_retry | |
102 | ln -sf ../init.d/cleanfs /etc/rc.d/rcsysinit.d/S50cleanfs | |
103 | ln -sf ../init.d/setclock /etc/rc.d/rcsysinit.d/S60setclock | |
104 | ln -sf ../init.d/console /etc/rc.d/rcsysinit.d/S70console | |
105 | ln -sf ../init.d/localnet /etc/rc.d/rcsysinit.d/S80localnet | |
106 | ln -sf ../init.d/sysctl /etc/rc.d/rcsysinit.d/S90sysctl | |
23104841 | 107 | |
73d9a908 MT |
108 | # -mkdir -p /etc/rc.d/helper |
109 | # for i in $(DIR_SRC)/src/rc.d/* ; do \ | |
110 | # if [ -f $$i ]; then \ | |
111 | # sed "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" $$i > /etc/rc.d/`basename $$i`; \ | |
112 | # fi; \ | |
113 | # done | |
114 | # for i in $(DIR_SRC)/src/rc.d/helper/* ; do \ | |
115 | # if [ -f $$i ]; then \ | |
116 | # sed "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" $$i > /etc/rc.d/helper/`basename $$i`; \ | |
117 | # fi; \ | |
118 | # done | |
119 | # chmod -R 755 /etc/rc.d | |
120 | # chgrp nobody /etc/rc.d/rc.red | |
121 | # chmod 4750 /etc/rc.d/rc.red | |
cd1a2927 | 122 | @$(POSTBUILD) |