summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcvsdist <cvsdist@fedoraproject.org>2004-09-09 06:17:21 +0000
committercvsdist <cvsdist@fedoraproject.org>2004-09-09 06:17:21 +0000
commit3ebc88dfd083826ba49824536f9f5e7145d67836 (patch)
tree7519e7da0497391db7f95e4b80cfc4a94146d9aa
parent6356941d7174ac4cb94ba9bb2d6fe71849128384 (diff)
downloadhttpd-3ebc88dfd083826ba49824536f9f5e7145d67836.tar.gz
httpd-3ebc88dfd083826ba49824536f9f5e7145d67836.tar.xz
httpd-3ebc88dfd083826ba49824536f9f5e7145d67836.zip
auto-import httpd-2.0.48-16.ent from httpd-2.0.48-16.ent.src.rpmhttpd-2_0_48-16_ent
-rwxr-xr-xhttpd.init10
-rw-r--r--httpd.spec71
-rw-r--r--index.html12
-rw-r--r--migration.xml2
4 files changed, 75 insertions, 20 deletions
diff --git a/httpd.init b/httpd.init
index cf65f48..698c66f 100755
--- a/httpd.init
+++ b/httpd.init
@@ -29,6 +29,8 @@ INITLOG_ARGS=""
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
+pidfile=${PIDFILE-/var/run/httpd.pid}
+lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0
# check for 1.3 configuration
@@ -57,7 +59,7 @@ start() {
daemon $httpd $OPTIONS
RETVAL=$?
echo
- [ $RETVAL = 0 ] && touch /var/lock/subsys/httpd
+ [ $RETVAL = 0 ] && touch ${lockfile}
return $RETVAL
}
stop() {
@@ -65,7 +67,7 @@ stop() {
killproc $httpd
RETVAL=$?
echo
- [ $RETVAL = 0 ] && rm -f /var/lock/subsys/httpd /var/run/httpd.pid
+ [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
echo -n $"Reloading $prog: "
@@ -92,7 +94,7 @@ case "$1" in
start
;;
condrestart)
- if [ -f /var/run/httpd.pid ] ; then
+ if [ -f ${pidfile} ] ; then
stop
start
fi
@@ -101,7 +103,7 @@ case "$1" in
reload
;;
graceful|help|configtest|fullstatus)
- $apachectl $@
+ $apachectl $OPTIONS $@
RETVAL=$?
;;
*)
diff --git a/httpd.spec b/httpd.spec
index f506764..580c9de 100644
--- a/httpd.spec
+++ b/httpd.spec
@@ -1,11 +1,13 @@
%define contentdir /var/www
%define suexec_caller apache
%define mmn 20020903
+%define vstring Red Hat
+%define distro Red Hat Enterprise Linux
Summary: Apache HTTP Server
Name: httpd
Version: 2.0.48
-Release: 10
+Release: 16.ent
URL: http://httpd.apache.org/
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
Source1: index.html
@@ -13,6 +15,7 @@ Source3: httpd.logrotate
Source4: httpd.init
Source6: powered_by.gif
Source7: powered_by_fedora.png
+Source8: powered_by_rh.png
Source10: httpd.conf
Source11: ssl.conf
Source12: welcome.conf
@@ -37,7 +40,6 @@ Patch9: httpd-2.0.48-vpathinc.patch
Patch20: httpd-2.0.45-encode.patch
Patch21: httpd-2.0.45-davfs.patch
Patch22: httpd-2.0.45-davetag.patch
-Patch23: httpd-headusage.patch
Patch24: httpd-2.0.47-sslcleanup.patch
Patch25: httpd-2.0.47-ldapshm.patch
Patch26: httpd-2.0.46-shmcb.patch
@@ -54,6 +56,10 @@ Patch36: httpd-2.0.48-sslvars.patch
Patch37: httpd-2.0.48-include.patch
Patch38: httpd-2.0.48-autoindex.patch
Patch39: httpd-2.0.48-proxy11.patch
+Patch40: httpd-2.0.48-sslpphrase.patch
+Patch41: httpd-2.0.48-worker.patch
+Patch42: httpd-2.0.46-davbadfrag.patch
+Patch43: httpd-2.0.46-dav401dest.patch
# Features/functional changes
Patch70: httpd-2.0.48-release.patch
Patch71: httpd-2.0.40-xfsz.patch
@@ -68,6 +74,9 @@ Patch79: httpd-2.0.48-sslstatus.patch
Patch80: httpd-2.0.48-corelimit.patch
Patch81: httpd-2.0.46-rolog.patch
Patch82: httpd-2.0.48-distcache.patch
+Patch83: httpd-2.0.48-debuglog.patch
+Patch84: httpd-2.0.48-abench.patch
+Patch85: httpd-2.0.48-fdsetsize.patch
# Security fixes
Patch120: httpd-2.0.48-CAN-2003-0020.patch
# Documentation fixes
@@ -143,7 +152,6 @@ Security (TLS) protocols.
%patch20 -p1
%patch21 -p1 -b .davfs
%patch22 -p1 -b .davetag
-%patch23 -p1 -b .head
%patch24 -p1 -b .sslcleanup
%patch25 -p1 -b .ldapshm
%patch26 -p1 -b .shmcb
@@ -160,6 +168,10 @@ Security (TLS) protocols.
%patch37 -p1 -b .include
%patch38 -p1 -b .autoindex
%patch39 -p1 -b .proxy11
+%patch40 -p1 -b .sslpphrase
+%patch41 -p1 -b .worker
+%patch42 -p1 -b .davbadfrag
+%patch43 -p1 -b .dav401dest
%patch71 -p0 -b .xfsz
%patch72 -p0 -b .pod
@@ -173,16 +185,19 @@ Security (TLS) protocols.
%patch80 -p1 -b .corelimit
%patch81 -p1 -b .rolog
%patch82 -p1 -b .distcache
+%patch83 -p1 -b .debuglog
+%patch84 -p1 -b .abench
+%patch85 -p1 -b .fdsetsize
%patch120 -p1 -b .can0020
%patch170 -p1 -b .manpages
# Patch in vendor/release string
-sed "s/@RELEASE@/Fedora/" < %{PATCH70} | patch -p1
+sed "s/@RELEASE@/%{vstring}/" < %{PATCH70} | patch -p1
# Safety check: prevent build if defined MMN does not equal upstream MMN.
-vmmn=`echo MODULE_MAGIC_NUMBER_MAJOR | cpp -include \`pwd\`/include/ap_mmn.h | sed -n '/^2/p'`
+vmmn=`echo MODULE_MAGIC_NUMBER_MAJOR | cpp -include include/ap_mmn.h | sed -n '/^2/p'`
if test "x${vmmn}" != "x%{mmn}"; then
: Error: Upstream MMN is now ${vmmn}, packaged MMN is %{mmn}.
: Update the mmn macro and rebuild.
@@ -191,7 +206,7 @@ fi
# Conditionally enable PIE support
if echo 'static int foo[30000]; int main () { return 0; }' |
- gcc -pie -fpie -O2 -xc - -o pietest 2>/dev/null &&
+ gcc -pie -fpie -O2 -xc - -o pietest &&
./pietest; then
%patch6 -p1 -b .pie
: PIE support enabled
@@ -199,10 +214,16 @@ else
: WARNING: PIE support not enabled
fi
+: Building for '%{distro}' with MMN %{mmn} and vendor string '%{vstring}'
+
%build
# regenerate configure scripts
./buildconf
+# Limit size of CHANGES to recent history
+sed '/Changes with Apache MPM/,$d' < CHANGES > CHANGES.new
+mv -f CHANGES.new CHANGES
+
# Before configure; fix location of build dir in generated apxs
%{__perl} -pi -e "s:\@exp_installbuilddir\@:%{_libdir}/httpd/build:g" \
support/apxs.in
@@ -213,8 +234,9 @@ fi
# forcibly prevent use of bundled apr, apr-util
rm -rf srclib/{apr,apr-util}
-# build the migration guide
-xmlto --skip-validation -x $RPM_SOURCE_DIR/html.xsl html-nochunks $RPM_SOURCE_DIR/migration.xml
+# Build the migration guide
+sed 's/@DISTRO@/%{distro}/' < $RPM_SOURCE_DIR/migration.xml > migration.xml
+xmlto --skip-validation -x $RPM_SOURCE_DIR/html.xsl html-nochunks migration.xml
cp $RPM_SOURCE_DIR/migration.css . # make %%doc happy
CFLAGS="$RPM_OPT_FLAGS -DSSL_EXPERIMENTAL_ENGINE"
@@ -346,6 +368,7 @@ ln -s ../../../..${apr_libtool} $RPM_BUILD_ROOT%{_libdir}/httpd/build/libtool
sed -e "s|%{contentdir}/build|%{_libdir}/httpd/build|g" \
-e "/AP_LIBS/d" -e "/abs_srcdir/d" \
-e "/^LIBTOOL/s|/bin/sh /[^ ]*/libtool|/bin/sh ${apr_libtool}|" \
+ -e "/^installbuilddir/s| = .*$| = /etc/httpd/build|" \
-e "s|^EXTRA_INCLUDES.*$|EXTRA_INCLUDES = -I\$(includedir) -I\$(APR_INCLUDEDIR) -I%{_includedir}/openssl|g" \
< prefork/build/config_vars.mk \
> $RPM_BUILD_ROOT%{_libdir}/httpd/build/config_vars.mk
@@ -369,6 +392,8 @@ install -m 644 $RPM_SOURCE_DIR/powered_by.gif \
$RPM_BUILD_ROOT%{contentdir}/icons
install -m 644 $RPM_SOURCE_DIR/powered_by_fedora.png \
$RPM_BUILD_ROOT%{contentdir}/icons
+install -m 644 $RPM_SOURCE_DIR/powered_by_rh.png \
+ $RPM_BUILD_ROOT%{contentdir}/icons
# logs
rmdir $RPM_BUILD_ROOT%{_sysconfdir}/httpd/logs
@@ -444,7 +469,6 @@ if [ $1 = 0 ]; then
fi
%post -n mod_ssl
-/sbin/ldconfig ### is this needed?
umask 077
if [ ! -f %{_sysconfdir}/httpd/conf/ssl.key/server.key ] ; then
@@ -560,6 +584,35 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/httpd/build/libtool
%changelog
+* Thu Feb 26 2004 Joe Orton <jorton@redhat.com> 2.0.48-16.ent
+- rebuild
+
+* Mon Feb 23 2004 Joe Orton <jorton@redhat.com> 2.0.48-16
+- fix apxs -q installbuilddir
+- really update to ab from HEAD
+- remove check that accept() returns an fd < FD_SETSIZE
+
+* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 2.0.48-15
+- rebuilt
+
+* Tue Feb 3 2004 Joe Orton <jorton@redhat.com> 2.0.48-14
+- mod_dav: fix 401 on destination and reject unescaped fragment in URI
+- remove redundant ldconfig invocation from mod_ssl %%post
+- remove unnecessary -headusage patch
+
+* Fri Jan 30 2004 Joe Orton <jorton@redhat.com> 2.0.48-13
+- allow further customisation of init script (Peter Bieringer, #114619)
+- worker fixes from upstream
+- use basename(filename) in APLOG_MARK to reduce noise levels at
+ "LogLevel debug"
+
+* Wed Jan 28 2004 Joe Orton <jorton@redhat.com> 2.0.48-12
+- mod_ssl: cosmetic tweaks for pass phrase prompting
+- simplify rebranding a little
+
+* Tue Jan 27 2004 Joe Orton <jorton@redhat.com> 2.0.48-11
+- trim pre-2.0 history from CHANGES to limit size
+
* Tue Jan 27 2004 Joe Orton <jorton@redhat.com> 2.0.48-10
- update to ab from HEAD
- remove dbmmanage man page (part of #114080)
diff --git a/index.html b/index.html
index 6f9033f..b3769b8 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <title>Test Page for the Apache HTTP Server on Fedora Core</title>
+ <title>Test Page for the Apache HTTP Server on Red Hat Enterprise Linux</title>
<style type="text/css">
/*<![CDATA[*/
@@ -27,7 +27,7 @@
text-align: center;
margin: 0;
padding: 0.6em 2em 0.4em;
- background-color: #22437f;
+ background-color: #900;
color: #fff;
font-weight: normal;
font-size: 1.75em;
@@ -88,7 +88,7 @@
</head>
<body>
- <h1>Fedora Core <strong>Test Page</strong></h1>
+ <h1>Red Hat Enterprise Linux <strong>Test Page</strong></h1>
<div class="content">
<div class="content-middle">
@@ -106,7 +106,7 @@
<p>For example, if you experienced problems while visiting www.example.com, you should send e-mail to "webmaster@example.com".</p>
- <p>For information on Fedora Core, please visit the <a href="http://fedora.redhat.com/">Fedora Project website</a>.</p>
+ <p>For information on Red Hat Enterprise Linux, please visit the <a href="http://www.redhat.com/">Red Hat, Inc. website</a>. The documentation for Red Hat Enterprise Linux is <a href="http://www.redhat.com/docs/manuals/enterprise/">available on the Red Hat, Inc. website</a>.</p>
<hr />
</div>
@@ -116,9 +116,9 @@
<p>You may now add content to the directory <tt>/var/www/html/</tt>. Note that until you do so, people visiting your website will see this page, and not your content. To prevent this page from ever being used, follow the instructions in the file <tt>/etc/httpd/conf.d/welcome.conf</tt>.</p>
<div class="logos">
- <p>You are free to use the images below on Apache and Fedora Core powered HTTP servers. Thanks for using Apache and Fedora Core!</p>
+ <p>You are free to use the images below on Apache and Red Hat powered HTTP servers. Thanks for using Apache and Red Hat Enterprise Linux!</p>
- <p><a href="http://httpd.apache.org/"><img src="/icons/apache_pb2.gif" alt="[ Powered by Apache ]"/></a> <a href="http://fedora.redhat.com/"><img src="/icons/powered_by_fedora.png" alt="[ Powered by Fedora Core ]" width="88" height="31" /></a></p>
+ <p><a href="http://httpd.apache.org/"><img src="/icons/apache_pb2.gif" alt="[ Powered by Apache ]"/></a> <a href="http://www.redhat.com/"><img src="/icons/powered_by_rh.png" alt="[ Powered by Red Hat ]" width="88" height="31" /></a></p>
</div>
</div>
</div>
diff --git a/migration.xml b/migration.xml
index 5face4c..1c4525c 100644
--- a/migration.xml
+++ b/migration.xml
@@ -16,7 +16,7 @@
<!ENTITY htdbm "<command>htdbm</command>">
<!ENTITY dbmmanage "<command>dbmmanage</command>">
-<!ENTITY distro "Fedora Core">
+<!ENTITY distro "@DISTRO@">
<!ENTITY prefork "<emphasis>prefork</emphasis>">
<!ENTITY worker "<emphasis>worker</emphasis>">