cvsdist 3cbd43b
%define contentdir /var/www
cvsdist 3cbd43b
%define suexec_caller apache
96e0b33
%define mmn 20051115
805286c
%define vstring Fedora
cvsdist f8e1fe3
cvsdist 3cbd43b
Summary: Apache HTTP Server
cvsdist 3cbd43b
Name: httpd
cd4fdd8
Version: 2.2.6
cd4fdd8
Release: 2
cvsdist 3cbd43b
URL: http://httpd.apache.org/
cvsdist c704917
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
cvsdist 3cbd43b
Source1: index.html
cvsdist 3cbd43b
Source3: httpd.logrotate
cvsdist 3cbd43b
Source4: httpd.init
cvsdist e9bfb00
Source5: httpd.sysconf
cvsdist d48e904
Source7: powered_by_fedora.png
cvsdist 3cbd43b
Source10: httpd.conf
cvsdist 3cbd43b
Source11: ssl.conf
cvsdist d48e904
Source12: welcome.conf
cvsdist f8aafff
Source13: manual.conf
9f9ccbc
Source14: proxy_ajp.conf
cvsdist f8e1fe3
# Documentation
cvsdist f8e1fe3
Source33: README.confd
cvsdist 3cbd43b
# build/scripts patches
96e0b33
Patch1: httpd-2.1.10-apctl.patch
96e0b33
Patch2: httpd-2.1.10-apxs.patch
96e0b33
Patch3: httpd-2.0.45-deplibs.patch
96e0b33
Patch4: httpd-2.1.10-disablemods.patch
96e0b33
Patch5: httpd-2.1.10-layout.patch
cvsdist 6356941
# Features/functional changes
96e0b33
Patch20: httpd-2.0.48-release.patch
96e0b33
Patch21: httpd-2.0.40-xfsz.patch
96e0b33
Patch22: httpd-2.1.10-pod.patch
96e0b33
Patch23: httpd-2.0.45-export.patch
96e0b33
Patch24: httpd-2.0.48-corelimit.patch
96e0b33
Patch25: httpd-2.0.54-selinux.patch
96e0b33
# Bug fixes
bc53791
Patch54: httpd-2.2.0-authnoprov.patch
cd4fdd8
Patch55: httpd-2.2.4-oldflush.patch
073d591
License: ASL 2.0
cvsdist 3cbd43b
Group: System Environment/Daemons
47c8208
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
13698f2
BuildRequires: autoconf, perl, pkgconfig, findutils, ed
32dffac
BuildRequires: db4-devel, expat-devel, zlib-devel, libselinux-devel
6401925
BuildRequires: apr-devel >= 1.2.0, apr-util-devel >= 1.2.0, pcre-devel >= 5.0
073d591
Requires: initscripts >= 8.36, /etc/mime.types
06872c8
Obsoletes: httpd-suexec
47c8208
Requires(pre): /usr/sbin/useradd
47c8208
Requires(post): chkconfig
cvsdist 3cbd43b
Provides: webserver
935b958
Provides: mod_dav = %{version}-%{release}, httpd-suexec = %{version}-%{release}
cvsdist 6af796e
Provides: httpd-mmn = %{mmn}
935b958
Obsoletes: apache, secureweb, mod_dav, mod_gzip, stronghold-apache
935b958
Obsoletes: stronghold-htdocs, mod_put, mod_roaming
cvsdist d4ea4ed
Conflicts: pcre < 4.0
8499915
Requires: httpd-tools = %{version}-%{release}
cvsdist 3cbd43b
cvsdist 3cbd43b
%description
0f8eb18
The Apache HTTP Server is a powerful, efficient, and extensible
0f8eb18
web server.
cvsdist 3cbd43b
cvsdist 3cbd43b
%package devel
cvsdist 3cbd43b
Group: Development/Libraries
8499915
Summary: Development interfaces for the Apache HTTP server
cvsdist 6356941
Obsoletes: secureweb-devel, apache-devel, stronghold-apache-devel
c1d7519
Requires: apr-devel, apr-util-devel, pkgconfig
9f7341d
Requires: httpd = %{version}-%{release}
cvsdist 3cbd43b
cvsdist 3cbd43b
%description devel
cvsdist 3cbd43b
The httpd-devel package contains the APXS binary and other files
7c0f3e4
that you need to build Dynamic Shared Objects (DSOs) for the
7c0f3e4
Apache HTTP Server.
cvsdist 3cbd43b
cvsdist 3cbd43b
If you are installing the Apache HTTP server and you want to be
cvsdist 3cbd43b
able to compile or develop additional modules for Apache, you need
cvsdist 3cbd43b
to install this package.
cvsdist 3cbd43b
cvsdist 3cbd43b
%package manual
cvsdist 3cbd43b
Group: Documentation
935b958
Summary: Documentation for the Apache HTTP server
9f7341d
Requires: httpd = %{version}-%{release}
cvsdist 3cbd43b
Obsoletes: secureweb-manual, apache-manual
cvsdist 3cbd43b
cvsdist 3cbd43b
%description manual
cvsdist 3cbd43b
The httpd-manual package contains the complete manual and
cvsdist 3cbd43b
reference guide for the Apache HTTP server. The information can
9f9ccbc
also be found at http://httpd.apache.org/docs/2.2/.
cvsdist 3cbd43b
8499915
%package tools
8499915
Group: System Environment/Daemons
8499915
Summary: Tools for use with the Apache HTTP Server
8499915
8499915
%description tools
8499915
The httpd-tools package contains tools which can be used with 
8499915
the Apache HTTP Server.
8499915
cvsdist 3cbd43b
%package -n mod_ssl
cvsdist 3cbd43b
Group: System Environment/Daemons
8499915
Summary: SSL/TLS module for the Apache HTTP Server
jbj b35049d
Epoch: 1
cvsdist 6356941
BuildRequires: openssl-devel, distcache-devel
6da3d31
Requires(post): openssl >= 0.9.7f-4, /bin/cat
9f7341d
Requires: httpd = 0:%{version}-%{release}, httpd-mmn = %{mmn}
cvsdist 6356941
Obsoletes: stronghold-mod_ssl
cvsdist 3cbd43b
cvsdist 3cbd43b
%description -n mod_ssl
cvsdist 3cbd43b
The mod_ssl module provides strong cryptography for the Apache Web
cvsdist 3cbd43b
server via the Secure Sockets Layer (SSL) and Transport Layer
cvsdist 3cbd43b
Security (TLS) protocols.
cvsdist 3cbd43b
cvsdist 3cbd43b
%prep
cvsdist 3cbd43b
%setup -q
cvsdist d4ea4ed
%patch1 -p1 -b .apctl
cvsdist 739d054
%patch2 -p1 -b .apxs
96e0b33
%patch3 -p1 -b .deplibs
96e0b33
%patch4 -p1 -b .disablemods
96e0b33
%patch5 -p1 -b .layout
96e0b33
96e0b33
%patch21 -p0 -b .xfsz
96e0b33
%patch22 -p1 -b .pod
96e0b33
%patch23 -p1 -b .export
96e0b33
%patch24 -p1 -b .corelimit
96e0b33
%patch25 -p1 -b .selinux
cvsdist 3cbd43b
bc53791
%patch54 -p1 -b .authnoprov
cd4fdd8
%patch55 -p1 -b .oldflush
73a46bb
cvsdist 6356941
# Patch in vendor/release string
96e0b33
sed "s/@RELEASE@/%{vstring}/" < %{PATCH20} | patch -p1
cvsdist 2d6a2e5
cvsdist f8e1fe3
# Safety check: prevent build if defined MMN does not equal upstream MMN.
cvsdist 3ebc88d
vmmn=`echo MODULE_MAGIC_NUMBER_MAJOR | cpp -include include/ap_mmn.h | sed -n '/^2/p'`
cvsdist f8e1fe3
if test "x${vmmn}" != "x%{mmn}"; then
cvsdist f8e1fe3
   : Error: Upstream MMN is now ${vmmn}, packaged MMN is %{mmn}.
