CBL-Mariner/SPECS/haproxy/haproxy.spec

123 lines
3.9 KiB
Plaintext

Summary: A fast, reliable HA, load balancing, and proxy solution.
Name: haproxy
Version: 2.4.24
Release: 1%{?dist}
License: GPLv2+
Vendor: Microsoft Corporation
Distribution: Mariner
Group: Applications/System
URL: https://www.haproxy.org
Source0: http://www.haproxy.org/download/2.4/src/%{name}-%{version}.tar.gz
BuildRequires: lua-devel
BuildRequires: openssl-devel
BuildRequires: pcre-devel
BuildRequires: pkg-config
BuildRequires: systemd-devel
BuildRequires: zlib-devel
Requires: systemd
%description
HAProxy is a fast and reliable solution offering high availability, load
balancing, and proxying for TCP and HTTP-based applications. It is suitable
for very high traffic web-sites.
%package doc
Summary: Documentation for haproxy
%description doc
It contains the documentation and manpages for haproxy package.
Requires: %{name} = %{version}-%{release}
%prep
%setup -q
%build
make %{?_smp_mflags} TARGET="linux-glibc" USE_PCRE=1 USE_OPENSSL=1 \
USE_GETADDRINFO=1 USE_ZLIB=1 USE_SYSTEMD=1
make %{?_smp_mflags} -C admin/systemd
sed -i s/"local\/"/""/g admin/systemd/haproxy.service
sed -i "s/\/run/\/var\/run/g" admin/systemd/haproxy.service
sed -i "s/192.168.1.22/127.0.0.0/g" examples/transparent_proxy.cfg
%install
[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
make DESTDIR=%{buildroot} PREFIX=%{_prefix} DOCDIR=%{_docdir}/haproxy TARGET=linux2628 install
install -vDm755 admin/systemd/haproxy.service \
%{buildroot}%{_libdir}/systemd/system/haproxy.service
install -vDm644 examples/transparent_proxy.cfg %{buildroot}/%{_sysconfdir}/haproxy/haproxy.cfg
%files
%defattr(-,root,root)
%license LICENSE
%{_sbindir}/*
%{_libdir}/systemd/system/haproxy.service
%{_sysconfdir}/haproxy/haproxy.cfg
%files doc
%defattr(-,root,root,-)
%{_docdir}/haproxy/*
%{_mandir}/*
%changelog
* Mon Aug 21 2023 Bala <balakumaran.kannan@microsoft.com> - 2.4.24-1
- Update to 2.4.24 to fix CVE-2023-40225
* Wed Feb 22 2023 Sumedh Sharma <sumsharma@microsoft.com> - 2.4.22-1
- Update to 2.4.22 to fix CVE-2023-25725
* Thu Feb 24 2022 Minghe Ren <mingheren@microsoft.com> - 2.4.13-1
- Update to 2.4.13
- License verified
- Add nopatch for CVE-2022-0711
* Thu Jun 04 2020 Ruying Chen <v-ruyche@microsoft.com> - 2.1.5-1
- Update to 2.1.5
* Tue May 19 2020 Nicolas Ontiveros <niontive@microsoft.com> - 1.9.6-5
- Fix CVE-2019-14241.
- Fix CVE-2020-11100.
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 1.9.6-4
- Added %%license line automatically
* Tue Apr 21 2020 Nicolas Ontiveros <niontive@microsoft.com> - 1.9.6-3
- Fix CVE-2019-19330.
- Remove sha1 macro.
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> - 1.9.6-2
- Initial CBL-Mariner import from Photon (license: Apache2).
* Tue Apr 2 2019 Priyesh Padmavilasom <ppadmavilasom@vmware.com> - 1.9.6-1
- Update to 1.9.6
* Thu Feb 28 2019 Priyesh Padmavilasom <ppadmavilasom@vmware.com> - 1.8.14-2
- Patch for CVE_2018_20102
- Patch for CVE_2018_20103
* Tue Dec 04 2018 Ajay Kaher <akaher@vmware.com> - 1.8.14-1
- Update to version 1.8.14
* Thu Oct 25 2018 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> - 1.8.13-2
- Build with USE_SYSTEMD=1 to fix service startup.
* Wed Sep 12 2018 Anish Swaminathan <anishs@vmware.com> - 1.8.13-1
- Update to version 1.8.13
* Tue Apr 04 2017 Dheeraj Shetty <dheerajs@vmware.com> - 1.6.12-1
- Updated to version 1.6.12
* Sun Nov 27 2016 Vinay Kulkarni <kulkarniv@vmware.com> - 1.6.10-1
- Upgrade to 1.6.10 to address CVE-2016-5360
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> - 1.6.3-3
- GA - Bump release of all rpms
* Fri May 20 2016 Xiaolin Li <xiaolinl@vmware.com> - 1.6.3-2
- Add haproxy-systemd-wrapper to package, add a default configuration file.
* Mon Feb 22 2016 Xiaolin Li <xiaolinl@vmware.com> - 1.6.3-1
- Updated to version 1.6.3
* Thu Oct 01 2015 Vinay Kulkarni <kulkarniv@vmware.com> - 1.5.14-1
- Add haproxy v1.5 package.