This repository contains build artifacts of HAproxy that are provided with no support and no expectation of stability. The recommended way of using the repository is to build and test your own packages. Latest Work-in-Progress builds can be found under release label "WiP RPM Build".
When you like to see a specific feature added RPM build process, or support other RPM based Operating Systems please create a Pull Request if you have the knowledge to develop this yourself, I will verify the build process with these changes and merge in upstream when finished. If you don't have the knowledge feel free to create an Issue with the "enhancement" label added. There should be no expectation of when/if this will be added but will allow for tracking what features are of public interest.
Perform the following steps on a build box as a regular user.
sudo yum groupinstall 'Development Tools'
cd /opt
git clone https://github.com/DBezemer/rpm-haproxy.git
cd ./rpm-haproxy
git checkout 2.1
make
make USE_LUA=1
make USE_PROMETHEUS=1
make NO_SUDO=1
make RELEASE=2
make EXTRA_CFLAGS=-O0
Resulting RPMs will be in /opt/rpm-haproxy/rpmbuild/RPMS/x86_64/
make run-docker
Resulting RPMs will be in `./RPMS/`
When updating any of the files that are included in the build phase, ensure that you also bump the release number
Based on the Red Hat 6.4 RPM spec for haproxy 1.4 combined with work done by
- @nmilford
- @resmo
- @kevholmes
- Update to 1.8 contributed by @khdevel
- Amazon Linux support contributed by @thedoc31 and @jazzl0ver
- Version detect snippet by @hiddenstream
- Conditional Lua build support by @Davasny
- Conditional Prometheus support by @mfilz
- Debug Building and Dynamic Release version support by @bugfood
Additional logging inspired by https://www.percona.com/blog/2014/10/03/haproxy-give-me-some-logs-on-centos-6-5/