move tmpfiles.d fragment into /usr/lib per new guidelines

- package /run/httpd not /var/run/httpd
- set runtimedir to /run/httpd likewise
This commit is contained in:
Joe Orton 2012-06-06 22:05:38 +01:00
parent 5fac30f680
commit c1285701b4
4 changed files with 14 additions and 60 deletions

View File

@ -23,7 +23,7 @@
+ cgidir: /var/www/cgi-bin + cgidir: /var/www/cgi-bin
+ includedir: ${prefix}/include/httpd + includedir: ${prefix}/include/httpd
+ localstatedir: /var + localstatedir: /var
+ runtimedir: ${localstatedir}/run/httpd + runtimedir: /run/httpd
+ logfiledir: ${localstatedir}/log/httpd + logfiledir: ${localstatedir}/log/httpd
+ proxycachedir: ${localstatedir}/cache/httpd + proxycachedir: ${localstatedir}/cache/httpd
+</Layout> +</Layout>

View File

@ -1,51 +0,0 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<refentry>
<refentryinfo>
<date>@DATE@</date>
<title>Apache HTTP Server</title>
<productname>httpd</productname>
<productnumber>@VERSION@</productnumber>
</refentryinfo>
<refmeta>
<refentrytitle>@PROGNAME@</refentrytitle>
<manvolnum>8</manvolnum>
</refmeta>
<refnamediv>
<refname>@PROGNAME@</refname>
<refpurpose>httpd @MPM@ MPM executable</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>@PROGNAME@</command>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>The <command>@PROGNAME@</command> executable is an
alternative build of the <command>httpd</command> executable which
uses the <emphasis>@MPM@</emphasis> Multi-Processing Module (MPM).
The executable accepts the same command-line arguments as
the <command>httpd</command> executable.</para>
<para>To configure the SysV init scripts to use this MPM, set the
<varname>HTTPD</varname> environment variable in
the <filename>/etc/sysconfig/httpd</filename> configuration file.</para>
</refsect1>
<refsect1>
<title>See also</title>
<para>httpd(8), <ulink url="http://httpd.apache.org/docs/2.2/mpm.html"/></para>
</refsect1>
</refentry>

View File

