]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Add AVG Updates to Updxlrator
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 2 May 2008 21:44:55 +0000 (23:44 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 2 May 2008 21:44:55 +0000 (23:44 +0200)
config/rootfiles/core/13/files
config/updxlrator/updxlrator
html/cgi-bin/updatexlrator.cgi
html/html/images/updxl-src-avg.gif [new file with mode: 0644]

index 71edc901852ef01680ebe3b0aa4db54c870f9e92..a95e60509c2a4acf2b65561676645c1130341571 100644 (file)
@@ -5,3 +5,6 @@ usr/bin/dc
 opt/pakfire/lib/functions.pl
 var/ipfire/urlfilter/bin/prebuild.pl
 srv/web/ipfire/cgi-bin/urlfilter.cgi
+srv/web/ipfire/cgi-bin/updatexlrator.cgi
+srv/web/ipfire/html/images/updxl-src-avg.gif
+usr/sbin/updxlrator
index 60aa5462cdf72eaa6b8ee80363005ad81502e650..6dc74ac4c98a84464cb433ee1af83ce6d24ff601 100644 (file)
@@ -154,6 +154,16 @@ while (<>) {
        { 
        $from_local_cache = &cache_access($dsturl,$hostaddr,$username,"Apple"); 
        }
+
+       # -----------------------------------------------------------
+       # Section: AVG Downloads
+       # -----------------------------------------------------------
+
+       if ($dsturl =~ m@^http://[^/]*\.(grisoft|avg)\.com/.*\.(bin)$@i)
+       {
+       $from_local_cache = &cache_access($dsturl,$hostaddr,$username,"AVG");
+       }
+
        
        # ----------------------------------------------------------- 
        # Section: Kaspersky Downloads
index 261b32a30de97006914552b4455a459f122fb72e..618cef790fe9ecae6b86638816f6f086689d0ff5 100644 (file)
@@ -458,6 +458,9 @@ END
                } elsif ($metadata[1] eq 'Avira')
                {
                        print "<img src='/images/updxl-src-avira.gif' alt='Avira' />&nbsp;</td>\n";
+               } elsif ($metadata[1] eq 'AVG')
+               {
+                       print "<img src='/images/updxl-src-avg.gif' alt='AVG' />&nbsp;</td>\n";
                } elsif ($metadata[1] eq 'Avast')
                {
                        print "<img src='/images/updxl-src-avast.gif' alt='Avast' />&nbsp;</td>\n";
@@ -555,6 +558,9 @@ print <<END
                <td align='center'><img src='/images/updxl-src-avira.gif' alt='Avira' /></td>
                <td class='base'>Avira</td>
                <td class='base'>&nbsp;</td>
+               <td align='center'><img src='/images/updxl-src-avg.gif' alt='AVG' /></td>
+               <td class='base'>AVG</td>
+               <td class='base'>&nbsp;</td>
                <td align='center'><img src='/images/updxl-src-apple.gif' alt='Apple' /></td>
                <td class='base'>Apple</td>
                <td class='base'>&nbsp;</td>
diff --git a/html/html/images/updxl-src-avg.gif b/html/html/images/updxl-src-avg.gif
new file mode 100644 (file)
index 0000000..d414eea
Binary files /dev/null and b/html/html/images/updxl-src-avg.gif differ