2005-12-17 23:57:06 +00:00
|
|
|
Summary: HA-Proxy is a TCP/HTTP reverse proxy for high availability environments
|
|
|
|
Name: haproxy
|
2007-01-07 01:47:01 +00:00
|
|
|
Version: 1.3.5
|
2005-12-17 23:57:06 +00:00
|
|
|
Release: 1
|
|
|
|
License: GPL
|
|
|
|
Group: System Environment/Daemons
|
2006-03-15 19:47:25 +00:00
|
|
|
URL: http://w.ods.org/tools/%{name}/
|
|
|
|
Source0: http://w.ods.org/tools/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2005-12-17 23:57:06 +00:00
|
|
|
BuildRequires: pcre-devel
|
2006-03-15 18:41:10 +00:00
|
|
|
Requires: /sbin/chkconfig, /sbin/service
|
2005-12-17 23:57:06 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high
|
|
|
|
availability environments. Indeed, it can:
|
|
|
|
- route HTTP requests depending on statically assigned cookies
|
|
|
|
- spread the load among several servers while assuring server persistence
|
|
|
|
through the use of HTTP cookies
|
|
|
|
- switch to backup servers in the event a main one fails
|
|
|
|
- accept connections to special ports dedicated to service monitoring
|
|
|
|
- stop accepting connections without breaking existing ones
|
|
|
|
- add/modify/delete HTTP headers both ways
|
|
|
|
- block requests matching a particular pattern
|
|
|
|
|
|
|
|
It needs very little resource. Its event-driven architecture allows it to easily
|
|
|
|
handle thousands of simultaneous connections on hundreds of instances without
|
|
|
|
risking the system's stability.
|
|
|
|
|
|
|
|
%prep
|
2006-03-15 19:47:25 +00:00
|
|
|
%setup -q
|
2005-12-17 23:57:06 +00:00
|
|
|
|
|
|
|
%build
|
2006-03-15 18:41:10 +00:00
|
|
|
%{__make} REGEX="pcre" "COPTS.pcre=-DUSE_PCRE $(pcre-config --cflags)" DEBUG="" TARGET=linux24e
|
2006-03-15 19:47:25 +00:00
|
|
|
#%{__make} REGEX=pcre DEBUG="" LIBS.pcre="-L\$(PCREDIR)/lib -Wl,-Bstatic -lpcreposix -lpcre -Wl,-Bdynamic"
|
|
|
|
|
2005-12-17 23:57:06 +00:00
|
|
|
|
|
|
|
%install
|
2006-03-15 19:47:25 +00:00
|
|
|
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
|
2005-12-17 23:57:06 +00:00
|
|
|
|
2006-03-15 19:47:25 +00:00
|
|
|
%{__install} -d %{buildroot}%{_sbindir}
|
|
|
|
%{__install} -d %{buildroot}%{_sysconfdir}/rc.d/init.d
|
|
|
|
%{__install} -d %{buildroot}%{_sysconfdir}/%{name}
|
2005-12-17 23:57:06 +00:00
|
|
|
|
2006-03-15 19:47:25 +00:00
|
|
|
%{__install} -s %{name} %{buildroot}%{_sbindir}/
|
|
|
|
%{__install} -c -m 644 examples/%{name}.cfg %{buildroot}%{_sysconfdir}/%{name}/
|
|
|
|
%{__install} -c -m 755 examples/%{name}.init %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name}
|
2005-12-17 23:57:06 +00:00
|
|
|
|
|
|
|
%clean
|
2006-03-15 19:47:25 +00:00
|
|
|
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
|
2005-12-17 23:57:06 +00:00
|
|
|
|
|
|
|
%post
|
2006-03-15 19:47:25 +00:00
|
|
|
/sbin/chkconfig --add %{name}
|
2005-12-17 23:57:06 +00:00
|
|
|
|
|
|
|
%preun
|
2006-03-15 19:47:25 +00:00
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
/sbin/service %{name} stop >/dev/null 2>&1 || :
|
|
|
|
/sbin/chkconfig --del %{name}
|
2005-12-17 23:57:06 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
2006-03-15 19:47:25 +00:00
|
|
|
if [ "$1" -ge "1" ]; then
|
|
|
|
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
|
2005-12-17 23:57:06 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
2006-03-15 19:47:25 +00:00
|
|
|
%defattr(-,root,root)
|
2006-07-09 07:08:05 +00:00
|
|
|
%doc CHANGELOG TODO examples doc/haproxy-en.txt doc/haproxy-fr.txt doc/architecture.txt examples/url-switching.cfg
|
2006-03-15 19:47:25 +00:00
|
|
|
%attr(0755,root,root) %{_sbindir}/%{name}
|
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.cfg
|
|
|
|
%attr(0755,root,root) %config %{_sysconfdir}/rc.d/init.d/%{name}
|
2005-12-17 23:57:06 +00:00
|
|
|
|
|
|
|
%changelog
|
2007-01-07 01:47:01 +00:00
|
|
|
* Wed Jan 07 2007 Willy Tarreau <w@1wt.eu>
|
|
|
|
- updated to 1.3.5
|
|
|
|
|
2007-01-01 23:59:39 +00:00
|
|
|
* Wed Jan 02 2007 Willy Tarreau <w@1wt.eu>
|
|
|
|
- updated to 1.3.4
|
|
|
|
|
2006-10-15 22:03:35 +00:00
|
|
|
* Wed Oct 15 2006 Willy Tarreau <w@1wt.eu>
|
|
|
|
- updated to 1.3.3
|
|
|
|
|
2006-09-03 09:23:06 +00:00
|
|
|
* Wed Sep 03 2006 Willy Tarreau <w@1wt.eu>
|
|
|
|
- updated to 1.3.2
|
|
|
|
|
2006-07-09 15:11:39 +00:00
|
|
|
* Wed Jul 09 2006 Willy Tarreau <w@1wt.eu>
|
|
|
|
- updated to 1.3.1
|
|
|
|
|
2006-05-21 21:26:20 +00:00
|
|
|
* Wed May 21 2006 Willy Tarreau <willy@w.ods.org>
|
|
|
|
- updated to 1.2.14
|
|
|
|
|
2006-05-13 16:51:38 +00:00
|
|
|
* Wed May 01 2006 Willy Tarreau <willy@w.ods.org>
|
|
|
|
- updated to 1.2.13
|
|
|
|
|
2006-04-15 19:47:50 +00:00
|
|
|
* Wed Apr 15 2006 Willy Tarreau <willy@w.ods.org>
|
|
|
|
- updated to 1.2.12
|
|
|
|
|
2006-03-30 16:03:39 +00:00
|
|
|
* Wed Mar 30 2006 Willy Tarreau <willy@w.ods.org>
|
|
|
|
- updated to 1.2.11.1
|
|
|
|
|
2006-03-19 20:01:07 +00:00
|
|
|
* Wed Mar 19 2006 Willy Tarreau <willy@w.ods.org>
|
|
|
|
- updated to 1.2.10
|
|
|
|
|
2006-03-15 19:47:25 +00:00
|
|
|
* Wed Mar 15 2006 Willy Tarreau <willy@w.ods.org>
|
|
|
|
- updated to 1.2.9
|
|
|
|
|
|
|
|
* Sat Jan 22 2005 Willy Tarreau <willy@w.ods.org>
|
|
|
|
- updated to 1.2.3 (1.1.30)
|
|
|
|
|
|
|
|
* Sun Nov 14 2004 Willy Tarreau <w@w.ods.org>
|
|
|
|
- updated to 1.1.29
|
|
|
|
- fixed path to config and init files
|
|
|
|
- statically linked PCRE to increase portability to non-pcre systems
|
|
|
|
|
|
|
|
* Sun Jun 6 2004 Willy Tarreau <willy@w.ods.org>
|
|
|
|
- updated to 1.1.28
|
|
|
|
- added config check support to the init script
|
|
|
|
|
|
|
|
* Tue Oct 28 2003 Simon Matter <simon.matter@invoca.ch>
|
|
|
|
- updated to 1.1.27
|
|
|
|
- added pid support to the init script
|
|
|
|
|
|
|
|
* Wed Oct 22 2003 Simon Matter <simon.matter@invoca.ch>
|
|
|
|
- updated to 1.1.26
|
2005-12-17 23:57:06 +00:00
|
|
|
|
2006-03-15 19:47:25 +00:00
|
|
|
* Thu Oct 16 2003 Simon Matter <simon.matter@invoca.ch>
|
|
|
|
- initial build
|