cvsdist f8e1fe3
   : Update the mmn macro and rebuild.
cvsdist f8e1fe3
   exit 1
cvsdist f8e1fe3
fi
cvsdist f8e1fe3
a980810
: Building with MMN %{mmn} and vendor string '%{vstring}'
cvsdist 3ebc88d
cvsdist 739d054
%build
cvsdist 436bfeb
# forcibly prevent use of bundled apr, apr-util, pcre
cvsdist 436bfeb
rm -rf srclib/{apr,apr-util,pcre}
cvsdist 436bfeb
cvsdist 3cbd43b
# regenerate configure scripts
cvsdist 436bfeb
autoheader && autoconf || exit 1
cvsdist 3cbd43b
cvsdist 3ebc88d
# Limit size of CHANGES to recent history
47c8208
echo '1,/Changes with Apache 2.0/wq' | ed CHANGES
cvsdist 3ebc88d
cvsdist f8e1fe3
# Before configure; fix location of build dir in generated apxs
cvsdist f8e1fe3
%{__perl} -pi -e "s:\@exp_installbuilddir\@:%{_libdir}/httpd/build:g" \
cvsdist f8e1fe3
	support/apxs.in
cvsdist f8e1fe3
cvsdist b895f53
CFLAGS=$RPM_OPT_FLAGS
21e3591
SH_LDFLAGS="-Wl,-z,relro"
21e3591
export CFLAGS SH_LDFLAGS
cvsdist f8e1fe3
e91269e
# Hard-code path to links to avoid unnecessary builddep
e91269e
export LYNX_PATH=/usr/bin/links
e91269e
cvsdist f8e1fe3
function mpmbuild()
cvsdist f8e1fe3
{
cvsdist f8e1fe3
mpm=$1; shift
cvsdist f8e1fe3
mkdir $mpm; pushd $mpm
cvsdist 6356941
../configure \
cvsdist 3cbd43b
 	--prefix=%{_sysconfdir}/httpd \
cvsdist 3cbd43b
 	--exec-prefix=%{_prefix} \
cvsdist 3cbd43b
 	--bindir=%{_bindir} \
cvsdist 3cbd43b
 	--sbindir=%{_sbindir} \
cvsdist 3cbd43b
 	--mandir=%{_mandir} \
cvsdist f8e1fe3
	--libdir=%{_libdir} \
cvsdist 3cbd43b
	--sysconfdir=%{_sysconfdir}/httpd/conf \
cvsdist 3cbd43b
	--includedir=%{_includedir}/httpd \
cvsdist 3cbd43b
	--libexecdir=%{_libdir}/httpd/modules \
cvsdist 3cbd43b
	--datadir=%{contentdir} \
cvsdist d48e904
        --with-installbuilddir=%{_libdir}/httpd/build \
cvsdist f8e1fe3
	--with-mpm=$mpm \
cvsdist d48e904
        --with-apr=%{_prefix} --with-apr-util=%{_prefix} \
cvsdist 3cbd43b
	--enable-suexec --with-suexec \
cvsdist 3cbd43b
	--with-suexec-caller=%{suexec_caller} \
cvsdist 3cbd43b
	--with-suexec-docroot=%{contentdir} \
cvsdist 3cbd43b
	--with-suexec-logfile=%{_localstatedir}/log/httpd/suexec.log \
cvsdist 3cbd43b
	--with-suexec-bin=%{_sbindir}/suexec \
cvsdist d48e904
	--with-suexec-uidmin=500 --with-suexec-gidmin=100 \
96e0b33
        --enable-pie \
96e0b33
        --with-pcre \
cvsdist f8e1fe3
	$*
cvsdist f8e1fe3
cvsdist f8e1fe3
make %{?_smp_mflags}
cvsdist f8e1fe3
popd
cvsdist f8e1fe3
}
cvsdist f8e1fe3
96e0b33
# Build everything and the kitchen sink with the prefork build
96e0b33
mpmbuild prefork \
96e0b33
        --enable-mods-shared=all \
