]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - lfs/configroot
fontconfig: Not a package anymore.
[people/teissler/ipfire-2.x.git] / lfs / configroot
CommitLineData
cd1a2927 1###############################################################################
cd1a2927 2# #
70df8302
MT
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
cd1a2927 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
cd1a2927
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
cd1a2927
MT
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. #
15# #
16# You should have received a copy of the GNU General Public License #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
cd1a2927 18# #
cd1a2927
MT
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
15679d9f
MT
27VER = ipfire
28
cd1a2927
MT
29THISAPP = configroot
30DIR_APP = $(DIR_SRC)/$(THISAPP)
31TARGET = $(DIR_INFO)/$(THISAPP)
32
33###############################################################################
34# Top-level Rules
35###############################################################################
36
37install : $(TARGET)
38
39check :
40
41download :
42
43md5 :
44
45###############################################################################
46# Installation Details
47###############################################################################
48
49$(TARGET) :
50 @$(PREBUILD)
51
52 # Create all directories
8543b064 53 for i in addon-lang auth backup ca certs connscheduler crls ddns dhcp dhcpc dmzholes dns \
d9716b06 54 ethernet extrahd/bin fwlogs isdn key langs logging mac main menu.d modem net-traffic \
fdeaa057 55 net-traffic/templates nfs optionsfw outgoing/bin outgoing/groups outgoing/groups/ipgroups \
d9716b06
CS
56 outgoing/groups/macgroups patches pakfire portfw ppp private proxy/advanced/cre \
57 proxy/calamaris/bin qos/bin red remote sensors snort time tripwire/report \
58 updatexlrator/bin updatexlrator/autocheck urlfilter/autoupdate urlfilter/bin upnp vpn \
59 wakeonlan wireless xtaccess ; do \
cd1a2927
MT
60 mkdir -p $(CONFIG_ROOT)/$$i; \
61 done
62
63 # Touch empty files
64 for i in auth/users backup/include.user backup/exclude.user \
1fde937c 65 certs/index.txt ddns/config ddns/noipsettings ddns/settings ddns/ipcache dhcp/settings \
3bd3aa72 66 dhcp/fixleases dhcp/advoptions dhcp/dhcpd.conf.local dmzholes/config dns/settings ethernet/aliases ethernet/settings ethernet/known_nics ethernet/scanned_nics \
d3fb18db 67 extrahd/scan extrahd/devices extrahd/partitions extrahd/settings fwlogs/ipsettings fwlogs/portsettings \
bb4cfcc1 68 isdn/settings mac/settings main/disable_nf_sip main/hosts main/routing main/settings net-traffic/settings optionsfw/settings outgoing/settings outgoing/rules \
fd676cf9 69 pakfire/settings portfw/config ppp/settings-1 ppp/settings-2 ppp/settings-3 ppp/settings-4 \
c3df33af 70 ppp/settings-5 ppp/settings proxy/settings proxy/advanced/settings proxy/advanced/cre/enable remote/settings qos/settings qos/classes qos/subclasses qos/level7config qos/portconfig \
e645448e 71 qos/tosconfig snort/settings tripwire/settings upnp/settings vpn/config vpn/settings vpn/ipsec.conf \
4e565351 72 vpn/ipsec.secrets vpn/caconfig wakeonlan/clients.conf wireless/config wireless/settings; do \
cd1a2927
MT
73 touch $(CONFIG_ROOT)/$$i; \
74 done
75
76 # Copy initial configfiles
77 cp $(DIR_SRC)/config/cfgroot/header.pl $(CONFIG_ROOT)/
78 cp $(DIR_SRC)/config/cfgroot/general-functions.pl $(CONFIG_ROOT)/
79 cp $(DIR_SRC)/config/cfgroot/lang.pl $(CONFIG_ROOT)/
3ea75603 80 cp $(DIR_SRC)/config/cfgroot/countries.pl $(CONFIG_ROOT)/
341ff36c 81 cp $(DIR_SRC)/config/cfgroot/graphs.pl $(CONFIG_ROOT)/
4e565351 82 cp $(DIR_SRC)/config/cfgroot/advoptions-list $(CONFIG_ROOT)/dhcp/advoptions-list
4e565351 83 cp $(DIR_SRC)/config/cfgroot/connscheduler-lib.pl $(CONFIG_ROOT)/connscheduler/lib.pl
1fde937c 84 cp $(DIR_SRC)/config/cfgroot/connscheduler.conf $(CONFIG_ROOT)/connscheduler
aa2870e6 85 cp $(DIR_SRC)/config/extrahd/* $(CONFIG_ROOT)/extrahd/bin/
958d26ac 86 cp $(DIR_SRC)/config/cfgroot/sensors-settings $(CONFIG_ROOT)/sensors/settings
24249567 87 cp $(DIR_SRC)/config/menu/* $(CONFIG_ROOT)/menu.d/
cd1a2927
MT
88 cp $(DIR_SRC)/config/cfgroot/modem-defaults $(CONFIG_ROOT)/modem/defaults
89 cp $(DIR_SRC)/config/cfgroot/modem-settings $(CONFIG_ROOT)/modem/settings
10a04d70 90 cp $(DIR_SRC)/config/cfgroot/net-traffic-lib.pl $(CONFIG_ROOT)/net-traffic/net-traffic-lib.pl
d81292e0 91 cp $(DIR_SRC)/config/cfgroot/net-traffic-admin.pl $(CONFIG_ROOT)/net-traffic/net-traffic-admin.pl
60cbd6e7 92 cp $(DIR_SRC)/config/cfgroot/nfs-server $(CONFIG_ROOT)/nfs/nfs-server
d9b7aa33 93 cp $(DIR_SRC)/config/cfgroot/p2protocols $(CONFIG_ROOT)/outgoing/p2protocols
ebb9187c 94 cp $(DIR_SRC)/config/outgoingfw/outgoingfw.pl $(CONFIG_ROOT)/outgoing/bin/
822c5bd0 95 cp $(DIR_SRC)/config/outgoingfw/defaultservices $(CONFIG_ROOT)/outgoing/
cd1a2927 96 cp $(DIR_SRC)/config/cfgroot/proxy-acl $(CONFIG_ROOT)/proxy/acl-1.4
5e773594 97 cp $(DIR_SRC)/config/qos/* $(CONFIG_ROOT)/qos/bin/
b40388bb 98 cp $(DIR_SRC)/config/cfgroot/ssh-settings $(CONFIG_ROOT)/remote/settings
cd1a2927
MT
99 cp $(DIR_SRC)/config/cfgroot/xtaccess-config $(CONFIG_ROOT)/xtaccess/config
100 cp $(DIR_SRC)/config/cfgroot/time-settings $(CONFIG_ROOT)/time/settings
101 cp $(DIR_SRC)/config/cfgroot/logging-settings $(CONFIG_ROOT)/logging/settings
ed38f89d
MT
102 cp $(DIR_SRC)/config/cfgroot/useragents $(CONFIG_ROOT)/proxy/advanced
103 cp $(DIR_SRC)/langs/list $(CONFIG_ROOT)/langs/
cd1a2927
MT
104
105 # Oneliner configfiles
106 echo "ENABLED=off" > $(CONFIG_ROOT)/vpn/settings
107 echo "VPN_DELAYED_START=0" >>$(CONFIG_ROOT)/vpn/settings
108 echo "01" > $(CONFIG_ROOT)/certs/serial
109 echo "nameserver 1.2.3.4" > $(CONFIG_ROOT)/ppp/fake-resolv.conf
5595bc03
CS
110 echo "DROPNEWNOTSYN=on" >> $(CONFIG_ROOT)/optionsfw/settings
111 echo "DROPINPUT=on" >> $(CONFIG_ROOT)/optionsfw/settings
112 echo "DROPOUTPUT=on" >> $(CONFIG_ROOT)/optionsfw/settings
113 echo "DROPINPUT=on" >> $(CONFIG_ROOT)/optionsfw/settings
114 echo "DROPOUTPUT=on" >> $(CONFIG_ROOT)/optionsfw/settings
115 echo "DROPPORTSCAN=on" >> $(CONFIG_ROOT)/optionsfw/settings
cd1a2927 116
cd1a2927
MT
117 # Modify variables in header.pl
118 sed -i -e "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" \
119 -e "s+VERSION+$(VERSION)+g" \
120 $(CONFIG_ROOT)/header.pl
121
122 # Modify variables in general-functions.pl
123 sed -i -e "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" \
124 -e "s+VERSION+$(VERSION)+g" \
125 $(CONFIG_ROOT)/general-functions.pl
126
127 # Modify CONFIG_ROOT in lang.pl
128 sed -i -e "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" \
129 $(CONFIG_ROOT)/lang.pl
130
131 # Language files
462515e4 132 cp $(DIR_SRC)/langs/*/cgi-bin/*.pl $(CONFIG_ROOT)/langs/
d81292e0 133
cd1a2927
MT
134 # Configroot permissions
135 chown -R nobody:nobody $(CONFIG_ROOT)
136 chown root:root $(CONFIG_ROOT)
137 for i in backup/ header.pl general-functions.pl lang.pl addon-lang/ langs/ red/ ; do \
138 chown -R root:root $(CONFIG_ROOT)/$$i; \
139 done
cd1a2927
MT
140 chown root:nobody $(CONFIG_ROOT)/dhcpc
141
0a478d33
AF
142 # Set outgoingfw.pl executable
143 chmod 755 $(CONFIG_ROOT)/outgoing/bin/outgoingfw.pl
144
cd1a2927 145 @$(POSTBUILD)