#(ie. use with rpm --rebuild): # # --with debug Compile with debugging code # # enable build with debugging code: will _not_ strip away any debugging code, # will _add_ -g3 to CFLAGS, will _add_ --enable-maintainer-mode to # configure. %define mmn 20020903 %define dbver db4 %define dbmver db4 %define build_debug 0 # commandline overrides: # rpm -ba|--rebuild --with 'xxx' %{?_with_debug: %{expand: %%define build_debug 1}} %{?_with_distcache: %{expand: %%define build_distcache 1}} %if %{build_debug} # disable build root strip policy %define __spec_install_post %{_prefix}/lib/rpm/brp-compress || : # This gives extra debuggin and huge binaries %{expand:%%define optflags %{optflags} %([ ! $DEBUG ] && echo '-g3')} %endif %if %{build_debug} %define build_debug 1 %endif %define ap_ldap_libs -lldap -llber -lsasl2 -lssl -lcrypto %define ap_ssl_libs -lssl -lcrypto %define version 2.0.53 %define sourcename httpd-%{version} # define libapr name %define libapr %mklibname apr 0 Summary: The most widely used Web server on the Internet Name: apache2 Version: %{version} Release: %mkrel 9 Group: System/Servers License: Apache License URL: http://www.apache.org Source0: http://archive.apache.org/dist/httpd/%{sourcename}.tar.gz Source1: http://archive.apache.org/dist/httpd/%{sourcename}.tar.gz.asc Source2: apache-2.README.ADVX Source3: apache-old-changelog Source4: apache2_transparent_png_icons.tar.bz2 Source5: gentestcrt.sh.bz2 Source6: mod_backtrace.c.bz2 Source7: mod_whatkilledus.c.bz2 Source8: test_char.h.bz2 # please keep this logic. Source30: 30_mod_proxy.conf.bz2 Source45: 45_mod_dav.conf.bz2 Source46: 46_mod_ldap.conf.bz2 Source55: 55_mod_cache.conf.bz2 Source56: 56_mod_disk_cache.conf.bz2 Source57: 57_mod_mem_cache.conf.bz2 Source58: 58_mod_file_cache.conf.bz2 Source59: 59_mod_deflate.conf.bz2 # provide a simpler buildconf script Source100: buildconf.bz2 # OE: stolen from Fedora # build/scripts patches Patch2: httpd-2.0.36-apxs.patch.bz2 Patch3: httpd-2.0.51-linkmods.diff.bz2 Patch5: httpd-2.0.45-deplibs.patch.bz2 Patch6: httpd-2.0.47-pie.patch.bz2 Patch7: httpd-2.0.45-syspcre.patch.bz2 Patch9: httpd-2.0.48-vpathinc.patch.bz2 # Bug fixes Patch20: httpd-2.0.45-encode.patch.bz2 Patch22: httpd-2.0.45-davetag.patch.bz2 Patch27: httpd-2.0.46-sslmutex.patch.bz2 Patch35: httpd-2.0.46-md5dig.patch.bz2 Patch40: httpd-2.0.48-sslpphrase.patch.bz2 Patch41: httpd-2.0.48-worker.patch.bz2 Patch44: httpd-2.0.48-workerhup.patch.bz2 Patch45: httpd-2.0.48-davmisc.patch.bz2 Patch47: httpd-2.0.48-vhost.patch.bz2 # http://lists.debian.org/debian-apache/2003/11/msg00109.html Patch48: httpd-2.0.48-bsd-ipv6-fix.diff.bz2 # Features/functional changes Patch71: httpd-2.0.40-xfsz.patch.bz2 Patch72: httpd-2.0.40-pod.patch.bz2 Patch73: httpd-2.0.51-noshmht.diff.bz2 Patch75: httpd-2.0.53-export.diff.bz2 Patch76: httpd-2.0.48-dynlimit.patch.bz2 Patch77: httpd-2.0.48-dynamic.patch.bz2 Patch79: httpd-2.0.51-sslstatus.diff.bz2 Patch80: httpd-2.0.48-corelimit.patch.bz2 Patch82: httpd-2.0.48-distcache.patch.bz2 Patch83: httpd-2.0.48-debuglog.patch.bz2 Patch84: httpd-2.0.48-abench.patch Patch86: httpd-2.0.51-sslheader.diff.bz2 Patch87: httpd-2.0.51-sslvars2.diff.bz2 Patch91: httpd-2.0.49-headerssl.patch.bz2 Patch92: httpd-2.0.49-workerstack.patch.bz2 Patch93: httpd-2.0.46-testhook.patch.bz2 Patch94: httpd-2.0.46-dumpcerts.patch.bz2 Patch95: mod_ldap_timeout.patch.bz2 # OE: prepare for the mod_limitipconn module found here: # http://dominia.org/djao/limitipconn.html Patch101: apachesrc.diff.bz2 # JMD: fix suexec path so we can have both versions of Apache and both # versions of suexec Patch102: apache2-suexec.patch.bz2 Patch103: httpd-2.0.49-mod_ldap_cache_file_location.diff.bz2 # OE: add the peruser mpm # http://www.telana.com/peruser.php Patch104: httpd-2.0.53-peruser-r8.diff.bz2 # Security fixes # to be continued... BuildRequires: apr-devel >= 0.9.5 BuildRequires: apr-util-devel >= 0.9.5 BuildRequires: pcre-devel BuildRequires: byacc BuildRequires: %{dbver}-devel BuildRequires: gif2png BuildRequires: glibc-devel BuildRequires: expat-devel BuildRequires: gdbm-devel BuildRequires: openldap-devel BuildRequires: libsasl-devel BuildRequires: libtool >= 1.4.2 BuildRequires: openssl-devel BuildRequires: perl >= 0:5.600 BuildRequires: zlib-devel BuildRequires: autoconf2.5 BuildRequires: automake1.7 BuildRequires: pkgconfig %if %mdkversion >= 1020 BuildRequires: multiarch-utils >= 1.0.3 %endif Prereq: rpm-helper Prereq: apache2-conf >= 2.0.52-2mdk Prereq: apache2-common = %{version} Prereq: apache2-modules = %{version} Provides: webserver Provides: apache BuildRoot: %{_tmppath}/apache2-%{version}-buildroot %description This package contains the main binary of apache2, a powerful, full-featured, efficient and freely-available Web server. Apache is also the most popular Web server on the Internet. This version of apache2 is fully modular, and many modules are available in pre-compiled formats, like PHP4 and mod_auth_external. Check for available Apache2 modules for Mandrakelinux at: http://nux.se/modules_for_apache2.html (most of them can be installed from the contribs repository) You can build apache2 with some conditional build swithes; (ie. use with rpm --rebuild): --with debug Compile with debugging code %package worker Summary: The most widely used Web server on the Internet Group: System/Servers Prereq: rpm-helper Prereq: apache2-conf >= 2.0.46-2mdk Prereq: apache2-common = %{version} Prereq: apache2-modules = %{version} Provides: webserver Provides: apache %description worker This package contains the main binary of apache2, a powerful, full-featured, efficient and freely-available Web server. Apache is also the most popular Web server on the Internet. This version of apache2 is fully modular, and many modules are available in pre-compiled formats, like PHP4 and mod_auth_external. Check for available Apache2 modules for Mandrakelinux at: http://nux.se/modules_for_apache2.html (most of them can be installed from the contribs repository) 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. %package peruser Summary: The most widely used Web server on the Internet Group: System/Servers URL: http://www.telana.com/peruser.php Prereq: rpm-helper Prereq: apache2-conf >= 2.0.46-2mdk Prereq: apache2-common = %{version} Prereq: apache2-modules = %{version} Provides: webserver Provides: apache %description peruser This package contains the main binary of apache2, a powerful, full-featured, efficient and freely-available Web server. Apache is also the most popular Web server on the Internet. This version of apache2 is fully modular, and many modules are available in pre-compiled formats, like PHP4 and mod_auth_external. Check for available Apache2 modules for Mandrakelinux at: http://nux.se/modules_for_apache2.html (most of them can be installed from the contribs repository) Peruser is an Apache 2 module based on metuxmpm, a working implimentation 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. 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. %package common Summary: Files common for apache2 and apache2-mod_perl installations Group: System/Servers Prereq: rpm-helper Prereq: libapr-util >= 0.9.5-1mdk Prereq: %{libapr} >= 1:0.9.5-1mdk Obsoletes: apache-common Provides: apache-common %description common This package contains files required for both apache2 and apache2-mod_perl package installations. Install this if you want to install apache2 or/and apache2 with mod_perl. %package modules Summary: Standard modules for apache2 Group: System/Servers Prereq: rpm-helper Provides: apache2-mod_access = %{version} Provides: apache2-mod_actions = %{version} Provides: apache2-mod_alias = %{version} Provides: apache2-mod_asis = %{version} Provides: apache2-mod_auth = %{version} Provides: apache2-mod_auth_anon = %{version} Provides: apache2-mod_auth_dbm = %{version} Provides: apache2-mod_auth_digest = %{version} Provides: apache2-mod_autoindex = %{version} Provides: apache2-mod_case_filter = %{version} Provides: apache2-mod_case_filter_in = %{version} Provides: apache2-mod_cern_meta = %{version} Provides: apache2-mod_cgi = %{version} Provides: apache2-mod_cgid = %{version} Provides: apache2-mod_charset_lite = %{version} Provides: apache2-mod_dir = %{version} Provides: apache2-mod_env = %{version} Provides: apache2-mod_expires = %{version} Provides: apache2-mod_ext_filter = %{version} Provides: apache2-mod_headers = %{version} Provides: apache2-mod_imap = %{version} Provides: apache2-mod_include = %{version} Provides: apache2-mod_info = %{version} Provides: apache2-mod_log_config = %{version} Provides: apache2-mod_logio = %{version} Provides: apache2-mod_log_forensic = %{version} Provides: apache2-mod_mime = %{version} Provides: apache2-mod_mime_magic = %{version} Provides: apache2-mod_negotiation = %{version} Provides: apache2-mod_rewrite = %{version} Provides: apache2-mod_setenvif = %{version} Provides: apache2-mod_speling = %{version} Provides: apache2-mod_status = %{version} Provides: apache2-mod_unique_id = %{version} Provides: apache2-mod_userdir = %{version} Provides: apache2-mod_usertrack = %{version} Provides: apache2-mod_vhost_alias = %{version} Provides: apache2-mod_dumpio = %{version} %if %{build_debug} Provides: apache2-mod_backtrace = %{version} Provides: apache2-mod_whatkilledus = %{version} %endif %description modules This package contains standard modules for apache2. It is required for normal operation of the web server. %package mod_dav Summary: Distributed Authoring and Versioning (WebDAV) Group: System/Servers Prereq: rpm-helper Prereq: apache2-conf Prereq: apache2-common = %{version} Prereq: apache2-modules = %{version} Provides: apache2-mod_dav_fs = %{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 Prereq: rpm-helper Prereq: apache2-conf Prereq: apache2-common = %{version} Prereq: apache2-modules = %{version} Provides: apache2-mod_auth_ldap = %{version} %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 Prereq: rpm-helper Prereq: apache2-conf Prereq: apache2-common = %{version} Prereq: apache2-modules = %{version} %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 Prereq: rpm-helper Prereq: apache2-conf Prereq: apache2-common = %{version} Prereq: apache2-modules = %{version} Prereq: apache2-mod_cache = %{version} %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 Prereq: rpm-helper Prereq: apache2-conf Prereq: apache2-common = %{version} Prereq: apache2-modules = %{version} Prereq: apache2-mod_cache = %{version} %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 Prereq: rpm-helper Prereq: apache2-conf Prereq: apache2-common = %{version} Prereq: apache2-modules = %{version} %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 Prereq: rpm-helper Prereq: apache2-conf Prereq: apache2-common = %{version} Prereq: apache2-modules = %{version} Provides: mod_gzip 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 Prereq: rpm-helper Prereq: apache2-conf Prereq: apache2-common = %{version} Prereq: apache2-modules = %{version} Prereq: apache2-mod_cache = %{version} Prereq: apache2-mod_disk_cache = %{version} Provides: apache2-mod_proxy_connect = %{version} Provides: apache2-mod_proxy_ftp = %{version} Provides: apache2-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 devel Group: Development/C Summary: Module development tools for the apache2 web server Requires: perl >= 0:5.600 Requires: gdbm-devel Requires: expat-devel Requires: glibc-devel Requires: openssl-devel Requires: libtool >= 1.4.2 Requires: apr-devel >= 0.9.5 Requires: apr-util-devel >= 0.9.5 Requires: autoconf2.5 Requires: automake1.7 Requires: pcre-devel Provides: apache2-mod_ssl-devel Obsoletes: apache2-mod_ssl-devel %description devel The apache2-devel package contains the source code for the apache2 Web server and the APXS binary you'll need to build Dynamic Shared Objects (DSOs) for apache2. If you are installing the apache2 Web server and you want to be able to compile or develop additional modules for apache2, you'll need to install this package. %package source Summary: The apache2 Source Group: System/Servers %description source The apache2 Source, including Mandrakelinux patches. Use this package to build apache2-mod_perl, or your own custom version. %package manual Summary: The apache2 Manual Group: System/Servers %description manual This package contains the apache2 server documentation in HTML format. %prep %setup -q -n %{sourcename} # "install" the 2 extra modules bzcat %{SOURCE6} > modules/experimental/mod_backtrace.c bzcat %{SOURCE7} > modules/experimental/mod_whatkilledus.c bzcat %{SOURCE8} > modules/experimental/test_char.h # OE: stolen from Fedora %patch2 -p1 -b .apxs.droplet %patch3 -p1 -b .linkmods.droplet %patch5 -p1 -b .deplibs.droplet %patch7 -p1 -b .syspcre.droplet %patch9 -p1 -b .vpathinc.droplet # no -b to prevent droplets in install root %patch20 -p1 %patch22 -p1 -b .davetag.droplet %patch27 -p1 -b .sslmutex.droplet %patch35 -p1 -b .md5dig.droplet %patch40 -p1 -b .sslpphrase.droplet %patch41 -p1 -b .worker.droplet %patch44 -p1 -b .workerhup.droplet %patch45 -p1 -b .davmisc.droplet %patch47 -p1 -b .vhost.droplet %patch48 -p1 -b .bsd-ipv6.droplet # %patch71 -p0 -b .xfsz.droplet %patch72 -p1 -b .pod.droplet %patch73 -p1 -b .noshmht.droplet %patch75 -p1 -b .export.droplet %patch76 -p1 -b .dynlimit.droplet %patch77 -p1 -b .dynamic.droplet %patch79 -p1 -b .sslstatus.droplet %patch80 -p1 -b .corelimit.droplet %patch82 -p1 -b .distcache.droplet %patch83 -p1 -b .debuglog.droplet %patch84 -p1 -b .abench.droplet %patch86 -p1 -b .sslheader.droplet %patch87 -p0 -b .sslvars2.droplet %patch91 -p1 -b .headerssl.droplet %patch92 -p1 -b .workerstack.droplet %patch93 -p1 -b .testhook.droplet %patch94 -p1 -b .dumpcerts.droplet %patch95 -p0 -b .mod_ldap_timeout.droplet # %patch101 -p1 -b .apachesrc.droplet %patch102 -p0 -b .apache2-suexec.droplet %patch103 -p0 -b .mod_ldap_cache_file_location.droplet %patch104 -p1 -b .peruser.droplet # Security fixes # to be continued... # Touch mod_ssl expression parser sources to prevent regenerating it touch modules/ssl/ssl_expr_*.[chyl] # Safety check: prevent build if defined MMN does not equal upstream MMN. vmmn=`echo MODULE_MAGIC_NUMBER_MAJOR | cpp -include include/ap_mmn.h | sed -n '/^2/p'` if test "x${vmmn}" != "x%{mmn}"; then : Error: Upstream MMN is now ${vmmn}, packaged MMN is %{mmn}. : Update the mmn macro and rebuild. exit 1 fi # Conditionally enable PIE support if echo 'static int foo[30000]; int main () { return 0; }' | gcc -pie -fpie -O2 -xc - -o pietest && ./pietest; then %patch6 -p1 -b .pie : PIE support enabled else : WARNING: PIE support not enabled fi # nuke the pietest binary rm -f pietest # don't install or use bundled pcreposix.h rm -f include/pcreposix.h #Fix apxs %{__perl} -pi -e 's|\@exp_installbuilddir\@|%{_libdir}/apache2/build|;' support/apxs.in %{__perl} -pi -e 's|get_vars\("prefix"\)|"%{_libdir}/apache2/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; \ " # use my nice converted transparent png icons tar -jxf %{SOURCE4} mv icons/*.png docs/icons/ # this is really better and easier than a stupid static patch... # for some reason you have to use ">>" here (!) %{__cat} >> config.layout << EOF <Layout ADVX> prefix: %{_sysconfdir}/httpd/2.0 exec_prefix: %{_prefix} bindir: %{_bindir} sbindir: %{_sbindir} libdir: %{_libdir} libexecdir: %{_libdir}/apache2 mandir: %{_mandir} infodir: %{_infodir} includedir: %{_includedir}/apache2 sysconfdir: %{_sysconfdir}/httpd/2.0/conf datadir: %{_var}/www installbuilddir: %{_libdir}/apache2/build errordir: %{_var}/www/error iconsdir: %{_var}/www/icons htdocsdir: %{_var}/www/html manualdir: %{_var}/www/html/manual cgidir: %{_var}/www/cgi-bin localstatedir: /var runtimedir: /var/run logfiledir: %{_var}/log/httpd proxycachedir: %{_var}/cache/httpd </Layout> EOF #Fix DYNAMIC_MODULE_LIMIT perl -pi -e "s/DYNAMIC_MODULE_LIMIT 64/DYNAMIC_MODULE_LIMIT 96/;" \ include/httpd.h # don't 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 1024|g" \ server/mpm/prefork/prefork.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 \"Apache-AdvancedExtranetServer\"|g" \ include/ap_release.h # this will only work if configured correctly in the config (FullOs)... cp server/core.c server/core.c.untagged %build ######################################################################################### # configure and build phase # export WANT_AUTOCONF_2_5="1" # We need to re-run ./buildconf because of any applied patch(es) #./buildconf # use a minimal buildconf instead bzcat %{SOURCE100} > buildconf sh ./buildconf %serverbuild #JMD: -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 is used by mod_perl #export CFLAGS="%{optflags} -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" #export CPPFLAGS="-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" #JMD: but only when we manage to fix the conflict between HAVE_SENDFILE and #JMD: HAVE_LARGEFILE in the APR sources. #export SSL_BASE="SYSTEM" # NOTE! "--enable-modules=all --enable-mods-shared=all" won't # enable _all_ modules, that's why I had to specify all of them... CFLAGS="%{optflags}" CPPFLAGS="-DSSL_EXPERIMENTAL_ENGINE" if pkg-config openssl; then # configure -C barfs with trailing spaces in CFLAGS CPPFLAGS="$CPPFLAGS `pkg-config --cflags openssl | sed 's/ *$//'`" SSL_LIBS="`pkg-config --libs openssl`" fi export CFLAGS CPPFLAGS SSL_LIBS #### #Copy pre-patched apache2 source so we can package an apache2-source rpm and #use it to build mod_perl rm -rf ../tmp-%{sourcename} install -d ../tmp-%{sourcename}/usr/src cp -dpR $RPM_BUILD_DIR/%{sourcename} ../tmp-%{sourcename}%{_usrsrc}/apache2-%{version} APVARS="--enable-layout=ADVX \ --cache-file=../config.cache \ --with-apr=%{_prefix} \ --with-apr-util=%{_prefix} \ --with-pcre=%{_prefix} \ %if %{build_debug} --enable-debug \ --enable-maintainer-mode \ --enable-exception-hook \ %endif --prefix=%{_sysconfdir}/httpd/2.0 \ --exec-prefix=%{_prefix} \ --bindir=%{_bindir} \ --sbindir=%{_sbindir} \ --libexecdir=%{_libdir}/apache2 \ --sysconfdir=%{_sysconfdir}/httpd/2.0/conf \ --localstatedir=/var \ --includedir=%{_includedir}/apache2 \ --infodir=%{_infodir} \ --mandir=%{_mandir} \ --datadir=%{_var}/www \ --with-port=80 \ --with-perl=%{__perl} \ --enable-access=shared \ --enable-auth=shared \ --enable-auth_dbm=shared \ --enable-auth_anon=shared \ --enable-auth_digest=shared \ --enable-alias=shared \ --enable-file-cache=shared \ --disable-echo \ --enable-charset-lite=shared \ --enable-cache=shared \ --enable-disk-cache=shared \ --enable-mem-cache=shared \ --disable-example \ --enable-ext-filter=shared \ --enable-case_filter=shared \ --enable-case-filter-in=shared \ --enable-deflate=shared \ --with-z=%{_prefix} \ --enable-mime-magic=shared \ --enable-cern-meta=shared \ --enable-expires=shared \ --enable-headers=shared \ --enable-usertrack=shared \ --enable-unique-id=shared \ --enable-proxy=shared \ --enable-proxy-connect=shared \ --enable-proxy-ftp=shared \ --enable-proxy-http=shared \ --disable-optional-hook-export \ --disable-optional-hook-import \ --disable-optional-fn-import \ --disable-optional-fn-export \ --disable-bucketeer \ --enable-info=shared \ --enable-include=shared \ --enable-cgi=shared \ --enable-cgid=shared \ --enable-dav=shared \ --enable-dav-fs=shared \ --enable-vhost-alias=shared \ --enable-speling=shared \ --enable-rewrite=shared \ --enable-log_config=shared \ --enable-logio=shared \ --enable-log_forensic=shared \ --enable-env=shared \ --enable-setenvif=shared \ --enable-mime=shared \ --enable-status=shared \ --enable-autoindex=shared \ --enable-asis=shared \ --enable-negotiation=shared \ --enable-dir=shared \ --enable-imap=shared \ --enable-actions=shared \ --enable-userdir=shared \ --enable-alias=shared \ --enable-auth-ldap=shared \ --enable-ldap=shared \ --enable-dumpio=shared \ --enable-forward \ --with-program-name=httpd2" # provide useful info for making some of the modules from # their own source rpm packages mkdir build-nothing pushd build-nothing ln -s ../configure . %configure2_5x $APVARS \ --with-mpm=prefork \ --enable-ssl=shared \ --with-ssl=%{_prefix} # make ab-ssl %make -C support CFLAGS="%{optflags} -DUSE_SSL -DHAVE_OPENSSL" ab cp -p support/ab ../ab-ssl # this makes us able to do "apxs2 -c `cat mod_ssl.txt` -lssl -lcrypto" from an external source rpm package grep "^mod_ssl.la" modules/ssl/modules.mk | cut -d\: -f2 | perl -pi -e "s|\.[s]lo|\.c|g" > ../../tmp-%{sourcename}%{_usrsrc}/apache2-%{version}/modules/ssl/mod_ssl.txt grep "^mod_ldap.la" modules/experimental/modules.mk | cut -d\: -f2 | perl -pi -e "s|\.[s]lo|\.c|g" > ../../tmp-%{sourcename}%{_usrsrc}/apache2-%{version}/modules/experimental/mod_ldap.txt popd for mpm in worker peruser prefork; do mkdir build-${mpm}; pushd build-${mpm} ln -s ../configure . %configure2_5x $APVARS --with-mpm=${mpm} #Copy configure flags to a file in the apache2-source rpm. echo "$APVARS --with-mpm=${mpm}" > ../../tmp-%{sourcename}%{_usrsrc}/apache2-%{version}/APVARS.${mpm} # OE: avoid linking of *everything* against all libs, mucho gracias suse! for lib in ldap lber sasl sasl2 ssl crypto; do %{__perl} -pi -e "s|-l$lib||g" build/config_vars.mk done %{__sed} '/SH_LINK.*util_ldap/ s/$/ %{ap_ldap_libs}/' modules/experimental/modules.mk > tmp; %{__mv} tmp modules/experimental/modules.mk %{__sed} '/SH_LINK.*auth_ldap/ s/$/ %{ap_ldap_libs}/' modules/experimental/modules.mk > tmp; %{__mv} tmp modules/experimental/modules.mk %{__sed} '/SH_LINK.*mod_ssl/ s/$/ %{ap_ssl_libs}/' modules/ssl/modules.mk > tmp; %{__mv} tmp modules/ssl/modules.mk # only build what's required. if ! [ "${mpm}" == "prefork" -o "${mpm}" == "peruser" ]; then %{__perl} -pi -e "s|^MODULE_DIRS = .*|MODULE_DIRS = http mappers|g" build/config_vars.mk fi # 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 \"|%{distribution}/${MPM_NAME}-%{release}|g" ../server/core.c # finally doing the build stage %make popd done # Verify that the same modules were built into the two httpd binaries ./build-prefork/httpd2 -l | grep -v prefork > ./prefork.mods ./build-worker/httpd2 -l | grep -v worker > ./worker.mods ./build-peruser/httpd2 -l | grep -v peruser > ./peruser.mods if ! [ `diff -u prefork.mods worker.mods` -o `diff -u prefork.mods peruser.mods` ]; then : Different modules built into httpd binaries, will not proceed exit 1 fi %if %{build_debug} # this won't work..., too bad... # --add-module=experimental:modules/experimental/mod_backtrace.c --enable-backtrace=shared \ # --add-module=experimental:modules/experimental/mod_whatkilledus.c --enable-whatkilledus=shared \ pushd build-prefork cp support/apxs apxs_test; chmod 755 apxs_test perl -pi -e "s|%{_libdir}/apache2/build|./build|g" apxs_test ./apxs_test -I../include -I../os/unix -I./include `apr-config --includes` -c ../modules/experimental/mod_backtrace.c ./apxs_test -I../include -I../os/unix -I./include `apr-config --includes` -c ../modules/experimental/mod_whatkilledus.c popd %endif %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} ######################################################################################### # install phase # %if %{build_debug} export DONT_STRIP=1 %endif install -d %{buildroot} EXCLUDE_FROM_STRIP="%{buildroot}/%{_sbindir}/httpd2 %{buildroot}/%{_sbindir}/httpd2-worker %{buildroot}/%{_sbindir}/httpd2-peruser" # make mr. lint happy and do some house cleaning... (remember, linux rules!) pushd ../tmp-%{sourcename}%{_usrsrc}/apache2-%{version} rm -rf autom4te.cache icons *.zip # if we delete these we have to maintain an "linux only" patch in %%setup too, mark my words! # rm -rf build/win32 modules/arch support/win32 # rm -rf os/beos os/bs2000 os/netware os/os2 os/tpf os/win32 # rm -rf server/mpm/beos server/mpm/mpmt_os2 server/mpm/netware server/mpm/winnt for f in `find . -type f -name ".orig"` \ `find . -type f -name ".deps"` `find . -type f -name ".indent.pro"` \ `find . -type f -name ".gdbinit"` `find . -type f -name "NW*"` \ `find . -type f -name "*.droplet"` `find . -type f -name "*.dsp"`; do rm -f $f done find . -type f | xargs %{__perl} -pi -e "s|%{_builddir}/%{sourcename}|%{_usrsrc}/apache2-%{version}|g" popd # install source tar c -C ../tmp-%{sourcename} 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}/apache2 \ mandir=%{buildroot}%{_mandir} \ sysconfdir=%{buildroot}%{_sysconfdir}/httpd/2.0/conf \ includedir=%{buildroot}%{_includedir}/apache2 \ localstatedir=%{buildroot}/var \ runtimedir=%{buildroot}/var/run \ installbuilddir=%{buildroot}%{_libdir}/apache2/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 popd # This was intruduced Sat Jun 15 2002, but it didn't work... ;( #make DESTDIR=%{buildroot} install pushd %{buildroot}%{_sbindir} rm -f suexec popd pushd %{buildroot}%{_mandir}/man8 rm -f suexec.8 popd #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}/apache2/build/config_vars.mk" %{__perl} -pi -e "s|%{_builddir}/%{sourcename}|%{_usrsrc}/apache2-%{version}|g" $CVMK %{__perl} -pi -e "s|%{buildroot}||g" $CVMK %{__perl} -pi -e "s|^EXTRA_INCLUDES.*|EXTRA_INCLUDES = `apr-config --includes` -I%{_includedir}/apache2 -I%{_includedir}/openssl|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}/apache2/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}/%{sourcename}|%{_usrsrc}/apache2-%{version}|g" %{buildroot}%{_libdir}/apache2/build/apr_rules.mk mv %{buildroot}%{_sbindir}/envvars %{buildroot}%{_libdir}/apache2/build/ ################################################################## # first tuck away the vanilla httpd*.conf file cp %{buildroot}%{_sysconfdir}/httpd/2.0/conf/highperformance.conf highperformance.conf cp %{buildroot}%{_sysconfdir}/httpd/2.0/conf/httpd2.conf httpd2-VANILLA.conf cp %{buildroot}%{_sysconfdir}/httpd/2.0/conf/ssl.conf ssl.conf cp %{buildroot}%{_sysconfdir}/httpd/2.0/conf/ssl-std.conf ssl-std.conf cp %{buildroot}%{_sysconfdir}/httpd/2.0/conf/highperformance-std.conf highperformance-std.conf cp %{buildroot}%{_sysconfdir}/httpd/2.0/conf/httpd-std.conf httpd-std.conf rm -rf %{buildroot}%{_sysconfdir}/httpd/2.0/conf # Link with main conf dir ln -sf ../conf %{buildroot}%{_sysconfdir}/httpd/2.0/conf # Link build dir ln -s ../../..%{_libdir}/apache2/build %{buildroot}%{_sysconfdir}/httpd/2.0/build # Apxs needs this to pickup the right lib for install ln -sf ../../..%{_libdir} %{buildroot}%{_sysconfdir}/httpd/2.0/lib # Link log directory ln -sf ../../..%{_var}/log/httpd %{buildroot}%{_sysconfdir}/httpd/2.0/logs # Link modules dir ln -sf ../../..%{_libdir}/apache2 %{buildroot}%{_sysconfdir}/httpd/2.0/modules # Link extra modules ln -sf ../../..%{_libdir}/apache2-extramodules %{buildroot}%{_sysconfdir}/httpd/2.0/extramodules ################################################################## #Move mod_ssl.so to %{_libdir}/apache2-extramodules install -d %{buildroot}%{_libdir}/apache2-extramodules # install module conf files for the "conf.d" dir loading structure install -d %{buildroot}/%{_sysconfdir}/httpd/conf.d bzcat %{SOURCE30} > %{buildroot}/%{_sysconfdir}/httpd/conf.d/30_mod_proxy.conf bzcat %{SOURCE45} > %{buildroot}/%{_sysconfdir}/httpd/conf.d/45_mod_dav.conf bzcat %{SOURCE46} > %{buildroot}/%{_sysconfdir}/httpd/conf.d/46_mod_ldap.conf bzcat %{SOURCE55} > %{buildroot}/%{_sysconfdir}/httpd/conf.d/55_mod_cache.conf bzcat %{SOURCE56} > %{buildroot}/%{_sysconfdir}/httpd/conf.d/56_mod_disk_cache.conf bzcat %{SOURCE57} > %{buildroot}/%{_sysconfdir}/httpd/conf.d/57_mod_mem_cache.conf bzcat %{SOURCE58} > %{buildroot}/%{_sysconfdir}/httpd/conf.d/58_mod_file_cache.conf bzcat %{SOURCE59} > %{buildroot}/%{_sysconfdir}/httpd/conf.d/59_mod_deflate.conf %if %{build_debug} # fix the mod_backtrace.conf cat << EOF > %{buildroot}/%{_sysconfdir}/httpd/conf.d/ZZ90_mod_backtrace.conf <IfDefine HAVE_BACKTRACE> <IfModule !mod_backtrace.so.c> LoadModule backtrace_module extramodules/mod_backtrace.so </IfModule> </IfDefine> <IfModule mod_backtrace.c> EnableExceptionHook On BacktraceLog logs/backtrace_log </IfModule> EOF # fix the mod_whatkilledus.conf cat << EOF > %{buildroot}/%{_sysconfdir}/httpd/conf.d/ZZ91_mod_whatkilledus.conf <IfDefine HAVE_WHATKILLEDUS> <IfModule !mod_whatkilledus.so.c> LoadModule whatkilledus_module extramodules/mod_whatkilledus.so </IfModule> </IfDefine> <IfModule mod_whatkilledus.c> EnableExceptionHook On WhatKilledUsLog logs/whatkilledus_log </IfModule> EOF # install the dso's install -m0755 modules/experimental/.libs/mod_backtrace.so %{buildroot}%{_libdir}/apache2-extramodules/ install -m0755 modules/experimental/.libs/mod_whatkilledus.so %{buildroot}%{_libdir}/apache2-extramodules/ # provide log files too touch %{buildroot}%{_var}/log/httpd/backtrace_log touch %{buildroot}%{_var}/log/httpd/whatkilledus_log %endif cat << EOF > %{buildroot}/%{_sysconfdir}/httpd/conf.d/00_manual.conf Alias /manual/ /usr/share/doc/apache2-manual-%{version}/ Alias /manual-2.0/ /usr/share/doc/apache2-manual-%{version}/ <Directory /usr/share/doc/apache2-manual-%{version}> Order allow,deny Allow from all </Directory> EOF install -d %{buildroot}%{_localstatedir}/dav #Move mod_ldap.so and mod_auth_ldap.so to %{_libdir}/apache2-extramodules mv %{buildroot}%{_libdir}/apache2/mod_ldap.so %{buildroot}%{_libdir}/apache2-extramodules mv %{buildroot}%{_libdir}/apache2/mod_auth_ldap.so %{buildroot}%{_libdir}/apache2-extramodules # make libtool a (dangling) symlink ln -snf ../../../bin/libtool %{buildroot}%{_libdir}/apache2/build/libtool # fix manual pushd %{buildroot}%{_var}/www/html/manual for i in `find -name "*.html.en"`; do new_name=`echo $i | sed -e "s/.html.en/.html/g"` mv -f $i $new_name done # we don't need these for i in `find -name "footer.html"` `find -name "header.html"`; do rm -f $i done # we only want to provide png files... find -type f -name "*.html" | xargs perl -p -i -e "s|\.gif|\.png|g" # we only want to provide png files... find -type f -name "*.gif" | xargs gif2png -d -O popd # we only want to provide png files... find %{buildroot}%{_var}/www/icons -type f -name "*.gif" | xargs rm # 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 # install ssl aware ab install -m0755 ab-ssl %{buildroot}%{_sbindir}/ab # Install manual install -d %{buildroot}%{_docdir}/apache2-manual-%{version} install -d %{buildroot}%{_var}/www pushd %{buildroot}%{_var}/www/html tar c -C . manual | tar x -C $RPM_BUILD_DIR/%{sourcename} rm -rf manual popd cp %{SOURCE2} $RPM_BUILD_DIR/%{sourcename}/README.ADVX cp %{SOURCE3} $RPM_BUILD_DIR/%{sourcename}/ #Put README.ADVX into apache2-devel so other packages can use it cp %{SOURCE2} %{buildroot}/%{_includedir}/apache2/README.ADVX cp %{SOURCE2} README.ADVX install -d %{buildroot}%{_var}/cache/httpd #Fix apxs name if necessary pushd %{buildroot}%{_sbindir} mv apxs apxs2 rm -rf %{buildroot}%{_var}/www/html/index* rm -rf %{buildroot}%{_var}/www/html/apach* rm -rf %{buildroot}%{_sbindir}/apachectl rm -rf %{buildroot}%{_var}/www/cgi-bin/printenv rm -rf %{buildroot}%{_var}/www/cgi-bin/test-cgi popd # fix a msec safe cache for the mod_ldap stuff touch %{buildroot}%{_var}/cache/httpd/mod_ldap_cache # install the mpm stuff install -m0755 build-worker/httpd2 %{buildroot}%{_sbindir}/httpd2-worker install -m0755 build-peruser/httpd2 %{buildroot}/%{_sbindir}/httpd2-peruser # these won't get stripped for some reason... strip %{buildroot}%{_sbindir}/ab strip %{buildroot}%{_sbindir}/checkgid strip %{buildroot}%{_sbindir}/htdbm strip %{buildroot}%{_sbindir}/htdigest strip %{buildroot}%{_sbindir}/htpasswd strip %{buildroot}%{_sbindir}/logresolve strip %{buildroot}%{_sbindir}/rotatelogs %if %mdkversion >= 1020 %multiarch_includes %{buildroot}%{_includedir}/apache2/ap_config_layout.h %endif ######################################################################################### # install phase done # %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} #Clean up "install source" and other generated dirs [ "../tmp-%{sourcename}%{_usrsrc}/apache2-%{version}" != "/" ] && rm -rf ../tmp-%{sourcename}%{_usrsrc}/apache2-%{version} [ "../usr/src" != "/" ] && rm -rf ../usr/src [ "../tmp-%{sourcename}" != "/" ] && rm -rf ../tmp-%{sourcename} %post if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2; fi %postun if [ "$1" = "0" ]; then if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2 fi fi %post worker if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2; fi %postun worker if [ "$1" = "0" ]; then if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2 fi fi %post peruser if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2; fi %postun peruser if [ "$1" = "0" ]; then if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2 fi fi %post manual if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2; fi %postun manual if [ "$1" = "0" ]; then if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2 fi fi %pre common %_pre_useradd apache %{_var}/www /bin/sh %postun common %_postun_userdel apache %post modules %if %{build_debug} %create_ghostfile %{_var}/log/httpd/backtrace_log apache apache 0644 %create_ghostfile %{_var}/log/httpd/whatkilledus_log apache apache 0644 %endif 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_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 %files %defattr(-,root,root) %doc README.ADVX %doc highperformance.conf %doc httpd2-VANILLA.conf %doc ssl.conf %doc ssl-std.conf %doc highperformance-std.conf %doc httpd-std.conf %doc apache-old-changelog %attr(0755,root,root) %{_sbindir}/httpd2 %files worker %defattr(-,root,root) %doc README.ADVX %doc highperformance.conf %doc httpd2-VANILLA.conf %doc ssl.conf %doc ssl-std.conf %doc highperformance-std.conf %doc httpd-std.conf %doc apache-old-changelog %attr(0755,root,root) %{_sbindir}/httpd2-worker %files peruser %defattr(-,root,root) %doc README.ADVX %doc highperformance.conf %doc httpd2-VANILLA.conf %doc ssl.conf %doc ssl-std.conf %doc highperformance-std.conf %doc httpd-std.conf %doc apache-old-changelog %attr(0755,root,root) %{_sbindir}/httpd2-peruser %files modules #Do not put apache.apache here, otherwise anyone with web access can #tamper with the files!!!! %defattr(-,root,root) %doc modules/README* %doc README.ADVX %dir %{_libdir}/apache2 %attr(0755,root,root) %{_libdir}/apache2/mod_access.so %attr(0755,root,root) %{_libdir}/apache2/mod_actions.so %attr(0755,root,root) %{_libdir}/apache2/mod_alias.so %attr(0755,root,root) %{_libdir}/apache2/mod_asis.so %attr(0755,root,root) %{_libdir}/apache2/mod_auth.so %attr(0755,root,root) %{_libdir}/apache2/mod_auth_anon.so %attr(0755,root,root) %{_libdir}/apache2/mod_auth_dbm.so %attr(0755,root,root) %{_libdir}/apache2/mod_auth_digest.so %attr(0755,root,root) %{_libdir}/apache2/mod_autoindex.so %attr(0755,root,root) %{_libdir}/apache2/mod_case_filter.so %attr(0755,root,root) %{_libdir}/apache2/mod_case_filter_in.so %attr(0755,root,root) %{_libdir}/apache2/mod_cern_meta.so %attr(0755,root,root) %{_libdir}/apache2/mod_cgi.so %attr(0755,root,root) %{_libdir}/apache2/mod_cgid.so %attr(0755,root,root) %{_libdir}/apache2/mod_charset_lite.so %attr(0755,root,root) %{_libdir}/apache2/mod_dir.so %attr(0755,root,root) %{_libdir}/apache2/mod_env.so %attr(0755,root,root) %{_libdir}/apache2/mod_expires.so %attr(0755,root,root) %{_libdir}/apache2/mod_ext_filter.so %attr(0755,root,root) %{_libdir}/apache2/mod_headers.so %attr(0755,root,root) %{_libdir}/apache2/mod_imap.so %attr(0755,root,root) %{_libdir}/apache2/mod_include.so %attr(0755,root,root) %{_libdir}/apache2/mod_info.so %attr(0755,root,root) %{_libdir}/apache2/mod_log_config.so %attr(0755,root,root) %{_libdir}/apache2/mod_logio.so %attr(0755,root,root) %{_libdir}/apache2/mod_log_forensic.so %attr(0755,root,root) %{_libdir}/apache2/mod_mime.so %attr(0755,root,root) %{_libdir}/apache2/mod_mime_magic.so %attr(0755,root,root) %{_libdir}/apache2/mod_negotiation.so %attr(0755,root,root) %{_libdir}/apache2/mod_rewrite.so %attr(0755,root,root) %{_libdir}/apache2/mod_setenvif.so %attr(0755,root,root) %{_libdir}/apache2/mod_speling.so %attr(0755,root,root) %{_libdir}/apache2/mod_status.so %attr(0755,root,root) %{_libdir}/apache2/mod_unique_id.so %attr(0755,root,root) %{_libdir}/apache2/mod_userdir.so %attr(0755,root,root) %{_libdir}/apache2/mod_usertrack.so %attr(0755,root,root) %{_libdir}/apache2/mod_vhost_alias.so %attr(0755,root,root) %{_libdir}/apache2/mod_dumpio.so %attr(0755,root,root) %{_libdir}/apache2/httpd.exp %attr(0755,root,root) %dir %{_libdir}/apache2-extramodules %attr(0755,root,root) %dir %{_sysconfdir}/httpd/2.0 %exclude %{_sysconfdir}/httpd/2.0/build/ %{_sysconfdir}/httpd/2.0/* %if %{build_debug} %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/ZZ90_mod_backtrace.conf %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/ZZ91_mod_whatkilledus.conf %attr(0755,root,root) %{_libdir}/apache2-extramodules/mod_backtrace.so %attr(0755,root,root) %{_libdir}/apache2-extramodules/mod_whatkilledus.so %attr(0644,apache,apache) %ghost %{_var}/log/httpd/backtrace_log %attr(0644,apache,apache) %ghost %{_var}/log/httpd/whatkilledus_log %endif %files mod_proxy %defattr(-,root,root) %doc modules/proxy/CHANGES %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/*_mod_proxy.conf %attr(0755,root,root) %{_libdir}/apache2/mod_proxy_connect.so %attr(0755,root,root) %{_libdir}/apache2/mod_proxy_ftp.so %attr(0755,root,root) %{_libdir}/apache2/mod_proxy_http.so %attr(0755,root,root) %{_libdir}/apache2/mod_proxy.so %attr(0770,root,apache) %dir %{_var}/cache/httpd %files mod_dav %defattr(-,root,root) %doc README.ADVX %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/*_mod_dav.conf %attr(0755,root,root) %{_libdir}/apache2/mod_dav.so %attr(0755,root,root) %{_libdir}/apache2/mod_dav_fs.so %attr(-,apache,apache) %dir %{_localstatedir}/dav %files mod_ldap %defattr(-,root,root) %doc README.ADVX %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/*_mod_ldap.conf %attr(0755,root,root) %{_libdir}/apache2-extramodules/mod_ldap.so %attr(0755,root,root) %{_libdir}/apache2-extramodules/mod_auth_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/conf.d/*_mod_cache.conf %attr(0755,root,root) %{_libdir}/apache2/mod_cache.so %files mod_disk_cache %defattr(-,root,root) %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/*_mod_disk_cache.conf %attr(0755,root,root) %{_libdir}/apache2/mod_disk_cache.so %files mod_mem_cache %defattr(-,root,root) %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/*_mod_mem_cache.conf %attr(0755,root,root) %{_libdir}/apache2/mod_mem_cache.so %files mod_file_cache %defattr(-,root,root) %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/*_mod_file_cache.conf %attr(0755,root,root) %{_libdir}/apache2/mod_file_cache.so %files mod_deflate %defattr(-,root,root) %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/*_mod_deflate.conf %attr(0755,root,root) %{_libdir}/apache2/mod_deflate.so %files common #Do not put apache.apache for the rest, otherwise anyone with web access can #tamper with the files!!!! %defattr(-,root,root) %doc README.ADVX %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 %attr(0755,root,root) %{_var}/www/icons/README* %attr(0755,root,root) %{_var}/www/icons/*.png %attr(0755,root,root) %{_var}/www/icons/small/README* %attr(0755,root,root) %{_var}/www/icons/small/*.png %{_mandir}/*/* %attr(0755,root,root) %{_sbindir}/ab %attr(0755,root,root) %{_sbindir}/checkgid %attr(0755,root,root) %{_sbindir}/htdbm %attr(0755,root,root) %{_sbindir}/htdigest %attr(0755,root,root) %{_sbindir}/htpasswd %attr(0755,root,root) %{_sbindir}/logresolve %attr(0755,root,root) %{_sbindir}/rotatelogs %attr(0755,root,root) %{_sbindir}/split-logfile %attr(0755,root,root) %{_sbindir}/dbmmanage %attr(0755,root,root) %{_sbindir}/list_hooks.pl %attr(0755,root,root) %{_sbindir}/logresolve.pl %attr(0755,root,root) %{_sbindir}/log_server_status %attr(0755,root,root) %{_sbindir}/checkgid %attr(0755,root,root) %{_sbindir}/check_forensic #JMD: Removed for Apache2 since mm is not used anymore #Maybe we'll add it again someday. #(By the way, 1333 is the *right* permission.) #%attr(1333,apache,apache) %dir /var/apache-mm %files manual #Do not put apache.apache here, otherwise anyone with web access can #tamper with the files!!!! %defattr(-,root,root) %doc manual/* README.ADVX %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/00_manual.conf %files devel #Do not put apache.apache here, otherwise anyone with web access can #tamper with the files!!!! %defattr(-,root,root) %doc README.ADVX %if %mdkversion >= 1020 %multiarch %{multiarch_includedir}/apache2/ap_config_layout.h %endif %{_includedir}/apache2 %attr(0755,root,root) %dir %{_libdir}/apache2/build %attr(0755,root,root) %dir %{_sysconfdir}/httpd/2.0/build %attr(0644,root,root) %{_libdir}/apache2/build/*.mk %attr(0755,root,root) %{_libdir}/apache2/build/*.sh %attr(0755,root,root) %{_libdir}/apache2/build/envvars %attr(0755,root,root) %{_libdir}/apache2/build/libtool %attr(0755,root,root) %{_libdir}/apache2/build/config.nice %attr(0755,root,root) %{_sbindir}/envvars-std %attr(0755,root,root) %{_sbindir}/apxs2 %files source #Do not put apache.apache here, otherwise anyone with web access can #tamper with the files!!!! %defattr(-,root,root) %doc README.ADVX %{_usrsrc}/apache2-%{version} %changelog * Wed Mar 30 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 * Sun Oct 17 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 * Wed Oct 13 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52-2mdk - added P93 & P94 from fedora/redhat * Tue Sep 28 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 * Fri Sep 24 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.51-2mdk - added a security fix (P200) that addresses CAN-2004-0811 * Thu Sep 16 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.51-1mdk - rediff a lot of patches - drop patches that are either implemented upstream or redundant * Wed Sep 15 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 * Thu Sep 09 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 * Tue Aug 10 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.50-4mdk - rebuilt against new db4.2 apr * Wed Jul 14 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.50-3mdk - have apache2-devel require pcre-devel (Christiaan Welvaart) * Mon Jul 12 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.50-2mdk - remove redundant provides - re-added P45,P84,P85 (fedora) - added fixed P39 (fedora) * Wed Jun 30 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 * Wed Jun 23 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) * Fri Jun 18 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. * Thu Jun 17 2004 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.49-10mdk - test stability of different mutexes * Thu Jun 17 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 * Thu Jun 10 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-8mdk - fix deps * Wed May 19 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-7mdk - fix deps and brp-compress location * Tue May 18 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 * Sat May 15 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) * Sat May 08 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-4mdk - sync with fedora (P51) * Fri May 07 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-3mdk - rebuilt * Mon Apr 26 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.49-2mdk - sync with fedora (P90) * Sat Apr 24 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 * Mon Dec 15 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.48-5mdk - new openssl - fix mod_auth_ldap (link with ldap, ber, crypto, ssl) * Sun Dec 14 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.48-4mdk - fix #6556 - updated P5 * Sun Dec 07 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.48-3mdk - rebuilt to fix missing package in the repository * Sun Nov 02 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.48-2mdk - added P6 (check: http://bitbrook.de/software/mod_log_mysql/) * Tue Oct 28 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.48-1mdk - 2.0.48 ([CAN-2003-0789], [CAN-2003-0542]) - merged in house stuff with vdanens stuff - fix the httpd2-VANILLA.conf file - include the other *.conf files as well in %%doc - drop P50, pause P40, rediffed P5, updated S2 - build debug per default until mdk10(?) final - fix the mod_ssl cache location and ghost files - don't ship novell stuff in the source package - fix explicit-lib-dependency * Wed Oct 22 2003 Vincent Danen <vdanen@mandrakesoft.com> 2.0.47-6.1.92mdk - don't use the new mod_cgi as it causes more problems than it fixes - fix mod_proxy config since it was entirely insecure * Mon Sep 15 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.47-6mdk - fix CGI - took mod_cgi.c from httpd-2.1-dev since it fixes a nasty bug (and potential DoS attack) [Apache Bug 22030] - put the ssl_scache file into /var/cache to avoid log rotation and segfaults * Thu Aug 14 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.0.47-5mdk - Fix dependencies (aka remove autorequired packages) * Mon Jul 21 2003 David BAUDENS <baudens@mandrakesoft.com> 2.0.47-4mdk - Rebuild to fix bad signature * Sun Jul 20 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.47-3mdk - fix the apu-config file - fix requires - misc spec file fixes * Tue Jul 15 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.47-2mdk - rebuilt against new db4.1, openldap and sasl2 - added P50 - misc spec file fixes * Wed Jul 09 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.47-1mdk - 2.0.47, fixes [CAN-2003-0192], [CAN-2003-0253], [CAN-2003-0254], [VU#379828] - require apache2-conf >= 2.0.46-2mdk * Wed Jun 18 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.46-5mdk - fix typo in requires for the apr package (sooooo annoying...) * Wed Jun 18 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.46-4mdk - build options against new shared distcache libs, use --with distcache or wait for a mod_ssl_dc module in contribs - added spec file magic with ideas from suse to prevent everything to be built against all libs, also all requires changed because of this. - use the %%configure2_5x macro - use --enable-nonportable-atomics for i586 and upwards - updated S46, note that the mod_ldap stuff is still market experimental... - misc spec file fixes * Wed Jun 04 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.46-3mdk - added distcache support as a conditional switch (--with distcache), currently not enabled by default - added a distcache entry in S40 - don't require libdb3.3 * Fri May 30 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.46-2mdk - remove useless modules - broke out mod_deflate, cache and proxy modules - misc spec file fixes - require new ADVX-build >= 9.2 * Wed May 28 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.46-1mdk - security release (CAN-2003-0245, CAN-2003-0189) - stole P40 & P41 from redhat - misc spec file fixes * Mon May 05 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.45-5mdk - require libopenssl0.9.7 and not libopenssl0 * Fri Apr 11 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.45-4mdk - Link apache2-extramodules-2.0.44 with 2.0.45, even if directory is empty, so it's possible to install modules for 2.0.44 on 2.0.45. * Mon Apr 07 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.45-3mdk - 2.0.45 is binary compatible with 2.0.44, migrate old modules to new modules directory. * Mon Apr 07 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.45-2mdk - Rebuild for 9.1 security update * Tue Apr 01 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.45-1mdk - 2.0.45 * Tue Mar 4 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.44-11mdk - I was out of coffee, so I messed up the last package. Went to the store, bought a dozen kilos of French Roast, Colombian and Espresso beans, so I'll be okay for a while. - Really fix the manuals this time, I swear! * Tue Mar 4 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.44-10mdk - add post script for manual package, and provide a /manual/2.0 alias as well. * Mon Mar 3 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.44-9mdk - re-add obsoletes on manual package, since the 9.0 manual package had a weird dependency on mm = 1.1.3 (jmdault sucks ;-) * Sun Mar 2 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.44-8mdk - fix manual config file (thanks Ryan!) * Fri Feb 28 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.44-7mdk - Do not require libdb*-devel, it breaks the upgrade from 9.0 to 9.1. Instead, each Apache module that requires libdb* to compile should add it to its buildrequires - Make -devel, -manual and -source package not obsolete their old versions, since they can be installed in parallel. - Do not use a symlink for the manual, but use a config file instead, to be able to install both the 1.3 and 2.0 manuals. * Sat Feb 22 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.44-6mdk - Change DYNAMIC_MODULE_LIMIT from 64 to 96 (Wow! We really have *lots* of apache modules ;-) * Fri Feb 21 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.44-5mdk - fix suexec path so we can have both versions of Apache and both versions of suexec - fix images (use gif2png) * Thu Feb 13 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.44-4mdk - rebuild - remove fake ASF root, it gives a bunch of danglink symlinks which rpmlint doesn't like... Dumb modules will have to be fixed if they need this. * Wed Feb 12 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.44-3mdk - arrgh!!! forgot to pass --enable-forward to the configure line to get "-DRECORD_FORWARD" correctly added... * Wed Feb 12 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.44-2mdk - add P3 (for mod_limitipconn) * Mon Jan 20 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.44-1mdk - 2.0.44 - drop obsolete P3, P4 & P5 - misc spec file fixes * Mon Jan 20 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.43-8mdk - fix buildrequires ADVX-build >= 1.1 - fix fake ASF root, make it easier to point to, if nessesary when building dumb third party modules - fix the distribution macro insertion * Sat Jan 18 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.43-7mdk - rebuild against openssl-0.9.7 - misc spec file fixes * Wed Jan 08 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.43-6mdk - Rebuilt with db4 * Mon Jan 06 2003 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.43-5mdk - Change apxs to apxs2 and /usr/include/apache to /usr/include/apache2 to be able to work on Apache 1.3 and 2.0 at the same time. - Macroize the db version (3.3 vs 4.0) to be able to easily switch from 9.0 to Cooker. - Add Provides: ADVXpackage, all ADVX package will have this tag, so we can easily do a rpm --whatprovides ADVXpackage to find out what ADVX packages a user has installed on his system. - Likewise, add Provides: AP13package and AP20package in the same manner * Wed Nov 06 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.43-4mdk - enable build with debugging code, used ideas from Han Boetes and his fluxbox package, but the RedHat way. rpm --rebuild --with debug apache2-2.0.43-4mdk.src.rpm will _not_ strip away any debugging code, will _add_ -g3 to CFLAGS, will _add_ --enable-maintainer-mode to configure. * Sat Nov 02 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.43-3mdk - enable the ldap stuff and build against db4 * Fri Oct 25 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.43-2mdk - new P5 (for mod_logio; check www.rexursive.com) * Fri Oct 04 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.43-1mdk - new version (security fixes + mod_logio) - dropped P5 - new P4 (mod_logio) * Wed Oct 02 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.42-6mdk - added P5 [CAN-2002-0840] (will be in 2.0.43 + mod_dav fixes + mod_logio, release probably tomorrow) * Sat Sep 28 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.42-5mdk - added P4 (mod_logio) * Fri Sep 27 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.42-4mdk - added P3 (from CVS) that fixes apr-util to honor LIBNAME * Thu Sep 26 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.42-3mdk - installbuilddir, htdocsdir and logfiledir is suddenly set ok in config_vars.mk, no need to fix that with perl. (it was doubled!, i'm blind...) * Thu Sep 26 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.42-2mdk - bring back ugly spec file hacks, but now it's even uglier... :-) - finally got mod_ldap to compile, but chose not to enable it - put generated httpd2.conf in docdir as httpd2-VANILLA.conf - misc spec file fixes * Wed Sep 25 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.42-1mdk - the httpd-2.0.36-cnfdir.patch patch by RH is merged upstream, therefore remove it from this package - remove the ADVX rpm package naming scheme - merge changes from my last 2.0.40-*mdk package - provide my nice converted transparent png icons (S4) - added the gnupg signurature as S1 * Tue Sep 3 2002 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.40ADVX-8mdk - change version to 2.0.40ADVX so we can easily synchronize Contribs. We'll remove the ADVX suffix for final release. - mod_ssl will be in apache2-mod_ssl module, since it requires openssl, and we want to avoid forcing crypto into the main distro. Thus we also put ab-ssl in this package. - Fix gentestcrt to generate a random certificate authority as well as a random certificate name, so that multiple test certificate don't conflict. - apache2-devel provides apache2-mod_ssl-devel - modules do not require libapr0 * Wed Aug 28 2002 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.40-7mdk - macroize completely according to the ADVX policy (http://advx.org/devel/policy.php) - move non-version-dependant stuff and directories to apache2-conf - put less strict Requires, since apache2-common is now version-independant - patch apxs so we only need apache2-devel to build modules, and that no other package is required. - pick up more stuff (htdbm, etc) from the /support directory * Wed Aug 28 2002 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.40-6mdk - add ap_confd macro (for the /etc/httpd/conf.d include directory) - use DONT_STRIP=1, it's needed for some modules, such as mod_perl and HTML-Embperl, until we find a way to build them statically with Apache. - merged some of Oden's changes in Contribs, up the release to 6mdk so there is no confusion. * Tue Aug 19 2002 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.40-2mdk - macroize specfile completely - Fix a few minor bugs in package and make rpmlint happy. - Put old changelog for Apache 1 in doc/apache-old-changelog in case we forgot some old 1.3 features in 2.0 * Mon Aug 12 2002 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.40-1mdk - New, final 2.0.40 release - Split mod_ssl, mod_dav and mod_gzip outside of the main Apache tree, because of some configuration issues when updating. They will be in their separate packages. - Put apr-devel inside apache-devel, since it created conflicts for some files, and besides, you can't use apr-devel if you don't have the Apache headers anyway. - Move apachebase to /etc/httpd/2.0 * Thu Aug 8 2002 Jean-Michel Dault <jmdault@mandrakesoft.com> 2.0.40-0.20020805.2mdk - Totally rebuilt SPEC. This is the result of hundreds of hours of intensive testing, install/uninstall/rollback, and I could write a novel with all the changes. However, those were the general goals of the rewrite: - 1) Take as much possible from Oden's excellent work - 2) Remain compatible with the previous ADVX spec files - 3) Make upgrades possible and still keep previous configuration files so sysadmins don't have to re-configure everything - 4) Rework apache2-common, so that the package contains only icons, man files, cgi-bin and only essential directories. Move /etc/httpd/* to /etc/httpd/2.0 since they're really release-dependant, and move them to the apache2-modules package. - 5) Work with possible rollback to 1.3 in case the user needs some module that works only with 1.3 (frontpage, auth_ldap). In the case of a rollback, the only thing to do should be to remove the apache2 package, we should be able to keep the config files and the new apache2-common, since they are not version-specific. The only problem will be mod_ssl, mod_ldap and mod_gzip, since both the 1.3 and 2.0 versions contain common files, which will conflict. In that case, if there is a problem with the upgrade, those modules will be disabled. This means some functionality will be lost, but at least we don't break the entire web server. - 6) Of course, if it's a brand-new install, everything should work perfectly ;-) * Mon Aug 5 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020805.1mdk - new CVS version (possible the last CVS snapshot) * Thu Aug 1 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020801.1mdk - new CVS version - built against new OpenSSL - fix suexec and mod_userdir conf (thanks to David Walser for reporting this) * Wed Jul 31 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020731.1mdk - new CVS version (mainly doc fixes and one nasty bug) - built with latest system compiler * Thu Jul 25 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020725.1mdk - new CVS version * Tue Jul 23 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020723.1mdk - new CVS version * Thu Jul 18 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020718.2mdk - new CVS version - fixed the initscript (duh!) - misc spec file fixes * Thu Jul 18 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020718.1mdk - new CVS version - mod_proxy requires mod_disk_cache (since a while back, sorry about that), fixed S30 to reflect this - improved initscript - misc spec file fixes * Wed Jul 17 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020717.1mdk - new CVS version - there's no such thing as "httpd2 -k configtest" (thanks to Lonnie Borntreger for pointing it out) * Tue Jul 16 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020716.1mdk - new CVS version - add apache user (as in apache1 by flepied) - better initscript (stole stuff from here and there...) - relocated the SSL certificates to /etc/ssl/apache2/ * Wed Jul 10 2002 Pixel <pixel@mandrakesoft.com> 2.0.40-0.20020710.2mdk - use a Serial in perl require * Wed Jul 10 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020710.1mdk - new CVS version - don't use the scoreboardfile (it's broken it seems) * Sun Jul 7 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020707.1mdk - new CVS version * Sat Jul 6 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020706.1mdk - new CVS version - added the new MaxMemFree directory to httpd2.conf (yet undocumented, and therefore commented out) - added ab-ssl to the mod_ssl package - fix P1 (apxs didn't work with php-4.3.0-dev) * Wed Jul 3 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020703.1mdk - new CVS version * Mon Jul 1 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020701.1mdk - new CVS version * Sat Jun 29 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020629.1mdk - new CVS version * Fri Jun 28 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020628.1mdk - new CVS version - construct the "include/ap_config_layout.h" file from the spec file since it's not done properly by apache... (!) (I wonder why???) - ship the migration guide stolen from RedHat * Thu Jun 27 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020627.1mdk - new CVS version * Wed Jun 26 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020626.1mdk - new CVS version - bzip2 all sources * Sun Jun 23 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020623.1mdk - new CVS version - misc spec and conf file fixes (thanks to Yura Gusev for reporting some of the stuff) * Tue Jun 18 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020618.2mdk - minor spec file and conf file fixes - added the ScoreBoardFile * Tue Jun 18 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020618.1mdk - new CVS version - removed flood, will be a separate package * Mon Jun 17 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.40-0.20020617.1mdk - new version, new CVS version * Sun Jun 16 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.39-0.20020617.1mdk - new CVS version (2.0.38 is alpha, might as well go for cvs) - can't tag with cvs version, php needs -dev to build (stupid php) - fix flood %%configure * Sun Jun 16 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.38-0.20020616.2mdk - new CVS version - mod_ssl should really require mod_setenvif and mod_vhost_alias - changed the %%description - added missing split-logfile (not installed per default...) - broke out the icons as a subpackage to enable using themes for mod_autoindex - misc spec file fixes - fix permission on flood - added P5 - 2.0.38-0.20020616.1mdk was lost in cyberspace... * Sat Jun 15 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.38-0.20020615.3mdk - missing header files in apache2-devel (GRRRR) * Sat Jun 15 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.38-0.20020615.2mdk - added S100 (subpackage: flood) - accidently uploaded apache2-common which is no more... * Sat Jun 15 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.38-0.20020615.1mdk - new CVS version (2.0.38 will be final soon...) - fix the "ServerRoot/conf.d" stuff. - fix the manual alias, and provide only *.html - provide only *.png files (check with unisys...) - HUGE spec file modifications (mega split) - added P3 (require and link with openssl only for mod_ssl) - added P4 - added S100 (flood) * Fri Jun 14 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.38-0.20020614.1mdk - new CVS version - don't use %%exclude, rpm in 8.2 is broken... - misc spec file fixes * Thu Jun 13 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.38-0.20020613.1mdk - new CVS version - Use Redhats version instead of PLDs to ignore invalid files in the "ServerRoot/conf?/" dir (P0) - Mentally prepare to use the "ServerRoot/conf.d/" dir (beware!), soon I'll probably be numbering all files in this dir a'la PLD... There may be a split where all/most modules has their own rpm package... If you don't like this _speak up now!_ * Thu Jun 12 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.38-0.20020612.1mdk - new version, new CVS version - misc spec file fixes - stole some ideas from RedHat :-) * Thu Jun 6 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020606.1mdk - new CVS version - rediff P1 * Sat Jun 1 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020601.1mdk - new CVS version * Wed May 29 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020529.1mdk - new CVS version * Sun May 26 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020526.1mdk - new CVS version * Thu May 23 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020523.1mdk - new CVS version * Sun May 19 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020519.1mdk - new CVS version - fix perl path and suexec log file; reported by Liam R. E. Quin - misc spec file fixes - added P2 - fix S4 & S10 * Sat May 18 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020518.1mdk - new CVS version * Thu May 16 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020516.1mdk - new CVS version (SSLLog and SSLLogLevel is no more) - new S10 * Wed May 15 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020515.1mdk - new CVS version (apr-util and apxs fixes) - fix P1 * Mon May 13 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020513.1mdk - new CVS version (apr fixes) - misc spec file fixes * Sat May 11 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020511.1mdk - new CVS version - broke out suexec and apr stuff `a la PLD, but with a twist :) - added P0 to prepare for possible use of a conf/[0-9]_*.conf system (?) - added P1 to make apxs work (?) - more Mr. rpmlint fixes - build against db3 for now * Tue May 7 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020507.2mdk - Mr. rpmlint fixes * Tue May 7 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.37-0.20020507.1mdk - new CVS version - made it possible to run apache1 and apache2 on the same box - cleaned up the spec file a bit - removed P0, construct a dynamic config.layout file on the fly instead... - ripped the gentestcrt.sh things from the mod_ssl spec file - enhanced the httpd.conf file a bit * Mon Apr 24 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.36-0.20020424.1mdk - new CVS version * Mon Apr 15 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.36-0.20020415.2mdk - spec file fix * Mon Apr 15 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.36-0.20020415.1mdk - new CVS version - don't require apache-conf just yet... - forgot to provide S9 & S10 * Sun Apr 14 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.36-0.20020414.1mdk - new CVS version * Fri Apr 12 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.36-0.20020412.1mdk - new CVS version - a lot of specfile fixes * Mon Apr 8 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.35-1mdk - new version