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