Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > 380bd1f756d9c44bb76748d1f4d4e6d6 > files > 21

apache-2.2.17-5.2.mga1.src.rpm

%define _disable_ld_no_undefined 1

%define defaultmaxmodules 128
%define defaultserverlimit 1024

%define build_test 0

# commandline overrides:
# rpm -ba|--rebuild --with 'xxx'
%{?_with_test: %{expand: %%global build_test 1}}
%{?_without_test: %{expand: %%global build_test 0}}

%define TAG %_vendor
%define BASEPRODUCT Apache

%define subrel 2

Summary:	The most widely used Web server on the Internet
Name:		apache
Version:	2.2.17
Release:	%mkrel 5
Group:		System/Servers
License:	Apache License
URL:		http://www.apache.org
Source0:	http://archive.apache.org/dist/httpd/httpd-%{version}.tar.gz
Source1:	http://archive.apache.org/dist/httpd/httpd-%{version}.tar.gz.asc
Source3:	apache2_transparent_png_icons.tar.bz2
Source4: 	perl-framework.tar.gz
Source9: 	htcacheclean.init
Source10: 	htcacheclean.sysconfig
Source30:	30_mod_proxy.conf
Source31:	31_mod_proxy_ajp.conf
Source32:	32_mod_proxy_scgi.conf
Source40: 	40_mod_ssl.conf
Source41: 	01_default_ssl_vhost.conf
Source45: 	45_mod_dav.conf
Source46: 	46_mod_ldap.conf
Source47: 	47_mod_authnz_ldap.conf
Source55:	55_mod_cache.conf
Source56:	56_mod_disk_cache.conf
Source57:	57_mod_mem_cache.conf
Source58:	58_mod_file_cache.conf
Source59:	59_mod_deflate.conf
Source60:	60_mod_dbd.conf
Source61:	61_mod_authn_dbd.conf
Source67:	67_mod_userdir.conf
Source68:	68_mod_reqtimeout.conf
Source69:	default-vhosts.conf
Source100:	buildconf
# lynx -dump http://mpm-itk.sesse.net/ > README.itk
Source101:	README.itk
Source102:	README.peruser
Patch0:		httpd-2.0.45-deplibs.patch
Patch1:		httpd-encode.diff
Patch2:		httpd-2.0.40-xfsz.patch
Patch3:		httpd-2.0.48-corelimit.patch
Patch4:		httpd-2.0.48-debuglog.patch
# http://lists.debian.org/debian-apache/2003/11/msg00109.html
Patch5:		httpd-2.0.48-bsd-ipv6-fix.diff
Patch6:		httpd-2.2.14-apachectl_fix.diff
# JMD: fix suexec path so we can have both versions of Apache and both
# versions of suexec
Patch7:		apache2-suexec.patch
Patch8:		httpd-2.1.10-apxs.patch
Patch9:		httpd-2.1.10-disablemods.patch
Patch10:	httpd-2.1.10-pod.patch
Patch11:	httpd-2.2.0-mod_ssl_memcache.diff
# http://qa.mandriva.com/show_bug.cgi?id=19542
Patch12:	httpd-2.2.2-french_fixes.diff
Patch13:	httpd-2.2.0-authnoprov.patch
Patch14:	httpd-2.2.4-mod_rewrite-fcgi.diff
# http://issues.apache.org/bugzilla/show_bug.cgi?id=32524
Patch15:	httpd-ab_source_address.diff
# speedups by Allen Pulsifer
Patch16:	httpd-2.2.4-fix_extra_htaccess_check.diff
Patch18:	httpd-2.2.10-ldap_auth_now_modular_in-apr-util-dbd-ldap_fix.diff
Patch20:	httpd-2.2.9-suenable.patch
# http://home.samfundet.no/~sesse/mpm-itk/
Patch100:	http://mpm-itk.sesse.net/apache2.2-mpm-itk-20090414-00.patch
# http://www.peruser.org/
Patch101:	httpd-2.2.9-peruser-0.3.0.diff
Patch102:	apache-2.2.6-mpm_peruser-fix.diff
Patch103:	httpd-2.2.3-peruser-0.3.0-dc3.diff
Patch104:	httpd-2.2.15-peruser-strfmt.diff
Patch105:	httpd-2.2.17-filter.patch
# upstream patch from 2.2.20: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/http/byterange_filter.c?r1=916627&r2=1162885&view=patch , fixes CVE-2011-3192
Patch106:	httpd-2.2.17-upstream-byterange.patch
# upstream patch from 2.2.21: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/byterange_filter.c?r1=1163985&r2=1163984&pathrev=1163985&view=patch modified by myself to fit, fixes regression in previous patch due to CVE-2011-3192 -- alien
Patch107:	httpd-2.2.17-mga-byterange_regression.patch
BuildRequires:	apr-devel >= 1:1.3.0
BuildRequires:	apr-util-devel >= 1.3.0
BuildRequires:	distcache-devel
BuildRequires:	byacc
BuildRequires:	db4-devel
BuildRequires:	expat-devel
BuildRequires:	gdbm-devel
BuildRequires:	libsasl-devel
BuildRequires:	libtool >= 1.4.2
BuildRequires:	openldap-devel
BuildRequires:	openssl-devel
BuildRequires:	pcre-devel >= 5.0
BuildRequires:	perl >= 0:5.600
BuildRequires:	pkgconfig
BuildRequires:	zlib-devel
BuildRequires:	autoconf2.5
BuildRequires:	automake
BuildRequires:	lynx
BuildRequires:	libcap-devel
%if %{build_test}
BuildRequires:	perl-CGI >= 1:3.11
BuildRequires:	perl-HTML-Parser
BuildRequires:	perl-libwww-perl
BuildRequires:	perl-Tie-IxHash
BuildRequires:	perl-URI
BuildRequires:	perl-BSD-Resource
#BuildRequires:	subversion
BuildRequires:	perl-HTTP-DAV
BuildRequires:	perl-doc
BuildRequires:	perl-Crypt-SSLeay
BuildRequires:	perl-XML-DOM
BuildRequires:	perl-XML-Parser
BuildRequires:	openssl
%endif
BuildRequires:	multiarch-utils >= 1.0.3
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
This package contains the main binary of apache, a powerful, full-featured,
efficient and freely-available Web server. Apache is also the most popular Web
server on the Internet.

This version of apache is fully modular, and many modules are available in
pre-compiled formats, like PHP and mod_auth_external.

Check for available Apache modules for Mandriva Linux at:
http://nux.se/apache/
(most of them can be installed from the contribs repository)

This package defaults to a maximum of %{defaultmaxmodules} dynamically loadable modules.
This package defaults to a ServerLimit of %{defaultserverlimit}.

You can change these values at RPM build time by using for example:

--define 'maxmodules 512' --define 'serverlimit 2048' 

The package was built to support a maximum of %{?!maxmodules:%{defaultmaxmodules}}%{?maxmodules:%{maxmodules}} dynamically loadable modules.
The package was built with a ServerLimit of %{?!serverlimit:%{defaultserverlimit}}%{?serverlimit:%{serverlimit}}.

%package	mpm-prefork
Summary:	Implements a non-threaded, pre-forking web server (stable)
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Provides:	webserver
Provides:	apache = %{version}-%{release}
Provides:	apache-mpm = %{version}-%{release}

%description	mpm-prefork
This Multi-Processing Module (MPM) implements a non-threaded, pre-forking web
server that handles requests in a manner similar to Apache 1.3. It is
appropriate for sites that need to avoid threading for compatibility with
non-thread-safe libraries. It is also the best MPM for isolating each request,
so that a problem with a single request will not affect any other.

This MPM is very self-regulating, so it is rarely necessary to adjust its
configuration directives. Most important is that MaxClients be big enough to
handle as many simultaneous requests as you expect to receive, but small enough
to assure that there is enough physical RAM for all processes.

Check for available Apache modules here: http://nux.se/apache/

This package defaults to a maximum of %{defaultmaxmodules} dynamically loadable modules.
This package defaults to a ServerLimit of %{defaultserverlimit}.

You can change these values at RPM build time by using for example:

--define 'maxmodules 512' --define 'serverlimit 2048' 

The package was built to support a maximum of %{?!maxmodules:%{defaultmaxmodules}}%{?maxmodules:%{maxmodules}} dynamically loadable modules.
The package was built with a ServerLimit of %{?!serverlimit:%{defaultserverlimit}}%{?serverlimit:%{serverlimit}}.

%package	mpm-worker
Summary:	Implements a hybrid multi-threaded multi-process web server (experimental)
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Provides:	webserver
Provides:	apache = %{version}-%{release}
#Provides:	apache-mpm = %{version}-%{release}
Conflicts:	apache-mod_php apache-mod_php4 apache-mod_perl apache-mod_python

%description	mpm-worker
This Multi-Processing Module (MPM) implements a hybrid multi-process
multi-threaded server. By using threads to serve requests, it is able to serve
a large number of requests with less system resources than a process-based
server. Yet it retains much of the stability of a process-based server by
keeping multiple processes available, each with many threads.

The most important directives used to control this MPM are ThreadsPerChild,
which controls the number of threads deployed by each child process and
MaxClients, which controls the maximum total number of threads that may be
launched.

This package contains the main binary of apache, a powerful, full-featured,
efficient and freely-available Web server. Apache is also the most popular Web
server on the Internet.

This version of apache is fully modular, and many modules are available in
pre-compiled formats, like PHP and mod_auth_external.

Check for available Apache modules here: http://nux.se/apache/

This package defaults to a maximum of %{defaultmaxmodules} dynamically loadable modules.

You can change these values at RPM build time by using for example:

--define 'maxmodules 512'

The package was built to support a maximum of %{?!maxmodules:%{defaultmaxmodules}}%{?maxmodules:%{maxmodules}} dynamically loadable modules.

I M P O R T A N T
-----------------
Note that the worker mpm (this package) requires thread safe modules. This 
package is totally experimental and may not be stable or suitable at any time,
in any way, or for any kind production usage. Be warned. You must manually
add HTTPD="/usr/sbin/httpd-worker" in the /etc/sysconfig/httpd configuration
file to be able to use this MPM.

%package	mpm-event
Summary:	Implements a hybrid multi-threaded multi-process web server (experimental)
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Provides:	webserver
Provides:	apache = %{version}-%{release}
#Provides:	apache-mpm = %{version}-%{release}
Conflicts:	apache-mod_php apache-mod_php4 apache-mod_perl apache-mod_python

%description	mpm-event
The event Multi-Processing Module (MPM) is designed to allow more requests to
be served simultaneously by passing off some processing work to supporting
threads, freeing up the main threads to work on new requests. It is based on
the worker MPM, which implements a hybrid multi-process multi-threaded server.
Run-time configuration directives are identical to those provided by worker.

This package contains the main binary of apache, a powerful, full-featured,
efficient and freely-available Web server. Apache is also the most popular Web
server on the Internet.

This version of apache is fully modular, and many modules are available in
pre-compiled formats, like PHP and mod_auth_external.

Check for available Apache modules here: http://nux.se/apache/

This package defaults to a maximum of %{defaultmaxmodules} dynamically loadable modules.

You can change these values at RPM build time by using for example:

--define 'maxmodules 512'

The package was built to support a maximum of %{?!maxmodules:%{defaultmaxmodules}}%{?maxmodules:%{maxmodules}} dynamically loadable modules.

I M P O R T A N T
-----------------
Note that the worker mpm (this package) requires thread safe modules. This 
package is totally experimental and may not be stable or suitable at any time,
in any way, or for any kind production usage. Be warned. You must manually
add HTTPD="/usr/sbin/httpd-event" in the /etc/sysconfig/httpd configuration
file to be able to use this MPM.

%package	mpm-itk
Summary:	Implements a non-threaded, pre-forking web server (experimental)
Group:		System/Servers
URL:		http://home.samfundet.no/~sesse/mpm-itk/
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Provides:	webserver
Provides:	apache = %{version}-%{release}
#Provides:	apache-mpm = %{version}-%{release}

