1 Summary: Pound - reverse-proxy and load-balancer
2 Summary(pl): Pound - reverse-proxy i load-balancer
7 Group: Networking/Daemons
8 Vendor: Robert Segall - roseg@apsis.ch
9 Source0: http://www.apsis.ch/pound/Pound-%{version}.tgz
12 Patch0: pound-getregexp.patch
13 URL: http://www.apsis.ch/pound/
14 BuildRequires: openssl
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 The Pound program is a reverse proxy, load balancer and HTTPS
19 front-end for Web server(s). Pound was developped to enable
20 distributing the load among several Web-servers and to allow for a
21 convenient SSL wrapper for those Web servers that do not offer it
22 natively. Pound is distributed under the GPL - no warranty, it's free
23 to use, copy and give away.
30 %{__make} F_CONF=%{_sysconfdir}/pound/pound.cfg
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_sysconfdir}/{pound/,rc.d/init.d}}
36 install pound $RPM_BUILD_ROOT%{_bindir}
37 install pound.8 $RPM_BUILD_ROOT%{_mandir}/man8/
38 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pound/
39 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
42 /sbin/chkconfig --add %{name}
43 if [ -f %{_var}/lock/subsys/%{name} ]; then
44 %{_sysconfdir}/rc.d/init.d/%{name} restart 1>&2
46 echo "Run \"%{_sysconfdir}/rc.d/init.d/%{name} start\" to start %{name} daemon."
50 if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
51 %{_sysconfdir}/rc.d/init.d/%{name} stop 1>&2
53 /sbin/chkconfig --del %{name}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_bindir}/*
62 %attr(644,root,root) %{_mandir}/man8/*
63 %attr( 644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pound/*
64 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
65 %dir %{_sysconfdir}/pound/