]> git.pld-linux.org Git - packages/dspam.git/commitdiff
- migrate to apache 2.4 auto/th/dspam-3.9.0-7
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 15 May 2013 16:37:56 +0000 (18:37 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 15 May 2013 16:37:56 +0000 (18:37 +0200)
- rel 7

dspam-httpd.conf [new file with mode: 0644]
dspam.spec

diff --git a/dspam-httpd.conf b/dspam-httpd.conf
new file mode 100644 (file)
index 0000000..44fbb49
--- /dev/null
@@ -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>
index c69391723e3311f2e02f459b09d87d4ead8a1bc9..0c56d41a7e5b53ef3f00d59ec7505f50923ae2a4 100644 (file)
@@ -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
This page took 0.082317 seconds and 4 git commands to generate.