mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
* SquidGuard - mit Patch damit es mit der DB 4.4.20 funktioniert. * wput - wget nur andersrum. * hddtemp/hddgraph * etherwake * Saemtliche Bootscripts vom BLFS * vpn-restart-script... muss noch bearbeitet werden. Geaendert: * Karsten Rechenbachs Emailadresse in die Credits gebaut. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@168 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
129 lines
6.1 KiB
Plaintext
129 lines
6.1 KiB
Plaintext
###############################################################################
|
|
# This file is part of the IPCop Firewall. #
|
|
# #
|
|
# IPCop is free software; you can redistribute it and/or modify #
|
|
# it under the terms of the GNU General Public License as published by #
|
|
# the Free Software Foundation; either version 2 of the License, or #
|
|
# (at your option) any later version. #
|
|
# #
|
|
# IPCop is distributed in the hope that it will be useful, #
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
# GNU General Public License for more details. #
|
|
# #
|
|
# You should have received a copy of the GNU General Public License #
|
|
# along with IPCop; if not, write to the Free Software #
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
|
# #
|
|
# Makefiles are based on LFSMake, which is #
|
|
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
|
|
# #
|
|
###############################################################################
|
|
|
|
###############################################################################
|
|
# Definitions
|
|
###############################################################################
|
|
|
|
include Config
|
|
|
|
THISAPP = configroot
|
|
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
|
|
|
###############################################################################
|
|
# Top-level Rules
|
|
###############################################################################
|
|
|
|
install : $(TARGET)
|
|
|
|
check :
|
|
|
|
download :
|
|
|
|
md5 :
|
|
|
|
###############################################################################
|
|
# Installation Details
|
|
###############################################################################
|
|
|
|
$(TARGET) :
|
|
@$(PREBUILD)
|
|
|
|
# Create all directories
|
|
for i in addon-lang alcatelusb auth backup backup/sets ca certs cnx_pci crls ddns dhcp dhcpc dmzholes \
|
|
eagle-usb eciadsl ethernet isdn key langs logging main modem net-traffic nfs optionsfw patches pakfire portfw \
|
|
ppp private proxy/advanced red remote shaping snort time uplinks vpn wireless xtaccess ; do \
|
|
mkdir -p $(CONFIG_ROOT)/$$i; \
|
|
done
|
|
|
|
# Touch empty files
|
|
for i in auth/users backup/include.user backup/exclude.user \
|
|
certs/index.txt ddns/config ddns/noipsettings ddns/settings ddns/ipcache dhcp/settings \
|
|
dhcp/fixleases dhcp/advoptions dmzholes/config ethernet/aliases ethernet/settings \
|
|
isdn/settings main/hosts main/settings optionsfw/settings pakfire/settings patches/available patches/installed \
|
|
portfw/config ppp/settings-1 ppp/settings-2 ppp/settings-3 ppp/settings-4 \
|
|
ppp/settings-5 ppp/settings proxy/settings remote/settings shaping/settings \
|
|
shaping/config snort/settings vpn/config vpn/settings vpn/ipsec.conf \
|
|
vpn/ipsec.secrets vpn/caconfig wireless/config wireless/settings; do \
|
|
touch $(CONFIG_ROOT)/$$i; \
|
|
done
|
|
|
|
# Copy initial configfiles
|
|
cp $(DIR_SRC)/config/cfgroot/header.pl $(CONFIG_ROOT)/
|
|
cp $(DIR_SRC)/config/cfgroot/general-functions.pl $(CONFIG_ROOT)/
|
|
cp $(DIR_SRC)/config/cfgroot/lang.pl $(CONFIG_ROOT)/
|
|
cp $(DIR_SRC)/config/cfgroot/countries.pl $(CONFIG_ROOT)/
|
|
cp $(DIR_SRC)/config/cfgroot/backup-exclude $(CONFIG_ROOT)/backup/exclude.system
|
|
cp $(DIR_SRC)/config/cfgroot/backup-include $(CONFIG_ROOT)/backup/include.system
|
|
cp $(DIR_SRC)/config/cfgroot/backup-exclude.hardware $(CONFIG_ROOT)/backup/exclude.hardware
|
|
cp $(DIR_SRC)/config/cfgroot/advoptions-list $(CONFIG_ROOT)/dhcp/advoptions-list
|
|
cp $(DIR_SRC)/config/cfgroot/modem-defaults $(CONFIG_ROOT)/modem/defaults
|
|
cp $(DIR_SRC)/config/cfgroot/modem-settings $(CONFIG_ROOT)/modem/settings
|
|
cp $(DIR_SRC)/config/cfgroot/net-traffic-lib.pl $(CONFIG_ROOT)/net-traffic/net-traffic-lib.pl
|
|
cp $(DIR_SRC)/config/cfgroot/nfs-server $(CONFIG_ROOT)/nfs/nfs-server
|
|
cp $(DIR_SRC)/config/cfgroot/proxy-acl $(CONFIG_ROOT)/proxy/acl-1.4
|
|
cp $(DIR_SRC)/config/cfgroot/xtaccess-config $(CONFIG_ROOT)/xtaccess/config
|
|
cp $(DIR_SRC)/config/cfgroot/time-settings $(CONFIG_ROOT)/time/settings
|
|
cp $(DIR_SRC)/config/cfgroot/logging-settings $(CONFIG_ROOT)/logging/settings
|
|
cp $(DIR_SRC)/config/cfgroot/useragents $(CONFIG_ROOT)/proxy/advanced
|
|
cp $(DIR_SRC)/langs/list $(CONFIG_ROOT)/langs/
|
|
|
|
# Oneliner configfiles
|
|
echo "ENABLED=off" > $(CONFIG_ROOT)/vpn/settings
|
|
echo "VPN_DELAYED_START=0" >>$(CONFIG_ROOT)/vpn/settings
|
|
echo "01" > $(CONFIG_ROOT)/certs/serial
|
|
echo "nameserver 1.2.3.4" > $(CONFIG_ROOT)/ppp/fake-resolv.conf
|
|
echo "DISABLEPING=NO" > $(CONFIG_ROOT)/optionsfw/settings
|
|
|
|
# Symbolic links
|
|
ln -sf /etc/rc.d/rc.updatered $(CONFIG_ROOT)/dhcpc/dhcpcd.exe
|
|
|
|
# Modify variables in header.pl
|
|
sed -i -e "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" \
|
|
-e "s+VERSION+$(VERSION)+g" \
|
|
$(CONFIG_ROOT)/header.pl
|
|
|
|
# Modify variables in general-functions.pl
|
|
sed -i -e "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" \
|
|
-e "s+VERSION+$(VERSION)+g" \
|
|
$(CONFIG_ROOT)/general-functions.pl
|
|
|
|
# Modify CONFIG_ROOT in lang.pl
|
|
sed -i -e "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" \
|
|
$(CONFIG_ROOT)/lang.pl
|
|
|
|
# Language files
|
|
cp $(DIR_SRC)/langs/de/cgi-bin/de.pl $(CONFIG_ROOT)/langs/
|
|
cp $(DIR_SRC)/langs/en/cgi-bin/en.pl $(CONFIG_ROOT)/langs/
|
|
|
|
# Configroot permissions
|
|
chown -R nobody:nobody $(CONFIG_ROOT)
|
|
chown root:root $(CONFIG_ROOT)
|
|
for i in backup/ header.pl general-functions.pl lang.pl addon-lang/ langs/ red/ ; do \
|
|
chown -R root:root $(CONFIG_ROOT)/$$i; \
|
|
done
|
|
chown nobody:nobody $(CONFIG_ROOT)/backup/sets
|
|
chown root:nobody $(CONFIG_ROOT)/dhcpc
|
|
|
|
@$(POSTBUILD)
|