[packages/apache-php-fcgi: 1/7] - virtual package providing php5 to apache1 via fcgi
glen
glen at pld-linux.org
Tue May 26 18:08:32 CEST 2015
commit 0854e4009d3f94070a4d249eedd50f312040dded
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Jul 21 08:29:54 2008 +0000
- virtual package providing php5 to apache1 via fcgi
Changed files:
apache-php-fcgi.spec -> 1.1
apache-php-fcgi.spec | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
---
diff --git a/apache-php-fcgi.spec b/apache-php-fcgi.spec
new file mode 100644
index 0000000..9c5a595
--- /dev/null
+++ b/apache-php-fcgi.spec
@@ -0,0 +1,65 @@
+%define apxs /usr/sbin/apxs1
+Summary: Support for the PHP via FastCGI protocol for Apache webserver
+Name: apache1-php-fcgi
+Version: 5.2.6
+Release: 1
+License: GPL
+Group: Applications/WWW
+BuildRequires: apache1-devel >= 1.3.39
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires: apache1-mod_fastcgi
+Requires: php-fcgi >= 4:%{version}
+Requires: php-fcgi-init
+Provides: webserver(php) = %{version}
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
+%define fcgiapp /usr/bin/php.fcgi
+
+%description
+This virtual package provides support for the PHP via FastCGI
+protocol.
+
+%prep
+%setup -qcT
+
+cat <<'EOF' > apache.conf
+# setup via fastcgi to run php5
+<IfModule mod_fastcgi.c>
+ # the server name is bogus actually, to satisfy mod_fastcgi
+ FastCgiExternalServer %{fcgiapp} -socket /var/run/php/fcgi.sock
+ ScriptAlias /php-fcgi %{fcgiapp}
+ <Location "/php-fcgi">
+ SetHandler fastcgi-script
+ Allow from all
+ </Location>
+
+ Action application/x-httpd-php-fcgi /php-fcgi
+</IfModule>
+
+# To register handler for .php in your config context:
+#<IfModule mod_fastcgi.c>
+# AddType application/x-httpd-php-fcgi .php
+#</IfModule>
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
+cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_php-fcgi.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%service -q apache restart
+
+%postun
+if [ "$1" = "0" ]; then
+ %service -q apache restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_php-fcgi.conf
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/apache-php-fcgi.git/commitdiff/df585f07f45db72d1c6613a5fd2e58fff3dfb815
More information about the pld-cvs-commit
mailing list