%description	mpm-itk
apache-mpm-itk (just mpm-itk for short) is an MPM (Multi-Processing Module) for
the Apache 2 web server (which you've probably heard of :-) ). mpm-itk allows
you to run each of your vhost under a separate uid and gid -- in short, the
scripts and configuration files for one vhost no longer have to be readable for
all the other vhosts.

There are already MPMs available that do this, namely the perchild and Metux
MPMs (the latter being based on the former, which is included in the standard
Apache 2 tree). However, both have their sets of problems; for instance, both
are threaded, which can be a problem for many extension modules. Second, AFAIK
both have issues with listening on multiple ports (ie. SSL etc), and I don't
know how well they really perform in practice. (If you only run CGI scripts,
suexec will also probably solve most of your problems.)

mpm-itk is based on the traditional prefork MPM, which means it's non-threaded;
in short, this means you can run non-thread-aware code (like many PHP
extensions) without problems. (On the other hand, you lose out to any
performance benefit you'd get with threads, of course; you'd have to decide for
yourself if that's worth it or not.)

This package defaults to a maximum of %{defaultmaxmodules} dynamically loadable modules.
This package defaults to a ServerLimit of %{defaultserverlimit}.

You can change these values at RPM build time by using for example:

--define 'maxmodules 512' --define 'serverlimit 2048' 

The package was built to support a maximum of %{?!maxmodules:%{defaultmaxmodules}}%{?maxmodules:%{maxmodules}} dynamically loadable modules.
The package was built with a ServerLimit of %{?!serverlimit:%{defaultserverlimit}}%{?serverlimit:%{serverlimit}}.

I M P O R T A N T
-----------------
This package is totally experimental and may not be stable or suitable at any
time, in any way, or for any kind production usage. Be warned. You must
manually add HTTPD="/usr/sbin/httpd-itk" in the /etc/sysconfig/httpd
configuration file to be able to use this MPM.

%package	mpm-peruser
Summary:	Implements a hybrid multi-process, multi-threaded web server (experimental)
Group:		System/Servers
URL:		http://www.telana.com/peruser.php
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Provides:	webserver
Provides:	apache = %{version}-%{release}
#Provides:	apache-mpm = %{version}-%{release}

%description	mpm-peruser
This Multi-Processing Module (MPM) implements a hybrid multi-process,
multi-threaded web server. A fixed number of processes create threads to handle
requests. Fluctuations in load are handled by increasing or decreasing the
number of threads in each process.

Peruser is an Apache 2 module based on metuxmpm, a working implementation of
the perchild MPM. The fundamental concept behind all of them is to run each
apache child process as its own user and group, each handling its own set of
virtual hosts. Peruser and recent metuxmpm releases can also chroot() apache
processes. The result is a sane and secure web server environment for your
users, without kludges like PHP's safe_mode.

This package defaults to a maximum of %{defaultmaxmodules} dynamically loadable modules.
This package defaults to a ServerLimit of %{defaultserverlimit}.

You can change these values at RPM build time by using for example:

--define 'maxmodules 512' --define 'serverlimit 2048' 

The package was built to support a maximum of %{?!maxmodules:%{defaultmaxmodules}}%{?maxmodules:%{maxmodules}} dynamically loadable modules.
The package was built with a ServerLimit of %{?!serverlimit:%{defaultserverlimit}}%{?serverlimit:%{serverlimit}}.

I M P O R T A N T
-----------------
This package is totally experimental and may not be stable or suitable at any
time, in any way, or for any kind production usage. Be warned. You must
manually add HTTPD="/usr/sbin/httpd-peruser" in the /etc/sysconfig/httpd
configuration file to be able to use this MPM.

%package	base
Summary:	Common files and utilities for apache
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires:	apache = %{version}-%{release}

%description	base
This package contains the apache utilities such as Apache Bench (ab) for stress
testing your apache installation and several tools for managing user databases,
access control, the apache logs and more.

%package	modules
Summary:	Standard modules for apache
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires:	apache-mpm = %{version}-%{release}
Provides:	apache-mod_actions = %{version}
Provides:	apache-mod_alias = %{version}
Provides:	apache-mod_asis = %{version}
Provides:	apache-mod_auth_basic = %{version}
Provides:	apache-mod_auth_digest = %{version}
Provides:	apache-mod_authn_anon = %{version}
Provides:	apache-mod_authn_dbm = %{version}
Provides:	apache-mod_authn_default = %{version}
Provides:	apache-mod_authn_file = %{version}
Provides:	apache-mod_authz_dbm = %{version}
Provides:	apache-mod_authz_default = %{version}
Provides:	apache-mod_authz_groupfile = %{version}
Provides:	apache-mod_authz_host = %{version}
Provides:	apache-mod_authz_owner = %{version}
Provides:	apache-mod_authz_user = %{version}
Provides:	apache-mod_autoindex = %{version}
Provides:	apache-mod_bucketeer = %{version}
Provides:	apache-mod_case_filter = %{version}
Provides:	apache-mod_case_filter_in = %{version}
Provides:	apache-mod_cern_meta = %{version}
Provides:	apache-mod_cgi = %{version}
Provides:	apache-mod_cgid = %{version}
Provides:	apache-mod_charset_lite = %{version}
Provides:	apache-mod_deflate = %{version}
Provides:	apache-mod_dir = %{version}
Provides:	apache-mod_dumpio = %{version}
Provides:	apache-mod_echo = %{version}
Provides:	apache-mod_env = %{version}
Provides:	apache-mod_example = %{version}
Provides:	apache-mod_expires = %{version}
Provides:	apache-mod_ext_filter = %{version}
Provides:	apache-mod_filter = %{version}
Provides:	apache-mod_headers = %{version}
Provides:	apache-mod_ident = %{version}
Provides:	apache-mod_imagemap = %{version}
Provides:	apache-mod_include = %{version}
Provides:	apache-mod_info = %{version}
Provides:	apache-mod_log_config = %{version}
Provides:	apache-mod_log_forensic = %{version}
Provides:	apache-mod_logio = %{version}
Provides:	apache-mod_mime_magic = %{version}
Provides:	apache-mod_mime = %{version}
Provides:	apache-mod_negotiation = %{version}
Provides:	apache-mod_optional_fn_export = %{version}
Provides:	apache-mod_optional_fn_import = %{version}
Provides:	apache-mod_optional_hook_export = %{version}
Provides:	apache-mod_optional_hook_import = %{version}
Provides:	apache-mod_rewrite = %{version}
Provides:	apache-mod_setenvif = %{version}
Provides:	apache-mod_speling = %{version}
Provides:	apache-mod_status = %{version}
Provides:	apache-mod_unique_id = %{version}
Provides:	apache-mod_usertrack = %{version}
Provides:	apache-mod_version = %{version}
Provides:	apache-mod_vhost_alias = %{version}
# these has been removed or has new names in 2.2.0
Obsoletes:	apache-mod_access apache-mod_imap apache-mod_auth apache-mod_auth_anon apache-mod_auth_dbm apache-mod_auth_digest

%description	modules
This package contains standard modules for apache. It is required
for normal operation of the web server.

%package	mod_dav
Summary:	Distributed Authoring and Versioning (WebDAV)
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Provides:	apache-mod_dav_fs = %{version}
Provides:	apache-mod_dav_lock = %{version}

%description	mod_dav
This module provides class 1 and class 2 WebDAV ('Web-based Distributed
Authoring and Versioning') functionality for Apache.

This extension to the HTTP protocol allows creating, moving, copying, and
deleting resources and collections on a remote web server.

%package	mod_ldap
Summary:	LDAP connection pooling and result caching DSO:s
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Requires:	apr-util-dbd-ldap
Provides:	apache-mod_authnz_ldap = %{version}
Obsoletes:	apache-mod_auth_ldap

%description	mod_ldap
This module was created to improve the performance of websites relying on
backend connections to LDAP servers. In addition to the functions provided by
the standard LDAP libraries, this module adds an LDAP connection pool and an
LDAP shared memory cache.

%package	mod_cache
Summary:	Content cache keyed to URIs
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}

%description	mod_cache
mod_cache implements an RFC 2616 compliant HTTP content cache that can be used
to cache either local or proxied content. mod_cache requires the services of
one or more storage management modules.

Two storage management modules are included in the base Apache distribution:

 * mod_disk_cache - implements a disk based storage manager for
   use with mod_proxy.
 * mod_mem_cache - implements an in-memory based storage manager.

mod_mem_cache can be configured to operate in two modes: caching open file
descriptors or caching objects in heap storage.

mod_mem_cache is most useful when used to cache locally generated content or to
cache backend server content for mod_proxy configured for ProxyPass (aka
reverse proxy)

%package	mod_disk_cache
Summary:	Implements a disk based storage manager
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires(pre):	apache-mod_cache = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Requires:	apache-mod_cache = %{version}-%{release}
Requires:	apache-htcacheclean = %{version}-%{release}

%description	mod_disk_cache
mod_disk_cache implements a disk based storage manager. It is primarily of use
in conjunction with mod_proxy.

Content is stored in and retrieved from the cache using URI based keys. Content
with access protection is not cached.

%package	mod_mem_cache
Summary:	Implements a memory based storage manager
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires(pre):	apache-mod_cache = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Requires:	apache-mod_cache = %{version}-%{release}

%description	mod_mem_cache
This module requires the service of mod_cache. It acts as a support module for
mod_cache and provides a memory based storage manager. mod_mem_cache can be
configured to operate in two modes: caching open file descriptors or caching
objects in heap storage. mod_mem_cache is most useful when used to cache
locally generated content or to cache backend server content for mod_proxy
configured for ProxyPass (aka reverse proxy).

Content is stored in and retrieved from the cache using URI based keys. Content
with access protection is not cached.

%package	mod_file_cache
Summary:	Caches a static list of files in memory
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}

%description	mod_file_cache
Caching frequently requested files that change very infrequently is a technique
for reducing server load. mod_file_cache provides two techniques for caching
frequently requested static files.

Through configuration directives, you can direct mod_file_cache to either open
then mmap()a file, or to pre-open a file and save the file's open file handle.
Both techniques reduce server load when processing requests for these files by
doing part of the work (specifically, the file I/O) for serving the file when
the server is started rather than during each request.

Notice: You cannot use this for speeding up CGI programs or other files which
are served by special content handlers. It can only be used for regular files
which are usually served by the Apache core content handler.

This module is an extension of and borrows heavily from the mod_mmap_static
module in Apache 1.3.

%package	mod_deflate
Summary:	Compress content before it is delivered to the client
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Obsoletes:	mod_gzip

%description	mod_deflate
The mod_deflate module provides the DEFLATE output filter that allows output
from your server to be compressed before being sent to the client over the
network.

%package	mod_proxy
Summary:	HTTP/1.1 proxy/gateway server
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Provides:	apache-mod_proxy_balancer = %{version}
Provides:	apache-mod_proxy_connect = %{version}
Provides:	apache-mod_proxy_ftp = %{version}
Provides:	apache-mod_proxy_http = %{version}

%description	mod_proxy
This module implements a proxy/gateway for Apache. It implements proxying
capability for FTP, CONNECT (for SSL), HTTP/0.9, HTTP/1.0, and HTTP/1.1. The
module can be configured to connect to other proxy modules for these and other
protocols.

This module was experimental in Apache 1.1.x. Improvements and bugfixes were
made in Apache v1.2.x and Apache v1.3.x, then the module underwent a major
overhaul for Apache v2.0. The protocol support was upgraded to HTTP/1.1, and
filter support was enabled.

Please note that the caching function present in mod_proxy up to Apache v2.0.39
has been removed from mod_proxy and is incorporated into a new module,
mod_cache.

%package	mod_proxy_ajp
Summary:	Provides support for the Apache JServ Protocol version 1.3 (AJP13)
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires(pre):	apache-mod_cache = %{version}-%{release}
Requires(pre):	apache-mod_proxy = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Requires:	apache-mod_proxy = %{version}-%{release}

%description	mod_proxy_ajp
This module requires the service of mod_proxy. It provides support for the
Apache JServ Protocol version 1.3 (hereafter AJP13). Thus, in order to get the
ability of handling AJP13 protocol, mod_proxy and mod_proxy_ajp have to be
present in the server.

%package	mod_proxy_scgi
Summary:	Provides support for the the SCGI protocol, version 1
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires(pre):	apache-mod_proxy = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Requires:	apache-mod_proxy = %{version}-%{release}

%description	mod_proxy_scgi
This module provides support for the SCGI protocol, version 1.

%package	mod_userdir
Summary:	User-specific directories
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}

%description	mod_userdir
This module allows user-specific directories to be accessed using the
http://example.com/~username/ syntax.

%package	mod_ssl
Summary:	Strong cryptography using the SSL, TLS and distcache protocols
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Requires:	openssl
Requires(post):	openssl makedev
Provides:	mod_ssl
Obsoletes:	mod_ssl
Suggests:	distcache-server
Suggests:	memcached

%description	mod_ssl
This module provides SSL v2/v3 and TLS v1 support for the Apache HTTP Server.
It was contributed by Ralf S. Engeschall based on his mod_ssl project and
originally derived from work by Ben Laurie.

This module relies on OpenSSL to provide the cryptography engine.

