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
|
|
|
#
|
2018-01-02 07:33:21 +01:00
|
|
|
# Copyright (c) 2018 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
|
|
|
|
2017-11-27 10:36:15 +01:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
|
2018-07-16 14:42:01 +02:00
|
|
|
%define src_name httpd-%{version}
|
2018-07-31 10:04:14 +02:00
|
|
|
%define apache_mmn %(test -s %{SOURCE0} && { echo -n apache_mmn_; bzcat %{SOURCE0} | awk '/^#define MODULE_MAGIC_NUMBER_MAJOR/ {printf "%d", $3}'; } || echo apache_mmn_notfound)
|
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
|
2018-09-27 13:14:35 +02:00
|
|
|
%define mpms_to_build prefork worker event
|
2006-12-20 18:01:15 +01:00
|
|
|
%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
|
2017-01-11 15:46:00 +01:00
|
|
|
#for some reason the parser barfs if not conditional
|
|
|
|
%{?requires_ge:%requires_ge libapr1}
|
|
|
|
%{?requires_ge:%requires_ge libapr-util1}
|
2015-02-25 14:43:34 +01:00
|
|
|
%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
|
2018-01-30 10:39:18 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%define use_firewalld 1
|
|
|
|
%else
|
|
|
|
%define use_firewalld 0
|
|
|
|
%endif
|
2018-02-05 11:14:55 +01:00
|
|
|
%if 0%{?suse_version} >= 1500 || 0%{?is_opensuse}
|
|
|
|
%define build_http2 1
|
|
|
|
%else
|
|
|
|
%define build_http2 0
|
|
|
|
%endif
|
2015-02-25 14:43:34 +01:00
|
|
|
Name: apache2
|
Accepting request 643030 from home:mmanu84:branches:Apache
- updated to 2.4.37
* mod_ssl: Fix HTTP/2 failures when using OpenSSL 1.1.1. [Rainer Jung]
* mod_ssl: Fix crash during SSL renegotiation with OptRenegotiate set,
when client certificates are available from the original handshake
but were originally not verified and should get verified now.
This is a regression in 2.4.36 (unreleased). [Ruediger Pluem]
* mod_ssl: Correctly merge configurations that have client certificates set
by SSLProxyMachineCertificate{File|Path}. [Ruediger Pluem]
- updated to 2.4.36
* mod_brotli, mod_deflate: Restore the separate handling of 304 Not Modified
responses. Regression introduced in 2.4.35.
* mod_proxy_scgi, mod_proxy_uwsgi: improve error handling when sending the
body of the response. [Jim Jagielski]
* mod_http2: adding defensive code for stream EOS handling, in case the request handler
missed to signal it the normal way (eos buckets). Addresses github issues
https://github.com/icing/mod_h2/issues/164, https://github.com/icing/mod_h2/issues/167
and https://github.com/icing/mod_h2/issues/170. [Stefan Eissing]
* ab: Add client certificate support. [Graham Leggett]
* ab: Disable printing temp key for OpenSSL before
version 1.0.2. SSL_get_server_tmp_key is not available
there. [Rainer Jung]
* mod_ssl: Fix a regression that the configuration settings for verify mode
and verify depth were taken from the frontend connection in case of
connections by the proxy to the backend. PR 62769. [Ruediger Pluem]
* MPMs: Initialize all runtime/asynchronous objects on a dedicated pool and
before signals handling to avoid lifetime issues on restart or shutdown.
PR 62658. [Yann Ylavic]
* mod_ssl: Add support for OpenSSL 1.1.1 and TLSv1.3. TLSv1.3 has
behavioural changes compared to v1.2 and earlier; client and
configuration changes should be expected. SSLCipherSuite is
enhanced for TLSv1.3 ciphers, but applies at vhost level only.
[Stefan Eissing, Yann Ylavic, Ruediger Pluem, Joe Orton]
* mod_auth_basic: Be less tolerant when parsing the credencial. Only spaces
should be accepted after the authorization scheme. \t are also tolerated.
[Christophe Jaillet]
* mod_proxy_hcheck: Fix issues with interval determination. PR 62318
[Jim Jagielski]
* mod_proxy_hcheck: Fix issues with TCP health checks. PR 61499
[Dominik Stillhard <dominik.stillhard united-security-providers.ch>]
* mod_proxy_hcheck: take balancer's SSLProxy* directives into account.
[Jim Jagielski]
* mod_status, mod_echo: Fix the display of client addresses.
They were truncated to 31 characters which is not enough for IPv6 addresses.
This is done by deprecating the use of the 'client' field and using
the new 'client64' field in worker_score.
PR 54848 [Bernhard Schmidt <berni birkenwald de>, Jim Jagielski]
OBS-URL: https://build.opensuse.org/request/show/643030
OBS-URL: https://build.opensuse.org/package/show/Apache/apache2?expand=0&rev=571
2018-10-23 15:02:15 +02:00
|
|
|
Version: 2.4.37
|
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/
|
2018-07-16 14:42:01 +02:00
|
|
|
Source0: http://www.apache.org/dist/httpd/%{src_name}.tar.bz2
|
|
|
|
Source1: http://www.apache.org/dist/httpd/%{src_name}.tar.bz2.asc
|
2017-01-02 12:11:25 +01:00
|
|
|
Source2: apache2.keyring
|
2010-05-11 17:16:17 +02:00
|
|
|
# Add file to take mtime from it in prep section
|
2017-01-02 12:11:25 +01:00
|
|
|
Source3: apache2.changes
|
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
|
2018-03-19 10:22:56 +01:00
|
|
|
#%%if %%{use_firewalld}
|
2018-01-30 10:39:18 +01:00
|
|
|
Source49: apache2.firewalld
|
|
|
|
Source50: apache2.ssl.firewalld
|
2018-03-19 10:22:56 +01:00
|
|
|
#%%else
|
2018-01-30 10:39:18 +01:00
|
|
|
Source51: apache2.susefirewall
|
|
|
|
Source52: apache2.ssl.susefirewall
|
2018-02-02 12:31:00 +01:00
|
|
|
#%%endif
|
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
|
2017-01-11 15:46:00 +01:00
|
|
|
Source119: apache2-protocols.conf
|
2006-12-20 18:01:15 +01:00
|
|
|
Source130: apache2-vhost.template
|
|
|
|
Source131: apache2-vhost-ssl.template
|
|
|
|
Source140: apache2-check_forensic
|
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
|
2015-11-11 15:08:56 +01:00
|
|
|
Source148: apache2.target
|
2017-10-03 18:18:03 +02:00
|
|
|
Source149: %{name}-init.logrotate
|
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
|
2016-07-14 17:08:56 +02:00
|
|
|
# PATCH-FEATURE-UPSTREAM kstreitova@suse.com -- backport of HttpContentLengthHeadZero and HttpExpectStrict
|
|
|
|
Patch115: httpd-2.4.x-fate317766-config-control-two-protocol-options.diff
|
2017-10-03 18:18:03 +02:00
|
|
|
Patch116: deprecated-scripts-arch.patch
|
2015-11-11 15:08:56 +01:00
|
|
|
BuildRequires: apache-rpm-macros-control
|
2017-07-14 10:07:48 +02:00
|
|
|
BuildRequires: apr-util-devel
|
2017-12-20 17:19:19 +01:00
|
|
|
#Since 2.4.7 the event MPM requires apr 1.5.0 or later.
|
|
|
|
BuildRequires: apr-devel >= 1.5.0
|
2016-05-09 16:11:30 +02:00
|
|
|
BuildRequires: automake
|
2018-03-19 08:54:04 +01:00
|
|
|
%if %{use_firewalld}
|
|
|
|
BuildRequires: firewall-macros
|
|
|
|
%endif
|
2017-12-20 17:19:19 +01:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2018-01-02 07:33:21 +01:00
|
|
|
BuildRequires: pkgconfig(libbrotlidec)
|
|
|
|
BuildRequires: pkgconfig(libbrotlienc)
|
2017-12-20 17:19:19 +01:00
|
|
|
%endif
|
2015-02-25 14:43:34 +01:00
|
|
|
BuildRequires: db-devel
|
|
|
|
BuildRequires: ed
|
|
|
|
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
|
2017-01-11 15:46:00 +01:00
|
|
|
BuildRequires: pkgconfig
|
2015-02-25 14:43:34 +01:00
|
|
|
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
|
2017-12-20 14:20:20 +01:00
|
|
|
Recommends: w3m
|
2017-12-15 14:07:06 +01:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2017-11-27 10:37:09 +01:00
|
|
|
Requires: which
|
2017-12-15 14:07:06 +01:00
|
|
|
%endif
|
2017-02-20 08:29:07 +01:00
|
|
|
%if 0%{?suse_version} < 1210
|
|
|
|
Requires(post): %insserv_prereq
|
|
|
|
%endif
|
|
|
|
Requires(post): %fillup_prereq
|
2015-02-25 14:43:34 +01:00
|
|
|
Requires(post): %{name}-utils
|
|
|
|
Requires(post): fileutils
|
|
|
|
Requires(post): grep
|
2017-01-11 15:46:00 +01:00
|
|
|
Requires(post): permissions
|
|
|
|
Requires(post): pwdutils
|
2015-02-25 14:43:34 +01:00
|
|
|
Requires(post): sed
|
|
|
|
Requires(post): textutils
|
2017-03-20 17:40:56 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
Requires(pre): user(wwwrun)
|
|
|
|
Requires(pre): group(www)
|
|
|
|
%endif
|
2017-01-11 15:46:00 +01:00
|
|
|
Suggests: apache2-%{default_mpm}
|
2012-03-20 19:13:21 +01:00
|
|
|
Provides: %{apache_mmn}
|
2016-05-09 16:11:30 +02:00
|
|
|
Provides: %{name}-mod_macro = %{version}
|
2012-03-20 19:13:21 +01:00
|
|
|
Provides: http_daemon
|
|
|
|
Provides: httpd
|
|
|
|
Provides: suse_help_viewer
|
2016-05-09 16:11:30 +02:00
|
|
|
Provides: suse_maintenance_mmn_%{suse_maintenance_mmn}
|
2013-07-30 01:51:31 +02:00
|
|
|
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
|
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
|
2016-08-01 11:35:04 +02:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2015-02-25 14:43:34 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2011-02-07 17:42:02 +01:00
|
|
|
%endif
|
2018-02-05 11:14:55 +01:00
|
|
|
%if 0%{?build_http2}
|
2017-01-11 15:46:00 +01:00
|
|
|
BuildRequires: pkgconfig(libnghttp2) >= 1.2.1
|
2015-10-26 10:36:35 +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
|
|
|
|
|
|
|
%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-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}
|
2017-01-11 15:46:00 +01:00
|
|
|
Provides: %{name}-MPM
|
2007-10-22 18:25:27 +02:00
|
|
|
|
2006-12-20 18:01:15 +01:00
|
|
|
%package prefork
|
|
|
|
Summary: Apache 2 "prefork" 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-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}
|
2017-01-11 15:46:00 +01:00
|
|
|
Provides: %{name}-MPM
|
|
|
|
Provides: apache:%{_sbindir}/httpd
|
2007-10-22 18:25:27 +02:00
|
|
|
|
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-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}
|
2017-01-11 15:46:00 +01:00
|
|
|
Provides: %{name}-MPM
|
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.
|
2007-12-13 20:32:12 +01:00
|
|
|
|
2006-12-20 18:01:15 +01:00
|
|
|
%description prefork
|
|
|
|
"prefork" 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.
|
2007-12-13 20:32:12 +01:00
|
|
|
|
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.
|
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
|
2016-05-09 16:11:30 +02:00
|
|
|
Requires: apache-rpm-macros-control
|
2012-03-20 19:13:21 +01:00
|
|
|
Requires: apache2-prefork
|
2017-07-14 10:07:48 +02:00
|
|
|
Requires: apr-devel
|
|
|
|
Requires: apr-util-devel
|
2012-03-20 19:13:21 +01:00
|
|
|
Requires: gcc
|
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
|
2017-02-21 08:23:09 +01:00
|
|
|
Group: Documentation/Other
|
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
|
2017-05-19 11:02:02 +02:00
|
|
|
Group: Productivity/Networking/Web/Servers
|
2006-12-20 18:01:15 +01:00
|
|
|
|
|
|
|
%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
|
2018-07-16 14:42:01 +02:00
|
|
|
%setup -q -n %{src_name} -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
|
2017-01-11 15:46:00 +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
|
2017-01-02 11:31:04 +01:00
|
|
|
%patch115 -p1
|
2017-08-29 14:03:48 +02:00
|
|
|
%if 0%{?suse_version} == 1110
|
|
|
|
%patch116 -p1
|
|
|
|
%endif
|
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
|
2017-01-02 12:11:25 +01:00
|
|
|
CHANGES=`stat --format="%%y" %{SOURCE3}`
|
2015-02-25 14:43:34 +01:00
|
|
|
sed -i -e "s/__DATE__ \" \" __TIME__;/\"$CHANGES\";/" 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} -fPIC -Wall -DLDAP_DEPRECATED" \
|
2006-12-20 18:01:15 +01:00
|
|
|
CPPFLAGS="-DSSL_EXPERIMENTAL_ENGINE -DMAX_SERVER_LIMIT=200000 -DLDAP_DEPRECATED -DMAXLINE=4096" \
|
|
|
|
./configure \
|
2015-02-25 14:43:34 +01:00
|
|
|
--enable-layout=SuSE81%(test "%{_lib}" = 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 \
|
2017-12-20 17:19:19 +01:00
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
--enable-brotli \
|
|
|
|
%endif
|
2006-12-20 18:01:15 +01:00
|
|
|
--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 \
|
2016-04-07 09:41:41 +02:00
|
|
|
--enable-authnz-fcgi \
|
2006-12-20 18:01:15 +01:00
|
|
|
--enable-proxy \
|
|
|
|
--enable-proxy-connect \
|
|
|
|
--enable-proxy-ftp \
|
|
|
|
--enable-proxy-http \
|
2016-07-11 07:47:27 +02:00
|
|
|
--enable-proxy-fdpass \
|
2006-12-20 18:01:15 +01:00
|
|
|
--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[01m***** Building $mpm MPM *****\e[00m\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/-$mpm//" 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}/run@%{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} -fvisibility=hidden -fPIC -Wall -DDEFAULT_ERRORLOG='\"%{logfiledir}/error_log\"'" %{?_smp_mflags}
|
2018-07-16 15:15:03 +02:00
|
|
|
make DESTDIR=%{buildroot} install -j1
|
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 "/^EXTRA_INCLUDES/s|-I$RPM_BUILD_DIR[^ ]* ||g" \
|
|
|
|
-e "/^AP._INCLUDEDIR/s|$RPM_BUILD_DIR.*$|%{includedir}$mpm_suffix|" \
|
|
|
|
-e "/abs_srcdir/d" \
|
|
|
|
-e "/AP_LIBS/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/httpd$/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)
|
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
|
2017-11-27 10:36:15 +01:00
|
|
|
mkdir -p %{buildroot}/%{_fillupdir} \
|
2015-02-25 14:43:34 +01:00
|
|
|
%{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}
|
2017-08-29 14:03:48 +02:00
|
|
|
%if 0%{?suse_version} == 1110
|
|
|
|
install -m 644 $RPM_SOURCE_DIR/%{name}-init.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
|
|
|
%endif
|
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
|
|
|
#
|
|
|
|
# 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}/
|
2017-08-29 14:03:48 +02:00
|
|
|
cp -r deprecated-scripts %{buildroot}/%{_datadir}/%{name}/
|
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-11-11 15:08:56 +01:00
|
|
|
install -m 644 $RPM_SOURCE_DIR/apache2.target %{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
|
2017-08-29 14:03:48 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/sysconfig.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
|
2017-08-29 14:03:48 +02:00
|
|
|
for file in find_mpm \
|
|
|
|
get_includes \
|
|
|
|
get_module_list \
|
|
|
|
load_configuration
|
|
|
|
do
|
|
|
|
ln -sf deprecated-scripts/$file %{buildroot}/%{_datadir}/%{name}/$file
|
|
|
|
chmod +x %{buildroot}/%{_datadir}/%{name}/$file
|
|
|
|
done
|
2015-02-25 16:59:55 +01:00
|
|
|
%endif
|
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} \
|
2017-11-27 10:36:15 +01:00
|
|
|
%{buildroot}/%{_fillupdir}/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 \
|
2017-01-11 15:46:00 +01:00
|
|
|
ssl-global.conf \
|
|
|
|
protocols.conf
|
2006-12-20 18:01:15 +01:00
|
|
|
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
|
|
|
|
2015-08-13 16:24:27 +02:00
|
|
|
# fixup libdir
|
|
|
|
%if "%{_lib}" != "lib64"
|
|
|
|
sed -e 's/lib64/%{_lib}/' -i \
|
|
|
|
%{buildroot}/%{sysconfdir}/loadmodule.conf \
|
2017-11-27 10:36:15 +01:00
|
|
|
%{buildroot}/%{_fillupdir}/sysconfig.%{name}
|
2015-08-13 16:24:27 +02:00
|
|
|
%endif
|
|
|
|
|
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="$(awk '/IfModule .*\.c/ {print $2}' %{buildroot}/%{sysconfdir}/server-tuning.conf | cut -d. -f1 | tr '\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 "/^# $mpm_conf/, /^$/ 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 = "-$mpm";
|
|
|
|
.
|
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
|
2018-01-30 10:39:18 +01:00
|
|
|
%if %{use_firewalld}
|
|
|
|
install -D -m 644 %{SOURCE49} %{buildroot}%{_libexecdir}/firewalld/services/%{name}.xml
|
|
|
|
install -D -m 644 %{SOURCE50} %{buildroot}%{_libexecdir}/firewalld/services/%{name}-ssl.xml
|
|
|
|
%else
|
2015-02-25 14:43:34 +01:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/
|
2018-01-30 10:39:18 +01:00
|
|
|
install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
|
|
|
|
install -m 644 %{SOURCE52} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}-ssl
|
|
|
|
%endif
|
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
|
2018-07-16 14:08:37 +02:00
|
|
|
#
|
|
|
|
# do not ship example configuration files in
|
|
|
|
# /etc/apache2, but %doc them later
|
|
|
|
#
|
|
|
|
mv %{buildroot}/%{sysconfdir}/original .
|
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}
|
2017-01-11 15:46:00 +01:00
|
|
|
for i in *.conf; do
|
|
|
|
cp $i $i.test;
|
2015-07-13 10:18:58 +02:00
|
|
|
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
|
2018-07-16 14:08:37 +02:00
|
|
|
sed -i 's+%{_libdir}+%{buildroot}/%{_libdir}+' 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
|
2006-12-20 18:01:15 +01:00
|
|
|
|
|
|
|
%files -f filelist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc INSTALL READM* LICENSE ABOUT_APACHE CHANGES
|
|
|
|
%doc support/SHA1
|
2017-01-11 15:46:00 +01:00
|
|
|
%{_mandir}/man?/apachectl.?.*
|
|
|
|
%{_mandir}/man?/apache2ctl.?.*
|
|
|
|
%{_mandir}/man?/htcacheclean.?.*
|
|
|
|
%{_mandir}/man?/httpd.?.*
|
|
|
|
%{_mandir}/man?/httpd2.?.*
|
|
|
|
%{_mandir}/man?/apxs.?.*
|
|
|
|
%{_mandir}/man?/apxs2.?.*
|
2017-10-05 15:04:58 +02:00
|
|
|
%{_mandir}/man?/suexec.?.*
|
|
|
|
%{_mandir}/man?/suexec2.?.*
|
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}
|
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-11-11 15:08:56 +01:00
|
|
|
%{_unitdir}/apache2.target
|
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}
|
2017-08-29 14:03:48 +02:00
|
|
|
%dir %{_sysconfdir}/%{name}/sysconfig.d
|
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
|
2017-10-05 15:04:58 +02:00
|
|
|
%verify(not mode) %attr(0755,root,root) %{_sbindir}/suexec
|
|
|
|
%{_sbindir}/suexec2
|
2006-12-20 18:01:15 +01:00
|
|
|
%{iconsdir}
|
|
|
|
%{errordir}
|
2017-11-27 10:36:15 +01:00
|
|
|
%{_fillupdir}/sysconfig.%{name}
|
2015-02-25 22:11:43 +01:00
|
|
|
%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-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
|
2018-01-30 10:39:18 +01:00
|
|
|
%if %{use_firewalld}
|
|
|
|
%dir %{_libexecdir}/firewalld
|
|
|
|
%dir %{_libexecdir}/firewalld/services
|
|
|
|
%{_libexecdir}/firewalld/services/%{name}.xml
|
|
|
|
%{_libexecdir}/firewalld/services/%{name}-ssl.xml
|
|
|
|
%else
|
2007-10-22 18:25:27 +02:00
|
|
|
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
|
|
|
|
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}-ssl
|
2018-01-30 10:39:18 +01:00
|
|
|
%endif
|
2017-08-29 14:03:48 +02:00
|
|
|
%if 0%{?suse_version} == 1110
|
|
|
|
/usr/share/apache2/find_mpm
|
|
|
|
/usr/share/apache2/get_includes
|
|
|
|
/usr/share/apache2/get_module_list
|
|
|
|
/usr/share/apache2/load_configuration
|
|
|
|
%endif
|
2011-09-13 10:38:39 +02:00
|
|
|
|
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
|
2016-04-07 09:41:41 +02:00
|
|
|
%{_libdir}/%{name}-prefork/mod_authnz_fcgi.so
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_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
|
2017-12-20 17:19:19 +01:00
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
%{_libdir}/%{name}-prefork/mod_brotli.so
|
|
|
|
%endif
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_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
|
2018-02-05 11:14:55 +01:00
|
|
|
%if 0%{?build_http2}
|
2015-10-19 08:18:33 +02:00
|
|
|
%{_libdir}/%{name}-prefork/mod_http2.so
|
2015-10-26 10:36:35 +01:00
|
|
|
%endif
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_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
|
2016-07-11 07:47:27 +02:00
|
|
|
%{_libdir}/%{name}-prefork/mod_proxy_hcheck.so
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_libdir}/%{name}-prefork/mod_proxy_html.so
|
|
|
|
%{_libdir}/%{name}-prefork/mod_proxy_http.so
|
|
|
|
%{_libdir}/%{name}-prefork/mod_proxy_scgi.so
|
2018-03-19 10:22:56 +01:00
|
|
|
%{_libdir}/%{name}-prefork/mod_proxy_uwsgi.so
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_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
|
|
|
|
|
|
|
%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
|
2016-04-07 09:41:41 +02:00
|
|
|
%{_libdir}/%{name}-worker/mod_authnz_fcgi.so
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_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
|
2017-12-20 17:19:19 +01:00
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
%{_libdir}/%{name}-worker/mod_brotli.so
|
|
|
|
%endif
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_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
|
2018-02-05 11:14:55 +01:00
|
|
|
%if 0%{?build_http2}
|
2015-10-19 08:18:33 +02:00
|
|
|
%{_libdir}/%{name}-worker/mod_http2.so
|
2015-10-26 10:36:35 +01:00
|
|
|
%endif
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_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
|
2016-07-11 07:47:27 +02:00
|
|
|
%{_libdir}/%{name}-worker/mod_proxy_hcheck.so
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_libdir}/%{name}-worker/mod_proxy_html.so
|
|
|
|
%{_libdir}/%{name}-worker/mod_proxy_http.so
|
|
|
|
%{_libdir}/%{name}-worker/mod_proxy_scgi.so
|
2018-03-19 10:22:56 +01:00
|
|
|
%{_libdir}/%{name}-worker/mod_proxy_uwsgi.so
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_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
|
|
|
|
|
|
|
%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
|
2016-04-07 09:41:41 +02:00
|
|
|
%{_libdir}/%{name}-event/mod_authnz_fcgi.so
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_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
|
2017-12-20 17:19:19 +01:00
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
%{_libdir}/%{name}-event/mod_brotli.so
|
|
|
|
%endif
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_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
|
2018-02-05 11:14:55 +01:00
|
|
|
%if 0%{?build_http2}
|
2015-10-19 08:18:33 +02:00
|
|
|
%{_libdir}/%{name}-event/mod_http2.so
|
2015-10-26 10:36:35 +01:00
|
|
|
%endif
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_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
|
2016-07-11 07:47:27 +02:00
|
|
|
%{_libdir}/%{name}-event/mod_proxy_hcheck.so
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_libdir}/%{name}-event/mod_proxy_html.so
|
|
|
|
%{_libdir}/%{name}-event/mod_proxy_http.so
|
|
|
|
%{_libdir}/%{name}-event/mod_proxy_scgi.so
|
2018-03-19 10:22:56 +01:00
|
|
|
%{_libdir}/%{name}-event/mod_proxy_uwsgi.so
|
2015-02-25 22:11:43 +01:00
|
|
|
%{_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
|
|
|
|
|
|
|
%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)
|
2017-01-11 15:46:00 +01:00
|
|
|
%{_mandir}/man?/ab.?.*
|
|
|
|
%{_mandir}/man?/ab2.?.*
|
|
|
|
%{_mandir}/man?/dbmmanage.?.*
|
|
|
|
%{_mandir}/man?/dbmmanage2.?.*
|
|
|
|
%{_mandir}/man?/htdbm.?.*
|
|
|
|
%{_mandir}/man?/htdbm2.?.*
|
|
|
|
%{_mandir}/man?/htdigest.?.*
|
|
|
|
%{_mandir}/man?/htdigest2.?.*
|
|
|
|
%{_mandir}/man?/htpasswd.?.*
|
|
|
|
%{_mandir}/man?/htpasswd2.?.*
|
|
|
|
%{_mandir}/man?/httxt2dbm.?.*
|
|
|
|
%{_mandir}/man?/logresolve.?.*
|
|
|
|
%{_mandir}/man?/logresolve2.?.*
|
|
|
|
%{_mandir}/man?/rotatelogs.?.*
|
|
|
|
%{_mandir}/man?/rotatelogs2.?.*
|
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
|
2006-12-20 18:01:15 +01:00
|
|
|
|
2018-09-27 13:14:35 +02:00
|
|
|
|
|
|
|
%define install_httpd_link() \
|
|
|
|
( \
|
|
|
|
# it might happen that apache2 including \
|
|
|
|
# %{_datadir}/apache2/script-helpers is not installed \
|
|
|
|
# yet even if apache2-<MPM> has Requires(post): apache2 \
|
|
|
|
# because of circular dependency between apache2 \
|
|
|
|
# and apache2-MPM \
|
|
|
|
if [ -f %{_datadir}/apache2/script-helpers ]; then \
|
|
|
|
. %{_datadir}/apache2/script-helpers \
|
|
|
|
find_mpm \
|
|
|
|
# when this is run in %post(apache2), it may happen \
|
|
|
|
# no MPM is installed so far \
|
|
|
|
if [ -n "$HTTPD_MPM" ]; then \
|
|
|
|
ln -sf $HTTPD_SBIN_BASE-$HTTPD_MPM $HTTPD_SBIN_BASE \
|
|
|
|
fi \
|
|
|
|
fi \
|
|
|
|
)
|
2017-01-11 15:46:00 +01:00
|
|
|
|
2006-12-20 18:01:15 +01:00
|
|
|
%post prefork
|
2018-09-27 13:14:35 +02:00
|
|
|
%install_httpd_link
|
2015-11-11 15:08:56 +01:00
|
|
|
exit 0
|
2017-01-11 15:46:00 +01:00
|
|
|
|
2015-11-11 15:08:56 +01:00
|
|
|
%postun prefork
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
%apache_request_restart
|
|
|
|
fi
|
2018-09-27 13:14:35 +02:00
|
|
|
%install_httpd_link
|
2006-12-20 18:01:15 +01:00
|
|
|
exit 0
|
2017-01-11 15:46:00 +01:00
|
|
|
|
2015-11-11 15:08:56 +01:00
|
|
|
%posttrans prefork
|
|
|
|
%apache_restart_if_needed
|
|
|
|
exit 0
|
2006-12-20 18:01:15 +01:00
|
|
|
|
|
|
|
%post worker
|
2018-09-27 13:14:35 +02:00
|
|
|
%install_httpd_link
|
2015-11-11 15:08:56 +01:00
|
|
|
exit 0
|
2017-01-11 15:46:00 +01:00
|
|
|
|
2015-11-11 15:08:56 +01:00
|
|
|
%postun worker
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
%apache_request_restart
|
|
|
|
fi
|
2018-09-27 13:14:35 +02:00
|
|
|
%install_httpd_link
|
2015-11-11 15:08:56 +01:00
|
|
|
exit 0
|
2017-01-11 15:46:00 +01:00
|
|
|
|
2015-11-11 15:08:56 +01:00
|
|
|
%posttrans worker
|
|
|
|
%apache_restart_if_needed
|
2006-12-20 18:01:15 +01:00
|
|
|
exit 0
|
|
|
|
|
|
|
|
%post event
|
2018-09-27 13:14:35 +02:00
|
|
|
%install_httpd_link
|
2015-11-11 15:08:56 +01:00
|
|
|
exit 0
|
2017-01-11 15:46:00 +01:00
|
|
|
|
2015-11-11 15:08:56 +01:00
|
|
|
%postun event
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
%apache_request_restart
|
|
|
|
fi
|
2018-09-27 13:14:35 +02:00
|
|
|
%install_httpd_link
|
2015-11-11 15:08:56 +01:00
|
|
|
exit 0
|
2017-01-11 15:46:00 +01:00
|
|
|
|
2015-11-11 15:08:56 +01:00
|
|
|
%posttrans event
|
|
|
|
%apache_restart_if_needed
|
2006-12-20 18:01:15 +01:00
|
|
|
exit 0
|
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
|
2015-11-11 15:08:56 +01:00
|
|
|
%service_del_preun apache2.target
|
2011-09-29 11:39:43 +02:00
|
|
|
%endif
|
2017-06-20 16:12:55 +02:00
|
|
|
# removing the symlink in case of uninstall (not upgrade) [bsc#1041830]
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
for i in %{_sbindir}/httpd \
|
|
|
|
%{installbuilddir}/config_vars.mk
|
|
|
|
do
|
|
|
|
test -L $i && rm $i
|
|
|
|
done
|
|
|
|
fi
|
2006-12-20 18:01:15 +01:00
|
|
|
exit 0
|
|
|
|
|
|
|
|
%postun
|
2011-09-29 11:39:43 +02:00
|
|
|
%if 0%{?suse_version} >= 1210
|
2015-11-11 15:08:56 +01:00
|
|
|
DISABLE_RESTART_ON_UPDATE='yes'
|
|
|
|
%service_del_postun apache2.target
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
%apache_request_restart
|
|
|
|
fi
|
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
|
2017-01-11 15:46:00 +01:00
|
|
|
%set_permissions %{_sbindir}/suexec || echo "Please check %{_sysconfdir}/permissions.local for settings of %{_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 "^wwwadmin:" %{_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 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
|
2018-03-19 08:54:04 +01:00
|
|
|
%if %{use_firewalld}
|
|
|
|
%firewalld_reload
|
|
|
|
%endif
|
2006-12-20 18:01:15 +01:00
|
|
|
exit 0
|
2010-03-05 15:57:50 +01:00
|
|
|
|
2017-10-03 18:36:44 +02:00
|
|
|
%posttrans
|
|
|
|
%apache_restart_if_needed
|
|
|
|
|
2006-12-20 18:01:15 +01:00
|
|
|
%verifyscript
|
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
|