]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/initscripts
Dialctrl.pl integriert.
[people/pmueller/ipfire-2.x.git] / lfs / initscripts
CommitLineData
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
27include Config
28
7b9e5f10
MT
29VER = ipfire
30
cd1a2927
MT
31THISAPP = initscripts
32DIR_APP = $(DIR_SRC)/$(THISAPP)
33TARGET = $(DIR_INFO)/$(THISAPP)
34
35###############################################################################
36# Top-level Rules
37###############################################################################
38
39install : $(TARGET)
40
41check :
42
43download :
44
45md5 :
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
d1e90efc
MT
58 install -d -m 755 /etc/rc.d/init.d/networking
59 install -d -m 755 /etc/rc.d/init.d/networking/red.up
60 install -d -m 755 /etc/rc.d/init.d/networking/red.down
069680ac 61 install -d -m 755 /etc/rc.d/helper
73d9a908 62 install -d -m 755 /etc/sysconfig
406f019f 63 -rm -rf /etc/init.d
05207d69 64 ln -svf rc.d/init.d /etc/init.d
73d9a908 65
23104841
MT
66 for i in $(DIR_SRC)/src/initscripts/init.d/*; do \
67 install -v -m 754 $$i /etc/rc.d/init.d/; \
68 done
69 chmod 644 /etc/rc.d/init.d/functions
70
d1e90efc 71 for i in $(DIR_SRC)/src/initscripts/init.d/networking/*; do \
406f019f 72 if [ -f $$i ]; then \
d1e90efc 73 install -v -m 754 $$i /etc/rc.d/init.d/networking/; \
406f019f 74 fi; \
9c16cd92
MT
75 done
76
d1e90efc
MT
77 for i in $(DIR_SRC)/src/initscripts/init.d/networking/red.up/*; do \
78 install -v -m 754 $$i /etc/rc.d/init.d/networking/red.up/; \
9c16cd92
MT
79 done
80
d1e90efc
MT
81 for i in $(DIR_SRC)/src/initscripts/init.d/networking/red.down/*; do \
82 install -v -m 754 $$i /etc/rc.d/init.d/networking/red.down/; \
9c16cd92
MT
83 done
84
65998e0a
MT
85 for i in $(DIR_SRC)/src/initscripts/sysconfig/*; do \
86 install -v -m 644 $$i /etc/sysconfig/; \
87 done
18720f43 88 chmod -v 755 /etc/sysconfig/firewall.local
65998e0a 89
069680ac
MT
90 for i in $(DIR_SRC)/src/initscripts/helper/*; do \
91 install -v -m 755 $$i /etc/rc.d/helper/; \
92 done
93
73d9a908
MT
94 ln -sf ../init.d/sysklogd /etc/rc.d/rc0.d/K90sysklogd
95 ln -sf ../init.d/sendsignals /etc/rc.d/rc0.d/S60sendsignals
55b4c7ed
MT
96 ln -sf ../init.d/localnet /etc/rc.d/rc0.d/S70localnet
97 ln -sf ../init.d/mountfs /etc/rc.d/rc0.d/S80mountfs
98 ln -sf ../init.d/swap /etc/rc.d/rc0.d/S90swap
73d9a908 99 ln -sf ../init.d/halt /etc/rc.d/rc0.d/S99halt
73d9a908 100 ln -sf ../init.d/sysklogd /etc/rc.d/rc3.d/S10sysklogd
73d9a908
MT
101 ln -sf ../init.d/sysklogd /etc/rc.d/rc6.d/K90sysklogd
102 ln -sf ../init.d/sendsignals /etc/rc.d/rc6.d/S60sendsignals
103 ln -sf ../init.d/mountfs /etc/rc.d/rc6.d/S70mountfs
104 ln -sf ../init.d/swap /etc/rc.d/rc6.d/S80swap
105 ln -sf ../init.d/localnet /etc/rc.d/rc6.d/S90localnet
106 ln -sf ../init.d/reboot /etc/rc.d/rc6.d/S99reboot
23104841 107 ln -sf ../init.d/sshd /etc/rc.d/rc0.d/K30sshd
23104841 108 ln -sf ../init.d/sshd /etc/rc.d/rc3.d/S30sshd
23104841
MT
109 ln -sf ../init.d/sshd /etc/rc.d/rc6.d/K30sshd
110 ln -sf ../init.d/apache /etc/rc.d/rc0.d/K28apache
23104841 111 ln -sf ../init.d/apache /etc/rc.d/rc3.d/S32apache
23104841
MT
112 ln -sf ../init.d/apache /etc/rc.d/rc6.d/K28apache
113 ln -sf ../init.d/fcron /etc/rc.d/rc0.d/K08fcron
23104841 114 ln -sf ../init.d/fcron /etc/rc.d/rc3.d/S40fcron
23104841 115 ln -sf ../init.d/fcron /etc/rc.d/rc6.d/K08fcron
3fd5feeb
MT
116 ln -sf ../init.d/network /etc/rc.d/rc0.d/K80network
117 ln -sf ../init.d/network /etc/rc.d/rc3.d/S20network
118 ln -sf ../init.d/network /etc/rc.d/rc6.d/K80network
71e32384
MT
119 ln -sf ../init.d/random /etc/rc.d/rc0.d/K45random
120 ln -sf ../init.d/random /etc/rc.d/rc3.d/S25random
121 ln -sf ../init.d/random /etc/rc.d/rc6.d/K45random
65998e0a 122
73d9a908
MT
123 ln -sf ../init.d/mountkernfs /etc/rc.d/rcsysinit.d/S00mountkernfs
124 ln -sf ../init.d/modules /etc/rc.d/rcsysinit.d/S05modules
125 ln -sf ../init.d/udev /etc/rc.d/rcsysinit.d/S10udev
126 ln -sf ../init.d/swap /etc/rc.d/rcsysinit.d/S20swap
127 ln -sf ../init.d/checkfs /etc/rc.d/rcsysinit.d/S30checkfs
128 ln -sf ../init.d/mountfs /etc/rc.d/rcsysinit.d/S40mountfs
129 ln -sf ../init.d/udev_retry /etc/rc.d/rcsysinit.d/S45udev_retry
130 ln -sf ../init.d/cleanfs /etc/rc.d/rcsysinit.d/S50cleanfs
131 ln -sf ../init.d/setclock /etc/rc.d/rcsysinit.d/S60setclock
132 ln -sf ../init.d/console /etc/rc.d/rcsysinit.d/S70console
133 ln -sf ../init.d/localnet /etc/rc.d/rcsysinit.d/S80localnet
134 ln -sf ../init.d/sysctl /etc/rc.d/rcsysinit.d/S90sysctl
d1e90efc
MT
135
136 ln -sf ../../dnsmasq /etc/rc.d/init.d/networking/red.up/05-RS-dnsmasq
137 ln -sf ../../firewall /etc/rc.d/init.d/networking/red.up/20-RL-firewall
d1e90efc
MT
138 ln -sf ../../../../../usr/local/bin/outgoingfwctrl \
139 /etc/rc.d/init.d/networking/red.up/22-outgoingfwctrl
140 ln -sf ../../../../../usr/local/bin/snortctrl \
141 /etc/rc.d/init.d/networking/red.up/23-RS-snort
142 ln -sf ../../../../../usr/local/bin/qosctrl \
143 /etc/rc.d/init.d/networking/red.up/24-RS-qos
144 ln -sf ../../../../../usr/local/bin/setportfw \
145 /etc/rc.d/init.d/networking/red.up/25-portfw
146 ln -sf ../../../../../usr/local/bin/setxtaccess \
147 /etc/rc.d/init.d/networking/red.up/26-xtaccess
ebca0d9a
MT
148 ln -sf ../../../../../usr/local/bin/dialctrl.pl \
149 /etc/rc.d/init.d/networking/red.up/99-U-dialctrl.pl
d1e90efc
MT
150
151 ln -sf ../../dnsmasq /etc/rc.d/init.d/networking/red.down/05-RS-dnsmasq
152 ln -sf ../../firewall /etc/rc.d/init.d/networking/red.down/20-RL-firewall
ebca0d9a
MT
153 ln -sf ../../../../../usr/local/bin/dialctrl.pl \
154 /etc/rc.d/init.d/networking/red.down/99-D-dialctrl.pl
d1e90efc
MT
155
156 for i in green blue orange; do \
157 ln -sf any /etc/rc.d/init.d/networking/$$i; \
158 done
159
cd1a2927 160 @$(POSTBUILD)