This module also have native SNI support, please look here for more
information:

 * http://daniel-lange.com/plugin/tag/sni
 * https://sni.velox.ch/

%package	mod_dbd
Summary:	Manages SQL database connections
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Requires:	apr-util-dbd-ldap
Suggests:	apr-util-dbd-freetds
Suggests:	apr-util-dbd-mysql
Suggests:	apr-util-dbd-odbc
Suggests:	apr-util-dbd-pgsql
Suggests:	apr-util-dbd-sqlite3

%description	mod_dbd
mod_dbd manages SQL database connections using apr_dbd. It provides database
connections on request to modules requiring SQL database functions, and takes
care of managing databases with optimal efficiency and scalability for both
threaded and non-threaded MPMs.

%package	mod_authn_dbd
Summary:	User authentication using an SQL database
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires(pre):	apache-mod_dbd = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}
Requires:	apache-mod_dbd = %{version}-%{release}

%description	mod_authn_dbd
This module provides authentication front-ends such as mod_auth_digest and
mod_auth_basic to authenticate users by looking up users in SQL tables. Similar
functionality is provided by, for example, mod_authn_file. This module relies
on mod_dbd to specify the backend database driver and connection parameters,
and manage the database connections.

%package	mod_reqtimeout
Summary:	Set timeout and minimum data rate for receiving requests
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{version}
Requires(pre):	apache-base = %{version}-%{release}
Requires(pre):	apache-modules = %{version}-%{release}
Requires:	apache-conf >= %{version}
Requires:	apache-base = %{version}-%{release}
Requires:	apache-modules = %{version}-%{release}

%description	mod_reqtimeout
This module allows to set timeouts for the reading request and reading body
phases. It is implemented as an input connection filter that sets the socket
timeout so that the total request time does not exceed the timeout value.

mod_reqtimeout can be used to mitigate slowloris type attacks.

%package	htcacheclean
Summary:	Clean up the disk cache (for apache-mod_disk_cache)
Group:		System/Servers
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires:	apache-mod_disk_cache = %{version}-%{release}

%description	htcacheclean
htcacheclean is used to keep the size of mod_disk_cache's storage within a
certain limit. This tool can run either manually or in daemon mode. When
running in daemon mode, it sleeps in the background and checks the cache
directories at regular intervals for cached content to be removed.

%package	devel
Summary:	Module development tools for the apache web server
Group:		Development/C
Requires:	apr-devel >= 1:1.3.0
Requires:	apr-util-devel >= 1.3.0
Requires:	byacc
Requires:	db4-devel
Requires:	distcache-devel
Requires:	expat-devel
Requires:	gdbm-devel
Requires:	libsasl-devel
Requires:	libtool >= 1.4.2
Requires:	openssl-devel
Requires:	pcre-devel >= 5.0
Requires:	perl >= 0:5.600
Requires:	pkgconfig
Requires:	zlib-devel
Requires:	autoconf2.5
Requires:	automake

%description	devel
The apache-devel package contains the source code for the apache Web server and
the APXS binary you'll need to build Dynamic Shared Objects (DSOs) for apache.

If you are installing the apache Web server and you want to be able to compile
or develop additional modules for apache, you'll need to install this package.

%package	source
Summary:	The apache source code, including patches shipped by %_vendor
Group:		System/Servers

%description	source
The apache source code, including patches shipped by %_vendor. Use this package
to build your own customized apache if needed.

%prep

%setup -q -n httpd-%{version} -a4
%patch0 -p0 -b .deplibs.droplet
%patch1 -p1 -b .encode.droplet
%patch2 -p0 -b .xfsz.droplet
%patch3 -p0 -b .corelimit.droplet
%patch4 -p1 -b .debuglog.droplet
%patch5 -p1 -b .bsd-ipv6.droplet
%patch6 -p0 -b .apachectl_fix.droplet
%patch7 -p0 -b .apache2-suexec.droplet
%patch8 -p1 -b .apxs.droplet
%patch9 -p1 -b .disablemods.droplet
%patch10 -p1 -b .pod.droplet
%patch11 -p0 -b .memcache.droplet
%patch12 -p1 -b .french_fixes.droplet
%patch13 -p1 -b .authnoprov.droplet
%patch14 -p0 -b .fcgi.droplet
%patch15 -p1 -b .ab_source_address.droplet
%patch16 -p0 -b .fix_extra_htaccess_check.droplet
%patch18 -p0 -b .PR45994.droplet
%patch20 -p1 -b .suenable.droplet

%patch100 -p1 -b .mpm-itk.droplet
%patch101 -p1 -b .mpm-peruser.droplet
%patch102 -p1 -b .mpm_peruser-fix.droplet
%patch103 -p1 -b .peruser-0.3.0-dc3.droplet
%patch104 -p0 -b .peruser-strfmt.droplet
%patch105 -p1 -b .filter
%patch106 -p4 -b .byterange
%patch107 -p1 -b .byterange_regression

# forcibly prevent use of bundled apr, apr-util, pcre
rm -rf srclib/{apr,apr-util,pcre}

# don't install or use bundled pcreposix.h
rm -f include/pcreposix.h

#Fix apxs
perl -pi -e 's|\@exp_installbuilddir\@|%{_libdir}/apache/build|;' support/apxs.in
perl -pi -e 's|get_vars\("prefix"\)|"%{_libdir}/apache/build"|;' support/apxs.in
perl -pi -e 's|get_vars\("sbindir"\) . "/envvars"|"\$installbuilddir/envvars"|;' support/apxs.in

#Correct perl paths
find -type f|xargs perl -pi -e "s|/usr/local/bin/perl|perl|g;\
        s|/usr/local/bin/perl5|perl|g;s|/path/to/bin/perl|perl|g;"

# this is really better and easier than a stupid static patch...
# for some reason you have to use ">>" here (!)

cat >> config.layout << EOF
<Layout NUX>
    prefix:        %{_sysconfdir}/httpd
    exec_prefix:   %{_prefix}
    bindir:        %{_bindir}
    sbindir:       %{_sbindir}
    libdir:        %{_libdir}
    libexecdir:    %{_libdir}/apache
    mandir:        %{_mandir}
    infodir:       %{_infodir}
    includedir:    %{_includedir}/apache
    sysconfdir:    %{_sysconfdir}/httpd/conf
    datadir:       /var/www
    installbuilddir: %{_libdir}/apache/build
    errordir:      /var/www/error
    iconsdir:      /var/www/icons
    htdocsdir:     /var/www/html
    manualdir:     
    cgidir:        /var/www/cgi-bin
    localstatedir: /var
    runtimedir:    /var/run
    logfiledir:    /var/log/httpd
    proxycachedir: /var/cache/httpd/mod_proxy
</Layout>     
EOF

#Fix DYNAMIC_MODULE_LIMIT
perl -pi -e "s/DYNAMIC_MODULE_LIMIT 64/DYNAMIC_MODULE_LIMIT %{?!maxmodules:%{defaultmaxmodules}}%{?maxmodules:%{maxmodules}}/;" include/httpd.h

# don't try to touch srclib
perl -pi -e "s|^SUBDIRS = .*|SUBDIRS = os server modules support|g" Makefile.in

# bump server limit
perl -pi -e "s|DEFAULT_SERVER_LIMIT 256|DEFAULT_SERVER_LIMIT %{?!serverlimit:%{defaultserverlimit}}%{?serverlimit:%{serverlimit}}|g" server/mpm/prefork/prefork.c server/mpm/experimental/itk/itk.c server/mpm/experimental/peruser/peruser.c

# tag it with the "legacy" name so that we can track this at netcraft...
perl -pi -e "s|^#define AP_SERVER_BASEPRODUCT .*|#define AP_SERVER_BASEPRODUCT \"%{BASEPRODUCT}\"|g" include/ap_release.h

