]> git.pld-linux.org Git - packages/pound.git/blame - pound.spec
rebuild with 6144 bufsize
[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
99431378 4Version: 2.6
e6ba7a2a 5Release: 7
361f3ee8 6License: GPL v3
73807a5d 7Group: Networking/Daemons
73807a5d 8Source0: http://www.apsis.ch/pound/Pound-%{version}.tgz
99431378 9# Source0-md5: 8c913b527332694943c4c67c8f152071
8a12d360
JR
10Source1: %{name}.cfg
11Source2: %{name}.init
12Source3: %{name}.sysconfig
13Source4: %{name}.logrotate
14Source5: %{name}.tmpfiles
487cceae
ER
15Patch0: %{name}-hash-UL.patch
16Patch1: %{name}-logfile.patch
17Patch2: %{name}-daemonize.patch
18Patch3: %{name}-log-notice.patch
19Patch4: %{name}-man.patch
73807a5d 20URL: http://www.apsis.ch/pound/
f8a55c4f 21BuildRequires: automake
18e83af5 22BuildRequires: openssl-devel >= 0.9.7d
335ccc63 23BuildRequires: openssl-tools
f8a55c4f 24BuildRequires: pcre-devel
0453b2b1 25BuildRequires: rpmbuild(macros) >= 1.644
6e57d9ed 26Requires(post,preun): /sbin/chkconfig
5474a5a6
ER
27Requires(postun): /usr/sbin/groupdel
28Requires(postun): /usr/sbin/userdel
29Requires(pre): /bin/id
30Requires(pre): /usr/bin/getgid
31Requires(pre): /usr/sbin/groupadd
32Requires(pre): /usr/sbin/useradd
767184e8 33Requires: pcre >= 7.8
2dbe9c52 34Requires: rc-scripts
5474a5a6
ER
35Provides: group(pound)
36Provides: user(pound)
6b1b2506 37Conflicts: logrotate < 3.7-4
73807a5d 38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
9df600c4
ER
40%define _sysconfdir /etc/pound
41
73807a5d 42%description
43The Pound program is a reverse proxy, load balancer and HTTPS
44front-end for Web server(s). Pound was developped to enable
45distributing the load among several Web-servers and to allow for a
46convenient SSL wrapper for those Web servers that do not offer it
47natively. Pound is distributed under the GPL - no warranty, it's free
48to use, copy and give away.
49
ebd232a4 50%description -l pl.UTF-8
f8243939 51Program Pound jest odwrotnym proxy, load-balancerem i interfejsem
ebd232a4
JR
52HTTPS do serwera(ów) WWW. Pount został stworzony by pozwolić na
53rozdzielenie obciążenia na kilka serwerów WWW i pozwolić na wygodne
54opakowanie SSL-em tych serwerów, które same nie obsługują SSL. Pound
55jest rozpowszechniany na licencji GPL - bez gwarancji, z możliwością
56swobodnego używania, kopiowania i rozdawania.
f8243939 57
73807a5d 58%prep
fd0369ad 59%setup -q -n Pound-%{version}
9df600c4
ER
60%patch0 -p1
61%patch1 -p1
62%patch2 -p1
6b1b2506
ER
63%patch3 -p1
64%patch4 -p1
73807a5d 65
66%build
f8a55c4f 67cp -f /usr/share/automake/config.sub .
9ea1ad0e 68%configure \
e6ba7a2a 69 --with-maxbuf=6144
9df600c4 70%{__make}
73807a5d 71
72%install
73rm -rf $RPM_BUILD_ROOT
6b1b2506 74install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,%{_sysconfdir},/etc/{sysconfig,logrotate.d,rc.d/init.d}} \
8a12d360 75 $RPM_BUILD_ROOT{/var/log/{%{name},archive/%{name}},/var/run/%{name}} \
0453b2b1 76 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
73807a5d 77
e6ba7a2a 78install -p pound $RPM_BUILD_ROOT%{_sbindir}
b329097e
ER
79install -p poundctl $RPM_BUILD_ROOT%{_sbindir}
80cp -p pound.8 $RPM_BUILD_ROOT%{_mandir}/man8
81cp -p poundctl.8 $RPM_BUILD_ROOT%{_mandir}/man8
82cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
83install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
84cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
85cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
e6ba7a2a 86cp -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
8a12d360 87
6e57d9ed
JB
88%clean
89rm -rf $RPM_BUILD_ROOT
90
5474a5a6
ER
91%pre
92%groupadd -g 200 %{name}
93%useradd -u 200 -d /var/lib/%{name} -g %{name} -c "Pound Daemon" %{name}
94
73807a5d 95%post
6b1b2506
ER
96for a in access.log pound.log; do
97 if [ ! -f /var/log/%{name}/$a ]; then
98 touch /var/log/%{name}/$a
99 chown pound:pound /var/log/%{name}/$a
100 chmod 644 /var/log/%{name}/$a
101 fi
102done
73807a5d 103/sbin/chkconfig --add %{name}
5474a5a6 104%service %{name} restart "Pound Daemon"
73807a5d 105
106%preun
cfc0cb59
ER
107if [ "$1" = "0" ]; then
108 %service %{name} stop
109 /sbin/chkconfig --del %{name}
73807a5d 110fi
73807a5d 111
5474a5a6
ER
112%postun
113if [ "$1" = "0" ]; then
114 %userremove %{name}
115 %groupremove %{name}
116fi
117
73807a5d 118%files
119%defattr(644,root,root,755)
35c6c398 120%doc README FAQ CHANGELOG z*.py
6b1b2506
ER
121%attr(755,root,root) %{_sbindir}/pound
122%attr(755,root,root) %{_sbindir}/poundctl
9df600c4
ER
123%dir %{_sysconfdir}
124%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pound.cfg
ef2dd428 125%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
6b1b2506 126%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
9a81a858 127%attr(754,root,root) /etc/rc.d/init.d/%{name}
83dd8e4d 128%{_mandir}/man8/*
0453b2b1 129%{systemdtmpfilesdir}/%{name}.conf
5474a5a6 130%dir /var/run/%{name}
9df600c4
ER
131%dir %attr(751,root,root) /var/log/%{name}
132%attr(750,root,root) %dir /var/log/archive/%{name}
This page took 0.773026 seconds and 4 git commands to generate.