From f37db97e3f5da8dcf0dfa215019803c3575e2dfc Mon Sep 17 00:00:00 2001 From: jjh Date: Sun, 30 May 2010 14:57:58 +0000 Subject: [PATCH] update to 1.4.6 --- .cvsignore | 6 +----- haproxy.cfg | 28 ++++++++++++++++------------ haproxy.spec | 25 +++++++++++++++++++++---- sources | 2 +- 4 files changed, 39 insertions(+), 22 deletions(-) diff --git a/.cvsignore b/.cvsignore index aa4d0d4..33ada59 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,5 +1 @@ -haproxy-1.3.19.tar.gz -haproxy-1.3.20.tar.gz -haproxy-1.3.21.tar.gz -haproxy-1.3.22.tar.gz -haproxy-1.3.23.tar.gz +haproxy-1.4.6.tar.gz diff --git a/haproxy.cfg b/haproxy.cfg index a35d08c..e3839b0 100644 --- a/haproxy.cfg +++ b/haproxy.cfg @@ -40,18 +40,22 @@ global # use if not designated in their block #--------------------------------------------------------------------- defaults - mode http - log global - option dontlognull - option httpclose - option httplog - option forwardfor - option redispatch - timeout connect 10000 # default 10 second time out if a backend is not found - timeout client 300000 - timeout server 300000 - maxconn 60000 - retries 3 + mode http + log global + option httplog + option dontlognull + option http-server-close + option forward-for except 127.0.0.0/8 + option redispatch + retries 3 + timeout http-request 10s + timeout queue 1m + timeout connect 10s + timeout client 1m + timeout server 1m + timeout http-keep-alive 10s + timeout check 10s + maxconn 3000 #--------------------------------------------------------------------- # main frontend which proxys to the backends diff --git a/haproxy.spec b/haproxy.spec index 7826f66..a160bab 100644 --- a/haproxy.spec +++ b/haproxy.spec @@ -5,7 +5,7 @@ %define haproxy_datadir %{_datadir}/haproxy Name: haproxy -Version: 1.3.23 +Version: 1.4.6 Release: 1%{?dist} Summary: HA-Proxy is a TCP/HTTP reverse proxy for high availability environments @@ -54,8 +54,20 @@ regparm_opts= regparm_opts="USE_REGPARM=1" %endif -make %{?_smp_mflags} CPU="generic" TARGET="linux26" USE_PCRE=1 ${regparm_opts} ADDINC="%{optflags}" +make %{?_smp_mflags} CPU="generic" TARGET="linux26" USE_PCRE=1 ${regparm_opts} ADDINC="%{optflags}" USE_LINUX_TPROXY=1 +# build the halog contrib program. It has 2 version halog64 and halog. Make +# sure it is installed as 'halog' no matter what. +halog="halog" +%ifarch x86_64 +halog="halog64" +%endif + +pushd contrib/halog +make ${halog} +mv ${halog} halog.tmp +mv halog.tmp halog +popd %install rm -rf %{buildroot} @@ -67,6 +79,8 @@ make install-man DESTDIR=%{buildroot} PREFIX=%{_prefix} %{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} %{__install} -d -m 0755 %{buildroot}%{haproxy_home} %{__install} -d -m 0755 %{buildroot}%{haproxy_datadir} +%{__install} -d -m 0755 %{buildroot}%{_bindir} +%{__install} -p -m 0755 ./contrib/halog/halog %{buildroot}%{_bindir}/halog for httpfile in $(find ./examples/errorfiles/ -type f) do @@ -116,8 +130,7 @@ fi %doc examples/cttproxy-src.cfg %doc examples/haproxy.cfg %doc examples/tarpit.cfg -%doc examples/tcp-splicing-sample.cfg -%doc CHANGELOG CONTRIB LICENSE README +%doc CHANGELOG LICENSE README %dir %{haproxy_datadir} %dir %{haproxy_datadir}/* %dir %{haproxy_confdir} @@ -125,11 +138,15 @@ fi %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_initrddir}/%{name} %{_sbindir}/%{name} +%{_bindir}/halog %{_mandir}/man1/%{name}.1.gz %attr(-,%{haproxy_user},%{haproxy_group}) %dir %{haproxy_home} %changelog +* Sun May 30 2010 Jeremy Hinegardner - 1.4.6-1 +- update to 1.4.6 + * Thu Feb 18 2010 Jeremy Hinegardner - 1.3.23-1 - update to 1.3.23 diff --git a/sources b/sources index 1eb3b34..d294026 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4ffe926ccf4f4d53f149290eb001fad5 haproxy-1.3.23.tar.gz +dc354ea451762135fa45657ddef67734 haproxy-1.4.6.tar.gz