From 8814ba674bf3b8ccbd223320917166569d009f61 Mon Sep 17 00:00:00 2001 From: Daniel Pfile Date: Thu, 18 Sep 2014 11:41:09 -0500 Subject: [PATCH 1/3] Update HAProxy to version 1.5.4 --- spec/haproxy.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/haproxy.spec b/spec/haproxy.spec index d5d45a0..32dda79 100644 --- a/spec/haproxy.spec +++ b/spec/haproxy.spec @@ -6,7 +6,7 @@ %define haproxy_confdir %{_sysconfdir}/haproxy %define haproxy_datadir %{_datadir}/haproxy -%define version 1.5.3 +%define version 1.5.4 #%define dev_rel dev25 #%define release 1 @@ -121,6 +121,9 @@ fi %exclude %{_sbindir}/haproxy-systemd-wrapper %changelog +* Thu Sep 18 2014 Daniel Pfile - 1.5.4 +- Update to haproxy 1.5.4 + * Wed Aug 20 2014 Alan Ivey - 1.5.3 - Update to haproxy 1.5.3 - Add %{dist} to Release From e20d1b57c53b0e7138dd73e1a66344ada375b476 Mon Sep 17 00:00:00 2001 From: Daniel Pfile Date: Thu, 18 Sep 2014 11:42:03 -0500 Subject: [PATCH 2/3] Add a Vagrantfile to build the RPM automatically. --- README.markdown | 23 ++++++++++++++------- Vagrantfile | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 7 deletions(-) create mode 100644 Vagrantfile diff --git a/README.markdown b/README.markdown index f33c259..c2c9e92 100644 --- a/README.markdown +++ b/README.markdown @@ -1,31 +1,41 @@ # A Recipe for a haproxy 1.5 stable version RPM on CentOS +## Easy install: + +Clone this repository, install vagrant and run: + + vagrant up + +The RPMs will be created and placed in this directory. + +## Manual Install + Perform the following on a build box as a regular user. -## Create an RPM Build Environment +### Create an RPM Build Environment -Install rpmdevtools from the [EPEL][epel] repository: +Install rpmdevtools: sudo yum install rpmdevtools pcre-devel rpmdev-setuptree -## Install Prerequisites for RPM Creation +### Install Prerequisites for RPM Creation sudo yum groupinstall 'Development Tools' sudo yum install openssl-devel -## Download haproxy +### Download haproxy wget http://www.haproxy.org/download/1.5/src/haproxy-1.5.3.tar.gz mv haproxy-1.5.3.tar.gz ~/rpmbuild/SOURCES/ -## Get Necessary System-specific Configs +### Get Necessary System-specific Configs git clone git://github.com/bluerail/haproxy-centos.git cp haproxy-centos/conf/* ~/rpmbuild/SOURCES/ cp haproxy-centos/spec/* ~/rpmbuild/SPECS/ -## Build the RPM +### Build the RPM cd ~/rpmbuild/ rpmbuild -ba SPECS/haproxy.spec @@ -38,4 +48,3 @@ Based on the Red Hat 6.4 RPM spec for haproxy 1.4. Maintained by [Martijn Storck](martijn@bluerail.nl) -[EPEL]: http://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..9f8c143 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,53 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# This Vagrantfile will build an RPM of the current version of the RPM spec +# Just run vagrant up, and wait for the rpm and srpm to be written to the cwd. + +$buildrpm = < Date: Thu, 18 Sep 2014 11:43:26 -0500 Subject: [PATCH 3/3] Ignore the .vagrant/ directory and rpm files. --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e452fd1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.vagrant/ +*.rpm