[packages/phpMyAdmin] - migrated to apache 2.4

baggins baggins at pld-linux.org
Thu May 16 21:45:20 CEST 2013


commit 483a1aa6ef4339f714a36ab887bfe7e935bdabf1
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu May 16 21:45:19 2013 +0200

    - migrated to apache 2.4

 phpMyAdmin.conf => phpMyAdmin-apache.conf |  0
 phpMyAdmin-httpd.conf                     |  8 ++++++++
 phpMyAdmin.spec                           | 10 ++++++----
 3 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/phpMyAdmin.spec b/phpMyAdmin.spec
index a573d30..5ab147b 100644
--- a/phpMyAdmin.spec
+++ b/phpMyAdmin.spec
@@ -5,13 +5,14 @@ Summary:	phpMyAdmin - web-based MySQL administration
 Summary(pl.UTF-8):	phpMyAdmin - administracja bazami MySQL przez WWW
 Name:		phpMyAdmin
 Version:	4.0.0
-Release:	1
+Release:	2
 License:	GPL v2
 Group:		Applications/Databases/Interfaces
 Source0:	http://downloads.sourceforge.net/phpmyadmin/%{name}-%{version}-all-languages.tar.bz2
 # Source0-md5:	42ab4ee21915687753861699635d2bde
 Source1:	%{name}.conf
 Source2:	%{name}-lighttpd.conf
+Source3:	%{name}-httpd.conf
 Patch0:		%{name}-config.patch
 Patch1:		%{name}-ServerSelectDisplayName.patch
 Patch2:		%{name}-ServerSelectDisplayName-config.patch
@@ -34,6 +35,7 @@ Requires:	webserver(alias)
 Suggests:	php-mysqli
 Suggests:	webserver(indexfile)
 Suggests:	webserver(php)
+Conflicts:	apache-base < 2.4.0-1
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -96,7 +98,7 @@ install libraries/config.default.php $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.ph
 ln -sf %{_sysconfdir}/config.inc.php $RPM_BUILD_ROOT%{_appdir}/config.inc.php
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
 
 %clean
@@ -108,10 +110,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}
 
 %triggerin -- lighttpd
diff --git a/phpMyAdmin.conf b/phpMyAdmin-apache.conf
similarity index 100%
rename from phpMyAdmin.conf
rename to phpMyAdmin-apache.conf
diff --git a/phpMyAdmin-httpd.conf b/phpMyAdmin-httpd.conf
new file mode 100644
index 0000000..bae0e7d
--- /dev/null
+++ b/phpMyAdmin-httpd.conf
@@ -0,0 +1,8 @@
+Alias /myadmin /usr/share/phpMyAdmin
+<Directory "/usr/share/phpMyAdmin">
+	Options FollowSymLinks
+	AllowOverride None
+	Require all granted
+	# uncomment if using apache-mod_php
+	#php_admin_value open_basedir "/etc/webapps/phpMyAdmin/:/usr/share/phpMyAdmin/:/usr/share/phpMyAdmin/css/..:/tmp"
+</Directory>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/phpMyAdmin.git/commitdiff/483a1aa6ef4339f714a36ab887bfe7e935bdabf1



More information about the pld-cvs-commit mailing list