Installer-Pfade gefixxt.
[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)
cd1a2927 53
73d9a908
MT
54 # Make directories
55 install -d -m 755 /etc/rc.d/rc0.d
56 install -d -m 755 /etc/rc.d/rc1.d
57 install -d -m 755 /etc/rc.d/rc2.d
58 install -d -m 755 /etc/rc.d/rc3.d
59 install -d -m 755 /etc/rc.d/rc4.d
60 install -d -m 755 /etc/rc.d/rc5.d
61 install -d -m 755 /etc/rc.d/rc6.d
62 install -d -m 755 /etc/rc.d/rcsysinit.d
63 install -d -m 755 /etc/rc.d/init.d
64 install -d -m 755 /etc/sysconfig
65
66 install -m 754 $(DIR_SRC)/src/initscripts/init.d/checkfs /etc/rc.d/init.d/
67 install -m 754 $(DIR_SRC)/src/initscripts/init.d/cleanfs /etc/rc.d/init.d/
68 install -m 644 $(DIR_SRC)/src/initscripts/init.d/functions /etc/rc.d/init.d/
69 install -m 754 $(DIR_SRC)/src/initscripts/init.d/halt /etc/rc.d/init.d/
70 install -m 754 $(DIR_SRC)/src/initscripts/init.d/console /etc/rc.d/init.d/
71 install -m 754 $(DIR_SRC)/src/initscripts/init.d/localnet /etc/rc.d/init.d/
72 install -m 754 $(DIR_SRC)/src/initscripts/init.d/modules /etc/rc.d/init.d/
73 install -m 754 $(DIR_SRC)/src/initscripts/init.d/mountfs /etc/rc.d/init.d/
74 install -m 754 $(DIR_SRC)/src/initscripts/init.d/mountkernfs /etc/rc.d/init.d/
75 install -m 754 $(DIR_SRC)/src/initscripts/init.d/rc /etc/rc.d/init.d/
76 install -m 754 $(DIR_SRC)/src/initscripts/init.d/reboot /etc/rc.d/init.d/
77 install -m 754 $(DIR_SRC)/src/initscripts/init.d/sendsignals /etc/rc.d/init.d/
78 install -m 754 $(DIR_SRC)/src/initscripts/init.d/setclock /etc/rc.d/init.d/
79 install -m 754 $(DIR_SRC)/src/initscripts/init.d/sysklogd /etc/rc.d/init.d/
80 install -m 754 $(DIR_SRC)/src/initscripts/init.d/swap /etc/rc.d/init.d/
81 install -m 754 $(DIR_SRC)/src/initscripts/init.d/sysctl /etc/rc.d/init.d/
82 install -m 754 $(DIR_SRC)/src/initscripts/init.d/template /etc/rc.d/init.d/
83 install -m 754 $(DIR_SRC)/src/initscripts/init.d/udev /etc/rc.d/init.d/
84 install -m 754 $(DIR_SRC)/src/initscripts/init.d/udev_retry /etc/rc.d/init.d/
85 ln -sf ../init.d/sysklogd /etc/rc.d/rc0.d/K90sysklogd
86 ln -sf ../init.d/sendsignals /etc/rc.d/rc0.d/S60sendsignals
87 ln -sf ../init.d/mountfs /etc/rc.d/rc0.d/S70mountfs
88 ln -sf ../init.d/swap /etc/rc.d/rc0.d/S80swap
89 ln -sf ../init.d/localnet /etc/rc.d/rc0.d/S90localnet
90 ln -sf ../init.d/halt /etc/rc.d/rc0.d/S99halt
91 ln -sf ../init.d/sysklogd /etc/rc.d/rc1.d/K90sysklogd
92 ln -sf ../init.d/sysklogd /etc/rc.d/rc2.d/K90sysklogd
93 ln -sf ../init.d/sysklogd /etc/rc.d/rc3.d/S10sysklogd
94 ln -sf ../init.d/sysklogd /etc/rc.d/rc4.d/S10sysklogd
95 ln -sf ../init.d/sysklogd /etc/rc.d/rc5.d/S10sysklogd
96 ln -sf ../init.d/sysklogd /etc/rc.d/rc6.d/K90sysklogd
97 ln -sf ../init.d/sendsignals /etc/rc.d/rc6.d/S60sendsignals
98 ln -sf ../init.d/mountfs /etc/rc.d/rc6.d/S70mountfs
99 ln -sf ../init.d/swap /etc/rc.d/rc6.d/S80swap
100 ln -sf ../init.d/localnet /etc/rc.d/rc6.d/S90localnet
101 ln -sf ../init.d/reboot /etc/rc.d/rc6.d/S99reboot
102 ln -sf ../init.d/mountkernfs /etc/rc.d/rcsysinit.d/S00mountkernfs
103 ln -sf ../init.d/modules /etc/rc.d/rcsysinit.d/S05modules
104 ln -sf ../init.d/udev /etc/rc.d/rcsysinit.d/S10udev
105 ln -sf ../init.d/swap /etc/rc.d/rcsysinit.d/S20swap
106 ln -sf ../init.d/checkfs /etc/rc.d/rcsysinit.d/S30checkfs
107 ln -sf ../init.d/mountfs /etc/rc.d/rcsysinit.d/S40mountfs
108 ln -sf ../init.d/udev_retry /etc/rc.d/rcsysinit.d/S45udev_retry
109 ln -sf ../init.d/cleanfs /etc/rc.d/rcsysinit.d/S50cleanfs
110 ln -sf ../init.d/setclock /etc/rc.d/rcsysinit.d/S60setclock
111 ln -sf ../init.d/console /etc/rc.d/rcsysinit.d/S70console
112 ln -sf ../init.d/localnet /etc/rc.d/rcsysinit.d/S80localnet
113 ln -sf ../init.d/sysctl /etc/rc.d/rcsysinit.d/S90sysctl
114 install -m 644 $(DIR_SRC)/src/initscripts/sysconfig/createfiles /etc/sysconfig/
115 install -m 644 $(DIR_SRC)/src/initscripts/sysconfig/modules /etc/sysconfig/
116 install -m 644 $(DIR_SRC)/src/initscripts/sysconfig/rc /etc/sysconfig/
117 install -m 644 $(DIR_SRC)/src/initscripts/sysconfig/clock /etc/sysconfig/
118 install -m 644 $(DIR_SRC)/src/initscripts/sysconfig/network /etc/sysconfig/
119
120# -mkdir -p /etc/rc.d/helper
121# for i in $(DIR_SRC)/src/rc.d/* ; do \
122# if [ -f $$i ]; then \
123# sed "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" $$i > /etc/rc.d/`basename $$i`; \
124# fi; \
125# done
126# for i in $(DIR_SRC)/src/rc.d/helper/* ; do \
127# if [ -f $$i ]; then \
128# sed "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" $$i > /etc/rc.d/helper/`basename $$i`; \
129# fi; \
130# done
131# chmod -R 755 /etc/rc.d
132# chgrp nobody /etc/rc.d/rc.red
133# chmod 4750 /etc/rc.d/rc.red
134#
135# -mkdir -p /etc/boot.d
136# cp -f $(DIR_SRC)/src/boot.d/* /etc/boot.d
6693216e 137
cd1a2927 138 @$(POSTBUILD)