Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 202 lines (169 sloc) 6.084 kb
37cb4b9 David Hrbáč Pound
authored
1 %define pound_user pound
2 %define pound_group pound
3 %define pound_home %{_localstatedir}/lib/pound
4
5 Name: Pound
6 Version: 2.4.4
7 Release: 4%{?dist}
8 Summary: Reverse proxy and load balancer
9
10 Group: System Environment/Daemons
11 License: GPLv3
12 URL: http://www.apsis.ch/pound
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14
15
16 BuildRequires: openssl-devel, pcre-devel
17
18 # tcmalloc doesn't exist on ppc yet (#238390)
19 # or sparc arches
20 #%ifnarch ppc ppc64 sparcv9 sparc64
21 #BuildRequires: google-perftools-devel
22 #%endif
23
24 Requires(pre): %{_sbindir}/useradd
25 Requires(pre): %{_sbindir}/groupadd
26 Requires(post): /sbin/chkconfig
27 Requires(preun): /sbin/chkconfig, /sbin/service
28 Requires(postun): /sbin/service
29
30 Source0: http://www.apsis.ch/pound/%{name}-%{version}.tgz
31 Source1: pound.init
32 Source2: pound.cfg
33 Patch0: pound-remove-owner.patch
34 Patch1: pound-2.4.4-openssl.patch
35
36 %description
37 The Pound program is a reverse proxy, load balancer and
38 HTTPS front-end for Web server(s). Pound was developed
39 to enable distributing the load among several Web-servers
40 and to allow for a convenient SSL wrapper for those Web
41 servers that do not offer it natively. Pound is distributed
42 under the GPL - no warranty, it's free to use, copy and
43 give away
44
45 %prep
46 %setup -q
47 %patch0 -p1 -b .remove-owner
48 %patch1 -p1 -b .openssl
49
50 %build
51 %configure
52 make %{?_smp_mflags}
53
54 %install
55 rm -rf %{buildroot}
56 make install DESTDIR=%{buildroot}
57
58 %{__install} -d %{buildroot}%{pound_home}
59 %{__install} -p -D -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/pound
60 %{__install} -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pound.cfg
61
62 mkdir -p %{buildroot}%{_sysconfdir}/pki/tls/certs
63 touch %{buildroot}%{_sysconfdir}/pki/tls/certs/pound.pem
64
65 %clean
66 rm -rf %{buildroot}
67
68 %pre
69 %{_sbindir}/groupadd -f -r %{pound_group}
70 id %{pound_user} >/dev/null 2>&1 || \
71 %{_sbindir}/useradd -r -g %{pound_group} -d %{pound_home} -s /sbin/nologin \
72 -c "Pound user" %{pound_user}
73
74 %post
75 /sbin/chkconfig --add pound
76
77 # generate dummy certificate
78 exec > /dev/null 2> /dev/null
79 if [ ! -f %{_sysconfdir}/pki/tls/certs/pound.pem ] ; then
80 pushd %{_sysconfdir}/pki/tls/certs
81 umask 077
82 cat << EOF | make pound.pem
83 --
84 SomeState
85 SomeCity
86 Pound Example Certificate
87 SomeOrganizationalUnit
88 localhost.localdomain
89 root@localhost.localdomain
90 EOF
91 chown root:pound pound.pem
92 chmod 640 pound.pem
93 popd
94 fi
95 exit 0
96
97 %preun
98 if [ $1 = 0 ]; then
99 /sbin/service pound stop >/dev/null 2>&1
100 /sbin/chkconfig --del pound
101 fi
102
103 %postun
104 if [ $1 -ge 1 ] ; then
105 /sbin/service pound condrestart > /dev/null 2>&1 || :
106 fi
107
108 %files
109 %defattr(-,root,root,-)
110 %doc CHANGELOG FAQ GPL.txt README
111 %{_mandir}/man8/pound.8*
112 %{_mandir}/man8/poundctl.8*
113 %{_sbindir}/pound
114 %{_sbindir}/poundctl
115 %{_initrddir}/pound
116 %config(noreplace) %{_sysconfdir}/pound.cfg
117 %ghost %config(noreplace) %{_sysconfdir}/pki/tls/certs/pound.pem
118 %attr(-,%{pound_user},%{pound_group}) %dir %{pound_home}
119
120 %changelog
121 * Fri Oct 30 2009 David Hrbáč <david@hrbac.cz> - 2.4.4-4
122 - initial rebuild
123
124 * Wed Aug 26 2009 Tomas Mraz <tmraz@redhat.com> - 2.4.4-4
125 - rebuilt with new openssl
126
127 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.4-3
128 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
129
130 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.4-2
131 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
132
133 * Thu Jan 15 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 2.4.4-1
134 - upstream released new version
135
136 * Mon Oct 13 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 2.4.3-1
137 - Upstream released new version
138
139 * Fri Jun 27 2008 Dennis Gilmore <dennis@ausil.us> 2.4-2
140 - sparc arches dont have tcmalloc
141
142 * Sat Feb 16 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 2.4-1
143 - New stable version
144
145 * Sat Feb 09 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> - 2.4-0.2f
146 - Upstream released new version
147
148 * Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 2.4-0.2
149 - Rebuild for deps
150
151 * Sun Dec 01 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 2.4.0-1e
152 - Update to experimental version 2.4e
153 * Thu Aug 16 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 2.4.0-1d
154 - Update to experimental version 2.4d
155 - Upstream changed license to GPLv3
156 * Wed Jun 04 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 2.4.0-1c
157 - Upstream released new version
158 * Sat May 26 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 2.4.0-2b
159 - Disable linking with tcmalloc on ppc (#238390)
160 * Fri May 25 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 2.4-0.1b
161 - Update to experimental version 2.4b
162 - Better handling of user creation
163 - Build with tcmalloc for increased performance
164 * Wed Apr 11 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 2.3-1
165 - Update to 2.3
166 * Thu Apr 05 2007 <ruben@rubenkerkhof.com> 2.2.8-1
167 - Sync with upstream
168 * Mon Mar 12 2007 <ruben@rubenkerkhof.com> 2.2.7-1
169 - Sync with upstream
170 * Sun Mar 04 2007 <ruben@rubenkerkhof.com> 2.2.6-1
171 - Sync with upstream
172 * Wed Feb 21 2007 <ruben@rubenkerkhof.com> 2.2.5-1
173 - Sync with upstream
174 * Sat Feb 10 2007 <ruben@rubenkerkhof.com> 2.2.4-1
175 - Sync with upstream
176 * Sat Jan 20 2007 <ruben@rubenkerkhof.com> 2.2.3-1
177 - Fix problems in bad 2.2.2 release
178 * Mon Jan 15 2007 <ruben@rubenkerkhof.com> 2.2.2-1
179 - Sync with upstream
180 * Wed Jan 03 2007 <ruben@rubenkerkhof.com> 2.2.1-1
181 - Sync with new beta release from upstream
182 * Sun Dec 17 2006 <ruben@rubenkerkhof.com> 2.2-2
183 - Fixed empty debuginfo rpm (bz 219942)
184 * Sat Dec 16 2006 <ruben@rubenkerkhof.com> 2.2-1
185 - Sync with upstream
186 * Sat Dec 09 2006 <ruben@rubenkerkhof.com> 2.1.8-1
187 - Sync with upstream
188 * Thu Dec 07 2006 <ruben@rubenkerkhof.com> 2.1.7-1
189 - Sync with upstream
190 * Wed Nov 08 2006 <ruben@rubenkerkhof.com> 2.1.6-2
191 - Changed hardcoded paths into rpmmacros
192 * Mon Nov 06 2006 <ruben@rubenkerkhof.com> 2.1.6-1
193 - Synced with upstream version
194 - Changed Summary
195 - Added an init script
196 - Added pound.cfg with an example configuration
197 - Added pound user and group
198 - A self-signed ssl certificate is created in %%post
199 * Fri Nov 03 2006 <ruben@rubenkerkhof.com> 2.1.5-1
200 - initial version
201
Something went wrong with that request. Please try again.