@ -8,7 +8,7 @@
Summary: Apache HTTP Server Summary: Apache HTTP Server
Name: httpd Name: httpd
Version: 2.4.2 Version: 2.4.2
Release: 14%{?dist} Release: 15%{?dist}
URL: http://httpd.apache.org/ URL: http://httpd.apache.org/
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2 Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
Source1: index.html Source1: index.html
@ -281,9 +281,9 @@ install -m 644 -p $RPM_SOURCE_DIR/httpd.sysconf \
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/httpd $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/httpd
# tmpfiles.d configuration # tmpfiles.d configuration
mkdir $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d
install -m 644 -p $RPM_SOURCE_DIR/httpd.tmpfiles \ install -m 644 -p $RPM_SOURCE_DIR/httpd.tmpfiles \
$RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/httpd.conf $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/httpd.conf
# for holding mod_dav lock database # for holding mod_dav lock database
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/dav mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/dav
@ -336,7 +336,7 @@ ln -s ../../pixmaps/poweredby.png \
# symlinks for /etc/httpd # symlinks for /etc/httpd
ln -s ../..%{_localstatedir}/log/httpd $RPM_BUILD_ROOT/etc/httpd/logs ln -s ../..%{_localstatedir}/log/httpd $RPM_BUILD_ROOT/etc/httpd/logs
ln -s ../..%{_localstatedir}/run/httpd $RPM_BUILD_ROOT/etc/httpd/run ln -s /run/httpd $RPM_BUILD_ROOT/etc/httpd/run
ln -s ../..%{_libdir}/httpd/modules $RPM_BUILD_ROOT/etc/httpd/modules ln -s ../..%{_libdir}/httpd/modules $RPM_BUILD_ROOT/etc/httpd/modules
# install http-ssl-pass-dialog # install http-ssl-pass-dialog
@ -355,7 +355,7 @@ sed -e "s|/usr/local/apache2/conf/httpd.conf|/etc/httpd/conf/httpd.conf|" \
-e "s|/usr/local/apache2/conf/magic|/etc/httpd/conf/magic|" \ -e "s|/usr/local/apache2/conf/magic|/etc/httpd/conf/magic|" \
-e "s|/usr/local/apache2/logs/error_log|/var/log/httpd/error_log|" \ -e "s|/usr/local/apache2/logs/error_log|/var/log/httpd/error_log|" \
-e "s|/usr/local/apache2/logs/access_log|/var/log/httpd/access_log|" \ -e "s|/usr/local/apache2/logs/access_log|/var/log/httpd/access_log|" \
-e "s|/usr/local/apache2/logs/httpd.pid|/var/run/httpd/httpd.pid|" \ -e "s|/usr/local/apache2/logs/httpd.pid|/run/httpd/httpd.pid|" \
-e "s|/usr/local/apache2|/etc/httpd|" < docs/man/httpd.8 \ -e "s|/usr/local/apache2|/etc/httpd|" < docs/man/httpd.8 \
> $RPM_BUILD_ROOT%{_mandir}/man8/httpd.8 > $RPM_BUILD_ROOT%{_mandir}/man8/httpd.8
@ -485,7 +485,7 @@ rm -rf $RPM_BUILD_ROOT
%exclude %{_sysconfdir}/httpd/conf.modules.d/01-ldap.conf %exclude %{_sysconfdir}/httpd/conf.modules.d/01-ldap.conf
%config(noreplace) %{_sysconfdir}/sysconfig/httpd %config(noreplace) %{_sysconfdir}/sysconfig/httpd
%config %{_sysconfdir}/tmpfiles.d/httpd.conf %{_prefix}/lib/tmpfiles.d/httpd.conf
%{_sbindir}/ht* %{_sbindir}/ht*
%{_sbindir}/fcgistarter %{_sbindir}/fcgistarter
@ -515,7 +515,7 @@ rm -rf $RPM_BUILD_ROOT
%dir %{docroot}/cgi-bin %dir %{docroot}/cgi-bin
%dir %{docroot}/html %dir %{docroot}/html
%attr(0710,root,apache) %dir %{_localstatedir}/run/httpd %attr(0710,root,apache) %dir /run/httpd
%attr(0700,root,root) %dir %{_localstatedir}/log/httpd %attr(0700,root,root) %dir %{_localstatedir}/log/httpd
%attr(0700,apache,apache) %dir %{_localstatedir}/lib/dav %attr(0700,apache,apache) %dir %{_localstatedir}/lib/dav
%attr(0700,apache,apache) %dir %{_localstatedir}/cache/httpd %attr(0700,apache,apache) %dir %{_localstatedir}/cache/httpd
@ -567,6 +567,11 @@ rm -rf $RPM_BUILD_ROOT
%{_sysconfdir}/rpm/macros.httpd %{_sysconfdir}/rpm/macros.httpd
%changelog %changelog
* Wed Jun 6 2012 Joe Orton <jorton@redhat.com> - 2.4.2-15
- move tmpfiles.d fragment into /usr/lib per new guidelines
- package /run/httpd not /var/run/httpd
- set runtimedir to /run/httpd likewise
* Wed Jun 6 2012 Joe Orton <jorton@redhat.com> - 2.4.2-14 * Wed Jun 6 2012 Joe Orton <jorton@redhat.com> - 2.4.2-14
- fix htdbm/htpasswd crash on crypt() failure (#818684) - fix htdbm/htpasswd crash on crypt() failure (#818684)

View File

@ -1 +1 @@
d /var/run/httpd 710 root apache d /run/httpd 710 root apache