if ($xlratorsettings{'ENABLE_LOG'} eq 'on') { $logging=1; };
if ($xlratorsettings{'PASSIVE_MODE'} eq 'on') { $passive_mode=1; };
$maxusage=$xlratorsettings{'MAX_DISK_USAGE'};
- if ($xlratorsettings{'LOW_DOWNLOAD_PRIORITY'} eq 'on') { $nice='/usr/bin/nice --adjustment=15 '; };
+ if ($xlratorsettings{'LOW_DOWNLOAD_PRIORITY'} eq 'on') { $nice='/bin/nice --adjustment=15 '; };
}
if (!$maxusage) { $maxusage=75; };
{
$from_local_cache = &cache_access($dsturl,$hostaddr,$username,"Symantec");
}
-
+
+ # -----------------------------------------------------------
+ # Section: Avira Downloads
# -----------------------------------------------------------
+
+ if ($dsturl =~ m@^http://dl[0-9]\.avgate\.net/.*\.(htm|html|gz)$@i)
+ {
+ $from_local_cache = &cache_access($dsturl,$hostaddr,$username,"Avira");
+ }
+
+ # -----------------------------------------------------------
+ # Section: Avast Downloads
+ # -----------------------------------------------------------
+
+ if ($dsturl =~ m@^http://download[0-99]\.avast\.com/.*\.(exe|zip|vps|stamp|vpu)$@i)
+ {
+ $from_local_cache = &cache_access($dsturl,$hostaddr,$username,"Avast");
+ }
+
+ # -----------------------------------------------------------
+ # Section: IPFire Downloads
+ # -----------------------------------------------------------
+
+ if ($dsturl =~ m@^[f|h]t?tp://.*\.(ipfire)$@i)
+ {
+ $from_local_cache = &cache_access($dsturl,$hostaddr,$username,"IPFire");
+ }
+
+ # -----------------------------------------------------------
+ # Section: Linux Downloads
+ # -----------------------------------------------------------
+
+ if ($dsturl =~ m@^[f|h]t?tp://.*\.(deb|rpm)$@i)
+ {
+ $from_local_cache = &cache_access($dsturl,$hostaddr,$username,"Linux");
+ }
+
+ # -----------------------------------------------------------
+
+ # -----------------------------------------------------------
+ # Section: Apple Downloads
+ # -----------------------------------------------------------
+
+ if ($dsturl =~ m@^[f|h]t?tp://swcdn\.apple.*\.(pkm|tar)$@i)
+ {
+ $from_local_cache = &cache_access($dsturl,$hostaddr,$username,"Apple");
+ }
+
+ # -----------------------------------------------------------
+ # Section: Kaspersky Downloads
+ # -----------------------------------------------------------
+
+ if ($dsturl =~ m@^http://dnl-.*\.kaspersky-labs\.com\/(diffs|bases|AutoPatches).*$@i)
+ {
+ $from_local_cache = &cache_access($dsturl,$hostaddr,$username,"Kaspersky");
+ }
+
+ # -----------------------------------------------------------
}