e674b098 |
Summary: A fast, reliable HA, load balancing, and proxy solution.
Name: haproxy |
584f92d8 |
Version: 1.8.14
Release: 1%{?dist} |
e674b098 |
License: GPL
URL: http://www.haproxy.org
Group: Applications/System
Vendor: VMware, Inc.
Distribution: Photon |
584f92d8 |
Source0: http://www.haproxy.org/download/1.8/src/%{name}-%{version}.tar.gz
%define sha1 haproxy=589c6f933d73e8d6ba5307c8304cafb80e968481 |
e674b098 |
BuildRequires: openssl-devel
BuildRequires: pcre-devel |
9c305caf |
BuildRequires: lua-devel |
e674b098 |
BuildRequires: pkg-config
BuildRequires: zlib-devel |
d45c5999 |
BuildRequires: systemd-devel |
9c305caf |
Requires: systemd |
e674b098 |
%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=linux2628 USE_PCRE=1 USE_OPENSSL=1 \ |
d45c5999 |
USE_GETADDRINFO=1 USE_ZLIB=1 USE_SYSTEMD=1 |
e674b098 |
make %{?_smp_mflags} -C contrib/systemd
sed -i s/"local\/"/""/g contrib/systemd/haproxy.service |
9c305caf |
sed -i "s/\/run/\/var\/run/g" contrib/systemd/haproxy.service
sed -i "s/192.168.1.22/127.0.0.0/g" examples/transparent_proxy.cfg |
e674b098 |
%install
[ %{buildroot} != "/"] && rm -rf %{buildroot}/* |
9c305caf |
make DESTDIR=%{buildroot} PREFIX=%{_prefix} DOCDIR=%{_docdir}/haproxy TARGET=linux2628 install |
e674b098 |
install -vDm755 contrib/systemd/haproxy.service \
%{buildroot}/usr/lib/systemd/system/haproxy.service |
9c305caf |
install -vDm644 examples/transparent_proxy.cfg %{buildroot}/%{_sysconfdir}/haproxy/haproxy.cfg |
e674b098 |
%files
%defattr(-,root,root) |
9c305caf |
%{_sbindir}/* |
e674b098 |
%{_libdir}/systemd/system/haproxy.service |
9c305caf |
%{_sysconfdir}/haproxy/haproxy.cfg |
e674b098 |
%files doc
%defattr(-,root,root,-)
%{_docdir}/haproxy/*
%{_mandir}/*
%changelog |
584f92d8 |
* Tue Dec 04 2018 Ajay Kaher <akaher@vmware.com> 1.8.14-1
- Update to version 1.8.14 |
d45c5999 |
* 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. |
ee5c9922 |
* Wed Sep 12 2018 Anish Swaminathan <anishs@vmware.com> 1.8.13-1
- Update to version 1.8.13 |
7a983849 |
* Tue Apr 04 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.6.12-1
- Updated to version 1.6.12 |
b63138de |
* 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 |
9c305caf |
* 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 |
bddd03e4 |
- Updated to version 1.6.3 |
b63138de |
* Thu Oct 01 2015 Vinay Kulkarni <kulkarniv@vmware.com> 1.5.14-1
- Add haproxy v1.5 package. |