SHA256
1
0
forked from pool/apache2

Accepting request 572001 from Apache

- remove NameVirtualHost from documentation [bsc#1078557]

- for older distros, still use SuSEFirewall2 [bsc#1071548c#7]

- Replace SuSEFirewall2 by firewalld (fate#323460)

OBS-URL: https://build.opensuse.org/request/show/572001
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache2?expand=0&rev=141
This commit is contained in:
Dominique Leuenberger 2018-02-05 09:46:29 +00:00 committed by Git OBS Bridge
commit 3a1d57220c
9 changed files with 54 additions and 24 deletions

View File

@ -30,18 +30,3 @@ Listen 80
</IfDefine>
# Use name-based virtual hosting
#
# - on a specified address / port:
#
#NameVirtualHost 12.34.56.78:80
#
# - name-based virtual hosting:
#
#NameVirtualHost *:80
#
# - on all addresses and ports. This is your best bet when you are on
# dynamically assigned IP addresses:
#
#NameVirtualHost *

View File

@ -4,9 +4,6 @@
#
# See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints
# about virtual hosts.
# NameVirtualHost statements should be added to /etc/apache2/listen.conf.
#
# This is the Apache server configuration file providing SSL support.
# It contains the configuration directives to instruct the server how to

View File

@ -6,8 +6,6 @@
# See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints
# about virtual hosts.
#
# NameVirtualHost statements can be added to /etc/apache2/listen.conf.
#
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Fri Feb 2 07:39:23 UTC 2018 - pgajdos@suse.com
- remove NameVirtualHost from documentation [bsc#1078557]
-------------------------------------------------------------------
Tue Jan 30 09:16:26 UTC 2018 - pgajdos@suse.com
- for older distros, still use SuSEFirewall2 [bsc#1071548c#7]
-------------------------------------------------------------------
Mon Jan 29 09:23:46 UTC 2018 - knut.anderssen@suse.com
- Replace SuSEFirewall2 by firewalld (fate#323460)
-------------------------------------------------------------------
Wed Dec 20 16:18:56 UTC 2017 - pgajdos@suse.com

7
apache2.firewalld Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>WWW (HTTP)</short>
<description>HTTP is the protocol used to serve Web pages. If you plan to make your Web server publicly available, enable this option. This option is not required for viewing pages locally or developing Web pages.</description>
<port protocol="tcp" port="80"/>
</service>

View File

@ -57,6 +57,11 @@
%define runtimedir %{_localstatedir}/run
%define mods_static unixd
%endif
%if 0%{?suse_version} >= 1500
%define use_firewalld 1
%else
%define use_firewalld 0
%endif
Name: apache2
Version: 2.4.29
Release: 0
@ -88,8 +93,13 @@ Source31: apache2-README-instances.txt
Source45: sysconf_addword
Source46: a2enflag
Source47: a2enmod
Source49: apache2.firewall
Source50: apache2.ssl-firewall
#%%if %{use_firewalld}
Source49: apache2.firewalld
Source50: apache2.ssl.firewalld
#%%%else
Source51: apache2.susefirewall
Source52: apache2.ssl.susefirewall
#%%endif
Source100: apache2-httpd.conf
Source101: apache2-errors.conf
Source102: apache2-default-server.conf
@ -686,9 +696,14 @@ pushd %{buildroot}/%{_bindir}
popd
# install firewall information file
%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
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
install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
install -m 644 %{SOURCE52} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}-ssl
%endif
ln -sf %{_bindir}/apxs %{buildroot}%{_sbindir}
#
# compat symlinks apache2 -> apache
@ -861,8 +876,15 @@ mv %{buildroot}/%{sysconfdir}/original .
%{_datadir}/%{name}/deprecated-scripts
%{_datadir}/%{name}/script-helpers
%{_datadir}/%{name}/sysconf_addword
%if %{use_firewalld}
%dir %{_libexecdir}/firewalld
%dir %{_libexecdir}/firewalld/services
%{_libexecdir}/firewalld/services/%{name}.xml
%{_libexecdir}/firewalld/services/%{name}-ssl.xml
%else
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}-ssl
%endif
%if 0%{?suse_version} == 1110
/usr/share/apache2/find_mpm
/usr/share/apache2/get_includes

6
apache2.ssl.firewalld Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>Secure WWW (HTTPS)</short>
<description>HTTPS is a modified HTTP used to serve Web pages when security is important. Examples are sites that require logins like stores or web mail. This option is not required for viewing pages locally or developing Web pages. You need the httpd package installed for this option to be useful.</description>
<port protocol="tcp" port="443"/>
</service>