aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-01-15 23:19:58 -0600
committerChris Buechler <cmb@pfsense.org>2015-01-15 23:19:58 -0600
commit2d9a4f386909944326444868e7473df5512107f1 (patch)
tree9a5db460c7c95466871c1928570c72535070a63a
parent8fe2482aafadf5604213a910ad4c60fd351a2fad (diff)
parent79880d0a8bbeea4eef8d403070ebff2ad73fc75f (diff)
downloadpfsense-packages-2d9a4f386909944326444868e7473df5512107f1.tar.gz
pfsense-packages-2d9a4f386909944326444868e7473df5512107f1.tar.bz2
pfsense-packages-2d9a4f386909944326444868e7473df5512107f1.zip
Merge pull request #788 from marcelloc/squid_20150116
-rwxr-xr-xconfig/squid3/34/squid.inc21
-rw-r--r--pkg_config.10.xml2
2 files changed, 16 insertions, 7 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index 5b5d12fe..e2c8c71a 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -174,7 +174,7 @@ function squid_install_command() {
$settingsgen = $config['installedpackages']['squid']['config'][0];
if (file_exists("/usr/local/pkg/check_ip.php"))
- rename("/usr/local/pkg/check_ip.php",SQUID_LOCALBASE . "/libexec/squid/check_ip.php");
+ rename("/usr/local/pkg/check_ip.php",SQUID_BASE . "/bin/check_ip.php");
/* Set storage system */
if ($g['platform'] == "nanobsd") {
$config['installedpackages']['squidcache']['config'][0]['harddisk_cache_system'] = 'null';
@@ -1480,14 +1480,23 @@ EOF;
}
mwexec_bg("/usr/local/etc/rc.d/c-icap start");
}
- #check clamav
- $clamav_rcfile="/usr/local/etc/rc.d/clamva-clamd";
+ #check clamav/freshclam
+ $rc_files=array("clamav-freshclam","clamav-clamd");
+ $clamm[0]="@/usr/local/(bin|sbin)@";
+ $clamm[1]="@/local/(bin|sbin)@";
+ $clamm[2]="@/usr/local/etc@";
+ $clamm[3]="@enable:=NO@";
+ $clamr[0]=SQUID_BASE."/bin";
+ $clamr[1]="/bin";
+ $clamr[2]=SQUID_LOCALBASE."/etc";
+ $clamr[3]="enable:=YES";
+ foreach ($rc_files as $rc_file){
+ $clamav_rcfile="/usr/local/etc/rc.d/{$rc_file}";
if (file_exists($clamav_rcfile)){
$sample_file=file_get_contents($clamav_rcfile);
- $clamm[0]="@/usr/local@";
- $clamr[0]=SQUID_LOCALBASE;
file_put_contents($clamav_rcfile,preg_replace($clamm,$clamr,$sample_file),LOCK_EX);
}
+ }
if (is_process_running("clamd"))
mwexec_bg("/usr/local/etc/rc.d/clamav-clamd reload");
else
@@ -1759,7 +1768,7 @@ function squid_resync_auth() {
$conf .= "auth_param basic program ". SQUID_LOCALBASE . "/libexec/squid/basic_radius_auth -w {$settings['radius_secret']} -h {$settings['auth_server']} $port\n";
break;
case 'cp':
- $conf .= "external_acl_type check_cp children-startup={$processes} ttl={$auth_ttl} %SRC ". SQUID_LOCALBASE . "/libexec/squid/check_ip.php\n";
+ $conf .= "external_acl_type check_cp children-startup={$processes} ttl={$auth_ttl} %SRC ". SQUID_BASE . "/bin/check_ip.php\n";
$conf .= "acl password external check_cp\n";
break;
case 'msnt':
diff --git a/pkg_config.10.xml b/pkg_config.10.xml
index 13ccd5db..b4e5f405 100644
--- a/pkg_config.10.xml
+++ b/pkg_config.10.xml
@@ -909,7 +909,7 @@
<pkginfolink>https://forum.pfsense.org/index.php/topic,48347.0.html</pkginfolink>
<website>http://www.squid-cache.org/</website>
<category>Network</category>
- <version>3.4.10_2 pkg 0.2.4</version>
+ <version>3.4.10_2 pkg 0.2.5</version>
<status>beta</status>
<required_version>2.2</required_version>
<maintainer>marcellocoutinho@gmail.com fernando@netfilter.com.br seth.mos@dds.nl mfuchs77@googlemail.com jimp@pfsense.org</maintainer>