mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 13:02:58 +02:00
Merge branch 'master' into core71
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
/etc/ssh/ssh_host*
|
||||
/var/ipfire/auth/users
|
||||
/var/ipfire/dhcp/*
|
||||
/var/ipfire/dnsforward/*
|
||||
/var/ipfire/main/*
|
||||
/var/ipfire/outgoing/groups
|
||||
/var/ipfire/outgoing/macgroups
|
||||
|
||||
@@ -30,6 +30,8 @@ var/ipfire/dmzholes
|
||||
#var/ipfire/dmzholes/config
|
||||
var/ipfire/dns
|
||||
#var/ipfire/dns/settings
|
||||
var/ipfire/dnsforward
|
||||
#var/ipfire/dnsforward/config
|
||||
var/ipfire/ethernet
|
||||
#var/ipfire/ethernet/aliases
|
||||
#var/ipfire/ethernet/known_nics
|
||||
|
||||
@@ -19,6 +19,7 @@ srv/web/ipfire/cgi-bin/ids.cgi
|
||||
srv/web/ipfire/cgi-bin/proxy.cgi
|
||||
srv/web/ipfire/cgi-bin/pppsetup.cgi
|
||||
srv/web/ipfire/cgi-bin/wirelessclient.cgi
|
||||
var/ipfire/dnsforward/config
|
||||
var/ipfire/general-functions.pl
|
||||
var/ipfire/langs
|
||||
var/ipfire/backup/include
|
||||
|
||||
@@ -3071,6 +3071,12 @@ icp_port 0
|
||||
|
||||
END
|
||||
;
|
||||
|
||||
# Include file with user defined settings.
|
||||
if (-e "/etc/squid/squid.conf.pre.local") {
|
||||
print FILE "include /etc/squid/squid.conf.pre.local\n\n";
|
||||
}
|
||||
|
||||
print FILE "http_port $netsettings{'GREEN_ADDRESS'}:$proxysettings{'PROXY_PORT'}";
|
||||
if ($proxysettings{'TRANSPARENT'} eq 'on') { print FILE " transparent" }
|
||||
if ($proxysettings{'NO_CONNECTION_AUTH'} eq 'on') { print FILE " no-connection-auth" }
|
||||
|
||||
@@ -50,7 +50,7 @@ $(TARGET) :
|
||||
@$(PREBUILD)
|
||||
|
||||
# Create all directories
|
||||
for i in addon-lang auth backup ca certs connscheduler crls ddns dhcp dhcpc dmzholes dns \
|
||||
for i in addon-lang auth backup ca certs connscheduler crls ddns dhcp dhcpc dmzholes dns dnsforward \
|
||||
ethernet extrahd/bin fwlogs isdn key langs logging mac main menu.d modem net-traffic \
|
||||
net-traffic/templates nfs optionsfw outgoing/bin outgoing/groups outgoing/groups/ipgroups \
|
||||
outgoing/groups/macgroups ovpn patches pakfire portfw ppp private proxy/advanced/cre \
|
||||
@@ -63,7 +63,7 @@ $(TARGET) :
|
||||
# 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 dhcp/dhcpd.conf.local dmzholes/config dns/settings ethernet/aliases ethernet/settings ethernet/known_nics ethernet/scanned_nics \
|
||||
dhcp/fixleases dhcp/advoptions dhcp/dhcpd.conf.local dmzholes/config dns/settings dnsforward/config ethernet/aliases ethernet/settings ethernet/known_nics ethernet/scanned_nics \
|
||||
ethernet/wireless extrahd/scan extrahd/devices extrahd/partitions extrahd/settings fwlogs/ipsettings fwlogs/portsettings \
|
||||
isdn/settings mac/settings main/disable_nf_sip main/hosts main/routing main/settings net-traffic/settings optionsfw/settings outgoing/settings outgoing/rules \
|
||||
ovpn/ccd.conf ovpn/ccdroute ovpn/ccdroute2 pakfire/settings portfw/config ppp/settings-1 ppp/settings-2 ppp/settings-3 ppp/settings-4 \
|
||||
|
||||
@@ -80,7 +80,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/squidclamav-5.11-dont_use_ipv6.patch
|
||||
cd $(DIR_APP) && ./configure --prefix=/usr
|
||||
cd $(DIR_APP) && make install
|
||||
install -v -m 755 $(DIR_CONF)/squidclamav/squidclamav.conf /etc/squidclamav.conf
|
||||
install -v -m 664 $(DIR_CONF)/squidclamav/squidclamav.conf /etc/squidclamav.conf
|
||||
chown -v root:nobody /etc/squidclamav.conf
|
||||
install -v -m 644 $(DIR_SRC)/config/backup/includes/squidclamav /var/ipfire/backup/addons/includes/squidclamav
|
||||
chmod 755 /srv/web/ipfire/html/clwarn.cgi
|
||||
@rm -rf $(DIR_APP)
|
||||
|
||||
@@ -28,21 +28,26 @@ extract_files
|
||||
VERSION=$(cat /opt/pakfire/db/installed/meta-squidclamav | grep Release | cut -d" " -f2)
|
||||
|
||||
if [ "$VERSION" -gt "10" ]; then
|
||||
restore_backup ${NAME}
|
||||
restore_backup ${NAME}
|
||||
fi
|
||||
|
||||
if [ "$VERSION" -lt "11" ]; then
|
||||
sed -e "s|logfile.*|logfile /var/log/squid/squidclamav.log|g" /etc/squidclamav.conf
|
||||
sed -e "s|logfile.*|logfile /var/log/squid/squidclamav.log|g" /etc/squidclamav.conf
|
||||
fi
|
||||
|
||||
if [ "$VERSION" -lt "16" ]; then
|
||||
sed -e "s/proxy none//g" -i /etc/squidclamav.conf
|
||||
sed -e "s/^#squid_ip 127\.0\.0\.1/squid_ip 127\.0\.0\.1/g" \
|
||||
-e "s/^#squid_port 3128/squid_port 800/g" \
|
||||
-e "s/^#trust_cache 1/trust_cache 1/g" -i /etc/squidclamav.conf
|
||||
sed -i /etc/squidclamav.conf \
|
||||
-e "s/proxy none//g" \
|
||||
-e "s/^#squid_ip 127\.0\.0\.1/squid_ip 127\.0\.0\.1/g" \
|
||||
-e "s/^#squid_port 3128/squid_port 800/g" \
|
||||
-e "s/^#trust_cache 1/trust_cache 1/g"
|
||||
|
||||
# Regenerate configuration files.
|
||||
perl /srv/web/ipfire/cgi-bin/proxy.cgi
|
||||
# Fix permissions.
|
||||
chmod 664 /etc/squidclamav.conf
|
||||
chown root.nobody /etc/squidclamav.conf
|
||||
|
||||
# Regenerate configuration files.
|
||||
perl /srv/web/ipfire/cgi-bin/proxy.cgi
|
||||
fi
|
||||
|
||||
/etc/init.d/squid restart
|
||||
|
||||
Reference in New Issue
Block a user