diff options
| author | Joe Orton <jorton@redhat.com> | 2012-06-06 22:05:38 +0100 |
|---|---|---|
| committer | Joe Orton <jorton@redhat.com> | 2012-06-06 22:05:38 +0100 |
| commit | c1285701b4f12b0fecbd0be70a8b6439b5b3c863 (patch) | |
| tree | 72023dd43918cedd24e532d6b02601df7949fcd3 | |
| parent | 5fac30f680d5494fd2a4af287270ac7e397414e3 (diff) | |
| download | httpd-c1285701b4f12b0fecbd0be70a8b6439b5b3c863.tar.gz httpd-c1285701b4f12b0fecbd0be70a8b6439b5b3c863.tar.xz httpd-c1285701b4f12b0fecbd0be70a8b6439b5b3c863.zip | |
move tmpfiles.d fragment into /usr/lib per new guidelines
- package /run/httpd not /var/run/httpd
- set runtimedir to /run/httpd likewise
| -rw-r--r-- | httpd-2.4.1-layout.patch | 2 | ||||
| -rw-r--r-- | httpd.mpm.xml | 51 | ||||
| -rw-r--r-- | httpd.spec | 19 | ||||
| -rw-r--r-- | httpd.tmpfiles | 2 |
4 files changed, 14 insertions, 60 deletions
diff --git a/httpd-2.4.1-layout.patch b/httpd-2.4.1-layout.patch index b1dcf5c..57cf13b 100644 --- a/httpd-2.4.1-layout.patch +++ b/httpd-2.4.1-layout.patch @@ -23,7 +23,7 @@ + cgidir: /var/www/cgi-bin + includedir: ${prefix}/include/httpd + localstatedir: /var -+ runtimedir: ${localstatedir}/run/httpd ++ runtimedir: /run/httpd + logfiledir: ${localstatedir}/log/httpd + proxycachedir: ${localstatedir}/cache/httpd +</Layout> diff --git a/httpd.mpm.xml b/httpd.mpm.xml deleted file mode 100644 index 8096f0f..0000000 --- a/httpd.mpm.xml +++ /dev/null @@ -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> - @@ -8,7 +8,7 @@ Summary: Apache HTTP Server Name: httpd Version: 2.4.2 -Release: 14%{?dist} +Release: 15%{?dist} URL: http://httpd.apache.org/ Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2 Source1: index.html @@ -281,9 +281,9 @@ install -m 644 -p $RPM_SOURCE_DIR/httpd.sysconf \ $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/httpd # 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 \ - $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/httpd.conf + $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/httpd.conf # for holding mod_dav lock database mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/dav @@ -336,7 +336,7 @@ ln -s ../../pixmaps/poweredby.png \ # symlinks for /etc/httpd 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 # 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/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/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 \ > $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 %config(noreplace) %{_sysconfdir}/sysconfig/httpd -%config %{_sysconfdir}/tmpfiles.d/httpd.conf +%{_prefix}/lib/tmpfiles.d/httpd.conf %{_sbindir}/ht* %{_sbindir}/fcgistarter @@ -515,7 +515,7 @@ rm -rf $RPM_BUILD_ROOT %dir %{docroot}/cgi-bin %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,apache,apache) %dir %{_localstatedir}/lib/dav %attr(0700,apache,apache) %dir %{_localstatedir}/cache/httpd @@ -567,6 +567,11 @@ rm -rf $RPM_BUILD_ROOT %{_sysconfdir}/rpm/macros.httpd %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 - fix htdbm/htpasswd crash on crypt() failure (#818684) diff --git a/httpd.tmpfiles b/httpd.tmpfiles index 0cad373..49be6b8 100644 --- a/httpd.tmpfiles +++ b/httpd.tmpfiles @@ -1 +1 @@ -d /var/run/httpd 710 root apache +d /run/httpd 710 root apache |
