]> git.pld-linux.org Git - packages/pound.git/blob - pound.spec
- MAXBUF=2048 (max length of the request URL)
[packages/pound.git] / pound.spec
1 Summary:        Pound - reverse-proxy and load-balancer
2 Summary(pl.UTF-8):      Pound - reverse-proxy i load-balancer
3 Name:           pound
4 Version:        2.4.3
5 Release:        2
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        http://www.apsis.ch/pound/Pound-%{version}.tgz
9 # Source0-md5:  2de4c2ac1023b420b74a1bc08fb93b8a
10 Source1:        %{name}.cfg
11 Source2:        %{name}.init
12 Source3:        %{name}.sysconfig
13 URL:            http://www.apsis.ch/pound/
14 BuildRequires:  automake
15 BuildRequires:  openssl-devel >= 0.9.7d
16 BuildRequires:  pcre-devel
17 BuildRequires:  rpmbuild(macros) >= 1.268
18 Requires(post,preun):   /sbin/chkconfig
19 Requires:       rc-scripts
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 The Pound program is a reverse proxy, load balancer and HTTPS
24 front-end for Web server(s). Pound was developped to enable
25 distributing the load among several Web-servers and to allow for a
26 convenient SSL wrapper for those Web servers that do not offer it
27 natively. Pound is distributed under the GPL - no warranty, it's free
28 to use, copy and give away.
29
30 %description -l pl.UTF-8
31 Program Pound jest odwrotnym proxy, load-balancerem i interfejsem
32 HTTPS do serwera(ów) WWW. Pount został stworzony by pozwolić na
33 rozdzielenie obciążenia na kilka serwerów WWW i pozwolić na wygodne
34 opakowanie SSL-em tych serwerów, które same nie obsługują SSL. Pound
35 jest rozpowszechniany na licencji GPL - bez gwarancji, z możliwością
36 swobodnego używania, kopiowania i rozdawania.
37
38 %prep
39 %setup -q -n Pound-%{version}
40
41 %build
42 cp -f /usr/share/automake/config.sub .
43 %configure \
44         --with-maxbuf=2048
45
46 %{__make} \
47         CC="%{__cc}" \
48         F_CONF=%{_sysconfdir}/%{name}/pound.cfg
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,%{_sysconfdir}/pound,/var/run/%{name},/etc/{sysconfig,rc.d/init.d}}
53
54 install pound    $RPM_BUILD_ROOT%{_sbindir}
55 install poundctl $RPM_BUILD_ROOT%{_sbindir}
56 install pound.8  $RPM_BUILD_ROOT%{_mandir}/man8
57 install poundctl.8 $RPM_BUILD_ROOT%{_mandir}/man8
58 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
59 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
60 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %post
66 /sbin/chkconfig --add %{name}
67 %service %{name} restart "%{name} daemon"
68
69 %preun
70 if [ "$1" = "0" ]; then
71         %service %{name} stop
72         /sbin/chkconfig --del %{name}
73 fi
74
75 %files
76 %defattr(644,root,root,755)
77 %doc README FAQ CHANGELOG z*.py
78 %attr(755,root,root) %{_sbindir}/*
79 %dir %{_sysconfdir}/pound
80 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pound/*
81 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
82 %attr(754,root,root) /etc/rc.d/init.d/%{name}
83 %{_mandir}/man8/*
84 %dir %attr(755,root,root) /var/run/%{name}
This page took 0.029487 seconds and 3 git commands to generate.