cvsdist 6356941
	--enable-ssl --with-ssl --enable-distcache \
96e0b33
	--enable-proxy \
cvsdist d48e904
        --enable-cache --enable-mem-cache \
cvsdist d48e904
        --enable-file-cache --enable-disk-cache \
96e0b33
        --enable-ldap --enable-authnz-ldap \
96e0b33
        --enable-cgid \
96e0b33
        --enable-authn-anon --enable-authn-alias
cvsdist f8e1fe3
96e0b33
# For the other MPMs, just build httpd and no optional modules
96e0b33
mpmbuild worker --enable-modules=none
96e0b33
#mpmbuild event --enable-modules=none
cvsdist f8e1fe3
cvsdist 3cbd43b
%install
cvsdist 3cbd43b
rm -rf $RPM_BUILD_ROOT
cvsdist 3cbd43b
cvsdist 3cbd43b
# Classify ab and logresolve as section 1 commands, as they are in /usr/bin
cvsdist 3cbd43b
mv docs/man/ab.8 docs/man/ab.1
cvsdist 6356941
mv docs/man/logresolve.8 docs/man/logresolve.1
cvsdist 3cbd43b
cvsdist f8e1fe3
pushd prefork
cvsdist 3cbd43b
make DESTDIR=$RPM_BUILD_ROOT install
cvsdist f8e1fe3
popd
cvsdist 3cbd43b
96e0b33
# install alternative MPMs
96e0b33
install -m 755 worker/httpd $RPM_BUILD_ROOT%{_sbindir}/httpd.worker
96e0b33
#install -m 755 event/httpd $RPM_BUILD_ROOT%{_sbindir}/httpd.event
7c0f3e4
cvsdist 3cbd43b
# install conf file/directory
cvsdist 3cbd43b
mkdir $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
cvsdist 3cbd43b
install -m 644 $RPM_SOURCE_DIR/README.confd \
cvsdist f8aafff
    $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/README
9f9ccbc
for f in ssl.conf welcome.conf manual.conf proxy_ajp.conf; do
cvsdist f8aafff
  install -m 644 $RPM_SOURCE_DIR/$f $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/$f
