diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e452fd1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.vagrant/ +*.rpm 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 = <