[packages/squirrelmail] - migrated to apache 2.4

baggins baggins at pld-linux.org
Fri May 17 11:38:22 CEST 2013


commit 3d4676dd358e1145f80a0b3d749da288011a6778
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri May 17 11:38:20 2013 +0200

    - migrated to apache 2.4

 squirrelmail.conf => squirrelmail-apache.conf |  0
 squirrelmail-httpd.conf                       | 23 +++++++++++++++++++++++
 squirrelmail.spec                             | 12 +++++++-----
 3 files changed, 30 insertions(+), 5 deletions(-)
---
diff --git a/squirrelmail.spec b/squirrelmail.spec
index 588fdb7..78d721b 100644
--- a/squirrelmail.spec
+++ b/squirrelmail.spec
@@ -3,7 +3,7 @@ Summary(pl.UTF-8):	Wiewiórcza Poczta, Poczta przez WWW
 Summary(pt_BR.UTF-8):	O SquirrelMail é um webmail
 Name:		squirrelmail
 Version:	1.4.21
-Release:	3
+Release:	4
 License:	GPL v2+
 Group:		Applications/Mail
 Source0:	http://dl.sourceforge.net/squirrelmail/%{name}-%{version}.tar.bz2
@@ -15,8 +15,9 @@ Source1:	http://dl.sourceforge.net/squirrelmail/all_locales-%{locales_ver}-%{all
 %define		compatibility_ver	2.0.16-1.0
 Source2:	http://www.squirrelmail.org/plugins/compatibility-%{compatibility_ver}.tar.gz
 # Source2-md5:	d472fb353cdf0c8d56489b5d5523d0dc
-Source3:	%{name}.conf
+Source3:	%{name}-apache.conf
 Source4:	%{name}-cp1250_charset_encode.php
+Source5:	%{name}-httpd.conf
 Patch0:		%{name}-config.patch
 Patch1:		%{name}-squirrelspell.patch
 Patch2:		%{name}-ad_ldap.patch
@@ -34,6 +35,7 @@ Requires:	webserver
 Requires:	webserver(php)
 Provides:	squirrelmail-compatibility = %{compatibility_ver}
 Provides:	webmail
+Conflicts:	apache-base < 2.4.0-1
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_squirreldir	%{_datadir}/%{name}
@@ -169,8 +171,8 @@ install -d $RPM_BUILD_ROOT{%{_squirreldir}/{config,data},%{_sbindir}} \
 install plugins/filters/bulkquery/bulkquery $RPM_BUILD_ROOT%{_sbindir}
 rm -f plugins/filters/bulkquery/*.{in,out,c} plugins/filters/bulkquery/bulkquery
 
-install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 
 cp -aR * $RPM_BUILD_ROOT%{_squirreldir}
 
@@ -205,10 +207,10 @@ rm -rf $RPM_BUILD_ROOT
 %triggerun -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
-%triggerin -- apache < 2.2.0, apache-base
+%triggerin -- apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun -- apache < 2.2.0, apache-base
+%triggerun -- apache-base
 %webapp_unregister httpd %{_webapp}
 
 %triggerpostun -- squirrelmail < 1.4.5-4.1
diff --git a/squirrelmail.conf b/squirrelmail-apache.conf
similarity index 100%
rename from squirrelmail.conf
rename to squirrelmail-apache.conf
diff --git a/squirrelmail-httpd.conf b/squirrelmail-httpd.conf
new file mode 100644
index 0000000..d0f6c79
--- /dev/null
+++ b/squirrelmail-httpd.conf
@@ -0,0 +1,23 @@
+Alias /mail /usr/share/squirrelmail
+
+# Redirect http to https. Required apache-mod_ssl and apache-mod_rewrite
+#<Location /mail>
+#	RewriteEngine on
+#	RewriteCond %{HTTPS} !^on$ [NC]
+#	RewriteRule . https://%{SERVER_NAME}/mail/ [L]
+#</Location>
+
+# Redirect http to https. Required apache-mod_ssl
+#<VirtualHost 192.168.1.1:80>
+#	ServerName mail.example.org
+#	RedirectMatch ^/mail/$ https://mail.example.org/mail/
+#</VirtualHost>
+
+<Directory /usr/share/squirrelmail>
+	Require all granted
+	php_admin_value open_basedir "/etc/webapps/squirrelmail/:/etc/mail:/usr/share/squirrelmail/:/var/lib/squirrelmail/:/tmp"
+</Directory>
+
+<Directory /var/lib/squirrelmail>
+	Require all granted
+</Directory>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/squirrelmail.git/commitdiff/3d4676dd358e1145f80a0b3d749da288011a6778



More information about the pld-cvs-commit mailing list