cvsdist f8aafff
done
cvsdist 3cbd43b
cvsdist 3cbd43b
rm $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf/*.conf
cvsdist 3cbd43b
install -m 644 $RPM_SOURCE_DIR/httpd.conf \
cvsdist 3cbd43b
   $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf/httpd.conf
cvsdist 3cbd43b
cvsdist e9bfb00
mkdir $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
cvsdist e9bfb00
install -m 644 $RPM_SOURCE_DIR/httpd.sysconf \
cvsdist e9bfb00
   $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/httpd
cvsdist e9bfb00
cvsdist 3cbd43b
# for holding mod_dav lock database
cvsdist 3cbd43b
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/dav
cvsdist 3cbd43b
cvsdist f13b38c
# create a prototype session cache
cvsdist f13b38c
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/mod_ssl
cvsdist f13b38c
touch $RPM_BUILD_ROOT%{_localstatedir}/cache/mod_ssl/scache.{dir,pag,sem}
cvsdist f13b38c
cvsdist d48e904
# create cache root
cvsdist d48e904
mkdir $RPM_BUILD_ROOT%{_localstatedir}/cache/mod_proxy
cvsdist d48e904
cvsdist 3cbd43b
# move utilities to /usr/bin
cvsdist 3cbd43b
mv $RPM_BUILD_ROOT%{_sbindir}/{ab,htdbm,logresolve,htpasswd,htdigest} \
cvsdist 3cbd43b
   $RPM_BUILD_ROOT%{_bindir}
cvsdist 3cbd43b
cvsdist 6af796e
# Make the MMN accessible to module packages
cvsdist 6af796e
echo %{mmn} > $RPM_BUILD_ROOT%{_includedir}/httpd/.mmn
cvsdist 6af796e
cvsdist 3cbd43b
# docroot
cvsdist 3cbd43b
mkdir $RPM_BUILD_ROOT%{contentdir}/html
cvsdist 3cbd43b
install -m 644 $RPM_SOURCE_DIR/index.html \
cvsdist 3cbd43b
	$RPM_BUILD_ROOT%{contentdir}/error/noindex.html
cvsdist d48e904
cvsdist d48e904
# remove manual sources
cvsdist d48e904
find $RPM_BUILD_ROOT%{contentdir}/manual \( \
cvsdist d48e904
    -name \*.xml -o -name \*.xml.* -o -name \*.ent -o -name \*.xsl -o -name \*.dtd \
cvsdist d48e904
    \) -print0 | xargs -0 rm -f
cvsdist 3cbd43b
2724cce
# Strip the manual down just to English and replace the typemaps with flat files:
2724cce
set +x
2724cce
for f in `find $RPM_BUILD_ROOT%{contentdir}/manual -name \*.html -type f`; do
2724cce
   if test -f ${f}.en; then
2724cce
      cp ${f}.en ${f}
2724cce
      rm ${f}.*
2724cce
   fi
2724cce
done
2724cce
set -x
2724cce
cvsdist d48e904
install -m 644 $RPM_SOURCE_DIR/powered_by_fedora.png \
cvsdist d48e904
	$RPM_BUILD_ROOT%{contentdir}/icons
cvsdist 3cbd43b
cvsdist 3cbd43b
# logs
cvsdist 3cbd43b
rmdir $RPM_BUILD_ROOT%{_sysconfdir}/httpd/logs
cvsdist 3cbd43b
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/httpd
cvsdist 3cbd43b
cvsdist 3cbd43b
# symlinks for /etc/httpd
cvsdist 3cbd43b
ln -s ../..%{_localstatedir}/log/httpd $RPM_BUILD_ROOT/etc/httpd/logs
cvsdist 3cbd43b
ln -s ../..%{_localstatedir}/run $RPM_BUILD_ROOT/etc/httpd/run
cvsdist 3cbd43b
ln -s ../..%{_libdir}/httpd/modules $RPM_BUILD_ROOT/etc/httpd/modules
cvsdist 3cbd43b
cvsdist 3cbd43b
# install SYSV init stuff
cvsdist 3cbd43b
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
cvsdist 3cbd43b
install -m755 $RPM_SOURCE_DIR/httpd.init \
cvsdist 3cbd43b
	$RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
cvsdist 3cbd43b
cvsdist 3cbd43b
# install log rotation stuff
cvsdist 3cbd43b
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
cvsdist 3cbd43b
install -m644 $RPM_SOURCE_DIR/httpd.logrotate \
cvsdist 3cbd43b
	$RPM_BUILD_ROOT/etc/logrotate.d/httpd
cvsdist 3cbd43b
cvsdist 3cbd43b
# fix man page paths
cvsdist 3cbd43b
sed -e "s|/usr/local/apache2/conf/httpd.conf|/etc/httpd/conf/httpd.conf|" \
cvsdist 3cbd43b
    -e "s|/usr/local/apache2/conf/mime.types|/etc/mime.types|" \
cvsdist 3cbd43b
    -e "s|/usr/local/apache2/conf/magic|/etc/httpd/conf/magic|" \
cvsdist 3cbd43b
    -e "s|/usr/local/apache2/logs/error_log|/var/log/httpd/error_log|" \
cvsdist 3cbd43b
    -e "s|/usr/local/apache2/logs/access_log|/var/log/httpd/access_log|" \
cvsdist 3cbd43b
    -e "s|/usr/local/apache2/logs/httpd.pid|/var/run/httpd.pid|" \
cvsdist 3cbd43b
    -e "s|/usr/local/apache2|/etc/httpd|" < docs/man/httpd.8 \
cvsdist 3cbd43b
  > $RPM_BUILD_ROOT%{_mandir}/man8/httpd.8
cvsdist 3cbd43b
48593e5
# Make ap_config_layout.h libdir-agnostic
48593e5
sed -i '/.*DEFAULT_..._LIBEXECDIR/d;/DEFAULT_..._INSTALLBUILDDIR/d' \
48593e5
    $RPM_BUILD_ROOT%{_includedir}/httpd/ap_config_layout.h
48593e5
e91269e
# Fix path to instdso in special.mk
e91269e
sed -i '/instdso/s,top_srcdir,top_builddir,' \
e91269e
    $RPM_BUILD_ROOT%{_libdir}/httpd/build/special.mk
e91269e
cvsdist f8e1fe3
# Remove unpackaged files
cvsdist d48e904
rm -f $RPM_BUILD_ROOT%{_libdir}/*.exp \
cvsdist f8e1fe3
      $RPM_BUILD_ROOT/etc/httpd/conf/mime.types \
cvsdist f8e1fe3
      $RPM_BUILD_ROOT%{_libdir}/httpd/modules/*.exp \
cvsdist 2d6a2e5
      $RPM_BUILD_ROOT%{_libdir}/httpd/build/config.nice \
cvsdist f8e1fe3
      $RPM_BUILD_ROOT%{_bindir}/ap?-config \
cvsdist f8e1fe3
      $RPM_BUILD_ROOT%{_sbindir}/{checkgid,dbmmanage,envvars*} \
cvsdist f8e1fe3
      $RPM_BUILD_ROOT%{contentdir}/htdocs/* \
cvsdist 6356941
      $RPM_BUILD_ROOT%{_mandir}/man1/dbmmanage.* \
cvsdist 6356941
      $RPM_BUILD_ROOT%{contentdir}/cgi-bin/*
cvsdist f8e1fe3
96e0b33
rm -rf $RPM_BUILD_ROOT/etc/httpd/conf/{original,extra}
96e0b33
cvsdist 6356941
# Make suexec a+rw so it can be stripped.  %%files lists real permissions
cvsdist 6356941
chmod 755 $RPM_BUILD_ROOT%{_sbindir}/suexec
cvsdist 6356941
cvsdist 3cbd43b
%pre
cvsdist 3cbd43b
# Add the "apache" user
cvsdist 3cbd43b
/usr/sbin/useradd -c "Apache" -u 48 \
cvsdist 3cbd43b
	-s /sbin/nologin -r -d %{contentdir} apache 2> /dev/null || :
cvsdist 3cbd43b
cvsdist 3cbd43b
%post
cvsdist 3cbd43b
# Register the httpd service
cvsdist 3cbd43b
/sbin/chkconfig --add httpd
cvsdist 3cbd43b
cvsdist 3cbd43b
%preun
cvsdist 3cbd43b
if [ $1 = 0 ]; then
cvsdist 3cbd43b
	/sbin/service httpd stop > /dev/null 2>&1
cvsdist 3cbd43b
	/sbin/chkconfig --del httpd
cvsdist 3cbd43b
fi
cvsdist 3cbd43b
670541e
%define sslcert %{_sysconfdir}/pki/tls/certs/localhost.crt
670541e
%define sslkey %{_sysconfdir}/pki/tls/private/localhost.key
06872c8
cvsdist 3cbd43b
%post -n mod_ssl
cvsdist 3cbd43b
umask 077
cvsdist 3cbd43b
670541e
if [ ! -f %{sslkey} ] ; then
670541e
%{_bindir}/openssl genrsa -rand /proc/apm:/proc/cpuinfo:/proc/dma:/proc/filesystems:/proc/interrupts:/proc/ioports:/proc/pci:/proc/rtc:/proc/uptime 1024 > %{sslkey} 2> /dev/null
cvsdist 3cbd43b
fi
cvsdist 3cbd43b
cvsdist 3cbd43b
FQDN=`hostname`
cvsdist 3cbd43b
if [ "x${FQDN}" = "x" ]; then
cvsdist 3cbd43b
   FQDN=localhost.localdomain
cvsdist 3cbd43b
fi
cvsdist 3cbd43b
670541e
if [ ! -f %{sslcert} ] ; then
670541e
cat << EOF | %{_bindir}/openssl req -new -key %{sslkey} \
06872c8
         -x509 -days 365 -set_serial $RANDOM \
670541e
         -out %{sslcert} 2>/dev/null
cvsdist 3cbd43b
--
cvsdist 3cbd43b
SomeState
cvsdist 3cbd43b
SomeCity
cvsdist 3cbd43b
SomeOrganization
cvsdist 3cbd43b
SomeOrganizationalUnit
cvsdist 3cbd43b
${FQDN}
cvsdist 3cbd43b
root@${FQDN}
cvsdist 3cbd43b
EOF
cvsdist 3cbd43b
fi
cvsdist 3cbd43b
cvsdist d48e904
%check
cvsdist d48e904
# Check the built modules are all PIC
cvsdist d48e904
if readelf -d $RPM_BUILD_ROOT%{_libdir}/httpd/modules/*.so | grep TEXTREL; then
cvsdist d48e904
   : modules contain non-relocatable code
cvsdist d48e904
   exit 1
cvsdist d48e904
fi
cvsdist d48e904
96e0b33
# Verify that the same modules were built into the httpd binaries
439691b
./prefork/httpd -l | grep -v prefork > prefork.mods
96e0b33
for mpm in worker; do
96e0b33
  ./${mpm}/httpd -l | grep -v ${mpm} > ${mpm}.mods
96e0b33
  if ! diff -u prefork.mods ${mpm}.mods; then
96e0b33
    : Different modules built into httpd binaries, will not proceed
96e0b33
    exit 1
96e0b33
  fi
96e0b33
done
439691b
cvsdist 3cbd43b
%clean
cvsdist 3cbd43b
rm -rf $RPM_BUILD_ROOT
cvsdist 3cbd43b
cvsdist 3cbd43b
%files
cvsdist 3cbd43b
%defattr(-,root,root)
cvsdist 3cbd43b
cvsdist d01424a
%doc ABOUT_APACHE README CHANGES LICENSE VERSIONING NOTICE
cvsdist 3cbd43b
cvsdist 3cbd43b
%dir %{_sysconfdir}/httpd
cvsdist 3cbd43b
%{_sysconfdir}/httpd/modules
cvsdist 3cbd43b
%{_sysconfdir}/httpd/logs
cvsdist 3cbd43b
%{_sysconfdir}/httpd/run
cvsdist 3cbd43b
%dir %{_sysconfdir}/httpd/conf
a980810
%config(noreplace) %{_sysconfdir}/httpd/conf/httpd.conf
cvsdist d48e904
%config(noreplace) %{_sysconfdir}/httpd/conf.d/welcome.conf
9f9ccbc
%config(noreplace) %{_sysconfdir}/httpd/conf.d/proxy_ajp.conf
cvsdist 3cbd43b
%config(noreplace) %{_sysconfdir}/httpd/conf/magic
cvsdist 3cbd43b
cvsdist d48e904
%config(noreplace) %{_sysconfdir}/logrotate.d/httpd
47c8208
%{_sysconfdir}/rc.d/init.d/httpd
cvsdist 3cbd43b
cvsdist 3cbd43b
%dir %{_sysconfdir}/httpd/conf.d
cvsdist 3cbd43b
%{_sysconfdir}/httpd/conf.d/README
cvsdist 3cbd43b
cvsdist e9bfb00
%config(noreplace) %{_sysconfdir}/sysconfig/httpd
cvsdist e9bfb00
96e0b33
%{_sbindir}/ht*
cvsdist 3cbd43b
%{_sbindir}/apachectl
cvsdist 3cbd43b
%{_sbindir}/rotatelogs
06872c8
%attr(4510,root,%{suexec_caller}) %{_sbindir}/suexec
cvsdist 3cbd43b
cvsdist 3cbd43b
%dir %{_libdir}/httpd
cvsdist 3cbd43b
%dir %{_libdir}/httpd/modules
cvsdist 6356941
%{_libdir}/httpd/modules/mod*.so
cvsdist 6356941
%exclude %{_libdir}/httpd/modules/mod_ssl.so
cvsdist 3cbd43b
cvsdist 3cbd43b
%dir %{contentdir}
cvsdist 3cbd43b
%dir %{contentdir}/cgi-bin
cvsdist 3cbd43b
%dir %{contentdir}/html
cvsdist 3cbd43b
%dir %{contentdir}/icons
cvsdist d5ddf48
%dir %{contentdir}/error
cvsdist d5ddf48
%dir %{contentdir}/error/include
cvsdist 3cbd43b
%{contentdir}/icons/*
cvsdist d5ddf48
%{contentdir}/error/README
cvsdist d5ddf48
%{contentdir}/error/noindex.html
cvsdist d48e904
%config %{contentdir}/error/*.var
cvsdist d48e904
%config %{contentdir}/error/include/*.html
cvsdist 3cbd43b
cvsdist 3cbd43b
%attr(0700,root,root) %dir %{_localstatedir}/log/httpd
cvsdist 3cbd43b
%attr(0700,apache,apache) %dir %{_localstatedir}/lib/dav
cvsdist d48e904
%attr(0700,apache,apache) %dir %{_localstatedir}/cache/mod_proxy
cvsdist 3cbd43b
8499915
%{_mandir}/man8/*
cvsdist 6356941
%exclude %{_mandir}/man8/apxs.8*
cvsdist 3cbd43b
8499915
%files tools
8499915
%defattr(-,root,root)
8499915
%{_bindir}/*
8499915
%{_mandir}/man1/*
8499915
%doc LICENSE
8499915
cvsdist 3cbd43b
%files manual
cvsdist 3cbd43b
%defattr(-,root,root)
cvsdist 3cbd43b
%{contentdir}/manual
ab67633
%config %{_sysconfdir}/httpd/conf.d/manual.conf
cvsdist 3cbd43b
cvsdist 3cbd43b
%files -n mod_ssl
cvsdist 3cbd43b
%defattr(-,root,root)
cvsdist 3cbd43b
%{_libdir}/httpd/modules/mod_ssl.so
cvsdist 3cbd43b
%config(noreplace) %{_sysconfdir}/httpd/conf.d/ssl.conf
cvsdist f13b38c
%attr(0700,apache,root) %dir %{_localstatedir}/cache/mod_ssl
cvsdist f13b38c
%attr(0600,apache,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.dir
cvsdist f13b38c
%attr(0600,apache,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.pag
cvsdist f13b38c
%attr(0600,apache,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.sem
cvsdist 3cbd43b
cvsdist 3cbd43b
%files devel
cvsdist 3cbd43b
%defattr(-,root,root)
cvsdist 3cbd43b
%{_includedir}/httpd
cvsdist 3cbd43b
%{_sbindir}/apxs
cvsdist 3cbd43b
%{_mandir}/man8/apxs.8*
cvsdist 3cbd43b
%dir %{_libdir}/httpd/build
cvsdist 3cbd43b
%{_libdir}/httpd/build/*.mk
96e0b33
%{_libdir}/httpd/build/*.sh
cvsdist 3cbd43b
cvsdist 3cbd43b
%changelog
cd4fdd8
* Fri Sep  7 2007 Joe Orton <jorton@redhat.com> 2.2.6-2
cd4fdd8
- update to 2.2.6 (#250757, #282761)
cd4fdd8
6590dbb
* Sun Sep  2 2007 Joe Orton <jorton@redhat.com> 2.2.4-10
6590dbb
- rebuild for fixed APR
6590dbb
94757f9
* Wed Aug 22 2007 Joe Orton <jorton@redhat.com> 2.2.4-9
94757f9
- rebuild for expat soname bump
94757f9
073d591
* Tue Aug 21 2007 Joe Orton <jorton@redhat.com> 2.2.4-8
073d591
- fix License
073d591
- require /etc/mime.types (#249223)
073d591
f642b1a
* Thu Jul 26 2007 Joe Orton <jorton@redhat.com> 2.2.4-7
f642b1a
- drop -tools dependency on httpd (thanks to Matthias Saou)
f642b1a
8499915
* Wed Jul 25 2007 Joe Orton <jorton@redhat.com> 2.2.4-6
8499915
- split out utilities into -tools subpackage, based on patch
8499915
  by Jason Tibbs (#238257)
8499915
935b958
* Tue Jul 24 2007 Joe Orton <jorton@redhat.com> 2.2.4-5
935b958
- spec file cleanups: provide httpd-suexec, mod_dav; 
935b958
 don't obsolete mod_jk; drop trailing dots from Summaries
935b958
- init script
935b958
 * add LSB info header, support force-reload (#246944)
935b958
 * update description
935b958
 * drop 1.3 config check
935b958
 * pass $pidfile to daemon and pidfile everywhere
935b958
a980810
* Wed May  9 2007 Joe Orton <jorton@redhat.com> 2.2.4-4
a980810
- update welcome page branding
a980810
47c8208
* Tue Apr  3 2007 Joe Orton <jorton@redhat.com> 2.2.4-3
47c8208
- drop old triggers, old Requires, xmlto BR
47c8208
- use Requires(...) correctly 
47c8208
- use standard BuildRoot 
47c8208
- don't mark init script as config file
47c8208
- trim CHANGES further
47c8208
b7aa0f9
* Mon Mar 12 2007 Joe Orton <jorton@redhat.com> 2.2.4-2
b7aa0f9
- update to 2.2.4
b7aa0f9
- drop the migration guide (#223605)
b7aa0f9
e91269e
* Thu Dec  7 2006 Joe Orton <jorton@redhat.com> 2.2.3-8
e91269e
- fix path to instdso.sh in special.mk (#217677)
e91269e
- fix detection of links in "apachectl fullstatus"
e91269e
d4de774
* Tue Dec  5 2006 Joe Orton <jorton@redhat.com> 2.2.3-7
d4de774
- rebuild for libpq soname bump
d4de774
191e827
* Sat Nov 11 2006 Joe Orton <jorton@redhat.com> 2.2.3-6
191e827
- rebuild for BDB soname bump
191e827
9e0f41b
* Mon Sep 11 2006 Joe Orton <jorton@redhat.com> 2.2.3-5
9e0f41b
- updated "powered by Fedora" logo (#205573, Diana Fong)
9e0f41b
- tweak welcome page wording slightly (#205880)
9e0f41b
c7d3f56
* Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 2.2.3-4
c7d3f56
- rebuilt with latest binutils to pick up 64K -z commonpagesize on ppc*
c7d3f56
  (#203001)
c7d3f56
81d733c
* Thu Aug  3 2006 Joe Orton <jorton@redhat.com> 2.2.3-3
81d733c
- init: use killproc() delay to avoid race killing parent
81d733c
9cf9a14
* Fri Jul 28 2006 Joe Orton <jorton@redhat.com> 2.2.3-2
9cf9a14
- update to 2.2.3
9cf9a14
- trim %%changelog to >=2.0.52
9cf9a14
37e4a81
* Thu Jul 20 2006 Joe Orton <jorton@redhat.com> 2.2.2-8
37e4a81
- fix segfault on dummy connection failure at graceful restart (#199429)
37e4a81
8395bae
* Wed Jul 19 2006 Joe Orton <jorton@redhat.com> 2.2.2-7
8395bae
- fix "apxs -g"-generated Makefile
8395bae
- fix buildconf with autoconf 2.60
8395bae
8395bae
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.2.2-5.1
586390e
- rebuild
586390e
c1d7519
* Wed Jun  7 2006 Joe Orton <jorton@redhat.com> 2.2.2-5
c1d7519
- require pkgconfig for -devel (#194152)
c1d7519
- fixes for installed support makefiles (special.mk et al)
32dffac
- BR autoconf
c1d7519
48593e5
* Fri Jun  2 2006 Joe Orton <jorton@redhat.com> 2.2.2-4
48593e5
- make -devel package multilib-safe (#192686)
48593e5
21e3591
* Thu May 11 2006 Joe Orton <jorton@redhat.com> 2.2.2-3
21e3591
- build DSOs using -z relro linker flag
21e3591
d2bf1a2
* Wed May  3 2006 Joe Orton <jorton@redhat.com> 2.2.2-2
d2bf1a2
- update to 2.2.2
d2bf1a2
a29a19c
* Thu Apr  6 2006 Joe Orton <jorton@redhat.com> 2.2.0-6
a29a19c
- rebuild to pick up apr-util LDAP interface fix (#188073)
a29a19c
7d1c76a
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - (none):2.2.0-5.1.2
7d1c76a
- bump again for double-long bug on ppc(64)
7d1c76a
8caac9d
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - (none):2.2.0-5.1.1
8caac9d
- rebuilt for new gcc4.1 snapshot and glibc changes
8caac9d
bc53791
* Mon Feb  6 2006 Joe Orton <jorton@redhat.com> 2.2.0-5.1
bc53791
- mod_auth_basic/mod_authn_file: if no provider is configured,
bc53791
  and AuthUserFile is not configured, decline to handle authn
bc53791
  silently rather than failing noisily.
bc53791
73a46bb
* Fri Feb  3 2006 Joe Orton <jorton@redhat.com> 2.2.0-5
73a46bb
- mod_ssl: add security fix for CVE-2005-3357 (#177914)
73a46bb
- mod_imagemap: add security fix for CVE-2005-3352 (#177913)
73a46bb
- add fix for AP_INIT_* designated initializers with C++ compilers
73a46bb
- httpd.conf: enable HTMLTable in default IndexOptions
73a46bb
- httpd.conf: add more "redirect-carefully" matches for DAV clients
73a46bb
ab67633
* Thu Jan  5 2006 Joe Orton <jorton@redhat.com> 2.2.0-4
ab67633
- mod_proxy_ajp: fix Cookie handling (Mladen Turk, r358769)
ab67633
c27b75c
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
c27b75c
- rebuilt
c27b75c
2724cce
* Wed Dec  7 2005 Joe Orton <jorton@redhat.com> 2.2.0-3
2724cce
- strip manual to just English content
2724cce
9f9ccbc
* Mon Dec  5 2005 Joe Orton <jorton@redhat.com> 2.2.0-2
9f9ccbc
- don't strip C-L from HEAD responses (Greg Ames, #110552)
9f9ccbc
- load mod_proxy_balancer by default
9f9ccbc
- add proxy_ajp.conf to load/configure mod_proxy_ajp
9f9ccbc
- Obsolete mod_jk
9f9ccbc
- update docs URLs in httpd.conf/ssl.conf
9f9ccbc
96e0b33
* Fri Dec  2 2005 Joe Orton <jorton@redhat.com> 2.2.0-1
96e0b33
- update to 2.2.0
96e0b33
96e0b33
* Wed Nov 30 2005 Joe Orton <jorton@redhat.com> 2.1.10-2
96e0b33
- enable mod_authn_alias, mod_authn_anon
96e0b33
- update default httpd.conf
96e0b33
96e0b33
* Fri Nov 25 2005 Joe Orton <jorton@redhat.com> 2.1.10-1
96e0b33
- update to 2.1.10
96e0b33
- require apr >= 1.2.0, apr-util >= 1.2.0
96e0b33
9e6ce91
* Wed Nov  9 2005 Tomas Mraz <tmraz@redhat.com> 2.0.54-16
9e6ce91
- rebuilt against new openssl
9e6ce91
9d36ace
* Thu Nov  3 2005 Joe Orton <jorton@redhat.com> 2.0.54-15
9d36ace
- log notice giving SELinux context at startup if enabled
9d36ace
- drop SSLv2 and restrict default cipher suite in default
9d36ace
 SSL configuration
9d36ace
2a6347c
* Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 2.0.54-14
2a6347c
- mod_ssl: add security fix for SSLVerifyClient (CVE-2005-2700)
2a6347c
- add security fix for byterange filter DoS (CVE-2005-2728)
2a6347c
- add security fix for C-L vs T-E handling (CVE-2005-2088)
2a6347c
- mod_ssl: add security fix for CRL overflow (CVE-2005-1268)
2a6347c
- mod_ldap/mod_auth_ldap: add fixes from 2.0.x branch (upstream #34209 etc)
2a6347c
- add fix for dummy connection handling (#167425)
2a6347c
- mod_auth_digest: fix hostinfo comparison in CONNECT requests
2a6347c
- mod_include: fix variable corruption in nested includes (upstream #12655)
2a6347c
- mod_ssl: add fix for handling non-blocking reads
2a6347c
- mod_ssl: fix to enable output buffering (upstream #35279)
2a6347c
- mod_ssl: buffer request bodies for per-location renegotiation (upstream #12355)
2a6347c
0f8eb18
* Sat Aug 13 2005 Joe Orton <jorton@redhat.com> 2.0.54-13
0f8eb18
- don't load by default: mod_cern_meta, mod_asis
0f8eb18
- do load by default: mod_ext_filter (#165893)
0f8eb18
9f7341d
* Thu Jul 28 2005 Joe Orton <jorton@redhat.com> 2.0.54-12
9f7341d
- drop broken epoch deps
9f7341d
6da3d31
* Thu Jun 30 2005 Joe Orton <jorton@redhat.com> 2.0.54-11
6da3d31
- mod_dav_fs: fix uninitialized variable (#162144)
6da3d31
- add epoch to dependencies as appropriate
6da3d31
- mod_ssl: drop dependencies on dev, make
6da3d31
- mod_ssl: mark post script dependencies as such
6da3d31
a06501a
* Mon May 23 2005 Joe Orton <jorton@redhat.com> 2.0.54-10
a06501a
- remove broken symlink (Robert Scheck, #158404)
a06501a
a96efcb
* Wed May 18 2005 Joe Orton <jorton@redhat.com> 2.0.54-9
a96efcb
- add piped logger fixes (w/Jeff Trawick)
a96efcb
41aeab8
* Mon May  9 2005 Joe Orton <jorton@redhat.com> 2.0.54-8
41aeab8
- drop old "powered by Red Hat" logos
41aeab8
2758750
* Wed May  4 2005 Joe Orton <jorton@redhat.com> 2.0.54-7
2758750
- mod_userdir: fix memory allocation issue (upstream #34588)
2758750
- mod_ldap: fix memory corruption issue (Brad Nicholes, upstream #34618)
2758750
670541e
* Tue Apr 26 2005 Joe Orton <jorton@redhat.com> 2.0.54-6
670541e
- fix key/cert locations in post script
670541e
06872c8
* Mon Apr 25 2005 Joe Orton <jorton@redhat.com> 2.0.54-5
06872c8
- create default dummy cert in /etc/pki/tls
06872c8
- use a pseudo-random serial number on the dummy cert
06872c8
- change default ssl.conf to point at /etc/pki/tls
06872c8
- merge back -suexec subpackage; SELinux policy can now be
06872c8
  used to persistently disable suexec (#155716)
06872c8
- drop /etc/httpd/conf/ssl.* directories and Makefiles
06872c8
- unconditionally enable PIE support
06872c8
- mod_ssl: fix for picking up -shutdown options (upstream #34452)
06872c8
98f24d7
* Mon Apr 18 2005 Joe Orton <jorton@redhat.com> 2.0.54-4
98f24d7
- replace PreReq with Requires(pre) 
98f24d7
c8c8802
* Mon Apr 18 2005 Joe Orton <jorton@redhat.com> 2.0.54-3
c8c8802
- update to 2.0.54
c8c8802
22b6740
* Tue Mar 29 2005 Joe Orton <jorton@redhat.com> 2.0.53-6
22b6740
- update default httpd.conf:
22b6740
 * clarify the comments on AddDefaultCharset usage (#135821)
22b6740
 * remove all the AddCharset default extensions
22b6740
 * don't load mod_imap by default
22b6740
 * synch with upstream 2.0.53 httpd-std.conf
22b6740
- mod_ssl: set user from SSLUserName in access hook (upstream #31418)
22b6740
- htdigest: fix permissions of created files (upstream #33765)
22b6740
- remove htsslpass
22b6740
4435419
* Wed Mar  2 2005 Joe Orton <jorton@redhat.com> 2.0.53-5
4435419
- apachectl: restore use of $OPTIONS again
4435419
439691b
* Wed Feb  9 2005 Joe Orton <jorton@redhat.com> 2.0.53-4
439691b
- update to 2.0.53
439691b
- move prefork/worker modules comparison to %%check
439691b
3eb2bca
* Mon Feb  7 2005 Joe Orton <jorton@redhat.com> 2.0.52-7
3eb2bca
- fix cosmetic issues in "service httpd reload"
3eb2bca
- move User/Group higher in httpd.conf (#146793)
3eb2bca
- load mod_logio by default in httpd.conf
3eb2bca
- apachectl: update for correct libselinux tools locations
3eb2bca
7c0f3e4
* Tue Nov 16 2004 Joe Orton <jorton@redhat.com> 2.0.52-6
7c0f3e4
- add security fix for CVE CAN-2004-0942 (memory consumption DoS)
7c0f3e4
- SELinux: run httpd -t under runcon in configtest (Steven Smalley)
7c0f3e4
- fix SSLSessionCache comment for distcache in ssl.conf
7c0f3e4
- restart using SIGHUP not SIGUSR1 after logrotate
7c0f3e4
- add ap_save_brigade fix (upstream #31247)
7c0f3e4
- mod_ssl: fix possible segfault in auth hook (upstream #31848)
7c0f3e4
- add htsslpass(1) and configure as default SSLPassPhraseDialog (#128677)
7c0f3e4
- apachectl: restore use of $OPTIONS
7c0f3e4
- apachectl, httpd.init: refuse to restart if $HTTPD -t fails
7c0f3e4
- apachectl: run $HTTPD -t in user SELinux context for configtest
7c0f3e4
- update for pcre-5.0 header locations
7c0f3e4
jbj ff2220f
* Sat Nov 13 2004 Jeff Johnson <jbj@redhat.com> 2.0.52-5
jbj ff2220f
- rebuild against db-4.3.21 aware apr-util.
jbj ff2220f
jbj b35049d
* Thu Nov 11 2004 Jeff Johnson <jbj@jbj.org> 2.0.52-4
jbj b35049d
- rebuild against db-4.3-21.
jbj b35049d
8596424
* Thu Sep 28 2004 Joe Orton <jorton@redhat.com> 2.0.52-3
8596424
- add dummy connection address fixes from HEAD
a52696d
- mod_ssl: add security fix for CAN-2004-0885
8596424
d7e535c
* Tue Sep 28 2004 Joe Orton <jorton@redhat.com> 2.0.52-2
d7e535c
- update to 2.0.52
d7e535c