SHA256
1
0
forked from pool/haproxy

Accepting request 546232 from server:http

OBS-URL: https://build.opensuse.org/request/show/546232
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/haproxy?expand=0&rev=52
This commit is contained in:
Dominique Leuenberger 2017-11-29 09:54:23 +00:00 committed by Git OBS Bridge
commit 19d948f0b9
7 changed files with 62 additions and 32 deletions

View File

@ -1,10 +1,10 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">http://git.haproxy.org/git/haproxy-1.7.git</param>
<param name="url">http://git.haproxy.org/git/haproxy-1.8.git</param>
<param name="scm">git</param>
<param name="filename">haproxy</param>
<param name="versionformat">1.7.9</param>
<param name="revision">v1.7.9</param>
<param name="versionformat">1.8.0</param>
<param name="revision">v1.8.0</param>
<param name="changesgenerate">enable</param>
</service>

View File

@ -3,4 +3,6 @@
<param name="url">http://git.haproxy.org/git/haproxy-1.6.git</param>
<param name="changesrevision">864bf78c3b6898eb12ece5f0a44032090f26f57f</param></service><service name="tar_scm">
<param name="url">http://git.haproxy.org/git/haproxy-1.7.git</param>
<param name="changesrevision">640d526f8cdad00f7f5043b51f6a34f3f6ebb49f</param></service></servicedata>
<param name="changesrevision">640d526f8cdad00f7f5043b51f6a34f3f6ebb49f</param></service><service name="tar_scm">
<param name="url">http://git.haproxy.org/git/haproxy-1.8.git</param>
<param name="changesrevision">0b78792bbe61fec420e4e7298d145ec7d498f8f2</param></service></servicedata>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1072337e54fa188dc6e0cfe3ba4c2200b07082e321cbfe5a0882d85d54db068e
size 1748159

3
haproxy-1.8.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:07b6e041b477c01543fd365cb7e7fc1b7219e0f86d810828eedd593ae98b6ca0
size 2036854

View File

