This repository contains some 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.
RPM Specs for HAproxy on CentOS / RHEL / Amazon Linux with default syslog
Perform the following steps on a build box as a regular user.
Install Prerequisites for RPM Creation
sudo yum groupinstall 'Development Tools'
Checkout this repository
cd /opt
git clone https://github.com/DBezemer/rpm-haproxy.git
cd ./rpm-haproxy
git checkout 2.1
Build using makefile
Without Lua support
make
With Lua support
make USE_LUA=1
With Prometheus Module support
make USE_PROMETHEUS=1
Without sudo for yum
make NO_SUDO=1
Resulting RPM will be in /opt/rpm-haproxy/rpmbuild/RPMS/x86_64/
Build using Docker
make run-docker
Resulting RPMs will be in `./RPMS/`
Credits
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
Additional logging inspired by https://www.percona.com/blog/2014/10/03/haproxy-give-me-some-logs-on-centos-6-5/