# prepare the apache-source package
rm -rf $RPM_BUILD_DIR/tmp-httpd-%{version}; mkdir -p $RPM_BUILD_DIR/tmp-httpd-%{version}/usr/src
cp -dpR $RPM_BUILD_DIR/httpd-%{version} $RPM_BUILD_DIR/tmp-httpd-%{version}/usr/src/apache-%{version}
rm -rf $RPM_BUILD_DIR/tmp-httpd-%{version}/usr/src/apache-%{version}/perl-framework
rm -rf $RPM_BUILD_DIR/tmp-httpd-%{version}/usr/src/apache-%{version}/tmp-httpd-%{version}/usr/src
rm -f $RPM_BUILD_DIR/tmp-httpd-%{version}%{_usrsrc}/apache-%{version}/*.spec

# use my nice converted transparent png icons
tar -jxf %{SOURCE3}
mv icons/*.png docs/icons/


# add the htcacheclean stuff
cp %{SOURCE9} htcacheclean.init
cp %{SOURCE10} htcacheclean.sysconfig

# add the module config files
cp %{SOURCE30} 30_mod_proxy.conf
cp %{SOURCE31} 31_mod_proxy_ajp.conf
cp %{SOURCE32} 32_mod_proxy_scgi.conf
cp %{SOURCE40} 40_mod_ssl.conf
cp %{SOURCE41} 01_default_ssl_vhost.conf
cp %{SOURCE45} 45_mod_dav.conf
cp %{SOURCE46} 46_mod_ldap.conf
cp %{SOURCE47} 47_mod_authnz_ldap.conf
cp %{SOURCE55} 55_mod_cache.conf
cp %{SOURCE56} 56_mod_disk_cache.conf
cp %{SOURCE57} 57_mod_mem_cache.conf
cp %{SOURCE58} 58_mod_file_cache.conf
cp %{SOURCE59} 59_mod_deflate.conf
cp %{SOURCE60} 60_mod_dbd.conf
cp %{SOURCE61} 61_mod_authn_dbd.conf
cp %{SOURCE67} 67_mod_userdir.conf
cp %{SOURCE68} 68_mod_reqtimeout.conf

# this will only work if configured correctly in the config (FullOs)...
cp server/core.c server/core.c.untagged

cp %{SOURCE101} README.itk
cp %{SOURCE102} README.peruser

%build
%serverbuild

#########################################################################################
# configure and build phase
#
export WANT_AUTOCONF_2_5="1"

# use a minimal buildconf instead
cp %{SOURCE100} buildconf
sh ./buildconf

CFLAGS="`echo $RPM_OPT_FLAGS |sed -e 's/-fomit-frame-pointer//'`"
CPPFLAGS="-DSSL_EXPERIMENTAL_ENGINE -DLDAP_DEPRECATED -DHAVE_APR_MEMCACHE"
if pkg-config openssl; then
    # configure -C barfs with trailing spaces in CFLAGS
    CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS"
    CPPFLAGS="$CPPFLAGS `pkg-config --cflags openssl | sed 's/ *$//'`"
    AP_LIBS="$AP_LIBS `pkg-config --libs openssl`"
else
    CFLAGS="$RPM_OPT_FLAGS"
    CPPFLAGS="$CPPFLAGS"
    AP_LIBS="$AP_LIBS -lssl -lcrypto"
fi
export CFLAGS CPPFLAGS AP_LIBS

export SH_LDFLAGS="%{ldflags}"

APVARS="--enable-layout=NUX \
    --prefix=%{_sysconfdir}/httpd \
    --exec-prefix=%{_prefix} \
    --bindir=%{_bindir} \
    --sbindir=%{_sbindir} \
    --libexecdir=%{_libdir}/apache \
    --sysconfdir=%{_sysconfdir}/httpd/conf \
    --localstatedir=/var \
    --includedir=%{_includedir}/apache \
    --infodir=%{_infodir} \
    --mandir=%{_mandir} \
    --datadir=/var/www \
    --with-port=80 \
    --with-perl=%{_bindir}/perl \
    --with-apr=%{_bindir}/apr-1-config \
    --with-apr-util=%{_bindir}/apu-1-config \
    --with-pcre=%{_prefix} \
    --with-z=%{_prefix} \
    --enable-layout=NUX \
    --with-devrandom \
    --enable-exception-hook \
    --enable-forward \
    --with-program-name=httpd"

for mpm in worker event itk peruser prefork; do
    mkdir build-${mpm}; pushd build-${mpm}
    ln -s ../configure .
    
    if [ ${mpm} = prefork ]; then
        %configure2_5x $APVARS \
    	    --with-mpm=prefork \
    	    --enable-modules=all \
	    --enable-mods-shared=all \
    	    --with-ldap --enable-ldap=shared --enable-authnz-ldap=shared \
	    --enable-cache=shared --enable-disk-cache=shared --enable-file-cache=shared --enable-mem-cache=shared \
    	    --enable-ssl --with-ssl=%{_prefix} --enable-distcache \
    	    --enable-deflate=shared \
    	    --enable-cgid=shared \
    	    --enable-proxy=shared --enable-proxy-connect=shared --enable-proxy-ftp=shared \
    	    --enable-proxy-http=shared --enable-proxy-ajp=shared --enable-proxy-balancer=shared \
    	    --enable-dav=shared --enable-dav-fs=shared --enable-dav-lock=shared \
    	    --enable-version=shared \
    	    --enable-bucketeer=shared --enable-case-filter=shared --enable-case-filter-in=shared --enable-echo=shared \
    	    --enable-example=shared --enable-optional-fn-export=shared --enable-optional-fn-import=shared \
    	    --enable-optional-hook-export=shared --enable-optional-hook-import=shared \
	    --enable-charset_lite=shared --enable-authn_alias=shared
    fi
    
    if [ ${mpm} = worker ]; then
	%configure2_5x $APVARS \
    	    --with-mpm=worker \
	    --enable-modules=none
    # don't build support tools
    perl -pi -e "s|^SUBDIRS = .*|SUBDIRS = os server modules|g" Makefile
    fi

    if [ ${mpm} = event ]; then
	%configure2_5x $APVARS \
    	    --with-mpm=event \
	    --enable-modules=none
    # don't build support tools
    perl -pi -e "s|^SUBDIRS = .*|SUBDIRS = os server modules|g" Makefile
    fi

    if [ ${mpm} = itk ]; then
	%configure2_5x $APVARS \
    	    --with-mpm=itk \
	    --enable-modules=none
    # don't build support tools
    perl -pi -e "s|^SUBDIRS = .*|SUBDIRS = os server modules|g" Makefile
    fi

    if [ ${mpm} = peruser ]; then
	%configure2_5x $APVARS \
    	    --with-mpm=peruser \
	    --enable-modules=none
    # don't build support tools
    perl -pi -e "s|^SUBDIRS = .*|SUBDIRS = os server modules|g" Makefile
    fi

    #Copy configure flags to a file in the apache-source rpm.
    cp config.nice $RPM_BUILD_DIR/tmp-httpd-%{version}%{_usrsrc}/apache-%{version}/config.nice.${mpm}

    # tag it with the mpm name too so that we can track this somehow at for example netcraft...
    MPM_NAME=`echo ${mpm}|tr "[a-z]" "[A-Z]"`
    cp ../server/core.c.untagged ../server/core.c
    perl -pi -e "s|\" PLATFORM \"|%{TAG}/${MPM_NAME}-%{release}|g" ../server/core.c

    # if libexpat0-devel is installed on x86_64 somehow the EXTRA_LDLAGS is set 
    # to -L/usr/lib, fix that with a conditional hack...
    %ifarch x86_64
	find -type f | xargs perl -pi -e "s|/usr/lib\b|%{_libdir}|g"
    %endif

    # there is no autofoo stuff the memcache addon yet
    perl -pi -e "s|-ldistcache -lnal|-ldistcache -lnal|g" build/config_vars.mk

    # finally doing the build stage
    %make
    popd
done

%if %{build_test}
# run the test suite, quite a hack, but works, sometimes...
TEST_DIR="`pwd`/TEST"
make -C build-prefork DESTDIR=${TEST_DIR} \
	manualdir=${TEST_DIR}/var/www/html/manual \
	install

perl -pi -e "s|%{_libdir}/apache/|${TEST_DIR}%{_libdir}/apache/|g" ${TEST_DIR}%{_sysconfdir}/httpd/conf/*
perl -pi -e "s|^#Include|Include|g" ${TEST_DIR}%{_sysconfdir}/httpd/conf/httpd.conf
perl -pi -e "s|/etc|${TEST_DIR}/etc|g" ${TEST_DIR}%{_sysconfdir}/httpd/conf/httpd.conf ${TEST_DIR}%{_sysconfdir}/httpd/conf/extra/*.conf
perl -pi -e  "s|%{_libdir}/apache/build|${TEST_DIR}%{_libdir}/apache/build|g" ${TEST_DIR}%{_sbindir}/apxs

# fool apxs
cat >> ${TEST_DIR}%{_libdir}/apache/build/config_vars.mk << EOF
bindir = ${TEST_DIR}/usr/bin
sbindir = ${TEST_DIR}/usr/sbin
exec_prefix = ${TEST_DIR}/usr
datadir = ${TEST_DIR}/var/www
localstatedir = ${TEST_DIR}/var
libdir = ${TEST_DIR}%{_libdir}
libexecdir = ${TEST_DIR}%{_libdir}/apache
includedir = ${TEST_DIR}/usr/include/apache
sysconfdir = ${TEST_DIR}/etc/httpd/conf
installbuilddir = ${TEST_DIR}%{_libdir}/apache/build
runtimedir = ${TEST_DIR}/var/run
proxycachedir = ${TEST_DIR}/var/cache/httpd/mod_proxy
prefix = ${TEST_DIR}/usr
EOF

pushd perl-framework
#svn checkout --ignore-externals http://svn.apache.org/repos/asf/httpd/test/trunk/perl-framework perl-framework
#svn checkout http://svn.apache.org/repos/asf/httpd/test/trunk/perl-framework perl-framework
#svn up

# disable test cases for bugs that has not been fixed yet,are too old, or
# it is unclear who to blaim, either the php or ASF folks...
rm -f t/php/arg.t
rm -f t/php/func5.t

# this test works with php-5.0 but not with php-5.1, yuck!
rm -f t/php/virtual.t

# if not using LC_ALL=C t/php/getlastmod.t can fail at
# testing : getlastmod()
# expected: november
# received: November
export LC_ALL=C

perl Makefile.PL -apxs ${TEST_DIR}%{_sbindir}/apxs \
    -httpd_conf ${TEST_DIR}%{_sysconfdir}/httpd/conf/httpd.conf \
    -httpd ${TEST_DIR}%{_sbindir}/httpd
make test
popd
%endif

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot} 
#########################################################################################
# install phase
install -d %{buildroot}%{_libdir}/apache
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/conf/vhosts.d
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}/var/lib/dav
install -d %{buildroot}/var/www
install -d %{buildroot}/var/cache/httpd/mod_proxy

#EXCLUDE_FROM_STRIP="%{buildroot}%{_sbindir}/httpd %{buildroot}%{_sbindir}/httpd-worker %{buildroot}%{_sbindir}/httpd-peruser"

# install source
tar c -C $RPM_BUILD_DIR/tmp-httpd-%{version} usr/src | tar x -C %{buildroot}

# don't fiddle with the initscript!
export DONT_GPRINTIFY=1

pushd build-prefork
make install \
	prefix=%{buildroot}%{_prefix} \
	bindir=%{buildroot}%{_bindir} \
	sbindir=%{buildroot}%{_sbindir} \
	libdir=%{buildroot}%{_libdir} \
	libexecdir=%{buildroot}%{_libdir}/apache \
	mandir=%{buildroot}%{_mandir} \
	sysconfdir=%{buildroot}%{_sysconfdir}/httpd/conf \
	includedir=%{buildroot}%{_includedir}/apache \
	localstatedir=%{buildroot}/var \
	runtimedir=%{buildroot}/var/run \
	installbuilddir=%{buildroot}%{_libdir}/apache/build  \
	datadir=%{buildroot}/var/www \
	errordir=%{buildroot}/var/www/error \
	iconsdir=%{buildroot}/var/www/icons \
	htdocsdir=%{buildroot}/var/www/html \
	manualdir=%{buildroot}/var/www/html/manual \
	cgidir=%{buildroot}/var/www/cgi-bin \
	runtimedir=%{buildroot}/var/run \
	logdir=%{buildroot}/var/log/httpd \
	logfiledir=%{buildroot}/var/log/httpd \
	proxycachedir=%{buildroot}/var/cache/httpd/mod_proxy
popd

# do some house cleaning 
for f in `find %{buildroot} -type f -name ".orig"` \
    `find %{buildroot} -type f -name ".deps"` \
    `find %{buildroot} -type f -name "NW*"` \
    `find %{buildroot} -type f -name "*.droplet"` \
    `find %{buildroot} -type f -name "*.zip"` \
    `find %{buildroot} -type f -name "*.dsp"`; do
    rm -f $f
done

# this is needed to generate the vanilla config
make -C build-prefork DESTDIR=`pwd` install-conf

#Fix config_vars.mk, and add some MDK flags so all other modules 
#can simply do "apxs -q VARIABLE" and know, for example, the exact
#release of apache-devel or the exact directory where the source is
#located. 
CVMK="%{buildroot}%{_libdir}/apache/build/config_vars.mk"
perl -pi -e "s|%{_builddir}/httpd-%{version}|%{_usrsrc}/apache-%{version}|g" $CVMK
perl -pi -e "s|%{buildroot}||g" $CVMK
perl -pi -e "s|^EXTRA_INCLUDES.*|EXTRA_INCLUDES = `apr-1-config --includes` -I%{_includedir}/apache -I%{_includedir}/openssl|g" $CVMK

# fix libtool invocation
perl -pi -e "s|^LIBTOOL.*|LIBTOOL = libtool|g" $CVMK
perl -pi -e "s|^SH_LIBTOOL.*|SH_LIBTOOL = libtool|g" $CVMK

# if the following 3 lines needs to be enabled again, use the ".*" wildcard as in
# "s|bla bla =.*|bla bla = replaced whatever text after the equal char...|g"
#perl -pi -e "s|installbuilddir =.*|installbuilddir = %{_libdir}/apache/build|g" $CVMK
#perl -pi -e "s|htdocsdir =.*|htdocsdir = /var/www/html|g" $CVMK
#perl -pi -e "s|logfiledir =.*|logfiledir = /var/log/httpd|g" $CVMK

echo "ap_version = %{version}" >> $CVMK
echo "ap_release = %{release}" >> $CVMK

#########################################################################################
# fix some bugs and other stuff
#
perl -pi -e "s|%{_builddir}/httpd-%{version}|%{_usrsrc}/apache-%{version}|g" %{buildroot}%{_libdir}/apache/build/apr_rules.mk

mv %{buildroot}%{_sbindir}/envvars %{buildroot}%{_libdir}/apache/build/

# named config.nice files are in the devel package
rm -f %{buildroot}%{_libdir}/apache/build/config.nice

##################################################################

# Link build dir
ln -s ../../..%{_libdir}/apache/build %{buildroot}%{_sysconfdir}/httpd/build

##################################################################
# install module conf files for the "modules.d" dir loading structure
install -m0644 30_mod_proxy.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 31_mod_proxy_ajp.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 32_mod_proxy_scgi.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 40_mod_ssl.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 45_mod_dav.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 46_mod_ldap.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 47_mod_authnz_ldap.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 55_mod_cache.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 56_mod_disk_cache.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 57_mod_mem_cache.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 58_mod_file_cache.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 59_mod_deflate.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 60_mod_dbd.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 61_mod_authn_dbd.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 67_mod_userdir.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/
install -m0644 68_mod_reqtimeout.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/

# install vhost conf files for the "vhosts.d" dir loading structure
install -m0644 01_default_ssl_vhost.conf %{buildroot}%{_sysconfdir}/httpd/conf/vhosts.d/

# install the mpm stuff
install -m0755 build-worker/httpd %{buildroot}%{_sbindir}/httpd-worker
install -m0755 build-event/httpd %{buildroot}%{_sbindir}/httpd-event
install -m0755 build-itk/httpd %{buildroot}%{_sbindir}/httpd-itk
install -m0755 build-peruser/httpd %{buildroot}%{_sbindir}/httpd-peruser

# install missing files
install -m755 build-prefork/support/split-logfile %{buildroot}%{_sbindir}/split-logfile
install -m755 support/list_hooks.pl %{buildroot}%{_sbindir}/list_hooks.pl
install -m755 build-prefork/support/logresolve.pl %{buildroot}%{_sbindir}/logresolve.pl
install -m755 build-prefork/support/log_server_status %{buildroot}%{_sbindir}/log_server_status
install -m755 build-prefork/support/checkgid %{buildroot}%{_sbindir}/checkgid
install -m755 support/check_forensic %{buildroot}%{_sbindir}/check_forensic

# fix a msec safe cache for the ssl stuff
install -d %{buildroot}/var/cache/httpd/mod_ssl
touch %{buildroot}/var/cache/httpd/mod_ssl/scache.dir
touch %{buildroot}/var/cache/httpd/mod_ssl/scache.pag
touch %{buildroot}/var/cache/httpd/mod_ssl/scache.sem

# fix a msec safe cache for the mod_ldap LDAPSharedCacheFile
touch %{buildroot}/var/cache/httpd/mod_ldap_cache

# install htcacheclean files
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -m0755 htcacheclean.init %{buildroot}%{_initrddir}/htcacheclean
install -m0644 htcacheclean.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/htcacheclean

%multiarch_includes %{buildroot}%{_includedir}/apache/ap_config_layout.h

# add two important documentation files in the plain ASCII format
cp docs/manual/upgrading.html.en upgrading.html
cp docs/manual/new_features_2_2.html.en new_features_2_2.html

lynx -dump -nolist upgrading.html > upgrading.txt
lynx -dump -nolist new_features_2_2.html > new_features_2_2.txt

# cleanup
rm -f %{buildroot}%{_sbindir}/suexec
rm -f  %{buildroot}%{_mandir}/man8/suexec.8*
rm -rf %{buildroot}/var/www/html/index*
rm -rf %{buildroot}/var/www/html/apach*
rm -rf %{buildroot}/var/www/cgi-bin/printenv
rm -rf %{buildroot}/var/www/cgi-bin/test-cgi
rm -rf %{buildroot}/var/www/html/manual
rm -rf %{buildroot}%{_sysconfdir}/httpd/conf/{extra,original,httpd.conf,magic,mime.types}

#########################################################################################
# install phase done
#

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot} 

# Clean up "install source" and other generated dirs
[ "$RPM_BUILD_DIR/tmp-httpd-%{version}%{_usrsrc}/apache-%{version}" != "/" ] && rm -rf $RPM_BUILD_DIR/tmp-httpd-%{version}%{_usrsrc}/apache-%{version}
[ "$RPM_BUILD_DIR/usr/src" != "/" ] && rm -rf $RPM_BUILD_DIR/usr/src
[ "$RPM_BUILD_DIR/tmp-httpd-%{version}" != "/" ] && rm -rf $RPM_BUILD_DIR/tmp-httpd-%{version}

%pre base
%_pre_useradd apache /var/www /bin/sh

%postun base
%_postun_userdel apache

%post mpm-prefork
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mpm-prefork
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mpm-worker
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mpm-worker
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mpm-event
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mpm-event
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mpm-itk
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mpm-itk
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mpm-peruser
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mpm-peruser
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post modules
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%post mod_proxy
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_proxy
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_proxy_ajp
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_proxy_ajp
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_proxy_scgi
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_proxy_scgi
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_dav
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_dav
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_ldap
%create_ghostfile /var/cache/httpd/mod_ldap_cache apache root 0600
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_ldap
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_cache
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_cache
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_disk_cache
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_disk_cache
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_mem_cache
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_mem_cache
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_file_cache
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_file_cache
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_deflate
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_deflate
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_userdir
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_userdir
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%pre mod_ssl
# http://qa.mandriva.com/show_bug.cgi?id=32773
# http://qa.mandriva.com/show_bug.cgi?id=33198
# If there was default mod_ssl vhost misplaced move it as rpmsave
if [ -f %{_sysconfdir}/httpd/modules.d/41_mod_ssl.default-vhost.conf -a ! -f  %{_sysconfdir}/httpd/conf/vhosts.d/01_default_ssl_vhost.conf ]; then
    mv -vf %{_sysconfdir}/httpd/modules.d/41_mod_ssl.default-vhost.conf %{_sysconfdir}/httpd/conf/vhosts.d/01_default_ssl_vhost.conf
fi

%post mod_ssl
if [ "$1" = "1" ]; then 

mkdir -p %{_sysconfdir}/pki/tls/{private,certs} 2>/dev/null
umask 077

if [ ! -f %{_sysconfdir}/pki/tls/private/localhost.key ]; then
    %{_bindir}/openssl genrsa -rand /proc/apm:/proc/cpuinfo:/proc/dma:/proc/filesystems:/proc/interrupts:/proc/ioports:/proc/pci:/proc/rtc:/proc/uptime 1024 > %{_sysconfdir}/pki/tls/private/localhost.key 2> /dev/null
fi

FQDN=`hostname`
if [ "x${FQDN}" = "x" ]; then
    FQDN=localhost.localdomain
fi

if [ ! -f %{_sysconfdir}/pki/tls/certs/localhost.crt ] ; then
cat << EOF | %{_bindir}/openssl req -new -key %{_sysconfdir}/pki/tls/private/localhost.key -x509 -days 365 -set_serial $RANDOM -out %{_sysconfdir}/pki/tls/certs/localhost.crt 2>/dev/null
--
SomeState
SomeCity
SomeOrganization
SomeOrganizationalUnit
${FQDN}
root@${FQDN}
EOF
fi
fi

if [ "$1" -gt "1" ]; then
    mkdir -p %{_sysconfdir}/pki/tls/{private,certs} 2>/dev/null
    if [ -d /etc/ssl/apache ];then
	if [ -f /etc/ssl/apache/server.crt.rpmsave -a ! -f /etc/pki/tls/certs/localhost.crt ]; then
	    cp -p /etc/ssl/apache/server.crt.rpmsave /etc/pki/tls/certs/localhost.crt
	fi
	if [ -f /etc/ssl/apache/server.key.rpmsave -a ! -f /etc/pki/tls/private/localhost.key ]; then
	    cp -p /etc/ssl/apache/server.key.rpmsave /etc/pki/tls/private/localhost.key
	fi

    fi
fi

# create some ghost files
%create_ghostfile /var/cache/httpd/mod_ssl/scache.dir apache root 0600
%create_ghostfile /var/cache/httpd/mod_ssl/scache.pag apache root 0600
%create_ghostfile /var/cache/httpd/mod_ssl/scache.sem apache root 0600

# http://qa.mandriva.com/show_bug.cgi?id=33429
if [ -f /etc/pki/tls/certs/localhost.crt ]; then
    chmod 644 /etc/pki/tls/certs/localhost.crt
fi

if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_ssl
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_dbd
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_dbd
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_authn_dbd
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_authn_dbd
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post mod_reqtimeout
if [ -f /var/lock/subsys/httpd ]; then
    %{_initrddir}/httpd restart 1>&2;
fi

%postun mod_reqtimeout
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/httpd ]; then
        %{_initrddir}/httpd restart 1>&2
    fi
fi

%post htcacheclean
%_post_service htcacheclean
if [ -f %{_var}/lock/subsys/htcacheclean ]; then
    %{_initrddir}/htcacheclean restart 1>&2;
fi

%preun htcacheclean
%_preun_service htcacheclean

%postun htcacheclean
if [ "$1" = "0" ]; then
    if [ -f %{_var}/lock/subsys/htcacheclean ]; then
        %{_initrddir}/htcacheclean restart 1>&2
    fi
fi

%files mpm-prefork
%defattr(-,root,root)
%doc etc/httpd/conf/httpd.conf etc/httpd/conf/extra/*.conf
%attr(0755,root,root) %{_sbindir}/httpd

%files mpm-worker
%defattr(-,root,root)
%doc etc/httpd/conf/httpd.conf etc/httpd/conf/extra/*.conf
%attr(0755,root,root) %{_sbindir}/httpd-worker

%files mpm-event
%defattr(-,root,root)
%doc etc/httpd/conf/httpd.conf etc/httpd/conf/extra/*.conf
%attr(0755,root,root) %{_sbindir}/httpd-event

%files mpm-itk
%defattr(-,root,root)
%doc etc/httpd/conf/httpd.conf etc/httpd/conf/extra/*.conf README.itk
%attr(0755,root,root) %{_sbindir}/httpd-itk

%files mpm-peruser
%defattr(-,root,root)
%doc etc/httpd/conf/httpd.conf etc/httpd/conf/extra/*.conf server/mpm/experimental/peruser/AUTHORS README.peruser
%attr(0755,root,root) %{_sbindir}/httpd-peruser

%files modules
%defattr(-,root,root)
%doc modules/README*
%attr(0755,root,root) %{_libdir}/apache/mod_actions.so
%attr(0755,root,root) %{_libdir}/apache/mod_alias.so
%attr(0755,root,root) %{_libdir}/apache/mod_asis.so
%attr(0755,root,root) %{_libdir}/apache/mod_auth_basic.so
%attr(0755,root,root) %{_libdir}/apache/mod_auth_digest.so
%attr(0755,root,root) %{_libdir}/apache/mod_authn_alias.so
%attr(0755,root,root) %{_libdir}/apache/mod_authn_anon.so
%attr(0755,root,root) %{_libdir}/apache/mod_authn_dbm.so
%attr(0755,root,root) %{_libdir}/apache/mod_authn_default.so
%attr(0755,root,root) %{_libdir}/apache/mod_authn_file.so
%attr(0755,root,root) %{_libdir}/apache/mod_authz_dbm.so
%attr(0755,root,root) %{_libdir}/apache/mod_authz_default.so
%attr(0755,root,root) %{_libdir}/apache/mod_authz_groupfile.so
%attr(0755,root,root) %{_libdir}/apache/mod_authz_host.so
%attr(0755,root,root) %{_libdir}/apache/mod_authz_owner.so
%attr(0755,root,root) %{_libdir}/apache/mod_authz_user.so
%attr(0755,root,root) %{_libdir}/apache/mod_autoindex.so
%attr(0755,root,root) %{_libdir}/apache/mod_bucketeer.so
%attr(0755,root,root) %{_libdir}/apache/mod_case_filter_in.so
%attr(0755,root,root) %{_libdir}/apache/mod_case_filter.so
%attr(0755,root,root) %{_libdir}/apache/mod_cern_meta.so
%attr(0755,root,root) %{_libdir}/apache/mod_cgid.so
%attr(0755,root,root) %{_libdir}/apache/mod_cgi.so
%attr(0755,root,root) %{_libdir}/apache/mod_charset_lite.so
%attr(0755,root,root) %{_libdir}/apache/mod_dir.so
%attr(0755,root,root) %{_libdir}/apache/mod_dumpio.so
%attr(0755,root,root) %{_libdir}/apache/mod_echo.so
%attr(0755,root,root) %{_libdir}/apache/mod_env.so
%attr(0755,root,root) %{_libdir}/apache/mod_example.so
%attr(0755,root,root) %{_libdir}/apache/mod_expires.so
%attr(0755,root,root) %{_libdir}/apache/mod_ext_filter.so
%attr(0755,root,root) %{_libdir}/apache/mod_filter.so
%attr(0755,root,root) %{_libdir}/apache/mod_headers.so
%attr(0755,root,root) %{_libdir}/apache/mod_ident.so
%attr(0755,root,root) %{_libdir}/apache/mod_imagemap.so
%attr(0755,root,root) %{_libdir}/apache/mod_include.so
%attr(0755,root,root) %{_libdir}/apache/mod_info.so
%attr(0755,root,root) %{_libdir}/apache/mod_log_config.so
%attr(0755,root,root) %{_libdir}/apache/mod_log_forensic.so
%attr(0755,root,root) %{_libdir}/apache/mod_logio.so
%attr(0755,root,root) %{_libdir}/apache/mod_mime_magic.so
%attr(0755,root,root) %{_libdir}/apache/mod_mime.so
%attr(0755,root,root) %{_libdir}/apache/mod_negotiation.so
%attr(0755,root,root) %{_libdir}/apache/mod_optional_fn_export.so
%attr(0755,root,root) %{_libdir}/apache/mod_optional_fn_import.so
%attr(0755,root,root) %{_libdir}/apache/mod_optional_hook_export.so
%attr(0755,root,root) %{_libdir}/apache/mod_optional_hook_import.so
%attr(0755,root,root) %{_libdir}/apache/mod_rewrite.so
%attr(0755,root,root) %{_libdir}/apache/mod_setenvif.so
%attr(0755,root,root) %{_libdir}/apache/mod_speling.so
%attr(0755,root,root) %{_libdir}/apache/mod_status.so
%attr(0755,root,root) %{_libdir}/apache/mod_substitute.so
%attr(0755,root,root) %{_libdir}/apache/mod_unique_id.so
%attr(0755,root,root) %{_libdir}/apache/mod_usertrack.so
%attr(0755,root,root) %{_libdir}/apache/mod_version.so
%attr(0755,root,root) %{_libdir}/apache/mod_vhost_alias.so
%attr(0755,root,root) %{_libdir}/apache/httpd.exp

%files mod_proxy
%defattr(-,root,root)
%doc modules/proxy/CHANGES
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_proxy.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_connect.so
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_ftp.so
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_http.so
%attr(0755,root,root) %{_libdir}/apache/mod_proxy.so
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_balancer.so
%attr(0770,apache,root) %dir /var/cache/httpd/mod_proxy

%files mod_proxy_ajp
%defattr(-,root,root)
%doc modules/proxy/CHANGES
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_proxy_ajp.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_ajp.so

%files mod_proxy_scgi
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_proxy_scgi.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_scgi.so

%files mod_dav
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_dav.conf
%attr(0755,root,root) %{_libdir}/apache/mod_dav_fs.so
%attr(0755,root,root) %{_libdir}/apache/mod_dav_lock.so
%attr(0755,root,root) %{_libdir}/apache/mod_dav.so
%attr(-,apache,apache) %dir /var/lib/dav
 
%files mod_ldap
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_ldap.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_authnz_ldap.conf
%attr(0755,root,root) %{_libdir}/apache/mod_ldap.so
%attr(0755,root,root) %{_libdir}/apache/mod_authnz_ldap.so
%attr(0600,apache,root) %ghost /var/cache/httpd/mod_ldap_cache

%files mod_cache
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_cache.conf
%attr(0755,root,root) %{_libdir}/apache/mod_cache.so

%files mod_disk_cache
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_disk_cache.conf
%attr(0755,root,root) %{_libdir}/apache/mod_disk_cache.so

%files mod_mem_cache
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_mem_cache.conf
%attr(0755,root,root) %{_libdir}/apache/mod_mem_cache.so

%files mod_file_cache
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_file_cache.conf
%attr(0755,root,root) %{_libdir}/apache/mod_file_cache.so

%files mod_deflate
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_deflate.conf
%attr(0755,root,root) %{_libdir}/apache/mod_deflate.so

%files mod_userdir
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_userdir.conf
%attr(0755,root,root) %{_libdir}/apache/mod_userdir.so

%files mod_ssl
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_ssl.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/vhosts.d/*_default_ssl_vhost.conf
%attr(0755,root,root) %{_libdir}/apache/mod_ssl.so
%attr(0700,apache,root) %dir /var/cache/httpd/mod_ssl
%attr(0600,apache,root) %ghost /var/cache/httpd/mod_ssl/scache.dir
%attr(0600,apache,root) %ghost /var/cache/httpd/mod_ssl/scache.pag
%attr(0600,apache,root) %ghost /var/cache/httpd/mod_ssl/scache.sem

%files mod_dbd
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_dbd.conf
%attr(0755,root,root) %{_libdir}/apache/mod_dbd.so

%files mod_authn_dbd
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_authn_dbd.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authn_dbd.so

%files mod_reqtimeout
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*_mod_reqtimeout.conf
%attr(0755,root,root) %{_libdir}/apache/mod_reqtimeout.so

%files base
%defattr(-,root,root)
%doc upgrading.txt new_features_2_2.txt
%dir /var/www/error
%dir /var/www/error/include
%config(noreplace,missingok) /var/www/error/README
%config(noreplace,missingok) /var/www/error/*.var
%config(noreplace,missingok) /var/www/error/include/*.html
%dir /var/www/icons
%dir /var/www/icons/small
%attr(0644,root,root) /var/www/icons/README*
%attr(0644,root,root) /var/www/icons/*.png
%attr(0644,root,root) /var/www/icons/*.gif
%attr(0644,root,root) /var/www/icons/small/*.png
%attr(0644,root,root) /var/www/icons/small/*.gif
%attr(0755,root,root) %{_sbindir}/ab
%attr(0755,root,root) %{_sbindir}/apachectl
%attr(0755,root,root) %{_sbindir}/check_forensic
%attr(0755,root,root) %{_sbindir}/checkgid
%attr(0755,root,root) %{_sbindir}/dbmmanage
%attr(0755,root,root) %{_sbindir}/htdbm
%attr(0755,root,root) %{_sbindir}/htdigest
%attr(0755,root,root) %{_sbindir}/htpasswd
%attr(0755,root,root) %{_sbindir}/httxt2dbm
%attr(0755,root,root) %{_sbindir}/list_hooks.pl
%attr(0755,root,root) %{_sbindir}/logresolve
%attr(0755,root,root) %{_sbindir}/logresolve.pl
%attr(0755,root,root) %{_sbindir}/log_server_status
%attr(0755,root,root) %{_sbindir}/rotatelogs
%attr(0755,root,root) %{_sbindir}/split-logfile
%attr(0755,root,root) %dir %{_libdir}/apache
%attr(0755,root,root) %dir %{_libdir}/apache-extramodules
%attr(0700,apache,root) %dir /var/cache/httpd
%exclude %{_mandir}/man8/htcacheclean.8*
%{_mandir}/*/*

