Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 0142de0862130643ee48d70b95bfec11 > files > 4

pound-1.6-3mdk.src.rpm

%define name	pound
%define version 1.6
%define release 3mdk

Summary:  Pound - reverse-proxy and load-balancer
Name:	  %{name}
Version:  %{version}
Release:  %{release}
Group:	  Networking/Other
License:  GPL
URL:	  http://www.apsis.ch/pound/
Source0:  %{name}-%{version}.tar.bz2
Source1:  %{name}.conf
Source2:  %{name}.init
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires: openssl-devel
Requires: openssl

%description
The Pound program is a reverse proxy, load balancer and HTTPS
front-end for Web server(s).

%prep

%setup -q -n %{name}-%{version}
%build

%configure
 
%make F_CONF=%{_sysconfdir}/pound/pound.conf

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_sysconfdir}/{pound/,rc.d/init.d}}

install pound 	$RPM_BUILD_ROOT%{_bindir}
install pound.8 $RPM_BUILD_ROOT%{_mandir}/man8/
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pound/pound.conf
install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}

%post
/sbin/chkconfig --add %{name}
if [ -f %{_var}/lock/subsys/%{name} ]; then
        /etc/rc.d/init.d/%{name} restart 1>&2
else
        echo "Run \"service %{name} start\" to start %{name} daemon."
fi

%preun
if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
        /etc/rc.d/init.d/%{name} stop 1>&2
fi
/sbin/chkconfig --del %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README
%attr(755,root,root) %{_bindir}/*
%dir %{_sysconfdir}/pound
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pound/pound.conf
%config(noreplace) %attr(755,root,root) /etc/rc.d/init.d/pound
%{_mandir}/man8/*

%changelog
* Thu Mar 18 2004 Pascal Terjan <pterjan@mandrake.org> 1.6-3mdk
- Use service in the message
- Use only defined functions in the initscript
- .pid files are not standard, can't use killproc in stop
- Fix conf (Group nobody does not exist, neither does the Session directive)

* Fri Feb 27 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.6-2mdk
- Own %%{_sysconfdir}/pound

* Sun Jan 4 2004 Spencer Anderson <sdander@oberon.ark.com> 1.6-1mdk
- 1.6
- correct permissions

* Sat Nov 15 2003 Spencer Anderson <sdander@oberon.ark.com> 1.5-1mdk
- initial Mandrake release