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
2009-06-09 18:26:15 +02:00
%define vers 2
2006-12-20 18:01:15 +01:00
%define httpd httpd2
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}'; })
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
2013-10-22 17:46:52 +02:00
%define mods_static access_compat 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
Source24 : apache2-README.default-vhost
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
Source40 : load_configuration
Source41 : find_mpm
Source42 : get_module_list
Source43 : get_includes
Source44 : find_httpd2_includes
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
2006-12-20 18:01:15 +01:00
Source130 : apache2-vhost.template
Source131 : apache2-vhost-ssl.template
2012-02-11 09:39:57 +01:00
Source132 : apache2-default-vhost.conf
Source133 : apache2-default-vhost-ssl.conf
2006-12-20 18:01:15 +01:00
Source140 : apache2-check_forensic
Source141 : apache-20-22-upgrade
2011-09-12 14:20:52 +02:00
Source142 : start_apache2
Source143 : apache2-systemd-ask-pass
Source144 : apache2.service
2015-05-26 10:17:52 +02:00
Source145 : apache-find-directives
2006-12-20 18:01:15 +01:00
Patch2 : httpd-2.1.3alpha-layout.dif
2014-11-07 16:23:57 +01:00
Patch23 : httpd-2.4.10-apachectl.patch
2013-01-28 04:33:43 +01:00
#Patch65: httpd-2.0.49-log_server_status.dif
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
2012-03-20 19:13:21 +01:00
Patch69 : httpd-2.2.x-bnc690734.patch
2013-06-18 07:57:29 +02:00
Patch70 : apache2-implicit-pointer-decl.patch
2012-05-29 11:03:52 +02:00
# PATCH-FEATURE-UPSTREAM apache2-mod_ssl_npn.patch dimstar@opensuse.org -- Add npn support to mod_ssl (needed for spdy)
2013-06-18 07:57:29 +02:00
#Patch108: apache2-mod_ssl_npn.patch
#Provides: apache2(mod_ssl+npn)
# 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-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-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
Recommends: apache2-%{default_mpm}
2012-03-20 19:13:21 +01:00
Provides : %{apache_mmn}
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-03-10 22:08:07 +01:00
# the post scriptlet executes /usr/share/apache2/get_module_list
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-03-10 22:08:07 +01:00
# the post scriptlet executes /usr/share/apache2/get_module_list
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-03-10 22:08:07 +01:00
# the post scriptlet executes /usr/share/apache2/get_module_list
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-02-25 14:54:02 +01:00
%setup -q -n httpd-%{version}
2006-12-20 18:01:15 +01:00
%patch2 -p1
2013-07-22 19:04:27 +02:00
%patch23 -p1
2013-01-28 04:33:43 +01:00
#%patch65 -p1
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
2013-01-28 04:33:43 +01:00
#%patch69
2013-06-18 07:57:29 +02:00
%patch70 -p1
#%patch108 -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
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}-}
c=$(basename %{SOURCE24} )
cp %{SOURCE24} ./${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) \
2006-12-20 18:01:15 +01:00
--with-program-name=httpd%{vers} $mpm_suffix \
--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 \
--with-suexec-bin=%{_sbindir} /suexec%{vers} \
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
2006-12-20 18:01:15 +01:00
sed " s / %{vers} - $ m p m / / " include/ap_config_auto.h > include/ap_config_auto.h.new
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
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} ^ " \
2006-12-20 18:01:15 +01:00
-e " s / h t t p d $ / %{httpd} - %{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)
# by putting them in /usr/lib/apache%{vers}
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
# by putting them in /usr/lib/apache%{vers}
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-02-25 14:43:34 +01:00
cp -p %{buildroot} /%{sysconfdir} /%{httpd} -%{default_mpm} .conf %{buildroot} /%{sysconfdir} /httpd.conf
cp -p %{buildroot} /%{sysconfdir} /httpd.conf ./httpd.conf.default
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-02-25 14:43:34 +01:00
install -m 755 support/log_server_status %{buildroot} /%{_bindir} /log_server_status%{vers}
install -m 755 support/split-logfile %{buildroot} /%{_bindir} /split-logfile%{vers}
install -m 755 support/logresolve.pl %{buildroot} /%{_sbindir} /logresolve.pl%{vers}
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-02-25 14:43:34 +01:00
install -m 755 $RPM_SOURCE_DIR /apache2-check_forensic %{buildroot} /%{_bindir} /check_forensic%{vers}
2015-05-26 10:17:52 +02:00
install -m 755 $RPM_SOURCE_DIR /apache-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-02-25 14:43:34 +01:00
install -m 700 $RPM_SOURCE_DIR /start_apache2 %{buildroot} %{_sbindir} /start_apache2
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} /
install -m 700 $RPM_SOURCE_DIR /apache2-systemd-ask-pass %{buildroot} %{_sbindir} /apache2-systemd-ask-pass
install -m 644 $RPM_SOURCE_DIR /apache2.service %{buildroot} %{_unitdir} /apache2.service
2015-02-25 22:11:43 +01:00
ln -sf service %{buildroot} /%{_sbindir} /rc%{name}
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}
ln -sf ../..%{_initddir} /%{name} %{buildroot} /%{_sbindir} /rc%{name}
2015-02-25 16:59:55 +01:00
%endif
2015-02-25 22:11:43 +01:00
install -m 755 $RPM_SOURCE_DIR /load_configuration %{buildroot} /%{_datadir} /%{name} /
install -m 755 $RPM_SOURCE_DIR /find_mpm %{buildroot} /%{_datadir} /%{name} /
install -m 755 $RPM_SOURCE_DIR /get_includes %{buildroot} /%{_datadir} /%{name} /
install -m 755 $RPM_SOURCE_DIR /find_httpd2_includes %{buildroot} /%{_datadir} /%{name} /
install -m 755 $RPM_SOURCE_DIR /apache-20-22-upgrade %{buildroot} /%{_datadir} /%{name} /
2015-02-25 14:43:34 +01:00
sed 's+%{_prefix}/lib+%{_libdir}+' $RPM_SOURCE_DIR /get_module_list \
2015-02-25 22:11:43 +01:00
> %{buildroot} /%{_datadir} /%{name} /get_module_list
chmod 755 %{buildroot} /%{_datadir} /%{name} /get_module_list
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
2011-04-08 16:57:32 +02:00
for i in vhosts.d sysconfig.d; do
2015-02-25 14:43:34 +01:00
mkdir -p %{buildroot} /%{sysconfdir} /$i
2011-04-08 16:57:32 +02:00
done
2006-12-20 18:01:15 +01:00
#
# make list of all modules, and install sysconfig template
2015-02-25 14:43:34 +01:00
for i in $(find %{buildroot} /%{libexecdir} -%{default_mpm} -name " * . s o " | sort); do
2006-12-20 18:01:15 +01:00
modname=${i#*mod_}; modname=${modname%.so}
modname=${modname##*lib}
all_modules=" $ a l l _ m o d u l e s $ m o d n a m e "
done
all_modules=$(echo $all_modules | fmt | sed 's/\(.*\)/# \1\\/' )
2015-02-25 22:11:43 +01:00
sed " s + @ @ a l l _ m o d u l e s @ @ + $ a l l _ m o d u l e s + " $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}
touch %{buildroot} /%{sysconfdir} /sysconfig.d/include.conf
mkdir -p %{buildroot} /%{sysconfdir} /conf.d
2006-12-20 18:01:15 +01:00
for i in default-server.conf \
errors.conf \
httpd.conf \
listen.conf \
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 \
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
2012-02-11 09:39:57 +01:00
# install default vhost
2015-02-25 14:43:34 +01:00
dvh=$(basename %{SOURCE132} )
install -m 644 %{SOURCE132} %{buildroot} /%{sysconfdir} /${dvh##%{name}-}
dvhs=$(basename %{SOURCE133} )
install -m 644 %{SOURCE133} %{buildroot} /%{sysconfdir} /${dvhs##%{name}-}
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 .
pushd %{buildroot} /%{_mandir}
2006-12-20 18:01:15 +01:00
for i in $(find . -type f); do
mv $i ${i%.*}%{vers} .${i#*.*.} || true
done
popd
2012-08-01 03:54:19 +02:00
2015-02-25 14:43:34 +01:00
pushd %{buildroot} /%{_bindir}
for i in ab dbmmanage htdbm htdigest htpasswd logresolve; do
mv $i ${i}%{vers} || true
2012-08-01 03:54:19 +02:00
done
popd
2015-02-25 14:43:34 +01:00
pushd %{buildroot} /%{_sbindir}
2012-08-01 03:54:19 +02:00
for i in rotatelogs suexec; do
2006-12-20 18:01:15 +01:00
mv $i ${i}%{vers} || true
done
mv apachectl apachectl.tmp; mv apachectl.tmp apache%{vers} ctl
popd
# 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 " ;
.
wq apxs%{vers} -$mpm
EOT_ED
chmod 755 apxs%{vers} -$mpm
done
cat <<-EOT_ED | ed -s apxs
H
/config_vars
a
my \$mpm_suffix = " " ;
.
wq
EOT_ED
mv apxs apxs%{vers}
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
2012-08-01 06:13:58 +02:00
ln -sf %{_bindir} /apxs%{vers} %{buildroot} %{_sbindir}
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
2012-08-01 03:54:19 +02:00
echo %{_bindir} /apxs%{vers} -$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
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
# remove files from the build root that we won't package
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}
2006-12-20 18:01:15 +01:00
for i in *.conf; do 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
touch sysconfig.d/global.conf.test
touch sysconfig.d/include.conf.test
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-02-25 14:43:34 +01:00
echo LoadModule $mod_id %{buildroot} /${i#.} >> .%{sysconfdir}/sysconfig.d/loadmodule.conf.test
2006-12-20 18:01:15 +01:00
done
# auth_ldap_module needs to be loaded after ldap_module
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} /sysconfig.d/loadmodule.conf.test
popd
2010-03-05 15:57:50 +01:00
2015-02-25 14:43:34 +01:00
LD_LIBRARY_PATH=%{buildroot} %{_libdir} \
%{buildroot} /%{_sbindir} /httpd%{vers} -%{default_mpm} \
-e debug -t -f %{buildroot} /%{sysconfdir} /httpd.conf.test || exit 1
rm %{buildroot} /%{sysconfdir} /*.test
rm %{buildroot} /%{sysconfdir} /sysconfig.d/*
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
2012-02-18 22:19:08 +01:00
%doc %{_mandir} /man?/apachectl%{vers} .?.*
%doc %{_mandir} /man?/htcacheclean%{vers} .?.*
%doc %{_mandir} /man?/%{httpd} .?.*
%doc %{_mandir} /man?/apxs%{vers} .?.*
2006-12-20 18:01:15 +01:00
%doc robots.txt
%doc printenv
%doc test-cgi
#%doc httpd-std.conf-*
#%doc ssl-std.conf
%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
%dir %{sysconfdir} /sysconfig.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-02-25 22:11:43 +01:00
%{_unitdir} /%{name} .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-02-25 22:11:43 +01:00
%{_sbindir} /rc%{name}
2006-12-20 18:01:15 +01:00
%{_sbindir} /apache%{vers} ctl
%{_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
2006-12-20 18:01:15 +01:00
%{_bindir} /log_server_status%{vers}
%{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}
%{_datadir} /%{name} /apache-20-22-upgrade
%{_datadir} /%{name} /get_module_list
%{_datadir} /%{name} /get_includes
%{_datadir} /%{name} /find_httpd2_includes
%{_datadir} /%{name} /find_mpm
%{_datadir} /%{name} /load_configuration
%{_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)
%{_sbindir} /%{httpd} -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)
%{_sbindir} /%{httpd} -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)
%{_sbindir} /%{httpd} -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}
2012-08-01 03:54:19 +02:00
%{_bindir} /apxs%{vers}
2012-08-01 06:13:58 +02:00
%{_sbindir} /apxs%{vers}
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)
2012-02-18 22:19:08 +01:00
%doc %{_mandir} /man?/ab%{vers} .?.*
%doc %{_mandir} /man?/dbmmanage%{vers} .?.*
%doc %{_mandir} /man?/htdbm%{vers} .?.*
%doc %{_mandir} /man?/htdigest%{vers} .?.*
%doc %{_mandir} /man?/htpasswd%{vers} .?.*
%doc %{_mandir} /man?/httxt2dbm%{vers} .?.*
%doc %{_mandir} /man?/logresolve%{vers} .?.*
%doc %{_mandir} /man?/rotatelogs%{vers} .?.*
%doc %{_mandir} /man?/suexec%{vers} .?.*
2012-08-01 03:54:19 +02:00
%{_sbindir} /fcgistarter
%{_mandir} /man8/fcgistarter2.8.*
2007-07-23 21:27:20 +02:00
%{_bindir} /check_forensic%{vers}
%{_bindir} /dbmmanage%{vers}
2015-05-26 10:17:52 +02:00
%{_bindir} /apache-find-directives
2007-07-23 21:27:20 +02:00
%{_bindir} /gensslcert
%{_bindir} /htdbm%{vers}
%{_bindir} /htdigest%{vers}
%{_bindir} /htpasswd%{vers}
%{_bindir} /split-logfile%{vers}
2012-08-01 03:54:19 +02:00
%{_bindir} /ab%{vers}
%{_bindir} /httxt2dbm
2007-07-23 21:27:20 +02:00
%{_sbindir} /logresolve.pl%{vers}
2012-08-01 03:54:19 +02:00
%{_bindir} /logresolve%{vers}
2007-07-23 21:27:20 +02:00
%{_sbindir} /rotatelogs%{vers}
2015-02-25 14:43:34 +01:00
%verify (not mode) %attr (0755,root,root) %{_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-02-25 22:11:43 +01:00
%{_datadir} /%{name} /get_module_list >/dev/null 2>&1
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-02-25 22:11:43 +01:00
%{_datadir} /%{name} /get_module_list >/dev/null 2>&1
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-02-25 22:11:43 +01:00
%{_datadir} /%{name} /get_module_list >/dev/null 2>&1
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
%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
%endif
2006-12-20 18:01:15 +01:00
for i in %{_sbindir} /%{httpd} \
%{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-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-02-25 14:43:34 +01:00
%set_permissions %{_sbindir} /suexec2
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-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-02-25 22:11:43 +01:00
%{_datadir} /%{name} /apache-20-22-upgrade
%{_datadir} /%{name} /get_module_list >/dev/null 2>&1
2006-12-20 18:01:15 +01:00
exit 0
2010-03-05 15:57:50 +01:00
2006-12-20 18:01:15 +01:00
%verify script
%verify _permissions -e %{_sbindir} /suexec2
2007-03-20 01:13:36 +01:00
%changelog