]> git.pld-linux.org Git - packages/pound.git/blob - pound.spec
- 1.8
[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:        1.8
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 # Source0-md5:  f8a15e9019ce778afae952a83c172145
11 Source1:        %{name}.cfg
12 Source2:        %{name}.init
13 URL:            http://www.apsis.ch/pound/
14 BuildRequires:  openssl-devel >= 0.9.7d
15 PreReq:         rc-scripts
16 Requires(post,preun):   /sbin/chkconfig
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The Pound program is a reverse proxy, load balancer and HTTPS
21 front-end for Web server(s). Pound was developped to enable
22 distributing the load among several Web-servers and to allow for a
23 convenient SSL wrapper for those Web servers that do not offer it
24 natively. Pound is distributed under the GPL - no warranty, it's free
25 to use, copy and give away.
26
27 %description -l pl
28 Program Pound jest odwrotnym proxy, load-balancerem i interfejsem
29 HTTPS do serwera(ów) WWW. Pount zosta³ stworzony by pozwoliæ na
30 rozdzielenie obci±¿enia na kilka serwerów WWW i pozwoliæ na wygodne
31 opakowanie SSL-em tych serwerów, które same nie obs³uguj± SSL. Pound
32 jest rozpowszechniany na licencji GPL - bez gwarancji, z mo¿liwo¶ci±
33 swobodnego u¿ywania, kopiowania i rozdawania.
34
35 %prep
36 %setup -q -n Pound-%{version}
37
38 %build
39 cp -f %{_datadir}/libtool/config.sub .
40 %configure
41
42 %{__make} \
43         F_CONF=%{_sysconfdir}/pound/pound.cfg
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_sysconfdir}/pound,/etc/rc.d/init.d}
48
49 install pound   $RPM_BUILD_ROOT%{_bindir}
50 install pound.8 $RPM_BUILD_ROOT%{_mandir}/man8
51 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pound
52 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %post
58 /sbin/chkconfig --add %{name}
59 if [ -f %{_var}/lock/subsys/%{name} ]; then
60         /etc/rc.d/init.d/%{name} restart 1>&2
61 else
62         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
63 fi
64
65 %preun
66 if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
67         /etc/rc.d/init.d/%{name} stop 1>&2
68 fi
69 /sbin/chkconfig --del %{name}
70
71 %files
72 %defattr(644,root,root,755)
73 %doc README
74 %attr(755,root,root) %{_bindir}/*
75 %dir %{_sysconfdir}/pound
76 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pound/*
77 %attr(754,root,root) /etc/rc.d/init.d/%{name}
78 %{_mandir}/man8/*
This page took 0.086738 seconds and 4 git commands to generate.