Follow link /etc/httpd/run and make our "run" directory a subdir of
wherever that leads (#501123)
This commit is contained in:
parent
34e81f9c69
commit
7847f60cb2
@ -14,9 +14,12 @@
|
|||||||
%global selinux_buildreqs checkpolicy, selinux-policy-devel, hardlink
|
%global selinux_buildreqs checkpolicy, selinux-policy-devel, hardlink
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# /etc/httpd/run is a symlink to /var/run prior to Fedora 11, to /var/run/httpd thereafter
|
||||||
|
%global rundir %(/usr/bin/readlink /etc/httpd/run | %{__sed} -e 's|^\.\./\.\.||')
|
||||||
|
|
||||||
Name: mod_fcgid
|
Name: mod_fcgid
|
||||||
Version: 2.2
|
Version: 2.2
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
Summary: Apache2 module for high-performance server-side scripting
|
Summary: Apache2 module for high-performance server-side scripting
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
License: GPL+
|
License: GPL+
|
||||||
@ -117,7 +120,7 @@ topdir=$(/usr/bin/dirname $(/usr/sbin/apxs -q exp_installbuilddir))
|
|||||||
MKINSTALLDIRS="%{__mkdir_p}" \
|
MKINSTALLDIRS="%{__mkdir_p}" \
|
||||||
install
|
install
|
||||||
%{__install} -D -m 644 fcgid.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/fcgid.conf
|
%{__install} -D -m 644 fcgid.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/fcgid.conf
|
||||||
%{__install} -d -m 755 %{buildroot}%{_localstatedir}/run/mod_fcgid
|
%{__install} -d -m 755 %{buildroot}%{rundir}/mod_fcgid
|
||||||
|
|
||||||
# Install SELinux policy modules
|
# Install SELinux policy modules
|
||||||
%if %{selinux_module}
|
%if %{selinux_module}
|
||||||
@ -165,7 +168,7 @@ exit 0
|
|||||||
%doc README.RPM
|
%doc README.RPM
|
||||||
%{_libdir}/httpd/modules/mod_fcgid.so
|
%{_libdir}/httpd/modules/mod_fcgid.so
|
||||||
%config(noreplace) %{_sysconfdir}/httpd/conf.d/fcgid.conf
|
%config(noreplace) %{_sysconfdir}/httpd/conf.d/fcgid.conf
|
||||||
%dir %attr(0755,apache,apache) %{_localstatedir}/run/mod_fcgid/
|
%dir %attr(0755,apache,apache) %{rundir}/mod_fcgid/
|
||||||
|
|
||||||
%if %{selinux_module}
|
%if %{selinux_module}
|
||||||
%files selinux
|
%files selinux
|
||||||
@ -175,6 +178,10 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun May 17 2009 Paul Howarth <paul@city-fan.org> 2.2-11
|
||||||
|
- Follow link /etc/httpd/run and make our "run" directory a subdir of wherever
|
||||||
|
that leads (#501123)
|
||||||
|
|
||||||
* Mon Apr 6 2009 Paul Howarth <paul@city-fan.org> 2.2-10
|
* Mon Apr 6 2009 Paul Howarth <paul@city-fan.org> 2.2-10
|
||||||
- EL 5.3 now has SELinux support in the main selinux-policy package so handle
|
- EL 5.3 now has SELinux support in the main selinux-policy package so handle
|
||||||
that release as per Fedora >= 8, except that the RHEL selinux-policy package
|
that release as per Fedora >= 8, except that the RHEL selinux-policy package
|
||||||
|
Loading…
Reference in New Issue
Block a user