]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/updxlrator/updxlrator
Kernel Update auf 2.6.16.55.
[people/pmueller/ipfire-2.x.git] / config / updxlrator / updxlrator
index 4f54d429e3b5b60d34175d99b79f8a51571a11da..3edf4a67e7cce6d133735e472c5ae842004195df 100644 (file)
@@ -55,7 +55,7 @@ if (-e "$swroot/updatexlrator/settings")
        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; };
 
@@ -107,8 +107,64 @@ while (<>) {
        {
                $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"); 
+       }
+
+       # ----------------------------------------------------------- 
 
        }