1 ###############################################################################
2 # This file is part of the IPCop Firewall. #
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. #
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. #
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 #
18 # Makefiles are based on LFSMake, which is #
19 # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
21 ###############################################################################
23 ###############################################################################
25 ###############################################################################
32 DIR_APP = $(DIR_SRC)/$(THISAPP)
33 TARGET = $(DIR_INFO)/$(THISAPP)
35 ###############################################################################
37 ###############################################################################
47 ###############################################################################
48 # Installation Details
49 ###############################################################################
53 install -d -m 755 /etc/rc.d/rc0.d
54 install -d -m 755 /etc/rc.d/rc3.d
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/rc.d/helper
59 install -d -m 755 /etc/sysconfig
60 ln -svf rc.d/init.d /etc/init.d
62 for i in $(DIR_SRC)/src/initscripts/init.d/*; do \
63 install -v -m 754 $$i /etc/rc.d/init.d/; \
65 chmod 644 /etc/rc.d/init.d/functions
67 for i in $(DIR_SRC)/src/initscripts/sysconfig/*; do \
68 install -v -m 644 $$i /etc/sysconfig/; \
71 for i in $(DIR_SRC)/src/initscripts/helper/*; do \
72 install -v -m 755 $$i /etc/rc.d/helper/; \
75 ln -sf ../init.d/sysklogd /etc/rc.d/rc0.d/K90sysklogd
76 ln -sf ../init.d/sendsignals /etc/rc.d/rc0.d/S60sendsignals
77 ln -sf ../init.d/localnet /etc/rc.d/rc0.d/S70localnet
78 ln -sf ../init.d/mountfs /etc/rc.d/rc0.d/S80mountfs
79 ln -sf ../init.d/swap /etc/rc.d/rc0.d/S90swap
80 ln -sf ../init.d/halt /etc/rc.d/rc0.d/S99halt
81 ln -sf ../init.d/sysklogd /etc/rc.d/rc3.d/S10sysklogd
82 ln -sf ../init.d/sysklogd /etc/rc.d/rc6.d/K90sysklogd
83 ln -sf ../init.d/sendsignals /etc/rc.d/rc6.d/S60sendsignals
84 ln -sf ../init.d/mountfs /etc/rc.d/rc6.d/S70mountfs
85 ln -sf ../init.d/swap /etc/rc.d/rc6.d/S80swap
86 ln -sf ../init.d/localnet /etc/rc.d/rc6.d/S90localnet
87 ln -sf ../init.d/reboot /etc/rc.d/rc6.d/S99reboot
88 ln -sf ../init.d/sshd /etc/rc.d/rc0.d/K30sshd
89 ln -sf ../init.d/sshd /etc/rc.d/rc3.d/S30sshd
90 ln -sf ../init.d/sshd /etc/rc.d/rc6.d/K30sshd
91 ln -sf ../init.d/apache /etc/rc.d/rc0.d/K28apache
92 ln -sf ../init.d/apache /etc/rc.d/rc3.d/S32apache
93 ln -sf ../init.d/apache /etc/rc.d/rc6.d/K28apache
94 ln -sf ../init.d/fcron /etc/rc.d/rc0.d/K08fcron
95 ln -sf ../init.d/fcron /etc/rc.d/rc3.d/S40fcron
96 ln -sf ../init.d/fcron /etc/rc.d/rc6.d/K08fcron
97 ln -sf ../init.d/network /etc/rc.d/rc0.d/K80network
98 ln -sf ../init.d/network /etc/rc.d/rc3.d/S20network
99 ln -sf ../init.d/network /etc/rc.d/rc6.d/K80network
100 ln -sf ../init.d/random /etc/rc.d/rc0.d/K45random
101 ln -sf ../init.d/random /etc/rc.d/rc3.d/S25random
102 ln -sf ../init.d/random /etc/rc.d/rc6.d/K45random
104 ln -sf ../init.d/mountkernfs /etc/rc.d/rcsysinit.d/S00mountkernfs
105 ln -sf ../init.d/modules /etc/rc.d/rcsysinit.d/S05modules
106 ln -sf ../init.d/udev /etc/rc.d/rcsysinit.d/S10udev
107 ln -sf ../init.d/swap /etc/rc.d/rcsysinit.d/S20swap
108 ln -sf ../init.d/checkfs /etc/rc.d/rcsysinit.d/S30checkfs
109 ln -sf ../init.d/mountfs /etc/rc.d/rcsysinit.d/S40mountfs
110 ln -sf ../init.d/udev_retry /etc/rc.d/rcsysinit.d/S45udev_retry
111 ln -sf ../init.d/cleanfs /etc/rc.d/rcsysinit.d/S50cleanfs
112 ln -sf ../init.d/setclock /etc/rc.d/rcsysinit.d/S60setclock
113 ln -sf ../init.d/console /etc/rc.d/rcsysinit.d/S70console
114 ln -sf ../init.d/localnet /etc/rc.d/rcsysinit.d/S80localnet
115 ln -sf ../init.d/sysctl /etc/rc.d/rcsysinit.d/S90sysctl
117 chgrp nobody /etc/rc.d/init.d/red
118 chmod 4750 /etc/rc.d/init.d/red