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