[packages/dspam] - migrate to apache 2.4 - rel 7

baggins baggins at pld-linux.org
Wed May 15 18:38:07 CEST 2013


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

    - migrate to apache 2.4
    - rel 7

 dspam-httpd.conf | 17 +++++++++++++++++
 dspam.spec       | 10 ++++++----
 2 files changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/dspam.spec b/dspam.spec
index c693917..0c56d41 100644
--- a/dspam.spec
+++ b/dspam.spec
@@ -15,7 +15,7 @@ Summary:	A library and Mail Delivery Agent for Bayesian spam filtering
 Summary(pl.UTF-8):	Biblioteka i MDA do bayesowskiego filtrowania spamu
 Name:		dspam
 Version:	3.9.0
-Release:	6
+Release:	7
 License:	GPL v2+
 Group:		Applications/Mail
 Source0:	http://downloads.sourceforge.net/project/dspam/dspam/%{name}-%{version}/%{name}-%{version}.tar.gz
@@ -23,6 +23,7 @@ Source0:	http://downloads.sourceforge.net/project/dspam/dspam/%{name}-%{version}
 Source1:	%{name}.init
 Source2:	%{name}-apache.conf
 Source3:	%{name}.tmpfiles
+Source4:	%{name}-httpd.conf
 Patch0:		%{name}-webui.patch
 Patch1:		%{name}-config.patch
 Patch2:		%{name}-speedup.patch
@@ -233,6 +234,7 @@ Group:		Applications/WWW
 Requires:	webapps
 # needs dspam binary
 Requires:	%{name} = %{version}-%{release}
+Conflicts:	apache-base < 2.4.0-1
 
 %description webui
 The Web UI (CGI client) can be run from any executable location on a
@@ -381,7 +383,7 @@ EOF
 
 install -d $RPM_BUILD_ROOT%{_webapps}/%{_webapp}
 install %{SOURCE2} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
-install %{SOURCE2} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
+install %{SOURCE4} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
 touch $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/htpasswd
 
 install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
@@ -423,10 +425,10 @@ rm -rf $RPM_BUILD_ROOT
 %triggerun webui -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
-%triggerin webui -- apache < 2.2.0, apache-base
+%triggerin webui -- apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun webui -- apache < 2.2.0, apache-base
+%triggerun webui -- apache-base
 %webapp_unregister httpd %{_webapp}
 
 %files
diff --git a/dspam-httpd.conf b/dspam-httpd.conf
new file mode 100644
index 0000000..44fbb49
--- /dev/null
+++ b/dspam-httpd.conf
@@ -0,0 +1,17 @@
+# $Id$
+Alias /dspam/htdocs /usr/share/dspam/htdocs
+Alias /dspam /usr/share/dspam/cgi
+
+<Directory /usr/share/dspam/htdocs>
+	Require all granted
+</Directory>
+
+<Directory /usr/share/dspam/cgi>
+	Options +ExecCGI
+	DirectoryIndex dspam.cgi
+	AuthType Basic
+	AuthName "dspam"
+	AuthUserFile /etc/webapps/dspam/htpasswd
+	Require valid-user
+	Require all granted
+</Directory>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dspam.git/commitdiff/b3ac7ed91f15e6f26f837879680215d667f66668



More information about the pld-cvs-commit mailing list