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