]>
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 |
641d06a4 | 4 | Version: 2.4.3 |
5 | Release: 1 | |
73807a5d | 6 | License: GPL |
7 | Group: Networking/Daemons | |
73807a5d | 8 | Source0: http://www.apsis.ch/pound/Pound-%{version}.tgz |
641d06a4 | 9 | # Source0-md5: 2de4c2ac1023b420b74a1bc08fb93b8a |
73807a5d | 10 | Source1: %{name}.cfg |
11 | Source2: %{name}.init | |
ef2dd428 | 12 | Source3: %{name}.sysconfig |
73807a5d | 13 | URL: http://www.apsis.ch/pound/ |
f8a55c4f | 14 | BuildRequires: automake |
18e83af5 | 15 | BuildRequires: openssl-devel >= 0.9.7d |
f8a55c4f | 16 | BuildRequires: pcre-devel |
12bdb94c | 17 | BuildRequires: rpmbuild(macros) >= 1.268 |
6e57d9ed | 18 | Requires(post,preun): /sbin/chkconfig |
2dbe9c52 | 19 | Requires: rc-scripts |
73807a5d | 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 | ||
ebd232a4 | 30 | %description -l pl.UTF-8 |
f8243939 | 31 | Program Pound jest odwrotnym proxy, load-balancerem i interfejsem |
ebd232a4 JR |
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. | |
f8243939 | 37 | |
73807a5d | 38 | %prep |
fd0369ad | 39 | %setup -q -n Pound-%{version} |
73807a5d | 40 | |
41 | %build | |
f8a55c4f | 42 | cp -f /usr/share/automake/config.sub . |
6e57d9ed JB |
43 | %configure |
44 | ||
45 | %{__make} \ | |
42706732 | 46 | CC="%{__cc}" \ |
b56a3d21 | 47 | F_CONF=%{_sysconfdir}/%{name}/pound.cfg |
73807a5d | 48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
87d8d998 | 51 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,%{_sysconfdir}/pound,/var/run/%{name},/etc/{sysconfig,rc.d/init.d}} |
73807a5d | 52 | |
49082852 | 53 | install pound $RPM_BUILD_ROOT%{_sbindir} |
54 | install poundctl $RPM_BUILD_ROOT%{_sbindir} | |
55 | install pound.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
56 | install poundctl.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
b56a3d21 | 57 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name} |
9a81a858 | 58 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
ef2dd428 | 59 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
73807a5d | 60 | |
6e57d9ed JB |
61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
73807a5d | 64 | %post |
65 | /sbin/chkconfig --add %{name} | |
cfc0cb59 | 66 | %service %{name} restart "%{name} daemon" |
73807a5d | 67 | |
68 | %preun | |
cfc0cb59 ER |
69 | if [ "$1" = "0" ]; then |
70 | %service %{name} stop | |
71 | /sbin/chkconfig --del %{name} | |
73807a5d | 72 | fi |
73807a5d | 73 | |
73807a5d | 74 | %files |
75 | %defattr(644,root,root,755) | |
35c6c398 | 76 | %doc README FAQ CHANGELOG z*.py |
49082852 | 77 | %attr(755,root,root) %{_sbindir}/* |
83dd8e4d | 78 | %dir %{_sysconfdir}/pound |
2dbe9c52 | 79 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pound/* |
ef2dd428 | 80 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
9a81a858 | 81 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
83dd8e4d | 82 | %{_mandir}/man8/* |
b56a3d21 | 83 | %dir %attr(755,root,root) /var/run/%{name} |