Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37500464
en ru br
Репозитории ALT
S:2.8.2-alt1
5.1: 1.3.15.4-alt1
4.1: 1.3.12-alt1
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: haproxy

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Summary: HA-Proxy is a TCP/HTTP reverse proxy for high availability environments
Name: haproxy
Version: 1.3.15.4
Release: alt1
License: GPL
Group: System/Servers
URL: http://git.1wt.eu/haproxy-1.3.git

Packager: Sergey Ivanov <seriv at altlinux.ru>

Source0: http://haproxy.1wt.eu/download/1.3/src/%{name}-%{version}.tar.gz
Source1: haproxy.cfg
Source2: haproxy.init
Patch1: haproxy-1.3.15.4-pcre.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: libpcre-devel
Requires: /sbin/chkconfig, /sbin/service

%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
%setup
%patch1 -p1

%build
%{__make} TARGET=linux26 USE_PCRE=1 "COPTS.pcre=-DUSE_PCRE $(pcre-config --cflags)" DEBUG=""

%install
%{__rm} -rf %{buildroot}

%{__install} -d -m0755 %{buildroot}%{_datadir}/haproxy/

%{__install} -D -m0755 haproxy %{buildroot}%{_sbindir}/haproxy
%{__install} -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/haproxy/haproxy.cfg
%{__install} -D -m0755 %{SOURCE2} %{buildroot}%{_initrddir}/haproxy

%clean
%{__rm} -rf %{buildroot}

%post
/sbin/chkconfig --add haproxy

%preun
if [ $1 -eq 0 ]; then
/sbin/service haproxy stop &>/dev/null || :
/sbin/chkconfig --del haproxy
fi

%postun
if [ $1 -ge 1 ]; then
/sbin/service haproxy condrestart &>/dev/null || :
fi

%files
%defattr(-, root, root, 0755)
%doc CHANGELOG README TODO doc/* examples/
%config(noreplace) %{_sysconfdir}/haproxy/
%config %{_initrddir}/haproxy
%{_sbindir}/haproxy
%dir %{_datadir}/haproxy/

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin