• Stars
    star
    158
  • Rank 237,131 (Top 5 %)
  • Language Makefile
  • License
    GNU General Publi...
  • Created about 8 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

HAproxy RPM spec and builds for CentOS/RHEL 6/7/8

Github All Releases Build RPMs

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".

RPM Specs for HAproxy on CentOS / RHEL / Amazon Linux with syslog logging to separate output files

Contributing

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.

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

Basic building, no additional components

make

With Lua support

make USE_LUA=1

With Prometheus Module support

make USE_PROMETHEUS=1

Without sudo for yum (for building in Docker)

make NO_SUDO=1

With a custom release iteration, e.g. '2' (default '1'):

make RELEASE=2

Custom CFLAGS, e.g. '-O0' to disable optimization for debug:

make EXTRA_CFLAGS=-O0

Resulting RPMs will be in /opt/rpm-haproxy/rpmbuild/RPMS/x86_64/

Build using Docker

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, like so: make USE_PROMETHEUS=1 RELEASE=3 run-docker

Credits

Based on the Red Hat 6.4 RPM spec for haproxy 1.4 combined with work done by

Additional logging inspired by https://www.percona.com/blog/2014/10/03/haproxy-give-me-some-logs-on-centos-6-5/