1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
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. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
27 PKG_NAME = initscripts
31 DIR_APP = $(DIR_SOURCE)/$(THISAPP)
33 OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
59 ###############################################################################
61 ###############################################################################
67 ###############################################################################
68 # Installation Details
69 ###############################################################################
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
77 install -d -m 755 /etc/rc4.d
78 install -d -m 755 /etc/rc5.d
79 install -d -m 755 /etc/rc6.d
80 install -d -m 755 /etc/rcS.d
81 install -d -m 755 /etc/init.d
82 install -d -m 755 /etc/init.d/boottemp
83 install -d -m 755 /etc/init.d/networking
84 install -d -m 755 /etc/init.d/networking/services
85 install -d -m 755 /etc/sysconfig
86 install -d -m 755 /etc/lsb/state
87 install -d -m 755 /lib/lsb
89 for i in $(DIR_APP)/core/*; do \
90 install -v -m 754 $$i /etc/init.d/; \
92 chmod 644 /etc/init.d/ipfire-functions
94 # Install networking scripts
95 for i in $(DIR_APP)/networking/*; do \
96 [ -d "$$i" ] && continue; \
97 install -v -m 754 $$i /etc/init.d/networking; \
99 chmod 644 /etc/init.d/networking/functions
101 for i in $(DIR_APP)/networking/services/*; do \
102 install -v -m 754 $$i /etc/init.d/networking/services; \
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/
109 cd /etc/init.d && install_initd -v $(SCRIPTS)
111 for i in $(DIR_SRC)/src/initscripts/sysconfig/*; do \
112 install -v -m 644 $$i /etc/sysconfig/; \
114 chmod -v 755 /etc/sysconfig/rc.local