]> git.pld-linux.org Git - packages/apache-mod_fastcgi.git/commitdiff
- set socket dir to /var/run/apache as webserver has no permissions to logdir
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 26 Jun 2005 15:41:55 +0000 (15:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel 6
- STBR

Changed files:
    apache-mod_fastcgi.spec -> 1.42

apache-mod_fastcgi.spec

index 10b4d658c4de96c3c55daa08a5ea53a16fd983c7..605befa470920cd08f30c559f0e6877214c63cd1 100644 (file)
@@ -7,13 +7,14 @@ Summary(uk):  FastCGI - ¦
 Name:          apache-mod_%{mod_name}
 # NOTE: remember about apache1-mod_fastcgi.spec when messing here
 Version:       2.4.2
-Release:       5
+Release:       6
 License:       distributable
 Group:         Networking/Daemons
 Source0:       http://www.FastCGI.com/dist/mod_%{mod_name}-%{version}.tar.gz
 # Source0-md5: e994414304b535cb99e10b7d1cad1d1e
 Patch0:                %{name}-apr1.patch
 Patch1:                %{name}-allow-uid-gid.patch
+Patch2:                %{name}-socketdir.patch
 Source1:       %{name}.conf
 URL:           http://www.FastCGI.com/
 BuildRequires: %{apxs}
@@ -25,6 +26,8 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     %(%{apxs} -q SYSCONFDIR)
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+# FIXME /var/run/httpd, but apache.spec owns /var/run/apache, so fix there first.
+%define                _socketdir      /var/run/apache/fastcgi
 
 %description
 This 3rd party module provides support for the FastCGI protocol.
@@ -55,6 +58,7 @@ FastCGI - 
 %setup -q -n mod_%{mod_name}-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__make} -f Makefile.AP2 \
@@ -63,7 +67,7 @@ FastCGI - 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf,%{_socketdir}/dynamic}
 
 install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
 install %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/httpd.conf/
@@ -77,16 +81,18 @@ if [ -f /var/lock/subsys/httpd ]; then
 else
        echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
+
 %preun
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd restart 1>&2
        fi
 fi
+
 %files
 %defattr(644,root,root,755)
 %doc docs/LICENSE.TERMS CHANGES docs/*.html
 %attr(755,root,root) %{_pkglibdir}/*.so
 %config %{_sysconfdir}/httpd.conf/*.conf
+%dir %attr(770,root,http) %{_socketdir}
+%dir %attr(770,root,http) %{_socketdir}/dynamic
This page took 0.045605 seconds and 4 git commands to generate.