2006-12-20 18:01:15 +01:00
#
2011-05-30 15:40:12 +02:00
# spec file for package apache2
2006-12-20 18:01:15 +01:00
#
2015-02-25 14:43:34 +01:00
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
2006-12-20 18:01:15 +01:00
#
2008-08-25 01:21:58 +02:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2006-12-20 18:01:15 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2012-02-18 17:52:29 +01:00
2015-02-25 14:43:34 +01:00
%define apache_mmn %(test -s %{SOURCE0} && { echo -n apache_mmn_; bzcat %{SOURCE0} | awk '/^#define MODULE_MAGIC_NUMBER_MAJOR/ {printf "%d", $3}'; })
2015-07-14 11:04:22 +02:00
%define suse_maintenance_mmn 0
2006-12-20 18:01:15 +01:00
%define default_mpm prefork
%{!?prefork:%define prefork 1}
%{!?worker:%define worker 1}
%{!?event:%define event 1}
2015-02-25 14:43:34 +01:00
%define mpms_to_build %(test %{prefork} = 1 && printf prefork) %(test %{worker} = 1 && printf worker) %(test %{event} = 1 && printf event)
2006-12-20 18:01:15 +01:00
# dir names
%define datadir /srv/www
%define htdocsdir %{datadir}/htdocs
2015-02-25 22:11:43 +01:00
%define manualdir %{_datadir}/%{name}/manual
%define errordir %{_datadir}/%{name}/error
%define iconsdir %{_datadir}/%{name}/icons
2006-12-20 18:01:15 +01:00
%define cgidir %{datadir}/cgi-bin
2015-02-25 22:11:43 +01:00
%define localstatedir %{_localstatedir}/lib/%{name}
%define proxycachedir %{_localstatedir}/cache/%{name}
%define logfiledir %{_localstatedir}/log/%{name}
%define sysconfdir %{_sysconfdir}/%{name}
%define includedir %{_includedir}/%{name}
%define libexecdir %{_libdir}/%{name}
%define installbuilddir %{_datadir}/%{name}/build
2015-02-25 14:43:34 +01:00
%define userdir public_html
%define suexec_safepath %{_prefix}/local/bin:%{_prefix}/bin:/bin
2015-02-25 22:11:43 +01:00
%define platform_string Linux/SUSE
2015-02-25 14:43:34 +01:00
%define httpduser wwwrun
%define httpdgroup www
%if 0%{?suse_version} >= 1220
2013-09-03 06:07:30 +02:00
%define runtimedir /run
2015-05-26 10:17:52 +02:00
%define mods_static unixd systemd
2013-09-03 06:07:30 +02:00
%else
2015-02-25 14:43:34 +01:00
%define runtimedir %{_localstatedir}/run
2015-07-14 11:04:22 +02:00
%define mods_static unixd
2013-09-03 06:07:30 +02:00
%endif
2015-02-25 14:43:34 +01:00
Name : apache2
2015-02-25 21:00:01 +01:00
Version : 2.4.12
2011-12-02 17:41:12 +01:00
Release : 0
2015-02-25 14:43:34 +01:00
Summary : The Apache Web Server Version 2.4
License : Apache-2.0
Group : Productivity/Networking/Web/Servers
Url : http://httpd.apache.org/
2015-02-25 21:00:01 +01:00
Source0 : http://www.apache.org/dist/httpd/httpd-%{version} .tar.bz2
2010-05-11 17:16:17 +02:00
# Add file to take mtime from it in prep section
Source1 : apache2.changes
2011-09-14 01:17:22 +02:00
Source6 : 60C5442D.key
2006-12-20 18:01:15 +01:00
Source10 : SUSE-NOTICE
2015-02-25 22:11:43 +01:00
Source11 : rc.%{name}
Source13 : sysconfig.%{name}
2006-12-20 18:01:15 +01:00
Source18 : robots.txt
Source20 : favicon.ico
2012-02-11 09:39:57 +01:00
Source22 : apache2-README
Source23 : apache2-README.QUICKSTART
2006-12-20 18:01:15 +01:00
Source25 : gensslcert
2015-05-26 10:17:52 +02:00
Source26 : apache2-README-access_compat.txt
2015-02-25 22:11:43 +01:00
Source27 : %{name} .logrotate
Source28 : permissions.%{name}
2006-12-20 18:01:15 +01:00
Source29 : apache-ssl-stuff.tar.bz2
2015-07-13 10:18:58 +02:00
Source30 : deprecated-scripts.tar.xz
Source31 : apache2-README-instances.txt
2008-04-20 21:03:37 +02:00
# sysconf_addword is part of aaa_base.rpm starting with openSUSE 11.0
# we bring our own copy for the cases where it is not available
Source45 : sysconf_addword
2006-12-20 18:01:15 +01:00
Source46 : a2enflag
Source47 : a2enmod
2007-01-08 12:26:19 +01:00
Source48 : apache2.xml
2007-03-20 01:13:36 +01:00
Source49 : apache2.firewall
2007-03-20 11:30:41 +01:00
Source50 : apache2.ssl-firewall
2006-12-20 18:01:15 +01:00
Source100 : apache2-httpd.conf
Source101 : apache2-errors.conf
Source102 : apache2-default-server.conf
Source103 : apache2-listen.conf
Source104 : apache2-manual.conf
Source105 : apache2-mod_autoindex-defaults.conf
Source106 : apache2-mod_info.conf
Source107 : apache2-mod_log_config.conf
Source108 : apache2-mod_mime-defaults.conf
Source109 : apache2-mod_status.conf
Source110 : apache2-mod_userdir.conf
Source111 : apache2-server-tuning.conf
Source113 : apache2-ssl-global.conf
Source114 : apache2-mod_usertrack.conf
2012-01-21 13:57:30 +01:00
Source115 : apache2-mod_reqtimeout.conf
2015-07-13 10:18:58 +02:00
Source116 : apache2-loadmodule.conf
Source117 : apache2-global.conf
2015-07-14 11:04:22 +02:00
Source118 : apache2-mod_cgid-timeout.conf
2006-12-20 18:01:15 +01:00
Source130 : apache2-vhost.template
Source131 : apache2-vhost-ssl.template
Source140 : apache2-check_forensic
2015-06-12 09:59:31 +02:00
Source141 : apache-22-24-upgrade
2011-09-12 14:20:52 +02:00
Source142 : start_apache2
Source143 : apache2-systemd-ask-pass
Source144 : apache2.service
2015-07-13 10:18:58 +02:00
Source145 : apache2-find-directives
Source146 : apache2@.service
Source147 : apache2-script-helpers
2006-12-20 18:01:15 +01:00
Patch2 : httpd-2.1.3alpha-layout.dif
2015-07-14 11:04:22 +02:00
Patch23 : httpd-apachectl.patch
2006-12-20 18:01:15 +01:00
Patch66 : httpd-2.0.54-envvars.dif
Patch67 : httpd-2.2.0-apxs-a2enmod.dif
2008-09-24 14:59:24 +02:00
Patch68 : httpd-2.x.x-logresolve.patch
2015-07-14 11:04:22 +02:00
Patch69 : httpd-2.4.9-bnc690734.patch
Patch70 : httpd-implicit-pointer-decl.patch
2013-06-18 07:57:29 +02:00
# PATCH-FEATURE-UPSTREAM httpd-2.4.3-mod_systemd.patch crrodriguez@opensuse.org simple module provides systemd integration.
Patch109 : httpd-2.4.3-mod_systemd.patch
2013-08-28 09:32:31 +02:00
Patch111 : httpd-visibility.patch
2015-02-24 02:47:47 +01:00
# PATCH-FIX-UPSTREAM bnc#918352 kstreitova@suse.com -- fix mod_lua - maliciously crafted websockets PING after a script calls r:wsupgrade() can cause a child process crash
Patch112 : httpd-2.4.x-mod_lua_websocket_DoS.patch
2015-05-15 15:11:40 +02:00
Patch113 : httpd-2.4.12-CVE-2015-0253.patch
2015-07-19 22:54:23 +02:00
# PATCH-FIX-UPSTREAM marguerite@opensuse.org -- compability for lua 5.2+
Patch114 : httpd-2.4.12-lua-5.2.patch
2015-02-25 14:43:34 +01:00
BuildRequires : automake
BuildRequires : db-devel
BuildRequires : ed
BuildRequires : libapr-util1-devel
#Since 2.4.7 the event MPM requires apr 1.5.0 or later.
BuildRequires : libapr1-devel >= 1.5.0
BuildRequires : libcap-devel
#for mod_proxy_html and mod_xml2enc
BuildRequires : libxml2-devel
BuildRequires : lua-devel
BuildRequires : openldap2-devel
BuildRequires : openssl-devel >= 0.9.8a
BuildRequires : pcre-devel
BuildRequires : xz
BuildRequires : zlib-devel
Requires : %{_sysconfdir} /mime.types
2015-02-25 22:11:43 +01:00
Requires : %{name} -MPM
2015-07-16 12:47:20 +02:00
Suggests : apache2-%{default_mpm}
2015-02-25 14:43:34 +01:00
Requires : logrotate
Requires(post) : %insserv_prereq %fillup_prereq permissions pwdutils
Requires(post) : %{name} -utils
Requires(post) : fileutils
Requires(post) : grep
Requires(post) : sed
Requires(post) : textutils
2012-03-20 19:13:21 +01:00
Provides : %{apache_mmn}
2015-07-16 12:47:20 +02:00
Provides : suse_maintenance_mmn_%{suse_maintenance_mmn}
2012-03-20 19:13:21 +01:00
Provides : http_daemon
Provides : httpd
Provides : suse_help_viewer
2013-07-30 01:51:31 +02:00
Provides : %{name} -mod_macro = %{version}
Obsoletes : %{name} -mod_macro <= 1.2.1
2015-02-25 14:43:34 +01:00
Provides : apache = %{version}
Obsoletes : apache < 1.3.29
Obsoletes : mod_ssl < 2.8.16
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2013-08-30 06:51:32 +02:00
#for some reason the parser barfs if not conditional
%{?requires_ge:%requires_ge libapr1}
%{?requires_ge:%requires_ge libapr-util1}
2011-09-29 11:39:43 +02:00
%{?systemd_requires}
2015-02-25 14:43:34 +01:00
%if 0%{?suse_version} >= 1210
BuildRequires : pkgconfig
BuildRequires : pkgconfig(libsystemd-daemon)
BuildRequires : pkgconfig(systemd)
2011-02-07 17:42:02 +01:00
%endif
2006-12-20 18:01:15 +01:00
%description
2014-07-23 22:22:18 +02:00
This version of httpd is a major release of the 2.4 stable branch,
and represents the best available version of Apache HTTP Server.
New features include Loadable MPMs, major improvements to OCSP support,
mod_lua, Dynamic Reverse Proxy configuration, Improved Authentication/
Authorization, FastCGI Proxy, New Expression Parser, and a Small Object
Caching API.
2015-02-25 14:43:34 +01:00
See %{_docdir} /apache2/, http://httpd.apache.org/, and
2014-07-23 22:22:18 +02:00
http://httpd.apache.org/docs-2.4/upgrading.html.
2006-12-20 18:01:15 +01:00
%if %worker
%package worker
Summary : Apache 2 worker MPM (Multi-Processing Module)
2011-12-12 12:06:24 +01:00
Group : Productivity/Networking/Web/Servers
2006-12-20 18:01:15 +01:00
Requires : %{name} = %{version}
2015-02-25 22:11:43 +01:00
Provides : %{name} -MPM
2015-07-13 10:18:58 +02:00
# the post scriptlet sources /usr/share/apache2/script-helpers
2015-03-10 22:08:07 +01:00
Requires(post) : %{name} = %{version}
2006-12-20 18:01:15 +01:00
%endif
2007-10-22 18:25:27 +02:00
2015-02-25 14:43:34 +01:00
%if %prefork
2006-12-20 18:01:15 +01:00
%package prefork
Summary : Apache 2 " p r e f o r k " MPM (Multi-Processing Module)
2011-12-12 12:06:24 +01:00
Group : Productivity/Networking/Web/Servers
2006-12-20 18:01:15 +01:00
Requires : %{name} = %{version}
2015-02-25 22:11:43 +01:00
Provides : %{name} -MPM
2015-02-25 14:43:34 +01:00
Provides : apache:%{_sbindir} /httpd
2015-07-13 10:18:58 +02:00
# the post scriptlet sources /usr/share/apache2/script-helpers
2015-03-10 22:08:07 +01:00
Requires(post) : %{name} = %{version}
2006-12-20 18:01:15 +01:00
%endif
2007-10-22 18:25:27 +02:00
2015-02-25 14:43:34 +01:00
%if %event
2006-12-20 18:01:15 +01:00
%package event
Summary : Apache 2 event MPM (Multi-Processing Module)
2011-12-12 12:06:24 +01:00
Group : Productivity/Networking/Web/Servers
2006-12-20 18:01:15 +01:00
Requires : %{name} = %{version}
2015-02-25 22:11:43 +01:00
Provides : %{name} -MPM
2015-07-13 10:18:58 +02:00
# the post scriptlet sources /usr/share/apache2/script-helpers
2015-03-10 22:08:07 +01:00
Requires(post) : %{name} = %{version}
2006-12-20 18:01:15 +01:00
%endif
2015-02-25 14:43:34 +01:00
%if %worker
2006-12-20 18:01:15 +01:00
%description worker
The worker MPM (multi-Processing Module) implementing a hybrid
multi-threaded multi-process web server.
This combination offers a performance boost and retains some of the
stability of the multi-process model.
%endif
2007-12-13 20:32:12 +01:00
2015-02-25 14:43:34 +01:00
%if %{prefork}
2006-12-20 18:01:15 +01:00
%description prefork
" p r e f o r k " MPM (Multi-Processing Module)
This MPM is basically the one that Apache 1.3.x used. It warrants the
maximum stability because each server runs in its own process. If a
process dies it will not affect other servers.
%endif
2007-12-13 20:32:12 +01:00
2015-02-25 14:43:34 +01:00
%if %{event}
2006-12-20 18:01:15 +01:00
%description event
The event MPM (multi-Processing Module) is experimental, so it may or
may not work as expected.
2009-02-26 12:26:24 +01:00
It uses a separate thread to handle Keep Alive requests and accepting
2006-12-20 18:01:15 +01:00
connections. Keep Alive requests have traditionally required httpd to
dedicate a worker to handle it. This dedicated worker could not be used
again until the Keep Alive timeout was reached.
This MPM depends on APR's atomic compare-and-swap operations for thread
synchronization.
%endif
2007-12-13 20:32:12 +01:00
2006-12-20 18:01:15 +01:00
%package devel
2014-09-26 17:16:44 +02:00
Summary : Apache 2 Header and Include Files
2006-12-20 18:01:15 +01:00
Group : Development/Libraries/C and C++
2012-03-20 19:13:21 +01:00
Requires : %{name} = %{version}
2015-02-25 22:11:43 +01:00
Requires : %{name} -MPM
2012-03-20 19:13:21 +01:00
Requires : apache2-prefork
Requires : gcc
Requires : libapr-util1-devel
Requires : libapr1-devel
2006-12-20 18:01:15 +01:00
%description devel
This package contains header files and include files that are needed
for development using the Apache API.
%package doc
2014-09-29 10:30:32 +02:00
Summary : Additional Package Documentation
2006-12-20 18:01:15 +01:00
Group : Documentation/Other
2015-02-25 14:43:34 +01:00
# Remove after 13.2 is out of support scope
Provides : apache-doc = %{version}
Obsoletes : apache-doc < %{version}
2010-01-14 16:54:32 +01:00
%if 0%{?suse_version} >= 1120
BuildArch : noarch
%endif
2006-12-20 18:01:15 +01:00
%description doc
This package contains optional documentation provided in addition to
this package's base documentation.
%package example-pages
Summary : Example Pages for the Apache 2 Web Server
2011-12-12 12:06:24 +01:00
Group : Productivity/Networking/Web/Servers
2015-02-25 14:43:34 +01:00
# Remove after 13.2 is out of support scope
2006-12-20 18:01:15 +01:00
Provides : apache-example-pages
Obsoletes : apache-example-pages
%description example-pages
Some Example pages for Apache that show information about the installed
server.
2007-07-23 21:27:20 +02:00
%package utils
Summary : Apache 2 utilities
2011-12-12 12:06:24 +01:00
Group : Productivity/Networking/Web/Servers
2007-07-23 21:27:20 +02:00
%description utils
Utilities provided by the Apache 2 Web Server project which are useful
to administrators of web servers in general.
2006-12-20 18:01:15 +01:00
%prep
2015-07-13 10:18:58 +02:00
%setup -q -n httpd-%{version} -a30
2006-12-20 18:01:15 +01:00
%patch2 -p1
2015-07-14 11:04:22 +02:00
%patch23
2013-07-22 19:04:27 +02:00
%patch66 -p1
2006-12-20 18:01:15 +01:00
%patch67 -p1
2008-09-24 14:59:24 +02:00
%patch68 -p1
2015-07-14 11:04:22 +02:00
%patch69
2013-06-18 07:57:29 +02:00
%patch70 -p1
2015-02-25 22:11:43 +01:00
# Systemd module enabling patch
%if 0%{?suse_version} >= 1210
2013-06-18 07:57:29 +02:00
%patch109 -p1
2015-02-25 22:11:43 +01:00
%endif
2013-08-28 09:32:31 +02:00
%patch111 -p1
2015-02-24 02:47:47 +01:00
%patch112 -p1
2015-05-15 15:11:40 +02:00
%patch113 -p3
2015-07-19 22:54:23 +02:00
%patch114 -p1
2006-12-20 18:01:15 +01:00
cat $RPM_SOURCE_DIR /SUSE-NOTICE >> NOTICE
2012-02-11 09:39:57 +01:00
# install READMEs
2015-02-25 14:43:34 +01:00
a=$(basename %{SOURCE22} )
cp %{SOURCE22} ./${a##%{name}-}
b=$(basename %{SOURCE23} )
cp %{SOURCE23} ./${b##%{name}-}
2015-07-13 10:18:58 +02:00
c=$(basename %{SOURCE31} )
cp %{SOURCE31} ./${c##%{name}-}
2015-05-26 10:17:52 +02:00
d=$(basename %{SOURCE26} )
cp %{SOURCE26} ./${d##%{name}-}
2012-02-11 09:39:57 +01:00
2006-12-20 18:01:15 +01:00
#
# replace PLATFORM string that's seen in the "Server:" header
#
2015-02-25 14:43:34 +01:00
sed 's,(" PLATFORM "),(%{platform_string}),' server/core.c > tmp_file && mv tmp_file server/core.c
2006-12-20 18:01:15 +01:00
sed 's/public_html/%{userdir}/g' docs/conf/extra/httpd-userdir.conf.in > tmp_file && mv tmp_file docs/conf/extra/httpd-userdir.conf.in
2010-05-11 17:16:17 +02:00
# Use mtime of .changes for build time
2015-05-05 16:04:17 +02:00
CHANGES=`stat --format=" % % y " %{SOURCE1} `
2015-02-25 14:43:34 +01:00
sed -i -e " s / _ _ D A T E _ _ \" \" _ _ T I M E _ _ ; / \" $ C H A N G E S \" ; / " server/buildmark.c
2006-12-20 18:01:15 +01:00
#
2015-02-25 14:43:34 +01:00
# now configure Apache
2006-12-20 18:01:15 +01:00
#
2011-08-31 15:46:57 +02:00
autoreconf -fiv
2006-12-20 18:01:15 +01:00
%build
function configure {
2015-02-25 14:43:34 +01:00
CFLAGS=" %{optflags} - f P I C - W a l l - D L D A P _ D E P R E C A T E D " \
2006-12-20 18:01:15 +01:00
CPPFLAGS=" - D S S L _ E X P E R I M E N T A L _ E N G I N E - D M A X _ S E R V E R _ L I M I T = 2 0 0 0 0 0 - D L D A P _ D E P R E C A T E D - D M A X L I N E = 4 0 9 6 " \
./configure \
2015-02-25 14:43:34 +01:00
--enable-layout=SuSE81%(test " % { _ l i b } " = lib64 && echo -n _64) \
2015-06-02 10:26:32 +02:00
--with-program-name=httpd$mpm_suffix \
2006-12-20 18:01:15 +01:00
--with-apr=%{_bindir} /apr-1-config \
--with-apr-util=%{_bindir} /apu-1-config \
--with-mpm=$mpm \
%if "$mpm" == "worker" || "$mpm" == "event"
%ifarch %ix86
%ifnarch i386
--enable-nonportable-atomics=yes \
%endif
%endif
%endif
--enable-exception-hook \
--with-pcre \
--enable-pie \
--enable-mods-shared=all \
2013-10-22 17:46:52 +02:00
--enable-mods-static=" %{mods_static} " \
2006-12-20 18:01:15 +01:00
--enable-ssl=shared \
--disable-isapi \
--enable-deflate \
--enable-echo \
--enable-filter \
--enable-ext-filter \
--enable-charset-lite \
--enable-file-cache \
--enable-logio \
--enable-dumpio \
--enable-bucketeer \
--enable-case_filter \
--enable-case_filter_in \
2015-02-25 22:11:43 +01:00
--enable-imagemap \
2006-12-20 18:01:15 +01:00
--with-ldap \
--enable-ldap \
--enable-authnz_ldap \
--enable-proxy \
--enable-proxy-connect \
--enable-proxy-ftp \
--enable-proxy-http \
--enable-cache \
--enable-disk-cache \
--enable-mem-cache \
2007-03-23 21:40:52 +01:00
--enable-version \
2006-12-20 18:01:15 +01:00
--enable-dav-lock \
--enable-authn-alias \
--enable-optional-hook-export \
--enable-optional-hook-import \
--enable-optional-fn-import \
2015-02-25 14:43:34 +01:00
--enable-optional-fn-export \
2006-12-20 18:01:15 +01:00
--enable-suexec \
2015-06-02 10:26:32 +02:00
--with-suexec-bin=%{_sbindir} /suexec \
2015-02-25 14:43:34 +01:00
--with-suexec-caller=%{httpduser} \
2006-12-20 18:01:15 +01:00
--with-suexec-docroot=%{datadir} \
--with-suexec-logfile=%{logfiledir} /suexec.log \
--with-suexec-userdir=%{userdir} \
--with-suexec-uidmin=96 \
--with-suexec-gidmin=96 \
2012-08-01 03:54:19 +02:00
--with-suexec-safepath=%{suexec_safepath} \
--disable-heartbeat
2006-12-20 18:01:15 +01:00
}
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
# build the 3 multi-processing modules (MPM) in a loop
#
for mpm in %{mpms_to_build} ; do
echo $mpm >> .status
test -s Makefile && make clean >/dev/null
echo -e " \n \n \n \ e [ 0 1 m * * * * * B u i l d i n g $ m p m M P M * * * * * \ e [ 0 0 m \n \n \n "
export mpm_suffix=-$mpm
2015-02-25 14:43:34 +01:00
configure
2015-06-02 10:26:32 +02:00
sed " s / - $ m p m / / " include/ap_config_auto.h > include/ap_config_auto.h.new
2006-12-20 18:01:15 +01:00
mv include/ap_config_auto.h.new include/ap_config_auto.h
2015-02-25 22:11:43 +01:00
sed -i -e " s @ %{_localstatedir} / r u n @ %{runtimedir} @ g " include/ap_config_layout.h
2010-03-05 15:57:50 +01:00
2015-02-25 22:11:43 +01:00
make CFLAGS=" %{optflags} - f v i s i b i l i t y = h i d d e n - f P I C - W a l l - D D E F A U L T _ E R R O R L O G = ' \" %{logfiledir} / e r r o r _ l o g \" ' " %{?_smp_mflags}
make DESTDIR=%{buildroot} install %{?_smp_mflags}
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
# show pathnames in config files
echo;echo;echo; diff -U1 docs/conf/httpd-std.conf.in docs/conf/httpd-std.conf ||:
echo;echo;echo; diff -U1 docs/conf/ssl-std.conf.in docs/conf/ssl-std.conf ||:
# show compile settings
pwd
2015-06-02 10:26:32 +02:00
printf " \n \n \n " ; ./httpd$mpm_suffix -V
printf " \n \n \n " ; ./httpd$mpm_suffix -l
2015-02-25 14:43:34 +01:00
#mv %{buildroot}/%{sysconfdir}/httpd-std.conf %{buildroot}/%{sysconfdir}/httpd-std.conf$mpm_suffix
#mv %{buildroot}/%{sysconfdir}/httpd2-prefork.conf %{buildroot}/%{sysconfdir}/httpd-std.conf$mpm_suffix
2006-12-20 18:01:15 +01:00
# fix up and rename config_vars file: remove references to the RPM build dir;
# remove references to RPM build root; fix apr/apu includedir
sed -e " / ^ E X T R A _ I N C L U D E S / s | - I $RPM_BUILD_DIR [ ^ ] * | | g " \
-e " / ^ A P . _ I N C L U D E D I R / s | $RPM_BUILD_DIR . * $ | %{includedir} $ m p m _ s u f f i x | " \
-e " / a b s _ s r c d i r / d " \
-e " / A P _ L I B S / d " \
2015-02-25 14:43:34 +01:00
< %{buildroot} /%{installbuilddir} /config_vars.mk \
> %{buildroot} /%{installbuilddir} /config_vars.mk$mpm_suffix
rm %{buildroot} /%{installbuilddir} /config_vars.mk
#rm -rf %{buildroot}.$mpm.post
#cp -a %{buildroot}/ %{buildroot}.$mpm.post
2006-12-20 18:01:15 +01:00
done
2015-02-25 14:43:34 +01:00
mkdir -p %{buildroot} /%{libexecdir}
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
# remove references to mpm type in config_vars
2015-02-25 22:11:43 +01:00
sed -e " s ^ %{_libdir} / %{name} - %{default_mpm} ^ %{_libdir} / %{name} ^ " \
2015-06-02 10:26:32 +02:00
-e " s / h t t p d $ / h t t p d - %{default_mpm} / " \
2015-02-25 22:11:43 +01:00
-e " s / %{name} - %{default_mpm} / %{name} / " \
2015-02-25 14:43:34 +01:00
< %{buildroot} /%{installbuilddir} /config_vars.mk-%{default_mpm} \
> %{buildroot} /%{installbuilddir} /config_vars.mk
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
# get rid of modules that do not differ between the MPMs (since most of them are the same)
2015-06-02 10:26:32 +02:00
# by putting them in /usr/lib/apache2
2015-02-25 14:43:34 +01:00
ldir=%{buildroot} /%{libexecdir}
2008-11-21 15:11:27 +01:00
for i in $(cd $ldir-%{default_mpm} ; ls -1 *.so); do
2006-12-20 18:01:15 +01:00
identical=true
for mpm in %{mpms_to_build} ; do
2008-11-21 15:11:27 +01:00
if test -f $ldir-$mpm/$i -a -f $ldir-%{default_mpm} /$i; then
objcopy --strip-debug $ldir-$mpm/$i $ldir-$mpm/$i.tst
objcopy --strip-debug $ldir-%{default_mpm} /$i $ldir-%{default_mpm} /$i.tst
ls -l $ldir-{%{default_mpm} ,$mpm}/$i*
cmp -s $ldir-{%{default_mpm} ,$mpm}/$i.tst || identical=false
rm -f $ldir-{%{default_mpm} ,$mpm}/$i.tst
else
identical=false
fi
2006-12-20 18:01:15 +01:00
done
if $identical; then
cp -dp $ldir-%{default_mpm} /$i $ldir
for mpm in %{mpms_to_build} ; do
rm $ldir-$mpm/$i
2015-02-25 22:11:43 +01:00
ln -s ../%{name} /$i $ldir-$mpm/$i
2006-12-20 18:01:15 +01:00
done
fi
done
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
# merge the three /usr/include/apache2-* directories
2015-06-02 10:26:32 +02:00
# by putting them in /usr/lib/apache2
2015-02-25 14:43:34 +01:00
idir=%{buildroot} /%{includedir}
2006-12-20 18:01:15 +01:00
mkdir -p $idir
for i in $(cd $idir-%{default_mpm} ; ls -1); do
identical=true
for mpm in %{mpms_to_build} ; do
cmp -s $idir-{%{default_mpm} ,$mpm}/$i || identical=false
done
if $identical; then
cp -dp $idir-%{default_mpm} /$i $idir
for mpm in %{mpms_to_build} ; do
rm $idir-$mpm/$i
2015-02-25 22:11:43 +01:00
ln -s ../%{name} /$i $idir-$mpm/$i
2006-12-20 18:01:15 +01:00
done
fi
done
for i in ap_config_auto.h ap_config_layout.h; do
if [ ! -f $idir/$i ]; then
sed 's/-%{default_mpm}//' $idir-%{default_mpm} /$i > $idir/$i
fi
done
%install
2008-09-12 22:47:19 +02:00
# (most installation (to build root) has already been done in %%build)
2006-12-20 18:01:15 +01:00
#
# save MODULE_MAGIC_NUMBER
2015-02-25 22:11:43 +01:00
cat > %{buildroot} /%{_libdir} /%{name} _MMN <<-EOF
2006-12-20 18:01:15 +01:00
#!/bin/sh
echo %{apache_mmn}
EOF
2010-03-05 15:57:50 +01:00
2015-06-02 10:26:32 +02:00
cp -p %{buildroot} /%{sysconfdir} /httpd-%{default_mpm} .conf %{buildroot} /%{sysconfdir} /httpd.conf
2015-02-25 14:43:34 +01:00
cp -p %{buildroot} /%{sysconfdir} /httpd.conf ./httpd.conf.default
2015-06-02 10:26:32 +02:00
rm %{buildroot} /%{sysconfdir} /httpd-*.conf
2006-12-20 18:01:15 +01:00
#
# create directories
2015-02-25 14:43:34 +01:00
mkdir -p %{buildroot} /%{_var}/adm/fillup-templates \
%{buildroot} /%{proxycachedir} \
%{buildroot} /%{localstatedir}
2006-12-20 18:01:15 +01:00
#
# support files
2015-06-02 10:26:32 +02:00
install -m 755 support/log_server_status %{buildroot} /%{_bindir} /
install -m 755 support/split-logfile %{buildroot} /%{_bindir} /
install -m 755 support/logresolve.pl %{buildroot} /%{_sbindir} /
2015-02-25 14:43:34 +01:00
mkdir -p %{buildroot} %{_sysconfdir} /logrotate.d
2015-02-25 22:11:43 +01:00
install -m 644 $RPM_SOURCE_DIR /%{name} .logrotate %{buildroot} %{_sysconfdir} /logrotate.d/%{name}
2015-06-02 10:26:32 +02:00
install -m 755 $RPM_SOURCE_DIR /apache2-check_forensic %{buildroot} /%{_bindir} /check_forensic
2015-07-13 10:18:58 +02:00
install -m 755 $RPM_SOURCE_DIR /apache2-find-directives %{buildroot} /%{_bindir} /
2006-12-20 18:01:15 +01:00
#
2007-01-08 12:26:19 +01:00
# xml stuff
2015-02-25 14:43:34 +01:00
install -d %{buildroot} %{_datadir} /omc/svcinfo.d/
install -m 644 %{SOURCE48} %{buildroot} %{_datadir} /omc/svcinfo.d/
2007-01-08 12:26:19 +01:00
#
2006-12-20 18:01:15 +01:00
# ssl stuff
2015-02-25 14:43:34 +01:00
install -m 755 %{SOURCE25} %{buildroot} /%{_bindir} /
tar xjf %{SOURCE29} -C %{buildroot} /%{sysconfdir}
2006-12-20 18:01:15 +01:00
#
# init script and friends
2015-07-13 10:18:58 +02:00
install -m 644 $RPM_SOURCE_DIR /apache2-script-helpers %{buildroot} /%{_datadir} /%{name} /script-helpers
install -m 744 $RPM_SOURCE_DIR /start_apache2 %{buildroot} %{_sbindir} /
2011-09-29 11:39:43 +02:00
%if 0%{?suse_version} >= 1210
2015-02-25 14:43:34 +01:00
mkdir -p %{buildroot} %{_unitdir} /
2015-06-02 10:26:32 +02:00
install -m 700 $RPM_SOURCE_DIR /apache2-systemd-ask-pass %{buildroot} %{_sbindir} /
install -m 644 $RPM_SOURCE_DIR /apache2.service %{buildroot} %{_unitdir} /
2015-07-13 10:18:58 +02:00
install -m 644 $RPM_SOURCE_DIR /apache2@.service %{buildroot} %{_unitdir} /
2015-06-02 10:26:32 +02:00
ln -sf service %{buildroot} /%{_sbindir} /rcapache2
2015-02-25 16:59:55 +01:00
%else
mkdir -p %{buildroot} %{_sysconfdir} /init.d
2015-02-25 22:11:43 +01:00
install -m 744 $RPM_SOURCE_DIR /rc.%{name} %{buildroot} %{_initddir} /%{name}
2015-06-02 10:26:32 +02:00
ln -sf ../..%{_initddir} /%{name} %{buildroot} /%{_sbindir} /rcapache2
2015-02-25 16:59:55 +01:00
%endif
2015-07-13 10:18:58 +02:00
cp -r deprecated-scripts %{buildroot} /%{_datadir} /%{name} /
2015-06-12 09:59:31 +02:00
install -m 755 $RPM_SOURCE_DIR /apache-22-24-upgrade %{buildroot} /%{_datadir} /%{name} /
2015-02-25 22:11:43 +01:00
install -m 755 $RPM_SOURCE_DIR /sysconf_addword %{buildroot} /%{_datadir} /%{name} /
2015-02-25 14:43:34 +01:00
install -m 755 $RPM_SOURCE_DIR /a2enflag %{buildroot} /%{_sbindir}
ln -s a2enflag %{buildroot} /%{_sbindir} /a2disflag
install -m 755 $RPM_SOURCE_DIR /a2enmod %{buildroot} /%{_sbindir}
ln -s a2enmod %{buildroot} /%{_sbindir} /a2dismod
2006-12-20 18:01:15 +01:00
#
# directories for files from other packages and other configuration
2015-07-13 10:18:58 +02:00
mkdir -p %{buildroot} /%{sysconfdir} /vhosts.d
2006-12-20 18:01:15 +01:00
#
2015-07-13 10:18:58 +02:00
# install sysconfig template
install -m 644 $RPM_SOURCE_DIR /sysconfig.%{name} \
%{buildroot} /%{_var}/adm/fillup-templates/sysconfig.%{name}
2006-12-20 18:01:15 +01:00
#
# install configuration files:
2015-02-25 14:43:34 +01:00
mkdir -p %{buildroot} /%{runtimedir}
mkdir -p %{buildroot} /%{sysconfdir} /conf.d
2006-12-20 18:01:15 +01:00
for i in default-server.conf \
errors.conf \
2015-07-13 10:18:58 +02:00
global.conf \
2006-12-20 18:01:15 +01:00
httpd.conf \
listen.conf \
2015-07-13 10:18:58 +02:00
loadmodule.conf \
2006-12-20 18:01:15 +01:00
mod_autoindex-defaults.conf \
mod_info.conf \
mod_log_config.conf \
mod_mime-defaults.conf \
mod_status.conf \
mod_userdir.conf \
mod_usertrack.conf \
server-tuning.conf \
2015-07-14 11:04:22 +02:00
mod_reqtimeout.conf \
mod_cgid-timeout.conf \
2006-12-20 18:01:15 +01:00
ssl-global.conf
do
2015-02-25 14:43:34 +01:00
install -m 644 $RPM_SOURCE_DIR /apache2-$i %{buildroot} /%{sysconfdir} /$i
2006-12-20 18:01:15 +01:00
done
2015-02-25 14:43:34 +01:00
cat > %{buildroot} /%{sysconfdir} /uid.conf <<-EOF
User %{httpduser}
Group %{httpdgroup}
2006-12-20 18:01:15 +01:00
EOF
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
# remove configuration for mpms which have not been built
2015-02-25 14:43:34 +01:00
mpm_confs=" $ ( a w k ' / I f M o d u l e . * \ . c / { p r i n t $ 2 } ' %{buildroot} / %{sysconfdir} / s e r v e r - t u n i n g . c o n f | c u t - d . - f 1 | t r ' \n ' ' ' ) "
2006-12-20 18:01:15 +01:00
for mpm_conf in $mpm_confs; do
case " %{mpms_to_build} " in
*$mpm_conf*) ;;
2015-02-25 14:43:34 +01:00
*) sed " / ^ # $ m p m _ c o n f / , / ^ $ / d " %{buildroot} /%{sysconfdir} /server-tuning.conf > t
#diff -u %{buildroot}/%{sysconfdir}/server-tuning.conf t ||:
mv t %{buildroot} /%{sysconfdir} /server-tuning.conf
2006-12-20 18:01:15 +01:00
;;
esac
done
2015-02-25 14:43:34 +01:00
install -m 644 %{SOURCE130} %{buildroot} /%{sysconfdir} /vhosts.d/vhost.template
install -m 644 %{SOURCE131} %{buildroot} /%{sysconfdir} /vhosts.d/vhost-ssl.template
install -m 644 %{SOURCE104} %{buildroot} /%{sysconfdir} /conf.d/manual.conf
2006-12-20 18:01:15 +01:00
# for mod_auth_ldap
2015-02-25 14:43:34 +01:00
install -m 644 docs/conf/charset.conv %{buildroot} /%{sysconfdir} /
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
cp -p $RPM_SOURCE_DIR /robots.txt .
2015-02-25 14:43:34 +01:00
cp -p $RPM_SOURCE_DIR /favicon.ico %{buildroot} /%{htdocsdir} /
cat > %{buildroot} /%{htdocsdir} /robots.txt <<-EOF
2006-12-20 18:01:15 +01:00
User-Agent: *
Disallow: /
EOF
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
#
# use official mime.types (more complete)
#
2015-02-25 14:43:34 +01:00
ln -sf ../mime.types %{buildroot} /%{sysconfdir} /mime.types
2010-03-05 15:57:50 +01:00
2015-02-25 14:43:34 +01:00
mv %{buildroot} /%{cgidir} /printenv* .
mv %{buildroot} /%{cgidir} /test-cgi .
2012-08-01 03:54:19 +02:00
2006-12-20 18:01:15 +01:00
# fix up apxs
2015-02-25 14:43:34 +01:00
pushd %{buildroot} /%{_bindir}
2006-12-20 18:01:15 +01:00
for mpm in %{mpms_to_build} ; do
cat <<-EOT_ED | ed -s apxs
H
,s/^\(.*\)config_vars.mk\(.*\)$/\1config_vars.mk\$mpm_suffix\2/
/config_vars.mk
2009-06-09 18:26:15 +02:00
-
2006-12-20 18:01:15 +01:00
i
my \$mpm_suffix = " - $ m p m " ;
.
2015-06-02 10:26:32 +02:00
wq apxs-$mpm
2006-12-20 18:01:15 +01:00
EOT_ED
2015-06-02 10:26:32 +02:00
chmod 755 apxs-$mpm
2006-12-20 18:01:15 +01:00
done
cat <<-EOT_ED | ed -s apxs
H
/config_vars
a
my \$mpm_suffix = " " ;
.
wq
EOT_ED
popd
2010-03-05 15:57:50 +01:00
2015-02-25 14:43:34 +01:00
# install firewall information file
install -d %{buildroot} %{_sysconfdir} /sysconfig/SuSEfirewall2.d/services/
install -m 644 %{SOURCE49} %{buildroot} %{_sysconfdir} /sysconfig/SuSEfirewall2.d/services/%{name}
install -m 644 %{SOURCE50} %{buildroot} %{_sysconfdir} /sysconfig/SuSEfirewall2.d/services/%{name} -ssl
2015-06-02 10:26:32 +02:00
ln -sf %{_bindir} /apxs %{buildroot} %{_sbindir}
#
# compat symlinks apache2 -> apache
#
ln -s ab %{buildroot} /%{_bindir} /ab2
ln -s ab.1.gz %{buildroot} /%{_mandir} /man1/ab2.1.gz
ln -s apxs %{buildroot} /%{_bindir} /apxs2
ln -s apxs.1.gz %{buildroot} /%{_mandir} /man1/apxs2.1.gz
ln -s apxs-prefork %{buildroot} /%{_bindir} /apxs2-prefork
ln -s apxs-worker %{buildroot} /%{_bindir} /apxs2-worker
ln -s apxs-event %{buildroot} /%{_bindir} /apxs2-event
ln -s dbmmanage %{buildroot} /%{_bindir} /dbmmanage2
ln -s dbmmanage.1.gz %{buildroot} /%{_mandir} /man1/dbmmanage2.1.gz
ln -s htdbm %{buildroot} /%{_bindir} /htdbm2
ln -s htdbm.1.gz %{buildroot} /%{_mandir} /man1/htdbm2.1.gz
ln -s htdigest %{buildroot} /%{_bindir} /htdigest2
ln -s htdigest.1.gz %{buildroot} /%{_mandir} /man1/htdigest2.1.gz
ln -s htpasswd %{buildroot} /%{_bindir} /htpasswd2
ln -s htpasswd.1.gz %{buildroot} /%{_mandir} /man1/htpasswd2.1.gz
ln -s check_forensic %{buildroot} /%{_bindir} /check_forensic2
ln -s logresolve %{buildroot} /%{_bindir} /logresolve2
ln -s logresolve.1.gz %{buildroot} /%{_mandir} /man1/logresolve2.1.gz
ln -s log_server_status %{buildroot} /%{_bindir} /log_server_status2
ln -s split-logfile %{buildroot} /%{_bindir} /split-logfile2
ln -s apachectl %{buildroot} /%{_sbindir} /apache2ctl
ln -s apachectl.8.gz %{buildroot} /%{_mandir} /man8/apache2ctl.8.gz
ln -s apxs %{buildroot} /%{_sbindir} /apxs2
ln -s httpd-prefork %{buildroot} /%{_sbindir} /httpd2-prefork
ln -s httpd-worker %{buildroot} /%{_sbindir} /httpd2-worker
ln -s httpd-event %{buildroot} /%{_sbindir} /httpd2-event
ln -s httpd.8.gz %{buildroot} /%{_mandir} /man8/httpd2.8.gz
ln -s logresolve.pl %{buildroot} /%{_sbindir} /logresolve.pl2
ln -s rotatelogs %{buildroot} /%{_sbindir} /rotatelogs2
ln -s rotatelogs.8.gz %{buildroot} /%{_mandir} /man8/rotatelogs2.8.gz
ln -s suexec %{buildroot} /%{_sbindir} /suexec2
ln -s suexec.8.gz %{buildroot} /%{_mandir} /man8/suexec2.8.gz
2006-12-20 18:01:15 +01:00
#
# filelists
#
>filelist; >filelist-devel
2015-02-25 14:43:34 +01:00
for mpm in %{mpms_to_build} ; do
2015-02-25 22:11:43 +01:00
echo %dir %{_libdir} /%{name} -$mpm >> filelist
2006-12-20 18:01:15 +01:00
(
2015-02-25 14:43:34 +01:00
echo %dir %{includedir} -$mpm
2015-06-02 10:26:32 +02:00
echo %{_bindir} /apxs-$mpm
echo %{_bindir} /apxs2-$mpm
2006-12-20 18:01:15 +01:00
) >> filelist-devel
done
2015-02-25 14:43:34 +01:00
find %{buildroot} /%{includedir} /.. -type f -o -type l \
| sed " s # %{buildroot} # # " \
2006-12-20 18:01:15 +01:00
>> filelist-devel
2015-02-25 14:43:34 +01:00
find %{buildroot} /%{installbuilddir} -type f \
| sed " s # %{buildroot} # # " \
2006-12-20 18:01:15 +01:00
>> filelist-devel
2015-06-02 10:26:32 +02:00
#
2006-12-20 18:01:15 +01:00
# remove files from the build root that we won't package
2015-06-02 10:26:32 +02:00
#
2015-02-25 22:11:43 +01:00
rm -f %{buildroot} /%{_libdir} /%{name} -*/*.exp # needed only on AIX
rm -f %{buildroot} /%{_libdir} /%{name} /*.exp # needed only on AIX
2015-02-25 14:43:34 +01:00
rm -f %{buildroot} /%{_sbindir} /checkgid # needed only for user installations from tarball
rm -r %{buildroot} /%{sysconfdir} /extra # it is already in the documentation directory
2010-03-05 15:57:50 +01:00
2015-02-25 14:43:34 +01:00
%check
# now check wether httpd binary runs properly
# and validate httpd.conf file
2006-12-20 18:01:15 +01:00
#
2015-02-25 14:43:34 +01:00
pushd %{buildroot} /%{sysconfdir}
2015-07-13 10:18:58 +02:00
for i in *.conf; do
# loadmodule.conf.test will be created later
[ " $ i " == loadmodule.conf ] && continue
cp $i $i.test;
done
2015-02-25 14:43:34 +01:00
sed -e 's+%{_libdir}+' %{buildroot} '%{_libdir}+' \
-e 's+%{_localstatedir}/run+' %{buildroot} '%{_localstatedir}/run+' \
-e 's+%{sysconfdir}+' %{buildroot} '%{sysconfdir}+' \
-e 's+%{datadir}+' %{buildroot} '%{datadir}+' \
2006-12-20 18:01:15 +01:00
-e 's+\.conf$+&.test+' \
2015-02-25 14:43:34 +01:00
-e 's+%{_localstatedir}/log+' %{buildroot} '%{_localstatedir}/log+' \
2006-12-20 18:01:15 +01:00
httpd.conf > httpd.conf.test
2015-02-25 14:43:34 +01:00
sed -e 's+%{sysconfdir}+' %{buildroot} '%{sysconfdir}+' \
2006-12-20 18:01:15 +01:00
default-server.conf > default-server.conf.test
2015-07-13 10:18:58 +02:00
sed -i 's+%{_localstatedir}/log+' %{buildroot} '%{_localstatedir}/log+' \
global.conf.test
2006-12-20 18:01:15 +01:00
popd
2015-02-25 14:43:34 +01:00
pushd %{buildroot}
2006-12-20 18:01:15 +01:00
for i in $(export LC_ALL=C; find .%{libexecdir} -%{default_mpm} -name " * . s o " | sort); do
mod_id=${i#*mod_}; mod_id=${mod_id%.so}_module
mod_path=
2015-07-13 10:18:58 +02:00
echo LoadModule $mod_id %{buildroot} /${i#.} >> .%{sysconfdir}/loadmodule.conf.test
2006-12-20 18:01:15 +01:00
done
# auth_ldap_module needs to be loaded after ldap_module
2015-07-13 10:18:58 +02:00
echo -e " / a u t h n z _ l d a p \n + \n - m / l d a p \n w q " | ed -s ./%{sysconfdir} /loadmodule.conf.test
2006-12-20 18:01:15 +01:00
popd
2010-03-05 15:57:50 +01:00
2015-02-25 14:43:34 +01:00
LD_LIBRARY_PATH=%{buildroot} %{_libdir} \
2015-06-02 10:26:32 +02:00
%{buildroot} /%{_sbindir} /httpd-%{default_mpm} \
2015-02-25 14:43:34 +01:00
-e debug -t -f %{buildroot} /%{sysconfdir} /httpd.conf.test || exit 1
rm %{buildroot} /%{sysconfdir} /*.test
mv %{buildroot} /%{sysconfdir} /original .
2006-12-20 18:01:15 +01:00
%files -f filelist
%defattr (-,root,root)
%doc INSTALL READM* LICENSE ABOUT_APACHE CHANGES
%doc support/SHA1
2015-06-02 10:26:32 +02:00
%doc %{_mandir} /man?/apachectl.?.*
%doc %{_mandir} /man?/apache2ctl.?.*
%doc %{_mandir} /man?/htcacheclean.?.*
%doc %{_mandir} /man?/httpd.?.*
%doc %{_mandir} /man?/httpd2.?.*
%doc %{_mandir} /man?/apxs.?.*
%doc %{_mandir} /man?/apxs2.?.*
2006-12-20 18:01:15 +01:00
%doc robots.txt
%doc printenv
%doc test-cgi
%doc httpd.conf.default
%doc original
%attr (750,root,root) %dir %{logfiledir}
2015-02-25 14:43:34 +01:00
%attr (750,%{httpduser} ,root) %dir %{proxycachedir}
%attr (750,%{httpduser} ,root) %dir %{localstatedir}
2006-12-20 18:01:15 +01:00
%dir %{sysconfdir}
%config %{sysconfdir} /magic
%config %{sysconfdir} /mime.types
%config (noreplace) %{sysconfdir} /*.conf
%config (noreplace) %{sysconfdir} /charset.conv
%{sysconfdir} /vhosts.d/*.template
%dir %{sysconfdir} /ssl.crl
%dir %{sysconfdir} /ssl.crt
%dir %{sysconfdir} /ssl.csr
%dir %attr (700,root,root) %{sysconfdir} /ssl.key
%dir %{sysconfdir} /ssl.prm
2011-04-08 16:57:32 +02:00
%{sysconfdir} /ssl.*/README*
2006-12-20 18:01:15 +01:00
%dir %{sysconfdir} /conf.d
%dir %{sysconfdir} /vhosts.d
2015-02-25 22:11:43 +01:00
%config (noreplace) %{_sysconfdir} /logrotate.d/%{name}
2007-01-12 01:16:59 +01:00
%{_datadir} /omc/svcinfo.d/apache2.xml
2011-09-29 11:39:43 +02:00
%if 0%{?suse_version} >= 1210
2015-06-02 10:26:32 +02:00
%{_unitdir} /apache2.service
2015-07-13 10:18:58 +02:00
%{_unitdir} /apache2@.service
2015-02-25 14:43:34 +01:00
%{_sbindir} /apache2-systemd-ask-pass
2015-02-25 16:59:55 +01:00
%else
2015-02-25 22:11:43 +01:00
%{_initddir} /%{name}
2011-09-29 11:39:43 +02:00
%endif
2015-06-02 10:26:32 +02:00
%{_sbindir} /rcapache2
%{_sbindir} /apachectl
%{_sbindir} /apache2ctl
2006-12-20 18:01:15 +01:00
%{_sbindir} /envvars
%{_sbindir} /envvars-std
%{_sbindir} /htcacheclean
%{_sbindir} /a2enflag
%{_sbindir} /a2enmod
%{_sbindir} /a2disflag
%{_sbindir} /a2dismod
2011-09-12 14:20:52 +02:00
%{_sbindir} /start_apache2
2015-06-02 10:26:32 +02:00
%{_bindir} /log_server_status
%{_bindir} /log_server_status2
2006-12-20 18:01:15 +01:00
%{iconsdir}
%{errordir}
2015-02-25 22:11:43 +01:00
%{_var}/adm/fillup-templates/sysconfig.%{name}
%attr (755,root,root) %{_libdir} /%{name} _MMN
%dir %{_libdir} /%{name}
%{_libdir} /%{name} /mod_*.so
2006-12-20 18:01:15 +01:00
%dir %{installbuilddir}
2015-02-25 22:11:43 +01:00
%dir %{_datadir} /%{name}
2015-06-12 09:59:31 +02:00
%{_datadir} /%{name} /apache-22-24-upgrade
2015-07-13 10:18:58 +02:00
%{_datadir} /%{name} /deprecated-scripts
%{_datadir} /%{name} /script-helpers
2015-02-25 22:11:43 +01:00
%{_datadir} /%{name} /sysconf_addword
2007-10-22 18:25:27 +02:00
%config %{_sysconfdir} /sysconfig/SuSEfirewall2.d/services/%{name}
%config %{_sysconfdir} /sysconfig/SuSEfirewall2.d/services/%{name} -ssl
2011-09-13 10:38:39 +02:00
2015-02-25 14:43:34 +01:00
%if %{prefork}
2006-12-20 18:01:15 +01:00
%files prefork
%defattr (-,root,root)
2015-06-02 10:26:32 +02:00
%{_sbindir} /httpd-prefork
%{_sbindir} /httpd2-prefork
2015-02-25 22:11:43 +01:00
%dir %{_libdir} /%{name} -prefork
2015-02-25 14:54:02 +01:00
# hardcoded list so we do not lose mods by accident
2015-05-26 10:17:52 +02:00
%{_libdir} /%{name} -prefork/mod_access_compat.so
2015-02-25 22:11:43 +01:00
%{_libdir} /%{name} -prefork/mod_actions.so
%{_libdir} /%{name} -prefork/mod_alias.so
%{_libdir} /%{name} -prefork/mod_allowmethods.so
%{_libdir} /%{name} -prefork/mod_asis.so
%{_libdir} /%{name} -prefork/mod_auth_basic.so
%{_libdir} /%{name} -prefork/mod_auth_digest.so
%{_libdir} /%{name} -prefork/mod_auth_form.so
%{_libdir} /%{name} -prefork/mod_authn_anon.so
%{_libdir} /%{name} -prefork/mod_authn_core.so
%{_libdir} /%{name} -prefork/mod_authn_dbd.so
%{_libdir} /%{name} -prefork/mod_authn_dbm.so
%{_libdir} /%{name} -prefork/mod_authn_file.so
%{_libdir} /%{name} -prefork/mod_authn_socache.so
%{_libdir} /%{name} -prefork/mod_authnz_ldap.so
%{_libdir} /%{name} -prefork/mod_authz_core.so
%{_libdir} /%{name} -prefork/mod_authz_dbd.so
%{_libdir} /%{name} -prefork/mod_authz_dbm.so
%{_libdir} /%{name} -prefork/mod_authz_groupfile.so
%{_libdir} /%{name} -prefork/mod_authz_host.so
%{_libdir} /%{name} -prefork/mod_authz_owner.so
%{_libdir} /%{name} -prefork/mod_authz_user.so
%{_libdir} /%{name} -prefork/mod_autoindex.so
%{_libdir} /%{name} -prefork/mod_bucketeer.so
%{_libdir} /%{name} -prefork/mod_buffer.so
%{_libdir} /%{name} -prefork/mod_cache.so
%{_libdir} /%{name} -prefork/mod_cache_disk.so
%{_libdir} /%{name} -prefork/mod_cache_socache.so
%{_libdir} /%{name} -prefork/mod_case_filter.so
%{_libdir} /%{name} -prefork/mod_case_filter_in.so
%{_libdir} /%{name} -prefork/mod_cgi.so
%{_libdir} /%{name} -prefork/mod_charset_lite.so
%{_libdir} /%{name} -prefork/mod_data.so
%{_libdir} /%{name} -prefork/mod_dav.so
%{_libdir} /%{name} -prefork/mod_dav_fs.so
%{_libdir} /%{name} -prefork/mod_dav_lock.so
%{_libdir} /%{name} -prefork/mod_dbd.so
%{_libdir} /%{name} -prefork/mod_deflate.so
%{_libdir} /%{name} -prefork/mod_dialup.so
%{_libdir} /%{name} -prefork/mod_dir.so
%{_libdir} /%{name} -prefork/mod_dumpio.so
%{_libdir} /%{name} -prefork/mod_echo.so
%{_libdir} /%{name} -prefork/mod_env.so
%{_libdir} /%{name} -prefork/mod_expires.so
%{_libdir} /%{name} -prefork/mod_ext_filter.so
%{_libdir} /%{name} -prefork/mod_file_cache.so
%{_libdir} /%{name} -prefork/mod_filter.so
%{_libdir} /%{name} -prefork/mod_headers.so
%{_libdir} /%{name} -prefork/mod_heartmonitor.so
%{_libdir} /%{name} -prefork/mod_imagemap.so
%{_libdir} /%{name} -prefork/mod_include.so
%{_libdir} /%{name} -prefork/mod_info.so
%{_libdir} /%{name} -prefork/mod_lbmethod_bybusyness.so
%{_libdir} /%{name} -prefork/mod_lbmethod_byrequests.so
%{_libdir} /%{name} -prefork/mod_lbmethod_bytraffic.so
%{_libdir} /%{name} -prefork/mod_lbmethod_heartbeat.so
%{_libdir} /%{name} -prefork/mod_ldap.so
%{_libdir} /%{name} -prefork/mod_log_config.so
%{_libdir} /%{name} -prefork/mod_log_debug.so
%{_libdir} /%{name} -prefork/mod_log_forensic.so
%{_libdir} /%{name} -prefork/mod_logio.so
%{_libdir} /%{name} -prefork/mod_lua.so
%{_libdir} /%{name} -prefork/mod_macro.so
%{_libdir} /%{name} -prefork/mod_mime.so
%{_libdir} /%{name} -prefork/mod_mime_magic.so
%{_libdir} /%{name} -prefork/mod_negotiation.so
%{_libdir} /%{name} -prefork/mod_optional_fn_export.so
%{_libdir} /%{name} -prefork/mod_optional_fn_import.so
%{_libdir} /%{name} -prefork/mod_optional_hook_export.so
%{_libdir} /%{name} -prefork/mod_optional_hook_import.so
%{_libdir} /%{name} -prefork/mod_proxy.so
%{_libdir} /%{name} -prefork/mod_proxy_ajp.so
%{_libdir} /%{name} -prefork/mod_proxy_balancer.so
%{_libdir} /%{name} -prefork/mod_proxy_connect.so
%{_libdir} /%{name} -prefork/mod_proxy_express.so
%{_libdir} /%{name} -prefork/mod_proxy_fcgi.so
%{_libdir} /%{name} -prefork/mod_proxy_fdpass.so
%{_libdir} /%{name} -prefork/mod_proxy_ftp.so
%{_libdir} /%{name} -prefork/mod_proxy_html.so
%{_libdir} /%{name} -prefork/mod_proxy_http.so
%{_libdir} /%{name} -prefork/mod_proxy_scgi.so
%{_libdir} /%{name} -prefork/mod_proxy_wstunnel.so
%{_libdir} /%{name} -prefork/mod_ratelimit.so
%{_libdir} /%{name} -prefork/mod_reflector.so
%{_libdir} /%{name} -prefork/mod_remoteip.so
%{_libdir} /%{name} -prefork/mod_reqtimeout.so
%{_libdir} /%{name} -prefork/mod_request.so
%{_libdir} /%{name} -prefork/mod_rewrite.so
%{_libdir} /%{name} -prefork/mod_sed.so
%{_libdir} /%{name} -prefork/mod_session.so
%{_libdir} /%{name} -prefork/mod_session_cookie.so
%{_libdir} /%{name} -prefork/mod_session_crypto.so
%{_libdir} /%{name} -prefork/mod_session_dbd.so
%{_libdir} /%{name} -prefork/mod_setenvif.so
%{_libdir} /%{name} -prefork/mod_slotmem_plain.so
%{_libdir} /%{name} -prefork/mod_slotmem_shm.so
%{_libdir} /%{name} -prefork/mod_socache_dbm.so
%{_libdir} /%{name} -prefork/mod_socache_memcache.so
%{_libdir} /%{name} -prefork/mod_socache_shmcb.so
%{_libdir} /%{name} -prefork/mod_speling.so
%{_libdir} /%{name} -prefork/mod_ssl.so
%{_libdir} /%{name} -prefork/mod_status.so
%{_libdir} /%{name} -prefork/mod_substitute.so
%{_libdir} /%{name} -prefork/mod_suexec.so
%{_libdir} /%{name} -prefork/mod_unique_id.so
%{_libdir} /%{name} -prefork/mod_userdir.so
%{_libdir} /%{name} -prefork/mod_usertrack.so
%{_libdir} /%{name} -prefork/mod_version.so
%{_libdir} /%{name} -prefork/mod_vhost_alias.so
%{_libdir} /%{name} -prefork/mod_watchdog.so
%{_libdir} /%{name} -prefork/mod_xml2enc.so
2006-12-20 18:01:15 +01:00
%endif
2015-02-25 14:43:34 +01:00
%if %{worker}
2006-12-20 18:01:15 +01:00
%files worker
%defattr (-,root,root)
2015-06-02 10:26:32 +02:00
%{_sbindir} /httpd-worker
%{_sbindir} /httpd2-worker
2015-02-25 22:11:43 +01:00
%dir %{_libdir} /%{name} -worker
2015-02-25 14:54:02 +01:00
# hardcoded list so we do not lose mods by accident
2015-05-26 10:17:52 +02:00
%{_libdir} /%{name} -worker/mod_access_compat.so
2015-02-25 22:11:43 +01:00
%{_libdir} /%{name} -worker/mod_actions.so
%{_libdir} /%{name} -worker/mod_alias.so
%{_libdir} /%{name} -worker/mod_allowmethods.so
%{_libdir} /%{name} -worker/mod_asis.so
%{_libdir} /%{name} -worker/mod_auth_basic.so
%{_libdir} /%{name} -worker/mod_auth_digest.so
%{_libdir} /%{name} -worker/mod_auth_form.so
%{_libdir} /%{name} -worker/mod_authn_anon.so
%{_libdir} /%{name} -worker/mod_authn_core.so
%{_libdir} /%{name} -worker/mod_authn_dbd.so
%{_libdir} /%{name} -worker/mod_authn_dbm.so
%{_libdir} /%{name} -worker/mod_authn_file.so
%{_libdir} /%{name} -worker/mod_authn_socache.so
%{_libdir} /%{name} -worker/mod_authnz_ldap.so
%{_libdir} /%{name} -worker/mod_authz_core.so
%{_libdir} /%{name} -worker/mod_authz_dbd.so
%{_libdir} /%{name} -worker/mod_authz_dbm.so
%{_libdir} /%{name} -worker/mod_authz_groupfile.so
%{_libdir} /%{name} -worker/mod_authz_host.so
%{_libdir} /%{name} -worker/mod_authz_owner.so
%{_libdir} /%{name} -worker/mod_authz_user.so
%{_libdir} /%{name} -worker/mod_autoindex.so
%{_libdir} /%{name} -worker/mod_bucketeer.so
%{_libdir} /%{name} -worker/mod_buffer.so
%{_libdir} /%{name} -worker/mod_cache.so
%{_libdir} /%{name} -worker/mod_cache_disk.so
%{_libdir} /%{name} -worker/mod_cache_socache.so
%{_libdir} /%{name} -worker/mod_case_filter.so
%{_libdir} /%{name} -worker/mod_case_filter_in.so
%{_libdir} /%{name} -worker/mod_cgid.so
%{_libdir} /%{name} -worker/mod_charset_lite.so
%{_libdir} /%{name} -worker/mod_data.so
%{_libdir} /%{name} -worker/mod_dav.so
%{_libdir} /%{name} -worker/mod_dav_fs.so
%{_libdir} /%{name} -worker/mod_dav_lock.so
%{_libdir} /%{name} -worker/mod_dbd.so
%{_libdir} /%{name} -worker/mod_deflate.so
%{_libdir} /%{name} -worker/mod_dialup.so
%{_libdir} /%{name} -worker/mod_dir.so
%{_libdir} /%{name} -worker/mod_dumpio.so
%{_libdir} /%{name} -worker/mod_echo.so
%{_libdir} /%{name} -worker/mod_env.so
%{_libdir} /%{name} -worker/mod_expires.so
%{_libdir} /%{name} -worker/mod_ext_filter.so
%{_libdir} /%{name} -worker/mod_file_cache.so
%{_libdir} /%{name} -worker/mod_filter.so
%{_libdir} /%{name} -worker/mod_headers.so
%{_libdir} /%{name} -worker/mod_heartmonitor.so
%{_libdir} /%{name} -worker/mod_imagemap.so
%{_libdir} /%{name} -worker/mod_include.so
%{_libdir} /%{name} -worker/mod_info.so
%{_libdir} /%{name} -worker/mod_lbmethod_bybusyness.so
%{_libdir} /%{name} -worker/mod_lbmethod_byrequests.so
%{_libdir} /%{name} -worker/mod_lbmethod_bytraffic.so
%{_libdir} /%{name} -worker/mod_lbmethod_heartbeat.so
%{_libdir} /%{name} -worker/mod_ldap.so
%{_libdir} /%{name} -worker/mod_log_config.so
%{_libdir} /%{name} -worker/mod_log_debug.so
%{_libdir} /%{name} -worker/mod_log_forensic.so
%{_libdir} /%{name} -worker/mod_logio.so
%{_libdir} /%{name} -worker/mod_lua.so
%{_libdir} /%{name} -worker/mod_macro.so
%{_libdir} /%{name} -worker/mod_mime.so
%{_libdir} /%{name} -worker/mod_mime_magic.so
%{_libdir} /%{name} -worker/mod_negotiation.so
%{_libdir} /%{name} -worker/mod_optional_fn_export.so
%{_libdir} /%{name} -worker/mod_optional_fn_import.so
%{_libdir} /%{name} -worker/mod_optional_hook_export.so
%{_libdir} /%{name} -worker/mod_optional_hook_import.so
%{_libdir} /%{name} -worker/mod_proxy.so
%{_libdir} /%{name} -worker/mod_proxy_ajp.so
%{_libdir} /%{name} -worker/mod_proxy_balancer.so
%{_libdir} /%{name} -worker/mod_proxy_connect.so
%{_libdir} /%{name} -worker/mod_proxy_express.so
%{_libdir} /%{name} -worker/mod_proxy_fcgi.so
%{_libdir} /%{name} -worker/mod_proxy_fdpass.so
%{_libdir} /%{name} -worker/mod_proxy_ftp.so
%{_libdir} /%{name} -worker/mod_proxy_html.so
%{_libdir} /%{name} -worker/mod_proxy_http.so
%{_libdir} /%{name} -worker/mod_proxy_scgi.so
%{_libdir} /%{name} -worker/mod_proxy_wstunnel.so
%{_libdir} /%{name} -worker/mod_ratelimit.so
%{_libdir} /%{name} -worker/mod_reflector.so
%{_libdir} /%{name} -worker/mod_remoteip.so
%{_libdir} /%{name} -worker/mod_reqtimeout.so
%{_libdir} /%{name} -worker/mod_request.so
%{_libdir} /%{name} -worker/mod_rewrite.so
%{_libdir} /%{name} -worker/mod_sed.so
%{_libdir} /%{name} -worker/mod_session.so
%{_libdir} /%{name} -worker/mod_session_cookie.so
%{_libdir} /%{name} -worker/mod_session_crypto.so
%{_libdir} /%{name} -worker/mod_session_dbd.so
%{_libdir} /%{name} -worker/mod_setenvif.so
%{_libdir} /%{name} -worker/mod_slotmem_plain.so
%{_libdir} /%{name} -worker/mod_slotmem_shm.so
%{_libdir} /%{name} -worker/mod_socache_dbm.so
%{_libdir} /%{name} -worker/mod_socache_memcache.so
%{_libdir} /%{name} -worker/mod_socache_shmcb.so
%{_libdir} /%{name} -worker/mod_speling.so
%{_libdir} /%{name} -worker/mod_ssl.so
%{_libdir} /%{name} -worker/mod_status.so
%{_libdir} /%{name} -worker/mod_substitute.so
%{_libdir} /%{name} -worker/mod_suexec.so
%{_libdir} /%{name} -worker/mod_unique_id.so
%{_libdir} /%{name} -worker/mod_userdir.so
%{_libdir} /%{name} -worker/mod_usertrack.so
%{_libdir} /%{name} -worker/mod_version.so
%{_libdir} /%{name} -worker/mod_vhost_alias.so
%{_libdir} /%{name} -worker/mod_watchdog.so
%{_libdir} /%{name} -worker/mod_xml2enc.so
2006-12-20 18:01:15 +01:00
%endif
2015-02-25 14:43:34 +01:00
%if %{event}
2006-12-20 18:01:15 +01:00
%files event
%defattr (-,root,root)
2015-06-02 10:26:32 +02:00
%{_sbindir} /httpd-event
%{_sbindir} /httpd2-event
2015-02-25 22:11:43 +01:00
%dir %{_libdir} /%{name} -event
2015-02-25 14:54:02 +01:00
# hardcoded list so we do not lose mods by accident
2015-05-26 10:17:52 +02:00
%{_libdir} /%{name} -event/mod_access_compat.so
2015-02-25 22:11:43 +01:00
%{_libdir} /%{name} -event/mod_actions.so
%{_libdir} /%{name} -event/mod_alias.so
%{_libdir} /%{name} -event/mod_allowmethods.so
%{_libdir} /%{name} -event/mod_asis.so
%{_libdir} /%{name} -event/mod_auth_basic.so
%{_libdir} /%{name} -event/mod_auth_digest.so
%{_libdir} /%{name} -event/mod_auth_form.so
%{_libdir} /%{name} -event/mod_authn_anon.so
%{_libdir} /%{name} -event/mod_authn_core.so
%{_libdir} /%{name} -event/mod_authn_dbd.so
%{_libdir} /%{name} -event/mod_authn_dbm.so
%{_libdir} /%{name} -event/mod_authn_file.so
%{_libdir} /%{name} -event/mod_authn_socache.so
%{_libdir} /%{name} -event/mod_authnz_ldap.so
%{_libdir} /%{name} -event/mod_authz_core.so
%{_libdir} /%{name} -event/mod_authz_dbd.so
%{_libdir} /%{name} -event/mod_authz_dbm.so
%{_libdir} /%{name} -event/mod_authz_groupfile.so
%{_libdir} /%{name} -event/mod_authz_host.so
%{_libdir} /%{name} -event/mod_authz_owner.so
%{_libdir} /%{name} -event/mod_authz_user.so
%{_libdir} /%{name} -event/mod_autoindex.so
%{_libdir} /%{name} -event/mod_bucketeer.so
%{_libdir} /%{name} -event/mod_buffer.so
%{_libdir} /%{name} -event/mod_cache.so
%{_libdir} /%{name} -event/mod_cache_disk.so
%{_libdir} /%{name} -event/mod_cache_socache.so
%{_libdir} /%{name} -event/mod_case_filter.so
%{_libdir} /%{name} -event/mod_case_filter_in.so
%{_libdir} /%{name} -event/mod_cgid.so
%{_libdir} /%{name} -event/mod_charset_lite.so
%{_libdir} /%{name} -event/mod_data.so
%{_libdir} /%{name} -event/mod_dav.so
%{_libdir} /%{name} -event/mod_dav_fs.so
%{_libdir} /%{name} -event/mod_dav_lock.so
%{_libdir} /%{name} -event/mod_dbd.so
%{_libdir} /%{name} -event/mod_deflate.so
%{_libdir} /%{name} -event/mod_dialup.so
%{_libdir} /%{name} -event/mod_dir.so
%{_libdir} /%{name} -event/mod_dumpio.so
%{_libdir} /%{name} -event/mod_echo.so
%{_libdir} /%{name} -event/mod_env.so
%{_libdir} /%{name} -event/mod_expires.so
%{_libdir} /%{name} -event/mod_ext_filter.so
%{_libdir} /%{name} -event/mod_file_cache.so
%{_libdir} /%{name} -event/mod_filter.so
%{_libdir} /%{name} -event/mod_headers.so
%{_libdir} /%{name} -event/mod_heartmonitor.so
%{_libdir} /%{name} -event/mod_imagemap.so
%{_libdir} /%{name} -event/mod_include.so
%{_libdir} /%{name} -event/mod_info.so
%{_libdir} /%{name} -event/mod_lbmethod_bybusyness.so
%{_libdir} /%{name} -event/mod_lbmethod_byrequests.so
%{_libdir} /%{name} -event/mod_lbmethod_bytraffic.so
%{_libdir} /%{name} -event/mod_lbmethod_heartbeat.so
%{_libdir} /%{name} -event/mod_ldap.so
%{_libdir} /%{name} -event/mod_log_config.so
%{_libdir} /%{name} -event/mod_log_debug.so
%{_libdir} /%{name} -event/mod_log_forensic.so
%{_libdir} /%{name} -event/mod_logio.so
%{_libdir} /%{name} -event/mod_lua.so
%{_libdir} /%{name} -event/mod_macro.so
%{_libdir} /%{name} -event/mod_mime.so
%{_libdir} /%{name} -event/mod_mime_magic.so
%{_libdir} /%{name} -event/mod_negotiation.so
%{_libdir} /%{name} -event/mod_optional_fn_export.so
%{_libdir} /%{name} -event/mod_optional_fn_import.so
%{_libdir} /%{name} -event/mod_optional_hook_export.so
%{_libdir} /%{name} -event/mod_optional_hook_import.so
%{_libdir} /%{name} -event/mod_proxy.so
%{_libdir} /%{name} -event/mod_proxy_ajp.so
%{_libdir} /%{name} -event/mod_proxy_balancer.so
%{_libdir} /%{name} -event/mod_proxy_connect.so
%{_libdir} /%{name} -event/mod_proxy_express.so
%{_libdir} /%{name} -event/mod_proxy_fcgi.so
%{_libdir} /%{name} -event/mod_proxy_fdpass.so
%{_libdir} /%{name} -event/mod_proxy_ftp.so
%{_libdir} /%{name} -event/mod_proxy_html.so
%{_libdir} /%{name} -event/mod_proxy_http.so
%{_libdir} /%{name} -event/mod_proxy_scgi.so
%{_libdir} /%{name} -event/mod_proxy_wstunnel.so
%{_libdir} /%{name} -event/mod_ratelimit.so
%{_libdir} /%{name} -event/mod_reflector.so
%{_libdir} /%{name} -event/mod_remoteip.so
%{_libdir} /%{name} -event/mod_reqtimeout.so
%{_libdir} /%{name} -event/mod_request.so
%{_libdir} /%{name} -event/mod_rewrite.so
%{_libdir} /%{name} -event/mod_sed.so
%{_libdir} /%{name} -event/mod_session.so
%{_libdir} /%{name} -event/mod_session_cookie.so
%{_libdir} /%{name} -event/mod_session_crypto.so
%{_libdir} /%{name} -event/mod_session_dbd.so
%{_libdir} /%{name} -event/mod_setenvif.so
%{_libdir} /%{name} -event/mod_slotmem_plain.so
%{_libdir} /%{name} -event/mod_slotmem_shm.so
%{_libdir} /%{name} -event/mod_socache_dbm.so
%{_libdir} /%{name} -event/mod_socache_memcache.so
%{_libdir} /%{name} -event/mod_socache_shmcb.so
%{_libdir} /%{name} -event/mod_speling.so
%{_libdir} /%{name} -event/mod_ssl.so
%{_libdir} /%{name} -event/mod_status.so
%{_libdir} /%{name} -event/mod_substitute.so
%{_libdir} /%{name} -event/mod_suexec.so
%{_libdir} /%{name} -event/mod_unique_id.so
%{_libdir} /%{name} -event/mod_userdir.so
%{_libdir} /%{name} -event/mod_usertrack.so
%{_libdir} /%{name} -event/mod_version.so
%{_libdir} /%{name} -event/mod_vhost_alias.so
%{_libdir} /%{name} -event/mod_watchdog.so
%{_libdir} /%{name} -event/mod_xml2enc.so
2006-12-20 18:01:15 +01:00
%endif
%files devel -f filelist-devel
%defattr (-,root,root)
2015-02-25 22:11:43 +01:00
%dir %{_datadir} /%{name}
2006-12-20 18:01:15 +01:00
%dir %{installbuilddir}
%dir %{includedir}
2015-06-02 10:26:32 +02:00
%{_bindir} /apxs
%{_sbindir} /apxs
%{_bindir} /apxs2
%{_sbindir} /apxs2
2006-12-20 18:01:15 +01:00
%files doc
%defattr (-,root,root)
%doc %{manualdir}
%dir %{sysconfdir}
%dir %{sysconfdir} /conf.d
2012-02-11 09:39:57 +01:00
%config %{sysconfdir} /conf.d/manual.conf
2006-12-20 18:01:15 +01:00
%files example-pages
%defattr (-,root,root)
%config (noreplace) %{htdocsdir} /index.htm*
%config (noreplace) %{htdocsdir} /favicon.ico
%config (noreplace) %{htdocsdir} /robots.txt
2007-07-23 21:27:20 +02:00
%files utils
%defattr (-,root,root)
2015-06-02 10:26:32 +02:00
%doc %{_mandir} /man?/ab.?.*
%doc %{_mandir} /man?/ab2.?.*
%doc %{_mandir} /man?/dbmmanage.?.*
%doc %{_mandir} /man?/dbmmanage2.?.*
%doc %{_mandir} /man?/htdbm.?.*
%doc %{_mandir} /man?/htdbm2.?.*
%doc %{_mandir} /man?/htdigest.?.*
%doc %{_mandir} /man?/htdigest2.?.*
%doc %{_mandir} /man?/htpasswd.?.*
%doc %{_mandir} /man?/htpasswd2.?.*
%doc %{_mandir} /man?/httxt2dbm.?.*
%doc %{_mandir} /man?/logresolve.?.*
%doc %{_mandir} /man?/logresolve2.?.*
%doc %{_mandir} /man?/rotatelogs.?.*
%doc %{_mandir} /man?/rotatelogs2.?.*
%doc %{_mandir} /man?/suexec.?.*
%doc %{_mandir} /man?/suexec2.?.*
2012-08-01 03:54:19 +02:00
%{_sbindir} /fcgistarter
2015-06-02 10:26:32 +02:00
%{_mandir} /man8/fcgistarter.8.*
%{_bindir} /check_forensic
%{_bindir} /check_forensic2
%{_bindir} /dbmmanage
%{_bindir} /dbmmanage2
2015-07-13 10:18:58 +02:00
%{_bindir} /apache2-find-directives
2007-07-23 21:27:20 +02:00
%{_bindir} /gensslcert
2015-06-02 10:26:32 +02:00
%{_bindir} /htdbm
%{_bindir} /htdbm2
%{_bindir} /htdigest
%{_bindir} /htdigest2
%{_bindir} /htpasswd
%{_bindir} /htpasswd2
%{_bindir} /split-logfile
%{_bindir} /split-logfile2
%{_bindir} /ab
%{_bindir} /ab2
2012-08-01 03:54:19 +02:00
%{_bindir} /httxt2dbm
2015-06-02 10:26:32 +02:00
%{_sbindir} /logresolve.pl
%{_sbindir} /logresolve.pl2
%{_bindir} /logresolve
%{_bindir} /logresolve2
%{_sbindir} /rotatelogs
%{_sbindir} /rotatelogs2
%verify (not mode) %attr (0755,root,root) %{_sbindir} /suexec
%{_sbindir} /suexec2
2006-12-20 18:01:15 +01:00
2015-02-25 14:43:34 +01:00
%if %{prefork}
2006-12-20 18:01:15 +01:00
%post prefork
2015-07-16 12:47:20 +02:00
# install /usr/sbin/httpd link
if [ -f /usr/share/apache2/script-helpers ]; then
# it might happen that apache2 including
# /usr/share/apache2/script-helpers is not installed
# yet even if apache2-<MPM> has Requires(post): apache2
# because of circular dependency between apache2
# and apache2-MPM
. /usr/share/apache2/script-helpers
find_mpm
ln -sf $HTTPD_SBIN_BASE-$HTTPD_MPM $HTTPD_SBIN_BASE
fi
#
2006-12-20 18:01:15 +01:00
exit 0
%endif
2015-02-25 14:43:34 +01:00
%if %{worker}
2006-12-20 18:01:15 +01:00
%post worker
2015-07-16 12:47:20 +02:00
# install /usr/sbin/httpd link
if [ -f /usr/share/apache2/script-helpers ]; then
# it might happen that apache2 including
# /usr/share/apache2/script-helpers is not installed
# yet even if apache2-<MPM> has Requires(post): apache2
# because of circular dependency between apache2
# and apache2-MPM
. /usr/share/apache2/script-helpers
find_mpm
ln -sf $HTTPD_SBIN_BASE-$HTTPD_MPM $HTTPD_SBIN_BASE
fi
#
2006-12-20 18:01:15 +01:00
exit 0
%endif
2015-02-25 14:43:34 +01:00
%if %{event}
2006-12-20 18:01:15 +01:00
%post event
2015-07-16 12:47:20 +02:00
# install /usr/sbin/httpd link
if [ -f /usr/share/apache2/script-helpers ]; then
# it might happen that apache2 including
# /usr/share/apache2/script-helpers is not installed
# yet even if apache2-<MPM> has Requires(post): apache2
# because of circular dependency between apache2
# and apache2-MPM
. /usr/share/apache2/script-helpers
find_mpm
ln -sf $HTTPD_SBIN_BASE-$HTTPD_MPM $HTTPD_SBIN_BASE
fi
#
2006-12-20 18:01:15 +01:00
exit 0
%endif
2010-03-05 15:57:50 +01:00
2009-06-09 18:26:15 +02:00
%pre
2011-09-29 11:39:43 +02:00
%if 0%{?suse_version} >= 1210
%service_add_pre apache2.service
2015-07-14 11:04:22 +02:00
%service_add_pre apache2@.service
2011-09-29 11:39:43 +02:00
%endif
2009-06-09 18:26:15 +02:00
%preun
2011-09-29 11:39:43 +02:00
%if 0%{?suse_version} >= 1210
%service_del_preun apache2.service
2015-07-14 11:04:22 +02:00
%service_del_preun apache2@.service
2011-09-29 11:39:43 +02:00
%endif
2015-06-02 10:26:32 +02:00
for i in %{_sbindir} /httpd \
2006-12-20 18:01:15 +01:00
%{installbuilddir} /config_vars.mk
do
test -L $i && rm $i
done
exit 0
%postun
2011-09-29 11:39:43 +02:00
%if 0%{?suse_version} >= 1210
%service_del_postun apache2.service
2015-07-14 11:04:22 +02:00
%service_del_postun apache2@.service
2015-02-25 16:59:55 +01:00
%else
2006-12-20 18:01:15 +01:00
%insserv_cleanup
2015-02-25 16:59:55 +01:00
%endif
2006-12-20 18:01:15 +01:00
%post
2013-01-18 18:45:43 +01:00
%if 0%{?suse_version} <= 1130
2006-12-20 18:01:15 +01:00
%run_permissions
2013-01-18 18:45:43 +01:00
%else
2015-07-14 11:04:22 +02:00
%set_permissions %{_sbindir} /suexec || echo " P l e a s e c h e c k / e t c / p e r m i s s i o n s . l o c a l f o r s e t t i n g s o f / u s r / s b i n / s u e x e c 2 . "
2013-01-18 18:45:43 +01:00
%endif
2015-02-25 14:43:34 +01:00
# wwwadmin group existed in past remove after openSUSE-13.2 out of support scope
if grep -q " ^ w w w a d m i n : " %{_sysconfdir} /group; then
2006-12-20 18:01:15 +01:00
groupmod -n www wwwadmin 2>/dev/null ||:
2015-02-25 14:43:34 +01:00
usermod -g %{httpdgroup} %{httpduser} 2>/dev/null ||:
usermod -s /bin/false %{httpduser} 2>/dev/null ||:
2006-12-20 18:01:15 +01:00
fi
2015-02-25 22:11:43 +01:00
tmpdir=$(mktemp -d etc/%{name} /%{name} -post.XXXXXX); test $? = 0 || { echo >&2 Could not create tmpdir. Exiting; exit 1; }
2006-12-20 18:01:15 +01:00
tmpfile=$tmpdir/tmpfile
2015-02-25 22:11:43 +01:00
if test -s etc/sysconfig/%{name} && grep -q " ^ L O A D M O D U L E S " etc/sysconfig/%{name} ; then
sed " s / L O A D M O D U L E S / A P A C H E _ M O D U L E S / " etc/sysconfig/%{name} >| $tmpfile \
&& cp $tmpfile etc/sysconfig/%{name}
2006-12-20 18:01:15 +01:00
fi
2015-02-25 16:59:55 +01:00
%{fillup_only apache2}
2015-02-25 14:43:34 +01:00
%if 0%{?suse_version} >= 1210
%service_add_post apache2.service
2015-07-14 11:04:22 +02:00
%service_add_post apache2@.service
2015-02-25 16:59:55 +01:00
%else
2008-09-12 22:47:19 +02:00
%{fillup_and_insserv apache2}
2015-02-25 16:59:55 +01:00
%endif
2015-02-25 19:03:53 +01:00
if [ $1 -gt 1 ] ; then
2006-12-20 18:01:15 +01:00
# update from package with the old near-monolithic conf file?
2015-02-25 14:43:34 +01:00
if [ -s ./%{sysconfdir} /httpd.conf.default -a -s ./%{sysconfdir} /httpd.conf.rpmnew ]; then
2006-12-20 18:01:15 +01:00
diff -u .%{sysconfdir} /httpd.conf.default .%{sysconfdir} /httpd.conf \
> $tmpdir/httpd.conf.dif ||:
cp -p $tmpdir/httpd.conf.dif ./%{sysconfdir} /httpd.conf var/adm/backup/
archive_conf=$(old var/adm/backup/httpd.conf 2>/dev/null); archive_conf=${archive_conf##*/}
archive_dif=$(old var/adm/backup/httpd.conf.dif 2>/dev/null); archive_dif=${archive_dif##*/}
fi
#
sed "
# generated files were renamed from suse_* to sysconfig.d/*
2015-02-25 14:43:34 +01:00
s|\(^Include %{_sysconfdir} /apache2\)/suse_\(\(include\|loadmodule\|global\).conf\)|\1/sysconfig.d/\2|
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
# the access_log configuration is now configurable
2015-02-25 14:43:34 +01:00
s|^CustomLog %{_localstatedir} /log/apache2/access_log.*|# &|
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
# group of wwwrun has changed
s|^Group nogroup|Group www|
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
" < . / %{sysconfdir} / h t t p d . c o n f > $ t m p f i l e
chmod --reference=./%{sysconfdir} /httpd.conf $tmpfile
chown --reference=./%{sysconfdir} /httpd.conf $tmpfile
cmp -s $tmpfile ./%{sysconfdir} /httpd.conf || cp -p $tmpfile ./%{sysconfdir} /httpd.conf
fi
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
rm -rf $tmpdir
2015-07-16 12:47:20 +02:00
# install /usr/bin/httpd link (the code here is
# needed when apache2 was installed after apache2-<MPM>)
. /usr/share/apache2/script-helpers
find_mpm
if [ -n " $ H T T P D _ M P M " ]; then
ln -sf $HTTPD_SBIN_BASE-$HTTPD_MPM $HTTPD_SBIN_BASE
fi
#
2006-12-20 18:01:15 +01:00
exit 0
2010-03-05 15:57:50 +01:00
2015-06-12 09:59:31 +02:00
%posttrans
%{_datadir} /%{name} /apache-22-24-upgrade
2006-12-20 18:01:15 +01:00
%verify script
2015-06-02 10:26:32 +02:00
%verify _permissions -e %{_sbindir} /suexec
2006-12-20 18:01:15 +01:00
2007-03-20 01:13:36 +01:00
%changelog