]> git.pld-linux.org Git - packages/pound.git/blame - pound.spec
- init PLD spec
[packages/pound.git] / pound.spec
CommitLineData
73807a5d 1Summary: Pound - reverse-proxy and load-balancer
2Summary(pl): Pound - reverse-proxy i load-balancer
3Name: pound
4Version: 0.7
5Release: 1
6License: GPL
7Group: Networking/Daemons
8Vendor: Robert Segall - roseg@apsis.ch
9Source0: http://www.apsis.ch/pound/Pound-%{version}.tgz
10Source1: %{name}.cfg
11Source2: %{name}.init
12Patch0: pound-getregexp.patch
13URL: http://www.apsis.ch/pound/
14BuildRequires: openssl
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18The Pound program is a reverse proxy, load balancer and HTTPS
19front-end for Web server(s). Pound was developped to enable
20distributing the load among several Web-servers and to allow for a
21convenient SSL wrapper for those Web servers that do not offer it
22natively. Pound is distributed under the GPL - no warranty, it's free
23to use, copy and give away.
24
25%prep
26%setup -q -n pound
27%patch0 -p0
28
29%build
30%{__make} F_CONF=%{_sysconfdir}/pound/pound.cfg
31
32%install
33rm -rf $RPM_BUILD_ROOT
34install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_sysconfdir}/{pound/,rc.d/init.d}}
35
36install pound $RPM_BUILD_ROOT%{_bindir}
37install pound.8 $RPM_BUILD_ROOT%{_mandir}/man8/
38install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pound/
39install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
40
41%post
42/sbin/chkconfig --add %{name}
43if [ -f %{_var}/lock/subsys/%{name} ]; then
44 %{_sysconfdir}/rc.d/init.d/%{name} restart 1>&2
45else
46 echo "Run \"%{_sysconfdir}/rc.d/init.d/%{name} start\" to start %{name} daemon."
47fi
48
49%preun
50if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
51 %{_sysconfdir}/rc.d/init.d/%{name} stop 1>&2
52fi
53/sbin/chkconfig --del %{name}
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
60%doc README
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/
This page took 0.067885 seconds and 4 git commands to generate.