]>
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 |
9ea1ad0e | 5 | Release: 2 |
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 . |
9ea1ad0e | 43 | %configure \ |
44 | --with-maxbuf=2048 | |
6e57d9ed JB |
45 | |
46 | %{__make} \ | |
42706732 | 47 | CC="%{__cc}" \ |
b56a3d21 | 48 | F_CONF=%{_sysconfdir}/%{name}/pound.cfg |
73807a5d | 49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
87d8d998 | 52 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,%{_sysconfdir}/pound,/var/run/%{name},/etc/{sysconfig,rc.d/init.d}} |
73807a5d | 53 | |
49082852 | 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 | |
b56a3d21 | 58 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name} |
9a81a858 | 59 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
ef2dd428 | 60 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
73807a5d | 61 | |
6e57d9ed JB |
62 | %clean |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
73807a5d | 65 | %post |
66 | /sbin/chkconfig --add %{name} | |
cfc0cb59 | 67 | %service %{name} restart "%{name} daemon" |
73807a5d | 68 | |
69 | %preun | |
cfc0cb59 ER |
70 | if [ "$1" = "0" ]; then |
71 | %service %{name} stop | |
72 | /sbin/chkconfig --del %{name} | |
73807a5d | 73 | fi |
73807a5d | 74 | |
73807a5d | 75 | %files |
76 | %defattr(644,root,root,755) | |
35c6c398 | 77 | %doc README FAQ CHANGELOG z*.py |
49082852 | 78 | %attr(755,root,root) %{_sbindir}/* |
83dd8e4d | 79 | %dir %{_sysconfdir}/pound |
2dbe9c52 | 80 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pound/* |
ef2dd428 | 81 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
9a81a858 | 82 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
83dd8e4d | 83 | %{_mandir}/man8/* |
b56a3d21 | 84 | %dir %attr(755,root,root) /var/run/%{name} |