[packages/phpPgAdmin] - migrated to apache 2.4

baggins baggins at pld-linux.org
Thu May 16 21:55:58 CEST 2013


commit 3d2e03cc1eb44295ba59a1893ff52966c379eb27
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu May 16 21:55:57 2013 +0200

    - migrated to apache 2.4

 phpPgAdmin-httpd.conf |  7 +++++++
 phpPgAdmin.spec       | 10 ++++++----
 2 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/phpPgAdmin.spec b/phpPgAdmin.spec
index fdded70..19c6d4e 100644
--- a/phpPgAdmin.spec
+++ b/phpPgAdmin.spec
@@ -5,7 +5,7 @@ Summary:	phpPgAdmin - web-based PostgreSQL administration
 Summary(pl.UTF-8):	phpPgAdmin - administracja bazami PostgreSQL przez WWW
 Name:		phpPgAdmin
 Version:	5.0.3
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Applications/Databases/Interfaces
 Source0:	http://dl.sourceforge.net/phppgadmin/%{name}-%{version}.tar.bz2
@@ -14,6 +14,7 @@ Source1:	%{name}-apache.conf
 Source2:	%{name}-lighttpd.conf
 Source3:	http://www.quarto.pl/~gotar/%{name}-jscalendar.tar.bz2
 # Source3-md5:	84115f772a723cc742352c589df9af29
+Source4:	%{name}-httpd.conf
 Patch0:		%{name}-config.patch
 #Patch1:	%{name}-adodb.patch
 Patch2:		%{name}-calendar.patch
@@ -26,6 +27,7 @@ Requires:	php(pgsql)
 Requires:	php(session)
 Requires:	webapps
 Requires:	webserver(php) >= 5.0
+Conflicts:	apache-base < 2.4.0-1
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -70,7 +72,7 @@ cp -a classes help images js lang libraries themes xloadtree $RPM_BUILD_ROOT%{_a
 cp -a conf/*.php $RPM_BUILD_ROOT%{_sysconfdir}
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
 
 %triggerin -- apache1 < 1.3.37-3, apache1-base
@@ -79,10 +81,10 @@ install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
 %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/phpPgAdmin-httpd.conf b/phpPgAdmin-httpd.conf
new file mode 100644
index 0000000..e70182e
--- /dev/null
+++ b/phpPgAdmin-httpd.conf
@@ -0,0 +1,7 @@
+Alias /pgadmin /usr/share/phpPgAdmin
+
+<Directory "/usr/share/phpPgAdmin">
+    AllowOverride None
+    Require all granted
+    php_admin_value open_basedir "/etc/webapps/phpPgAdmin/:/usr/share/phpPgAdmin/"
+</Directory>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/phpPgAdmin.git/commitdiff/3d2e03cc1eb44295ba59a1893ff52966c379eb27



More information about the pld-cvs-commit mailing list