%files htcacheclean
%defattr(-,root,root)
%attr(0755,root,root) %{_initrddir}/htcacheclean
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/htcacheclean
%attr(0755,root,root) %{_sbindir}/htcacheclean
%{_mandir}/man8/htcacheclean.8*

%files devel
%defattr(-,root,root)
%multiarch %{multiarch_includedir}/apache/ap_config_layout.h
%{_includedir}/apache
%attr(0755,root,root) %dir %{_libdir}/apache/build
%attr(0755,root,root) %dir %{_sysconfdir}/httpd/build
%attr(0644,root,root) %{_libdir}/apache/build/*.mk
%attr(0755,root,root) %{_libdir}/apache/build/*.sh
%attr(0755,root,root) %{_libdir}/apache/build/envvars
%attr(0755,root,root) %{_sbindir}/envvars-std
%attr(0755,root,root) %{_sbindir}/apxs

%files source
%defattr(-,root,root)
%{_usrsrc}/apache-%{version}




%changelog

* Tue Sep 13 2011 alien <alien> 2.2.17-5.2.mga1
+ Revision: 143096
- Fix regression introduced by the fix for bug 2510
- Fix security bug #2510

  + misc <misc>
    - remove README.urpmi, as it only speak of change dating back to 2008.1

  + pterjan <pterjan>
    - Revert re-import
    - imported package apache

* Fri Jan 14 2011 ahmad <ahmad> 2.2.17-4.mga1
+ Revision: 17736
- drop old/unneeded scriptlets
- imported package apache


* Sat Jan 01 2011 Oden Eriksson <oeriksson@mandriva.com> 2.2.17-4mdv2011.0
+ Revision: 627296
- don't force the usage of automake1.7

* Wed Dec 01 2010 Paulo Andrade <pcpa@mandriva.com.br> 2.2.17-3mdv2011.0
+ Revision: 604598
- Rebuild with apr with workaround to gcc type based alias analysis issue
- Correct a possible unsafe usage of apr_bucket lists

* Thu Nov 25 2010 Oden Eriksson <oeriksson@mandriva.com> 2.2.17-2mdv2011.0
+ Revision: 601153
- temporary workaround a possible bug in gcc (#61384: Apache 2.2.17 doesn't support POST method to submit data)

* Wed Oct 20 2010 Oden Eriksson <oeriksson@mandriva.com> 2.2.17-1mdv2011.0
+ Revision: 586886
- 2.2.17
- fix #60937 (apachectl calls wrong httpd when using itk)

* Fri Oct 15 2010 Oden Eriksson <oeriksson@mandriva.com> 2.2.17-0.0.pre.1mdv2011.0
+ Revision: 585793
- 2.2.17 (pre-release)
- dropped one upstream added patch

* Sun Jul 25 2010 Funda Wang <fwang@mandriva.org> 2.2.16-1mdv2011.0
+ Revision: 559480
- 2.2.16 final

* Thu Jul 22 2010 Oden Eriksson <oeriksson@mandriva.com> 2.2.16-0.0.1mdv2011.0
+ Revision: 556884
- 2.2.16 (pre-release)

* Tue Apr 06 2010 Funda Wang <fwang@mandriva.org> 2.2.15-3mdv2010.1
+ Revision: 531956
- rebuild for new openssl

* Wed Mar 31 2010 Oden Eriksson <oeriksson@mandriva.com> 2.2.15-2mdv2010.1
+ Revision: 530513
- rebuild

* Sat Mar 06 2010 Oden Eriksson <oeriksson@mandriva.com> 2.2.15-1mdv2010.1
+ Revision: 515125
- 2.2.15 (official)

* Tue Mar 02 2010 Oden Eriksson <oeriksson@mandriva.com> 2.2.15-0.0mdv2010.1
+ Revision: 513530
- 2.2.15 (pre-release)
- update the peruser patches
- drop upstream applied patches
- added the new mod_reqtimeout sub package
- drop the old P22 CVE-2008-2939 patch as it was not applied and was
  applied upstream

* Fri Feb 26 2010 Oden Eriksson <oeriksson@mandriva.com> 2.2.14-6mdv2010.1
+ Revision: 511552
- rebuilt against openssl-0.9.8m

* Thu Dec 31 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.14-5mdv2010.1
+ Revision: 484460
- rebuilt for bdb-4.8 linkage

* Sat Dec 19 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.14-4mdv2010.1
+ Revision: 480217
- P6: fix a long standing problem with apachectl

* Tue Nov 24 2009 Pascal Terjan <pterjan@mandriva.org> 2.2.14-3mdv2010.1
+ Revision: 469671
- openssl and random devices are needed in post of mod_ssl

* Mon Nov 09 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.14-2mdv2010.1
+ Revision: 463437
- latest openssl breaks the test suite, disable it for now
- P21: security fix/workaround for CVE-2009-3555

  + Michael Scherer <misc@mandriva.org>
    - listen by default on both ipv6 and ipv4 if available for ssl, to
      be consistent with non ssl connection in httpd.conf

* Sun Oct 04 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.14-1mdv2010.0
+ Revision: 453379
- 2.2.14 was silently released 23-Sep-2009

* Sat Sep 26 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.14-0.1mdv2010.0
+ Revision: 449570
- also actually provide the 32_mod_proxy_scgi.conf file...
- 2.2.14 (non official release)
- drop the CVE-2009-3094, CVE-2009-3095 patches
- added the new mod_proxy_scgi module

* Fri Sep 25 2009 Olivier Blin <oblin@mandriva.com> 2.2.13-4mdv2010.0
+ Revision: 448916
- don't explicitely force fstack-protector, adding it for everyone is
  wrong, and it's enabled by default on x86 (from Arnaud Patard)

* Tue Sep 22 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.13-3mdv2010.0
+ Revision: 447310
- P200: security fix for CVE-2009-3094
- P201: security fix for CVE-2009-3095

* Mon Aug 17 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.13-2mdv2010.0
+ Revision: 417273
- don't require apache-mod_proxy for the caching modules

* Mon Aug 10 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.13-1mdv2010.0
+ Revision: 414339
- 2.2.13 (official)

* Thu Aug 06 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.13-0.1mdv2010.0
+ Revision: 410968
- 2.2.13 (prerelease)

* Mon Aug 03 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.12-2mdv2010.0
+ Revision: 408095
- rebuild
- 2.2.12 (official)

* Thu Jul 23 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.12-0.1mdv2010.0
+ Revision: 398960
- 2.2.12 (pre-release)
- rediffed one patch
- dropped a lot of patches applied upstream

* Sat Jul 11 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-16mdv2010.0
+ Revision: 394804
- S4: new perl-framework to conduct the testing
- P2004: upstream fix for PR46428
- P2005: security fix for CVE-2009-1890
- P2006: security fix for CVE-2009-1891

* Wed Jun 10 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-15mdv2010.0
+ Revision: 384771
- P2003: added one more post CVE-2009-1195 fix

* Tue Jun 09 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-14mdv2010.0
+ Revision: 384423
- P202: add svn fixes to make mod_perl build

* Sat Jun 06 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-13mdv2010.0
+ Revision: 383267
- rebuilt against new apr/apr-util libs

* Sun May 31 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-12mdv2010.0
+ Revision: 381656
- P2001: security fix for CVE-2009-1195

* Fri May 01 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-11mdv2010.0
+ Revision: 369725
- P2000: security fix for CVE-2009-1191
- revert the latest change
- new SNI patch (P200)

* Wed Apr 15 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-10mdv2009.1
+ Revision: 367319
- new P100 (itk-20090414-00)

* Fri Apr 10 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-9mdv2009.1
+ Revision: 365784
- fix P1008
- added P1008 to fix upstream PR45023 (revert wrong fix for PR39727)

* Tue Apr 07 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-8mdv2009.1
+ Revision: 364813
- added P103 that brings more features to peruser (asked by Denis Philippov)

* Sun Mar 22 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-7mdv2009.1
+ Revision: 360217
- new itk mpm patch (P100)

* Fri Mar 20 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-6mdv2009.1
+ Revision: 359256
- fix build
- added a proposed patch for upstream asf bug 39369, by Joe
  Orton which makes the (new'ish) perl-framework pass

* Sun Feb 01 2009 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-5mdv2009.1
+ Revision: 336097
- added upstream patch1000 that fixes PR38642
- added upstream patch1001 that fixes PR39243 and PR46508
- added upstream patch1002 that fixes PR41120
- added upstream patch1003 that fixes PR42829
- added upstream patch1004 that fixes PR45529
- added upstream patch1005 that fixes PR46342
- added upstream patch1006 that fixes PR46467

* Tue Dec 30 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-4mdv2009.1
+ Revision: 321347
- use %%ldflags
- fix backporting
- update the sni and itk patches
- sync with fedora (P20)

* Thu Dec 18 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-3mdv2009.1
+ Revision: 315825
- rebuild

* Tue Dec 16 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-2mdv2009.1
+ Revision: 314937
- rebuild

* Mon Dec 15 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-1mdv2009.1
+ Revision: 314486
- 2.2.11 (official release)

* Fri Dec 12 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-0.2mdv2009.1
+ Revision: 313610
- rediff some patches to meet the nofuzz criteria

* Sat Dec 06 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.11-0.1mdv2009.1
+ Revision: 311241
- 2.2.11 (test release)
- updated perl-framework (r719570)

* Thu Nov 20 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.10-2mdv2009.1
+ Revision: 305285
- fix #45083 (missing dependency on apr-util-dbd-ldap for mod_ldap)

* Fri Oct 17 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.10-1mdv2009.1
+ Revision: 294601
- disable the tests for now
- 2.2.10 (release)

* Fri Oct 10 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.10-0.1mdv2009.1
+ Revision: 291447
- 2.2.10
- drop upstream implemented patches; P21

* Sat Sep 20 2008 Michael Scherer <misc@mandriva.org> 2.2.9-12mdv2009.0
+ Revision: 286042
- break the requires loop of mod_cache and mod_proxy.
  mod_proxy do not requires mod_cache to work, and mod_cache already requires mod_proxy.
  since mod_cache is activated by default, this can have nasty effects on sites who are behind
  a reverse proxy without wanting cache.

* Sat Sep 13 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.9-11mdv2009.0
+ Revision: 284570
- fix #43383 (apache-base does not provide /usr/sbin/httpd)

* Tue Sep 02 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.9-10mdv2009.0
+ Revision: 278892
- rebuild

* Fri Aug 29 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.9-9mdv2009.0
+ Revision: 277262
- added P201 by the author and re-enable the tests
- new perl-framework (r689834)

  + Frederik Himpe <fhimpe@mandriva.org>
    - Add patch from upstream CVS fixing minor security problem
      CVE-2008-2939

* Wed Aug 20 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.9-8mdv2009.0
+ Revision: 274243
- fix deps
- update the docs and config
- temporary disable the tests
- new SNI patch (P200)

* Fri Aug 08 2008 Thierry Vignaud <tv@mandriva.org> 2.2.9-7mdv2009.0
+ Revision: 267894
+ rebuild (emptylog)

* Tue Jul 29 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.9-6mdv2009.0
+ Revision: 252237
- hardcode %%{_localstatedir}

* Sat Jul 26 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.9-5mdv2009.0
+ Revision: 250120
- re-implement the peruser mpm (requested by Denis Philippov <den-is@mezon.ru>)

* Wed Jul 09 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.9-4mdv2009.0
+ Revision: 233117
- second attempt enabling the perl-framework test suite

* Mon Jun 23 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.9-3mdv2009.0
+ Revision: 228146
- rebuilt due to PayloadIsLzma problems

* Thu Jun 19 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.9-2mdv2009.0
+ Revision: 226645
- drop P6, it's not needed anymore

* Fri Jun 13 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.9-1mdv2009.0
+ Revision: 218814
- build release

* Wed Jun 11 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.9-0.1mdv2009.0
+ Revision: 217901
- 2.2.9 (fixes CVE-2008-2364, CVE-2007-6420)
- rediffed P0,P15
- dropped P20,P22,P23,P24,P25,P26,P28,P29,P30, these are fixed in 2.2.9

* Thu Jun 05 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.8-9mdv2009.0
+ Revision: 215206
- rebuilt against apr/apr-util 1.3.0 (which has memcache)
- new SNI patch (P200)

  + Pixel <pixel@mandriva.com>
    - adapt to %%_localstatedir now being /var instead of /var/lib (#22312)

* Sat May 31 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.8-8mdv2009.0
+ Revision: 213687
- disable the perl-framework test suite for now
- use _disable_ld_no_undefined 1 because otherwise it won't build the modules
- don't use a cache-file, it confuses libtool

* Mon Apr 14 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.8-7mdv2009.0
+ Revision: 192693
- rebuild
- new perl-framework (r647789)

* Fri Mar 07 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.8-6mdv2008.1
+ Revision: 181224
- added P22 that fixes upstream PR43319
- added P23 that fixes upstream PR41190
- added P24 that fixes upstream PR44311
- added P25 that fixes upstream PR44458
- added P26 that fixes upstream PR27834 (hey pterjan, finally!;))
- added P27 that fixes upstream PR43711
- added P28 that fixes upstream PR11035
- added P29, mod_logio fixes
- added P30 that fixes upstream PR44402
- fix the htcacheclean initscript

* Thu Feb 28 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.8-5mdv2008.1
+ Revision: 176052
- also add P200
- added P200 to fix #38237 (Please include SNI support patch), requires openssl-0.9.8f+
  with "enable-tlsext". enabled in cooker since openssl-0.9.8g-2mdv2008.1

* Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 2.2.8-4mdv2008.1
+ Revision: 170699
- rebuild

* Fri Jan 25 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.8-3mdv2008.1
+ Revision: 157967
- added P21 to fix upstream bug 43596
- make max number of dynamically loadable modules and default serverlimit
  tunable at RPM build time

* Thu Jan 24 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.8-2mdv2008.1
+ Revision: 157446
- rebuild

* Fri Jan 18 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.8-1mdv2008.1
+ Revision: 154623
- 2.2.8 (official release)

* Thu Jan 10 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.8-0.1mdv2008.1
+ Revision: 147741
- 2.2.8
- drop upstream implemented patches; P21,P22

* Thu Jan 10 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.7-0.3mdv2008.1
+ Revision: 147619
- added P22 to fix upstream bugs 19954 and 41056 and to make it pass perl-framework rev 610816

* Tue Jan 08 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.7-0.2mdv2008.1
+ Revision: 146486
- added P21 to fix upstream bug 38034

* Sat Jan 05 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.7-0.1mdv2008.1
+ Revision: 145819
- 2.2.7 (fixes roughly 50 bugs and CVE-2007-6421,CVE-2007-6422,CVE-2007-6388,CVE-2007-5000)
- dropped upstream implemented patches; P18,P21
- rediffed P6
- updated the itk patch (P100)
- updates perl-framework r609180 (S4)

* Fri Dec 21 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-10mdv2008.1
+ Revision: 136444
- rebuilt against new build deps

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Sun Oct 21 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-9mdv2008.1
+ Revision: 100897
- rebuilt against new openssl

* Wed Sep 26 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-8mdv2008.0
+ Revision: 93150
- added P21 (fix for SSL library string regression (jorton))

* Sun Sep 23 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-7mdv2008.0
+ Revision: 92342
- fix #33944 (bad magic in %%pre for the apache-mod_ssl package)
- fix borked %%pre mod_ssl

* Wed Sep 19 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-6mdv2008.0
+ Revision: 91005
- added documentation for P20 as well

* Wed Sep 19 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-5mdv2008.0
+ Revision: 90824
- bump release
- added P20 to fix upstream bug 43415
- fix deps

* Sat Sep 15 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-4mdv2008.0
+ Revision: 87027
- bump release
- fix #32773 (mod_ssl configuration oddity)
- fix #33429 (mod_ssl post-install ssl certs handling breaks ldap server)
- updated the apache-README.urpmi file
- renamed the mod_ssl.default-vhost.conf file
- fix #33198 (Apache-mod_ssl incorrect placement of default ssl vhost config file.)

* Wed Sep 12 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-2mdv2008.0
+ Revision: 84664
- added the patches as well (duh!)
- added P19 to fix upstream bug 42829
- added upstream fixes (P17,P18)

* Fri Sep 07 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-1mdv2008.0
+ Revision: 81478
- 2.2.6 (release)

* Wed Sep 05 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-0.1mdv2008.0
+ Revision: 79882
- 2.2.6
- fix deps

* Thu Aug 16 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.5-0.3mdv2008.0
+ Revision: 64331
- added one missing dep for the test suite (perl-XML-Parser)

* Tue Aug 14 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.5-0.2mdv2008.0
+ Revision: 63025
- enable the test suite and add two missing deps

* Sat Aug 11 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.5-0.1mdv2008.0
+ Revision: 61969
- 2.2.5, closes CVE-2007-3847,CVE-2007-1863,CVE-2007-3304,CVE-2006-5752,CVE-2007-1862

* Wed Jul 25 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-17mdv2008.0
+ Revision: 55433
- don't provide apache-mpm for the experimental packages just yet...

* Mon Jul 09 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-16mdv2008.0
+ Revision: 50502
- fix #31813

* Sat Jul 07 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-15mdv2008.0
+ Revision: 49494
- P102: security fix for CVE-2006-5752
- P103: security fix for CVE-2007-1863
- P104: security fix for CVE-2007-3304

* Sun Jun 24 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-14mdv2008.0
+ Revision: 43768
- nope, the test suite don't want to work...
- updated perl-framework to r550280
- try and enable the test suite

* Sun Jun 24 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-13mdv2008.0
+ Revision: 43747
- fix #31562

* Fri Jun 22 2007 Andreas Hasenack <andreas@mandriva.com> 2.2.4-12mdv2008.0
+ Revision: 43203
- use serverbuild macro

* Wed Jun 20 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-11mdv2008.0
+ Revision: 41794
- added a patch for spurious open attempt on ".../file.html/.htaccess" by Allen Pulsifer (P16)
- added P50 that fixes CVE-2007-1862 and closes #31364

* Mon Jun 11 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-10mdv2008.0
+ Revision: 38032
- use distro conditional -fstack-protector
- use distro conditional -fstack-protector

* Tue May 29 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-9mdv2008.0
+ Revision: 32679
- new itk patch (P100)

  + Guillaume Rousse <guillomovitch@mandriva.org>
    - no more references to certwatch

* Wed Apr 18 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-7mdv2008.0
+ Revision: 14838
- added a small patch to ab (P15)


* Wed Mar 14 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-6mdv2007.1
+ Revision: 143466
- update the README file

* Sat Mar 10 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-5mdv2007.1
+ Revision: 140573
- rebuild

* Tue Feb 27 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-4mdv2007.1
+ Revision: 126497
- cleanup redundant deps
- added the event mpm
- added some crucial conflicts to the threaded mpm sub packages

* Sun Jan 28 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-3mdv2007.1
+ Revision: 114674
- added fcgi support to mod_rewrite from HEAD (P14)

* Thu Jan 18 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-2mdv2007.1
+ Revision: 110435
- added the EXPERIMENTAL mpm named "itk"

* Thu Jan 18 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.4-1mdv2007.1
+ Revision: 110066
- 2.2.4
- rediffed P1
- dropped P14, implemented upstream

* Thu Dec 14 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.3-4mdv2007.1
+ Revision: 96868
- new perl-framework (S4)

* Thu Nov 16 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.3-3mdv2007.1
+ Revision: 84764
- rebuild
- sync with fedora (2.2.3-6)
- bunzip sources

* Wed Oct 11 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.3-1mdv2007.0
+ Revision: 63259
- Import apache

* Sat Jul 29 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.3-1mdv2007.0
- 2.2.3 (fixes CVE-2006-3747)
- updated the perl-framework to r426459

* Tue Jul 18 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.2-1mdv2007.0
- rebuild

* Fri Jun 23 2006 Guillaume Rousse <guillomovitch@mandriva.org> 2.2.2-6mdv2007.0
- drop rpm macros, now included in rpm-helper, to avoid build dependency on apache

* Tue Jun 06 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.2-5mdv2007.0
- comment DBDriver in the apache-mod_dbd conf to prevent a segfault

* Tue May 30 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.2-4mdv2007.0
- make the htcacheclean init script really read the config file (#22804)

* Mon May 15 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.2-3mdk
- fix a silly typo in S61

* Sat May 13 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.2-2mdk
- added french corrections to the html error messages (P12,#19542)
- sync with fedora (P13)

* Mon May 01 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.2-1mdk
- 2.2.2
- broke out the bundled dbd modules

* Sun Apr 23 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.2-0.1mdk
- 2.2.2

* Sun Apr 02 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.1-0.1mdk
- 2.2.1 (addresses CVE-2005-3352,CVE-2005-3357)
- updated the perl-framework (r390750)

* Sun Apr 02 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.0-11mdk
- rebuilt due to package loss

* Sat Apr 01 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.0-10mdk
- use a patch from svn that fixes numerous bugs (P11)
- drop upstream patches; P11,P12,P14,P15,P100,P101

* Fri Feb 10 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.0-9mdk
- update perl-framework (S4) to r376644
- enable the test suite since the culpit turned out to be RTLD_DEEPBIND 
  that don't seem to work with our glibc just yet (#21012)
- fix deps

* Sun Feb 05 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.0-8mdk
- rebuilt due to package loss

* Sat Feb 04 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.0-7mdk
- sync with fedora (2.2.0-5) adds fixes for CVE-2005-3357,CVE-2005-3352

* Sat Jan 07 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.0-6mdk
- sync with fedora (2.2.0-4)

* Fri Dec 30 2005 Oden Eriksson <oeriksson@mandriva.com> 2.2.0-5mdk
- really fix the mod_ssl stuff (#20271) (thanks buchan)

* Mon Dec 19 2005 Oden Eriksson <oeriksson@mandriva.com> 2.2.0-4mdk
- fix deps
- fix the mod_ssl stuff

* Tue Dec 13 2005 Oden Eriksson <oeriksson@mandriva.com> 2.2.0-3mdk
- oops!, mod_charset_lite was not removed so re-add it
- added another module not built per default; mod_authn_alias
- added two html files in ascii format and update README.urpmi

* Tue Dec 13 2005 Oden Eriksson <oeriksson@mandriva.com> 2.2.0-2mdk
- fix deps

* Mon Dec 12 2005 Oden Eriksson <oeriksson@mandriva.com> 2.2.0-1mdk
- 2.2.0
- merge with the apache2 2.2.0 package in contrib
- added fedora patches and changes
- major packaging changes, cleanups, config changes, etc
- dropped the itk mpm
- updated the perl-framework suite to r355498 (S4)
- moved back the compilation of mod_ssl to this package, there
  were no benefits doing it as before (like security updates)
- added the htcacheclean sub package
- added memcache support to mod_ssl (P13)
- updated the README.urpmi file to reflect changes

* Thu Nov 17 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.55-6mdk
- added the itk mpm (enable with "--with itp").

* Sun Nov 13 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.55-5mdk
- rebuilt against openssl-0.9.8a

* Sun Nov 06 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.55-4mdk
- added P105 to fix a problem with mod_cgid when module other than 
  mod_suexec is providing uid/gid (ASF #36410)
- disable peruser, unstable, unmaintained...
- activate --enable-exception-hook
- broke out the two extra mod_backtrace and mod_whatkilledus modules

* Sun Oct 30 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.55-3mdk
- rebuilt to provide a -debug package too

* Mon Oct 17 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.55-2mdk
- rebuilt against correct apr-0.9.7

* Sat Oct 15 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.55-1mdk
- 2.0.55 (addresses CAN-2005-2700, CAN-2005-2491, CAN-2005-2088, 
  CAN-2005-2728, CAN-2005-2088, CAN-2005-1268)
- rediffed P22
- drop upstream patches; P32, P33, P34, P35, P122, P123, P124, P125
- pass "-DLDAP_DEPRECATED" to the CFLAGS
- fix deps (apr 0.9.7)
- ship mod_echo too
- fix #18764

* Tue Sep 13 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54-13mdk
- peruser-0.1.6

* Sat Sep 10 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54-12mdk
- added P124 to plug CAN-2005-2700
- added P125 to plug CAN-2005-2728

* Tue Sep 06 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54-11mdk
- rebuild

* Wed Aug 31 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54-10mdk
- rebuilt against new openldap-2.3.6 libs

* Sat Jul 30 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54-9mdk
- added another work around for a rpm bug

* Sat Jul 30 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54-8mdk
- added P122 to plug CAN-2005-2088 (redhat)
- added P123 to plug CVE CAN-2005-1268 (redhat)
- added a work around for a rpm bug, "Requires(foo,bar)" don't work

* Tue Jul 12 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54-7mdk
- fix descriptions

* Fri Jul 01 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54-6mdk
- peruser-0.1.5

* Thu Jun 30 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54-5mdk
- peruser-0.1.4
- added a rpm macros file for web applications to utilize (Guillaume Rousse)

* Tue Jun 14 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54-4mdk
- peruser-0.1.3

* Sun Jun 05 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54-3mdk
- fix provides
- added the README.urpmi file to the apache-base sub package to depict
  the most significant changes.
- better descriptions for certain sub packages
- broke out mod_userdir into its own sub package

* Sun Jun 05 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.0.54-2mdk
- add BuildRequires: zlib-devel

* Fri May 27 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54-1mdk
- let's the apache2/apache renaming begin
- added new P45 and P72 (fedora)
- peruser-0.1.2
- sync with fedora
- call libtool directly from the config_vars.mk file
- use modules.d to load modules instead of conf.d
- provide the manual from another spec src.rpm
- %%distribution is no more, use a local %%TAG (Mandriva Linux) instead
- strip the binaries (for now)
- rename apache2-common to apache-base to solve a cicrular deps problem
- use new rpm-4.4.x pre,post magic

* Wed Apr 13 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.54-0.2mdk
- peruser-r10

* Wed Apr 13 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.54-0.1mdk
- 2.0.54
- rediff P45
- deactivate P72
- drop upstream implemented P95
- peruser-r9

* Thu Mar 31 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53-9mdk
- the WORKER, PERUSER and PREFORK tagging was not working as
  intended, fixed now

* Thu Mar 17 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53-8mdk
- use the %%mkrel macro
- drop the %%distribution redefine
- misc deps cleanups
- fix deps on config files
- added some missing stuff
- drop metuxmpm as it  seems to be unmaintained

* Sun Mar 06 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53-7mdk
- drop the requirements of libtool for the apache2 package

* Fri Mar 04 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53-6mdk
- updated to peruser-r8 (P105)

* Sun Feb 27 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53-5mdk
- fix %%post and %%postun to prevent double restarts

* Tue Feb 15 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53-4mdk
- spec file cleanups, remove the ADVX-build stuff

* Fri Feb 11 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53-3mdk
- don't screw up netcraft history (J-M)

* Thu Feb 10 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53-2mdk
- used a more correct P75 (fedora)

* Tue Feb 08 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53-1mdk
- 2.0.53
- added the LDAP socket timeout patch (P95)

* Sun Feb 06 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53-0.rc1.1mdk
- 2.0.53-rc1
- build and provide the new dumpio module
- rediffed P75
- drop redundant and upstream implemented patches;
  - P49 (MDK #9850)
  - P95 (util_ldap_cache_mgr.c.patch)
  - P200 (CAN-2004-0885)
  - P201 (CAN-2004-0942)

* Fri Feb 04 2005 Buchan Milne <bgmilne@linux-mandrake.com> 2.0.52-18mdk
- rebuild for ldap2.2_7

* Mon Jan 31 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-17mdk
- fix deps and conditional %%multiarch

* Mon Jan 31 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-16mdk
- fix strange release gap

* Thu Jan 13 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-15mdk
- there's a new peruser patch (rediffed from the r7 patch),
  spotted by Lukas Vesely
- use less restrictive attribs on most .conf files, set it when
  needed instead (pleases rpmlint...)
- force permissions on certain files even if not needed

* Wed Jan 12 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-14mdk
- added P84 (fedora) to make ab-ssl work
- added one forgotten official patch (P95)

* Tue Jan 11 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-13mdk
- make --with debug work

* Tue Jan 11 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-12mdk
- provide logfiles too if a debug build

* Fri Dec 03 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-11mdk
- added P49 in an attempt to fix long standing #9850 (this 
  fix will be included in 2.0.53)

* Sun Nov 28 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-10mdk
- merge lib64 fixes by Gwenole Beauchesne that got lost for some reason
- remove an appended ".so" for the mod_auth_ldap module that seems to 
  have been in here for ages.

* Sat Nov 27 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-9mdk
- rebuilt against new pcre libs

* Thu Nov 25 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-8mdk
- rebuilt against apr/apu 0.9.5 final

* Thu Nov 18 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-7mdk
- provide metuxmpm and the new peruser mpm's too

* Thu Nov 18 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-6mdk
- fix the config_vars.mk file again

* Thu Nov 11 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-5mdk
- fix for wrongly assuming ipv6 on listen (P48)
- added a security fix (P201) that addresses CAN-2004-0942

* Tue Nov 09 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-4mdk
- rebuild against newish apr libs

* Mon Oct 18 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-3mdk
- added a security fix (P200) that addresses CAN-2004-0885
- added better commented patches from fedora

* Thu Oct 14 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-2mdk
- added P93 & P94 from fedora/redhat

* Wed Sep 29 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-1mdk
- 2.0.52 (includes the CAN-2004-0811 fix)
- drop P8, it's integrated upstream

* Sat Sep 25 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.51-2mdk
- added a security fix (P200) that addresses CAN-2004-0811

* Fri Sep 17 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.51-1mdk
- rediff a lot of patches
- drop patches that are either implemented upstream or redundant

* Thu Sep 16 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.50-6mdk
- added security fixes to the source for mod_ssl from ASF (P202 & P203)
  that addresses CAN-2004-0747 and CAN-2004-0809

* Fri Sep 10 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.50-5mdk
- added security fixes to the source for mod_ssl from suse (P200 & P201)
  that addresses CAN-2004-0748 and CAN-2004-0751

* Wed Aug 11 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.50-4mdk
- rebuilt against new db4.2 apr

* Thu Jul 15 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.50-3mdk
- have apache2-devel require pcre-devel (Christiaan Welvaart)

* Tue Jul 13 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.50-2mdk
- remove redundant provides
- re-added P45,P84,P85 (fedora)
- added fixed P39 (fedora)

* Thu Jul 01 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.50-1mdk
- 2.0.50
- enable mod_log_forensic
- drop P45,P46,P48,P49,P51,P53,P54,P55,P81,P84,P85,P89 and P90, these are
  integrated upstream as well as fixes for CAN-2004-0488 and CAN-2004-0493

* Thu Jun 24 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-12mdk
- move mod_ssl and to an external source rpm package (the ldap stuff may follow)
- remove distcache stuff as we build it using an external source rpm package
- sync with fedora (P7, P55) (2.0.49-7)

* Sat Jun 19 2004 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.49-11mdk
- rebuild with new openssl
- use fcntl for mutexes instead of posix mutexes (which won't work on
  non-NPTL kernels and some older processors), or sysvsem which are not
  resistand under high load.
- should fix bug #9101 at last
- tested under heavy load: 100,000 hits in 4 minutes, 1000 simultaneous
  connections, load average went up to 835.40, not a single failed request. 
- tested under NPTL kernel and User-Mode Linux kernel using linuxthreads.

* Fri Jun 18 2004 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.49-10mdk
- test stability of different mutexes

* Fri Jun 18 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-9mdk
- sync with fedora (P52,P53,P54,P72,P91,P92,P300)
- drop P100 in favour to P54
- bump server limit again
- fix deps
- provide a cleaner source package

* Fri Jun 11 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-8mdk
- fix deps

* Thu May 20 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-7mdk
- fix deps and brp-compress location

* Wed May 19 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-6mdk
- add the metux mpm (P104)
- bump DEFAULT_SERVER_LIMIT for the prefork mpm
- use the %%configure2_5x macro

* Sun May 16 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-5mdk
- use --enable-exception-hook if a debug build
- added P103 (fix mod_ldap cache file location) and add the ghostfile
- new P90 (jorton) fix #9120
- added S6 & S7 (mod_backtrace & mod_whatkilledus is built if a debug build)

* Sun May 09 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-4mdk
- sync with fedora (P51)

* Sat May 08 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-3mdk
- rebuilt

* Tue Apr 27 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-2mdk
- sync with fedora (P90)

* Sun Apr 25 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-1mdk
- split out the apr suite as apr-0.9.5-1mdk and apr-util-0.9.5-1mdk
- stole a lot of stuff from fedora
- removed a lot of patches
- made a lot of spec file changes
- require new ADVX-build >= 10 (and fix #5732)

* Mon Mar 15 2004 Michael Scherer <misc@mandrake.org> 2.0.48-6mdk
- /var/lib/dav owned by apache, otherwise, mod_dav doesn't work properly
- fix #6208 ( mod_ssl error due to incorrect permission )
- fix various [DIRM],[CFLP]
- remove forbidden words
- remove debug stuff for release