]> git.pld-linux.org Git - packages/pound.git/blob - pound.spec
- release 2.
[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:        2
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:         %{name}-getregexp.patch
13 URL:            http://www.apsis.ch/pound/
14 BuildRequires:  openssl-devel
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 %description -l pl
26 Program Pound jest odwrotnym proxy, load-balancerem i interfejsem
27 HTTPS do serwera(ów) WWW. Pount zosta³ stworzony by pozwoliæ na
28 rozdzielenie obci±¿enia na kilka serwerów WWW i pozwoliæ na wygodne
29 opakowanie SSL-em tych serwerów, które same nie obs³uguj± SSL. Pound
30 jest rozpowszechniany na licencji GPL - bez gwarancji, z mo¿liwo¶ci±
31 swobodnego u¿ywania, kopiowania i rozdawania.
32
33 %prep
34 %setup -q -n pound
35 %patch0 -p0
36
37 %build
38 %{__make} F_CONF=%{_sysconfdir}/pound/pound.cfg
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_sysconfdir}/{pound/,rc.d/init.d}}
43
44 install pound   $RPM_BUILD_ROOT%{_bindir}
45 install pound.8 $RPM_BUILD_ROOT%{_mandir}/man8/
46 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pound/
47 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
48
49 %post
50 /sbin/chkconfig --add %{name}
51 if [ -f %{_var}/lock/subsys/%{name} ]; then
52         %{_sysconfdir}/rc.d/init.d/%{name} restart 1>&2
53 else
54         echo "Run \"%{_sysconfdir}/rc.d/init.d/%{name} start\" to start %{name} daemon."
55 fi
56
57 %preun
58 if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
59         %{_sysconfdir}/rc.d/init.d/%{name} stop 1>&2
60 fi
61 /sbin/chkconfig --del %{name}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc README
69 %attr(755,root,root) %{_bindir}/*
70 %dir %{_sysconfdir}/pound
71 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pound/*
72 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
73 %{_mandir}/man8/*
This page took 0.063447 seconds and 4 git commands to generate.