@ -1,3 +1,28 @@
-------------------------------------------------------------------
Tue Nov 28 13:54:07 UTC 2017 - kgronlund@suse.com
- License is now GPL-3.0+ and LGPL-2.1+
-------------------------------------------------------------------
Mon Nov 27 13:40:32 UTC 2017 - mrueckert@suse.de
- [apparmor]: allow haproxy to restart itself. needed for seamless
restart. also reload the apparmor profile on update.
-------------------------------------------------------------------
Mon Nov 27 13:31:07 UTC 2017 - mrueckert@suse.de
- enable network namespaces on 42.3
- Enabled systemd notify mode: new BR: pkgconfig(libsystemd)
This fixes problems with starting 1.8 on 42.3.
- apply build option changes as adviced by upstream
-------------------------------------------------------------------
Mon Nov 27 13:30:30 UTC 2017 - mrueckert@suse.de
- Update to version 1.8.0 (bsc#1069954):
https://www.mail-archive.com/haproxy@formilux.org/msg28004.html
-------------------------------------------------------------------
Wed Aug 23 06:52:05 UTC 2017 - kgronlund@suse.com

View File

@ -19,12 +19,11 @@
%bcond_with tcp_fast_open
%endif
%bcond_without network_namespace
%if 0%{?suse_version} > 1320
%bcond_without lua
%bcond_without network_namespace
%else
%bcond_with lua
%bcond_with network_namespace
%endif
%if 0%{?suse_version} >= 1310
@ -41,13 +40,16 @@
%bcond_without apparmor
Name: haproxy
Version: 1.7.9
Version: 1.8.0
Release: 0
#
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{with apparmor}
BuildRequires: apparmor-profiles
%if 0%{?suse_version} >= 1315
BuildRequires: apparmor-rpm-macros
%endif
%endif
BuildRequires: libgcrypt-devel
%if %{with lua}
@ -60,13 +62,14 @@ BuildRequires: pkg-config
BuildRequires: udev
%if %{with systemd}
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(libsystemd)
%endif
BuildRequires: vim
%define pkg_name haproxy
%define pkg_home /var/lib/%{pkg_name}
#
Url: http://www.haproxy.org/
Source: http://www.haproxy.org/download/1.7/src/haproxy-%{version}.tar.gz
Source: http://www.haproxy.org/download/1.8/src/haproxy-%{version}.tar.gz
Source1: %{pkg_name}.init
Source2: usr.sbin.haproxy.apparmor
Source3: local.usr.sbin.haproxy.apparmor
@ -78,7 +81,7 @@ Patch3: haproxy-1.6.0-sec-options.patch
Source99: haproxy-rpmlintrc
#
Summary: The Reliable, High Performance TCP/HTTP Load Balancer
License: GPL-2.0+ and LGPL-2.1+
License: GPL-3.0+ and LGPL-2.1+
Group: Productivity/Networking/Web/Proxy
Provides: %{name}-doc = %{version}
Obsoletes: %{name}-doc < %{version}
@ -110,39 +113,32 @@ the most work done from every CPU cycle.
%build
%{__make} \
TARGET=linux26 \
TARGET=linux2628 \
CPU="%{_target_cpu}" \
USE_PCRE=1 \
%if %{with pcre_jit}
USE_PCRE_JIT=1 \
%endif
USE_LIBCRYPT=1 \
USE_OPENSSL=1 \
USE_ZLIB=1 \
USE_NETFILTER=1 \
USE_PTHREAD_PSHARED=1 \
%ifarch %ix86
USE_REGPARM=1 \
%endif
USE_PTHREAD_PSHARED=1 \
USE_GETADDRINFO=1 \
USE_OPENSSL=1 \
%if %{with lua}
USE_LUA=1 \
%endif
USE_TPROXY=1 \
USE_LINUX_TPROXY=1 \
USE_LINUX_SPLICE=1 \
USE_ACCEPT4=1 \
USE_CPU_AFFINITY=1 \
USE_GETADDRINFO=1 \
USE_GETSOCKNAME=1 \
USE_PIE=1 \
USE_STACKPROTECTOR=1 \
USE_RELRO_NOW=1 \
USE_ZLIB=1 \
%if %{with tcp_fast_open}
USE_TFO=1 \
%endif
%if %{with network_namespace}
USE_NS=1 \
%endif
USE_SYSTEMD=1 \
USE_PIE=1 \
USE_STACKPROTECTOR=1 \
USE_RELRO_NOW=1 \
LIB="%{_lib}" \
PREFIX="%{_prefix}" \
DEBUG_CFLAGS="%{optflags}"
@ -158,7 +154,6 @@ install -m 0640 %{S:4} %{buildroot}%{_sysconfdir}/%{pkg_name}/%{
install -D -m 0755 contrib/halog/halog %{buildroot}%{_sbindir}/haproxy-halog
%if %{with systemd}
install -D -m 0755 haproxy-systemd-wrapper %{buildroot}%{_sbindir}/haproxy-systemd-wrapper
install -D -m 0644 contrib/systemd/%{pkg_name}.service %{buildroot}%{_unitdir}/%{pkg_name}.service
ln -sf /sbin/service %{buildroot}%{_sbindir}/rc%{pkg_name}
%else
@ -189,6 +184,9 @@ rm examples/haproxy.spec examples/*init* examples/haproxy.vim
%service_add_pre %{pkg_name}.service
%post
%if %{with apparmor} && (0%{?suse_version} >= 1315)
%apparmor_reload /etc/apparmor.d/usr.sbin.haproxy
%endif
%service_add_post %{pkg_name}.service
%preun
@ -201,6 +199,9 @@ rm examples/haproxy.spec examples/*init* examples/haproxy.vim
%post
%fillup_and_insserv %{pkg_name}
%if %{with apparmor} && (0%{?suse_version} >= 1315)
%apparmor_reload /etc/apparmor.d/usr.sbin.haproxy
%endif
%preun
%stop_on_removal %{pkg_name}
@ -220,7 +221,6 @@ rm examples/haproxy.spec examples/*init* examples/haproxy.vim
%config(noreplace) %attr(-,root,haproxy) %{_sysconfdir}/%{pkg_name}/*
%if %{with systemd}
%{_unitdir}/%{pkg_name}.service
%{_sbindir}/haproxy-systemd-wrapper
%else
%config(noreplace) %{_sysconfdir}/init.d/%{pkg_name}
%endif

View File

@ -15,10 +15,13 @@
capability fowner,
capability fsetid,
network tcp,
network inet tcp,
network inet6 tcp,
/etc/haproxy/* r,
/usr/sbin/haproxy rmix,
/var/lib/haproxy/stats rwl,
/var/lib/haproxy/stats.*.bak rwl,
/var/lib/haproxy/stats.*.tmp rwl,