[packages/mailgraph] - migrated to apache 2.4

baggins baggins at pld-linux.org
Wed May 15 22:37:51 CEST 2013


commit b656d6fc59f38fce637b8b93b2ef34edde6ae101
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed May 15 22:37:50 2013 +0200

    - migrated to apache 2.4

 mailgraph.conf => mailgraph-apache.conf |  2 --
 mailgraph-httpd.conf                    | 10 ++++++++++
 mailgraph.spec                          | 12 +++++++-----
 3 files changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/mailgraph.spec b/mailgraph.spec
index aee5be7..74196eb 100644
--- a/mailgraph.spec
+++ b/mailgraph.spec
@@ -3,17 +3,18 @@ Summary:	Simple mail statistics for Postfix
 Summary(pl.UTF-8):	Proste statystyki dla Postfiksa
 Name:		mailgraph
 Version:	1.14
-Release:	2.10
+Release:	3
 License:	GPL v2
 Group:		Applications/Networking
 Source0:	http://mailgraph.schweikert.ch/pub/%{name}-%{version}.tar.gz
 # Source0-md5:	0f0ae91968ea7ae0c1d14985c560530b
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
-Source3:	%{name}.conf
+Source3:	%{name}-apache.conf
 Source4:	lighttpd.conf
 Source5:	http://oss.oetiker.ch/rrdtool/.pics/rrdtool.gif
 # Source5-md5:	51ab9e952ecfffa45b2c65eacc93f3a2
+Source6:	%{name}-httpd.conf
 Patch0:		%{name}-paths.patch
 Patch1:		%{name}-postfix_rbl.patch
 Patch2:		clamd-enable.patch
@@ -52,6 +53,7 @@ Requires:	%{name} = %{version}-%{release}
 Requires:	webapps
 Requires:	webserver
 Requires:	webserver(cgi)
+Conflicts:	apache-base < 2.4.0-1
 
 %description cgi
 CGI script for displaying mailgraph rrd data.
@@ -80,7 +82,7 @@ touch $RPM_BUILD_ROOT/var/log/mailgraph.log
 
 # cgi app
 cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+cp -a %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
 cp -a mailgraph.css $RPM_BUILD_ROOT%{_sysconfdir}/mailgraph.css
 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_appdir}
@@ -109,10 +111,10 @@ fi
 %triggerun cgi -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
-%triggerin cgi -- apache < 2.2.0, apache-base
+%triggerin cgi -- apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun cgi -- apache < 2.2.0, apache-base
+%triggerun cgi -- apache-base
 %webapp_unregister httpd %{_webapp}
 
 %triggerin cgi -- lighttpd
diff --git a/mailgraph.conf b/mailgraph-apache.conf
similarity index 96%
rename from mailgraph.conf
rename to mailgraph-apache.conf
index 0efac9a..a81bf55 100644
--- a/mailgraph.conf
+++ b/mailgraph-apache.conf
@@ -1,5 +1,3 @@
-# $Id$
-
 Alias /mailgraph /usr/lib/cgi-bin/mailgraph
 
 <Directory /usr/lib/cgi-bin/mailgraph>
diff --git a/mailgraph-httpd.conf b/mailgraph-httpd.conf
new file mode 100644
index 0000000..45f32f5
--- /dev/null
+++ b/mailgraph-httpd.conf
@@ -0,0 +1,10 @@
+Alias /mailgraph /usr/lib/cgi-bin/mailgraph
+
+<Directory /usr/lib/cgi-bin/mailgraph>
+	Options ExecCGI FollowSymLinks
+	AddHandler cgi-script .cgi
+
+	AllowOverride AuthConfig Limit
+
+	Require all granted
+</Directory>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mailgraph.git/commitdiff/b656d6fc59f38fce637b8b93b2ef34edde6ae101



More information about the pld-cvs-commit mailing list