CentOS
haproxy
CentOS6

CentOS6でSSL対応HAProxy 1.5.3のrpmを作成する

More than 3 years have passed since last update.


SSL対応HAProxyのRPMを作成

rpmdev-setuptree

sudo yum -y install pcre-devel openssl-devel
cd ~/rpmbuild/SOURCES
curl -L -O http://www.haproxy.org/download/1.5/src/haproxy-1.5.3.tar.gz
tar zxf haproxy-1.5.3.tar.gz
cp -p haproxy-1.5.3/examples/haproxy.spec ../SPECS/haproxy153.spec
sed -i 's/USE_PCRE=1 /USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 /' ../SPECS/haproxy153.spec
rpmbuild -bb ../SPECS/haproxy153.spec


HAProxyをインストール

sudo rpm -ivh ~/rpmbuild/RPMS/x86_64/haproxy-1.5.3-1.x86_64.rpm