[Erp5-report] r23253 - in /spec/mandriva/2008.0/haproxy: ./ haproxy.spec
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 28 18:09:49 CEST 2008
Author: kazuhiko
Date: Thu Aug 28 18:09:44 2008
New Revision: 23253
URL: http://svn.erp5.org?rev=23253&view=rev
Log:
* Thu Aug 28 2008 Kazuhiko Shiozaki <kazuhiko at nexedi.com> 1.3.15.2-1nxd2008.1
- initial package for Mandriva
Added:
spec/mandriva/2008.0/haproxy/
spec/mandriva/2008.0/haproxy/haproxy.spec
Added: spec/mandriva/2008.0/haproxy/haproxy.spec
URL: http://svn.erp5.org/spec/mandriva/2008.0/haproxy/haproxy.spec?rev=23253&view=auto
==============================================================================
--- spec/mandriva/2008.0/haproxy/haproxy.spec (added)
+++ spec/mandriva/2008.0/haproxy/haproxy.spec Thu Aug 28 18:09:44 2008
@@ -1,0 +1,73 @@
+Summary: HA-Proxy is a TCP/HTTP reverse proxy for high availability environments
+Name: haproxy
+Version: 1.3.15.2
+Release: %mkrel 1
+License: GPL
+Group: System Environment/Daemons
+URL: http://haproxy.1wt.eu/
+Source0: http://haproxy.1wt.eu/download/1.3/src/%{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: pcre-devel
+
+%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 -q
+
+%build
+%{__make} USE_PCRE=1 DEBUG="" TARGET=linux26 CFLAGS="%{optflags}"
+
+%install
+[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
+
+%{__install} -d %{buildroot}%{_sbindir}
+%{__install} -d %{buildroot}%{_initrddir}
+%{__install} -d %{buildroot}%{_sysconfdir}/%{name}
+
+%{__install} -s %{name} %{buildroot}%{_sbindir}/
+%{__install} -c -m 644 examples/%{name}.cfg %{buildroot}%{_sysconfdir}/%{name}/
+%{__install} -c -m 755 examples/%{name}.init %{buildroot}%{_initrddir}/%{name}
+%{__sed} -i -e 's, - , 2345 ,' %{buildroot}%{_initrddir}/%{name}
+
+%clean
+[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
+
+%post
+/sbin/chkconfig --add %{name}
+
+%preun
+if [ $1 = 0 ]; then
+ /sbin/service %{name} stop >/dev/null 2>&1 || :
+ /sbin/chkconfig --del %{name}
+fi
+
+%postun
+if [ "$1" -ge "1" ]; then
+ /sbin/service %{name} condrestart >/dev/null 2>&1 || :
+fi
+
+%files
+%defattr(-,root,root)
+%doc CHANGELOG TODO examples doc/haproxy-en.txt doc/haproxy-fr.txt doc/architecture.txt examples/url-switching.cfg
+%attr(0755,root,root) %{_sbindir}/%{name}
+%dir %{_sysconfdir}/%{name}
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.cfg
+%attr(0755,root,root) %config %{_initrddir}/%{name}
+
+%changelog
+* Thu Aug 28 2008 Kazuhiko Shiozaki <kazuhiko at nexedi.com> 1.3.15.2-1nxd2008.1
+- initial package for Mandriva
More information about the Erp5-report
mailing list