Author: glen                         Date: Tue Jul 13 14:20:01 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- setup 1 minute expires in cgi side, the apache side doesn't work anyway

---- Files affected:
packages/mailgraph:
   mailgraph.conf (1.11 -> 1.12) , mailgraph.spec (1.55 -> 1.56) , 
expires.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/mailgraph/mailgraph.conf
diff -u packages/mailgraph/mailgraph.conf:1.11 
packages/mailgraph/mailgraph.conf:1.12
--- packages/mailgraph/mailgraph.conf:1.11      Sun Mar 22 14:38:12 2009
+++ packages/mailgraph/mailgraph.conf   Tue Jul 13 16:19:56 2010
@@ -10,9 +10,4 @@
 
        Order allow,deny
        Allow from all
-
-       <IfModule mod_expires.c>
-               ExpiresActive On
-               ExpiresByType image/png M5
-       </IfModule>
 </Directory>

================================================================
Index: packages/mailgraph/mailgraph.spec
diff -u packages/mailgraph/mailgraph.spec:1.55 
packages/mailgraph/mailgraph.spec:1.56
--- packages/mailgraph/mailgraph.spec:1.55      Tue Jul 13 16:10:50 2010
+++ packages/mailgraph/mailgraph.spec   Tue Jul 13 16:19:56 2010
@@ -4,7 +4,7 @@
 Summary(pl.UTF-8):     Proste statystyki dla Postfiksa
 Name:          mailgraph
 Version:       1.14
-Release:       2.9
+Release:       2.10
 License:       GPL v2
 Group:         Applications/Networking
 Source0:       http://mailgraph.schweikert.ch/pub/%{name}-%{version}.tar.gz
@@ -53,7 +53,6 @@
 Requires:      webapps
 Requires:      webserver
 Requires:      webserver(cgi)
-Requires:      webserver(expires)
 
 %description cgi
 CGI script for displaying mailgraph rrd data.
@@ -155,6 +154,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.56  2010/07/13 14:19:56  glen
+- setup 1 minute expires in cgi side, the apache side doesn't work anyway
+
 Revision 1.55  2010/07/13 14:10:50  glen
 - local copy of rrdtool.gif, not to make extra traffic outside
 

================================================================
Index: packages/mailgraph/expires.patch
diff -u /dev/null packages/mailgraph/expires.patch:1.1
--- /dev/null   Tue Jul 13 16:20:01 2010
+++ packages/mailgraph/expires.patch    Tue Jul 13 16:19:56 2010
@@ -0,0 +1,10 @@
+--- mailgraph-1.14/mailgraph.cgi~      2010-07-13 17:10:13.986859625 +0300
++++ mailgraph-1.14/mailgraph.cgi       2010-07-13 17:17:28.163498031 +0300
+@@ -205,6 +205,7 @@
+ 
+       print "Content-type: image/png\n";
+       print "Content-length: ".((stat($file))[7])."\n";
++      print "Expires: ". (gmtime(time() + 60))." GMT\n";
+       print "\n";
+       open(IMG, $file) or die;
+       my $data;
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mailgraph/mailgraph.conf?r1=1.11&r2=1.12&f=u
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mailgraph/mailgraph.spec?r1=1.55&r2=1.56&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to