Update to 1.4.22 (CVE-2012-2942, #824544)
- Use linux2628 build target - No separate x86_64 build target for halog - halog build honors rpmbuild optflags - Specfile cleanup
This commit is contained in:
parent
4c57edc83e
commit
2cdc704379
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@ haproxy-1.4.8.tar.gz
|
|||||||
/haproxy-1.4.18.tar.gz
|
/haproxy-1.4.18.tar.gz
|
||||||
/haproxy-1.4.19.tar.gz
|
/haproxy-1.4.19.tar.gz
|
||||||
/haproxy-1.4.20.tar.gz
|
/haproxy-1.4.20.tar.gz
|
||||||
|
/haproxy-1.4.22.tar.gz
|
||||||
|
35
haproxy.spec
35
haproxy.spec
@ -5,8 +5,8 @@
|
|||||||
%define haproxy_datadir %{_datadir}/haproxy
|
%define haproxy_datadir %{_datadir}/haproxy
|
||||||
|
|
||||||
Name: haproxy
|
Name: haproxy
|
||||||
Version: 1.4.20
|
Version: 1.4.22
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: HA-Proxy is a TCP/HTTP reverse proxy for high availability environments
|
Summary: HA-Proxy is a TCP/HTTP reverse proxy for high availability environments
|
||||||
|
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -18,7 +18,6 @@ Source1: %{name}.service
|
|||||||
Source2: %{name}.cfg
|
Source2: %{name}.cfg
|
||||||
Source3: %{name}.logrotate
|
Source3: %{name}.logrotate
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildRequires: pcre-devel
|
BuildRequires: pcre-devel
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
|
|
||||||
@ -47,7 +46,8 @@ availability environments. Indeed, it can:
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# No configure script is present, it is all done via make flags
|
# No configure script is present, it is all done via make flags
|
||||||
# FC 7 and up is linux 2.6 so using linux26 as target.
|
# Kernels of Fedora 11 and up and EL 6 and up are newer than 2.6.28,
|
||||||
|
# so using linux2628 as target.
|
||||||
|
|
||||||
# Recommended optimization option for x86 builds
|
# Recommended optimization option for x86 builds
|
||||||
regparm_opts=
|
regparm_opts=
|
||||||
@ -55,23 +55,14 @@ regparm_opts=
|
|||||||
regparm_opts="USE_REGPARM=1"
|
regparm_opts="USE_REGPARM=1"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
make %{?_smp_mflags} CPU="generic" TARGET="linux26" USE_PCRE=1 ${regparm_opts} ADDINC="%{optflags}" USE_LINUX_TPROXY=1
|
make %{?_smp_mflags} CPU="generic" TARGET="linux2628" USE_PCRE=1 ${regparm_opts} ADDINC="%{optflags}" USE_LINUX_TPROXY=1
|
||||||
|
|
||||||
# build the halog contrib program. It has 2 version halog64 and halog. Make
|
|
||||||
# sure it is installed as 'halog' no matter what.
|
|
||||||
halog="halog"
|
|
||||||
%ifarch x86_64
|
|
||||||
halog="halog64"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
# build the halog contrib program.
|
||||||
pushd contrib/halog
|
pushd contrib/halog
|
||||||
make ${halog}
|
make ${halog} OPTIMIZE="%{optflags}"
|
||||||
mv ${halog} halog.tmp
|
|
||||||
mv halog.tmp halog
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
make install-bin DESTDIR=%{buildroot} PREFIX=%{_prefix}
|
make install-bin DESTDIR=%{buildroot} PREFIX=%{_prefix}
|
||||||
make install-man DESTDIR=%{buildroot} PREFIX=%{_prefix}
|
make install-man DESTDIR=%{buildroot} PREFIX=%{_prefix}
|
||||||
|
|
||||||
@ -97,10 +88,6 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group %{haproxy_group} >/dev/null || groupadd -r %{haproxy_group}
|
getent group %{haproxy_group} >/dev/null || groupadd -r %{haproxy_group}
|
||||||
getent passwd %{haproxy_user} >/dev/null || \
|
getent passwd %{haproxy_user} >/dev/null || \
|
||||||
@ -121,7 +108,6 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc doc/*
|
%doc doc/*
|
||||||
%doc examples/url-switching.cfg
|
%doc examples/url-switching.cfg
|
||||||
%doc examples/acl-content-sw.cfg
|
%doc examples/acl-content-sw.cfg
|
||||||
@ -143,6 +129,13 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 12 2012 Robin Lee <cheeselee@fedoraproject.org> - 1.4.22-1
|
||||||
|
- Update to 1.4.22 (CVE-2012-2942, #824544)
|
||||||
|
- Use linux2628 build target
|
||||||
|
- No separate x86_64 build target for halog
|
||||||
|
- halog build honors rpmbuild optflags
|
||||||
|
- Specfile cleanup
|
||||||
|
|
||||||
* Mon Sep 17 2012 Václav Pavlín <vpavlin@redhat.com> - 1.4.20-3
|
* Mon Sep 17 2012 Václav Pavlín <vpavlin@redhat.com> - 1.4.20-3
|
||||||
- Scriptlets replaced with new systemd macros (#850143)
|
- Scriptlets replaced with new systemd macros (#850143)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user