Summary: Pound - reverse-proxy and load-balancer
-Summary(pl): Pound - reverse-proxy i load-balancer
+Summary(pl.UTF-8): Pound - reverse-proxy i load-balancer
Name: pound
-Version: 0.7
-Release: 1
+Version: 2.4.2
+Release: 2
License: GPL
Group: Networking/Daemons
-Vendor: Robert Segall - roseg@apsis.ch
Source0: http://www.apsis.ch/pound/Pound-%{version}.tgz
+# Source0-md5: 600b9b9cb946b41b8d17534d1ecf75ac
Source1: %{name}.cfg
Source2: %{name}.init
-Patch0: pound-getregexp.patch
+Source3: %{name}.sysconfig
URL: http://www.apsis.ch/pound/
-BuildRequires: openssl
+BuildRequires: automake
+BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: pcre-devel
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun): /sbin/chkconfig
+Requires: rc-scripts
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
natively. Pound is distributed under the GPL - no warranty, it's free
to use, copy and give away.
+%description -l pl.UTF-8
+Program Pound jest odwrotnym proxy, load-balancerem i interfejsem
+HTTPS do serwera(ów) WWW. Pount został stworzony by pozwolić na
+rozdzielenie obciążenia na kilka serwerów WWW i pozwolić na wygodne
+opakowanie SSL-em tych serwerów, które same nie obsługują SSL. Pound
+jest rozpowszechniany na licencji GPL - bez gwarancji, z możliwością
+swobodnego używania, kopiowania i rozdawania.
+
%prep
-%setup -q -n pound
-%patch0 -p0
+%setup -q -n Pound-%{version}
%build
-%{__make} F_CONF=%{_sysconfdir}/pound/pound.cfg
+cp -f /usr/share/automake/config.sub .
+%configure
+
+%{__make} \
+ CC="%{__cc}" \
+ F_CONF=%{_sysconfdir}/%{name}/pound.cfg
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_sysconfdir}/{pound/,rc.d/init.d}}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,%{_sysconfdir}/pound,/var/run/%{name},/etc/{sysconfig,rc.d/init.d}}
+
+install pound $RPM_BUILD_ROOT%{_sbindir}
+install poundctl $RPM_BUILD_ROOT%{_sbindir}
+install pound.8 $RPM_BUILD_ROOT%{_mandir}/man8
+install poundctl.8 $RPM_BUILD_ROOT%{_mandir}/man8
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
-install pound $RPM_BUILD_ROOT%{_bindir}
-install pound.8 $RPM_BUILD_ROOT%{_mandir}/man8/
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pound/
-install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
+%clean
+rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add %{name}
-if [ -f %{_var}/lock/subsys/%{name} ]; then
- %{_sysconfdir}/rc.d/init.d/%{name} restart 1>&2
-else
- echo "Run \"%{_sysconfdir}/rc.d/init.d/%{name} start\" to start %{name} daemon."
-fi
+%service %{name} restart "%{name} daemon"
%preun
-if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
- %{_sysconfdir}/rc.d/init.d/%{name} stop 1>&2
+if [ "$1" = "0" ]; then
+ %service %{name} stop
+ /sbin/chkconfig --del %{name}
fi
-/sbin/chkconfig --del %{name}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README
-%attr(755,root,root) %{_bindir}/*
-%attr(644,root,root) %{_mandir}/man8/*
-%attr( 644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pound/*
-%attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
-%dir %{_sysconfdir}/pound/
+%doc README FAQ CHANGELOG z*.py
+%attr(755,root,root) %{_sbindir}/*
+%dir %{_sysconfdir}/pound
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pound/*
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%{_mandir}/man8/*
+%dir %attr(755,root,root) /var/run/%{name}