]> git.pld-linux.org Git - packages/pound.git/blob - pound.spec
- init PLD spec
[packages/pound.git] / pound.spec
1 Summary:        Pound - reverse-proxy and load-balancer
2 Summary(pl):    Pound - reverse-proxy i load-balancer
3 Name:           pound
4 Version:        0.7
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Vendor:         Robert Segall - roseg@apsis.ch
9 Source0:        http://www.apsis.ch/pound/Pound-%{version}.tgz
10 Source1:        %{name}.cfg
11 Source2:        %{name}.init
12 Patch0:         pound-getregexp.patch
13 URL:            http://www.apsis.ch/pound/
14 BuildRequires:  openssl
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
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.
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
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_sysconfdir}/{pound/,rc.d/init.d}}
35
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}
40
41 %post
42 /sbin/chkconfig --add %{name}
43 if [ -f %{_var}/lock/subsys/%{name} ]; then
44         %{_sysconfdir}/rc.d/init.d/%{name} restart 1>&2
45 else    
46         echo "Run \"%{_sysconfdir}/rc.d/init.d/%{name} start\" to start %{name} daemon."
47 fi
48
49 %preun
50 if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
51         %{_sysconfdir}/rc.d/init.d/%{name} stop 1>&2
52 fi
53 /sbin/chkconfig --del %{name}
54
55 %clean
56 rm -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.07271 seconds and 3 git commands to generate.