]> git.pld-linux.org Git - packages/pound.git/blame - pound.spec
- MAXBUF=2048 (max length of the request URL)
[packages/pound.git] / pound.spec
CommitLineData
73807a5d 1Summary: Pound - reverse-proxy and load-balancer
7fbec31c 2Summary(pl.UTF-8): Pound - reverse-proxy i load-balancer
73807a5d 3Name: pound
641d06a4 4Version: 2.4.3
9ea1ad0e 5Release: 2
73807a5d 6License: GPL
7Group: Networking/Daemons
73807a5d 8Source0: http://www.apsis.ch/pound/Pound-%{version}.tgz
641d06a4 9# Source0-md5: 2de4c2ac1023b420b74a1bc08fb93b8a
73807a5d 10Source1: %{name}.cfg
11Source2: %{name}.init
ef2dd428 12Source3: %{name}.sysconfig
73807a5d 13URL: http://www.apsis.ch/pound/
f8a55c4f 14BuildRequires: automake
18e83af5 15BuildRequires: openssl-devel >= 0.9.7d
f8a55c4f 16BuildRequires: pcre-devel
12bdb94c 17BuildRequires: rpmbuild(macros) >= 1.268
6e57d9ed 18Requires(post,preun): /sbin/chkconfig
2dbe9c52 19Requires: rc-scripts
73807a5d 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23The Pound program is a reverse proxy, load balancer and HTTPS
24front-end for Web server(s). Pound was developped to enable
25distributing the load among several Web-servers and to allow for a
26convenient SSL wrapper for those Web servers that do not offer it
27natively. Pound is distributed under the GPL - no warranty, it's free
28to use, copy and give away.
29
ebd232a4 30%description -l pl.UTF-8
f8243939 31Program Pound jest odwrotnym proxy, load-balancerem i interfejsem
ebd232a4
JR
32HTTPS do serwera(ów) WWW. Pount został stworzony by pozwolić na
33rozdzielenie obciążenia na kilka serwerów WWW i pozwolić na wygodne
34opakowanie SSL-em tych serwerów, które same nie obsługują SSL. Pound
35jest rozpowszechniany na licencji GPL - bez gwarancji, z możliwością
36swobodnego używania, kopiowania i rozdawania.
f8243939 37
73807a5d 38%prep
fd0369ad 39%setup -q -n Pound-%{version}
73807a5d 40
41%build
f8a55c4f 42cp -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
51rm -rf $RPM_BUILD_ROOT
87d8d998 52install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,%{_sysconfdir}/pound,/var/run/%{name},/etc/{sysconfig,rc.d/init.d}}
73807a5d 53
49082852 54install pound $RPM_BUILD_ROOT%{_sbindir}
55install poundctl $RPM_BUILD_ROOT%{_sbindir}
56install pound.8 $RPM_BUILD_ROOT%{_mandir}/man8
57install poundctl.8 $RPM_BUILD_ROOT%{_mandir}/man8
b56a3d21 58install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
9a81a858 59install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
ef2dd428 60install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
73807a5d 61
6e57d9ed
JB
62%clean
63rm -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
70if [ "$1" = "0" ]; then
71 %service %{name} stop
72 /sbin/chkconfig --del %{name}
73807a5d 73fi
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}
This page took 0.082646 seconds and 4 git commands to generate.