]>
Commit | Line | Data |
---|---|---|
1 | %define SSLVER 2.8.28 | |
2 | %define APACHEVER 1.3.37 | |
3 | %define apxs /usr/sbin/apxs1 | |
4 | %define mod_name ssl | |
5 | Summary: An SSL module for the Apache Web server | |
6 | Summary(cs.UTF-8): Modul s podporou silného šifrování pro WWW server Apache | |
7 | Summary(da.UTF-8): Krypteringsunderstøttelse for webtjeneren Apache | |
8 | Summary(de.UTF-8): SSL-Modul für den Apache-Webserver | |
9 | Summary(es.UTF-8): Soporte criptofráfico para el servidor de WWW Apache | |
10 | Summary(fr.UTF-8): Un module SSL pour le serveur Web Apache | |
11 | Summary(id.UTF-8): Interpreter Perl untuk web server Apache | |
12 | Summary(is.UTF-8): Perl túlkur fyrir Apache vefþjóninn | |
13 | Summary(it.UTF-8): Supporto di crittografia per il server Web Apache | |
14 | Summary(ja.UTF-8): Apache Web サーバー用の暗号サポート | |
15 | Summary(nb.UTF-8): Krypteringsstøtte for webtjeneren Apache | |
16 | Summary(pl.UTF-8): Moduł SSL dla serwera WWW Apache | |
17 | Summary(pt.UTF-8): O suporte de cifra para o servidor Web Apache | |
18 | Summary(ru.UTF-8): Модуль поддержки SSL в Apache | |
19 | Summary(sl.UTF-8): Podpora za šifriranje za spletni strežnik Apache | |
20 | Summary(sv.UTF-8): Kryptografistöd till webbservern Apache | |
21 | Summary(uk.UTF-8): Модуль підтримки SSL в Apache | |
22 | Name: apache1-mod_%{mod_name} | |
23 | Version: %{SSLVER}_%{APACHEVER} | |
24 | Release: 4 | |
25 | License: BSD | |
26 | Group: Networking/Daemons | |
27 | Source0: http://www.modssl.org/source/mod_%{mod_name}-%{SSLVER}-%{APACHEVER}.tar.gz | |
28 | # Source0-md5: 5e9486a86fcd4efef395f58fd795aaea | |
29 | Source1: %{name}.conf | |
30 | Source2: %{name}-server.crt | |
31 | Source3: %{name}-server.key | |
32 | Source4: %{name}-sxnet.html | |
33 | Source5: %{name}.logrotate | |
34 | Patch1: mod_%{mod_name}-cca-openssl-path.patch | |
35 | Patch2: mod_%{mod_name}-db3.patch | |
36 | Patch3: %{name}-nohttpd.patch | |
37 | URL: http://www.modssl.org/ | |
38 | BuildRequires: apache1-apxs | |
39 | BuildRequires: apache1-devel = %{APACHEVER} | |
40 | BuildRequires: db-devel >= 4.1 | |
41 | BuildRequires: openssl-devel >= 0.9.7d | |
42 | BuildRequires: openssl-tools >= 0.9.7d | |
43 | BuildRequires: rpmbuild(macros) >= 1.268 | |
44 | BuildRequires: sed >= 4.0 | |
45 | Requires(triggerpostun): grep | |
46 | Requires(triggerpostun): sed >= 4.0 | |
47 | Requires: apache1-base >= %{APACHEVER} | |
48 | # see the config | |
49 | Requires: apache1-mod_log_config | |
50 | Requires: apache1-mod_setenvif | |
51 | Provides: apache(mod_ssl) = %{version}-%{release} | |
52 | Obsoletes: apache-mod_ssl < 2 | |
53 | Obsoletes: mod_ssl | |
54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
55 | ||
56 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
57 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
58 | %define _pkglogdir %(%{apxs} -q PREFIX 2>/dev/null)/logs | |
59 | ||
60 | %description | |
61 | The mod_ssl project provides strong cryptography for the Apache 1.3 | |
62 | webserver via the Secure Sockets Layer (SSL v2/v3) and Transport Layer | |
63 | Security (TLS v1) protocols by the help of the Open Source SSL/TLS | |
64 | toolkit OpenSSL, which is based on SSLeay from Eric A. Young and Tim | |
65 | J. Hudson. | |
66 | ||
67 | The mod_ssl package was created in April 1998 by Ralf S. Engelschall | |
68 | and was originally derived from software developed by Ben Laurie for | |
69 | use in the Apache-SSL HTTP server project. The mod_ssl package is | |
70 | licensed under a BSD-style licence, which basically means that you are | |
71 | free to get and use it for commercial and non-commercial purposes. | |
72 | ||
73 | %description -l cs.UTF-8 | |
74 | Modul mod_ssl pro WWW server Apache umožňuje použití silného šifrování | |
75 | komunikace klienta (WWW prohlížeč) a serveru - SSL (Secure Sockets | |
76 | Layer) a TLS (Transport Layer Security) protokoly. | |
77 | ||
78 | %description -l de.UTF-8 | |
79 | Das mod_ssl-Projekt stellt kryptographie für den Apache 1.3-Webserver | |
80 | über Secure Sockets Layer (SSL v2/v3) und Transport Layer Security | |
81 | (TLS v1)-Protokolle zur Verfügung. Dazu wird das Open Source | |
82 | SSL/TLS-Toolkit OpenSSL, das auf SSLeay basiert, verwendet. | |
83 | ||
84 | %description -l es.UTF-8 | |
85 | El módulo mod_ssl proporciona la criptografía para el servidor Web | |
86 | Apache, los sockets seguros, los protocolos de la seguridad (SSL) y de | |
87 | la capa tranparente (TLS). | |
88 | ||
89 | %description -l fr.UTF-8 | |
90 | Le projet mod_ssl fournit de la forte cryptographie pour le serveur | |
91 | web Apache 1.3 via les protocoles Secure Sockets Layer (SSL v2/v3) et | |
92 | Transport Layer Security (TLS v1) avec l'aide du kit d'outils Open | |
93 | Source SSL/TLS, OpenSSL, base sur SSLeay d'Eric A. Young et Tim J. | |
94 | Hudson. | |
95 | ||
96 | %description -l it.UTF-8 | |
97 | Il modulo mod_ssl fornisce un supporto di crittografia molto potente | |
98 | per il server Web Apache tramite i protocolli SSL (Secure Sockets | |
99 | Layer) e i protocolli TLS (Transport Layer Security). | |
100 | ||
101 | %description -l ja.UTF-8 | |
102 | mod_ssl モジュールは、SSL (Secure Sockets Layer) および TLS (Transport | |
103 | Layer Security) プロトコルを介して Apache Web サーバー用の強力な暗号化 | |
104 | 機能を提供します。 | |
105 | ||
106 | %description -l pl.UTF-8 | |
107 | Projekt mod_ssl ma za zadanie zapewnić serwerowi WWW Apache 1.3 wysoki | |
108 | poziom szyfrowania dzięki protokołom Secure Sockets Layer (SSL v2/v3) | |
109 | i Transport Layer Security (TLS v1) przy pomocy pakiety narzędziowego | |
110 | Open Source SSL/TSL -- OpenSSL, stworzonego na podstawie SSLeay Erica | |
111 | A.Younga i Tima J.Hudsona. | |
112 | ||
113 | %description -l pt.UTF-8 | |
114 | O módulo mod_ssl oferece uma criptografia robusta para o servidor Web | |
115 | Apache através dos protocolos SSL (Secure Sockets Layer) e TLS | |
116 | (Transport Layer Security). | |
117 | ||
118 | %description -l ru.UTF-8 | |
119 | Apache -- мощный свободно распространяемый сервер а также и самым | |
120 | популярный в Internet'е (он используется на более, чем 50%% серверов в | |
121 | мире). Эта версия включает в себя поддержку SSL v2, v3 и TLS v1. | |
122 | ||
123 | %description -l sv.UTF-8 | |
124 | Modulen mod_ssl förser webbservern Apache med stark kryptografi via | |
125 | protokollen SSL (Secure Sockets Layer) och TLS (Transport Layer | |
126 | Security). | |
127 | ||
128 | %description -l uk.UTF-8 | |
129 | Apache -- потужний вільно розповсюджуваний сервер HTTP. Це | |
130 | найпопулярніший сервер у світі (використовується більш як на 50%% | |
131 | серверів). Ця версія містить підтримку SSL v2, v3 та TLS v1. | |
132 | ||
133 | %package devel | |
134 | Summary: Header files for mod_ssl | |
135 | Summary(pl.UTF-8): Pliki nagłówkowe dla mod_ssl | |
136 | Group: Development/Building | |
137 | Requires: apache1-devel >= %{APACHEVER} | |
138 | ||
139 | %description devel | |
140 | Header files for mod_ssl. | |
141 | ||
142 | %description devel -l pl.UTF-8 | |
143 | Pliki nagłówkowe dla mod_ssl. | |
144 | ||
145 | %package -n apache1-mod_sxnet | |
146 | Summary: Strong Extranet module for mod_ssl and apache | |
147 | Summary(fr.UTF-8): Module d'Extranet Fort pour Apache et mod_ssl | |
148 | Summary(pl.UTF-8): Moduł Strong Extranet dla pakietu mod_ssl i serwera WWW Apache | |
149 | Group: Networking/Daemons | |
150 | Requires(triggerpostun): grep | |
151 | Requires(triggerpostun): sed >= 4.0 | |
152 | Requires: apache1(EAPI) >= %{APACHEVER} | |
153 | Obsoletes: apache-mod_sxnet < 2 | |
154 | ||
155 | %description -n apache1-mod_sxnet | |
156 | The Strong Extranet allows you to use digital certificates to | |
157 | authenticate users on your web server. Typically, your users enroll in | |
158 | your Strong Extranet, under your control, through the Thawte Personal | |
159 | Cert System. | |
160 | ||
161 | %description -n apache1-mod_sxnet -l fr.UTF-8 | |
162 | L'Extranet Fort vous permet d'utiliser des certificats numeriques pour | |
163 | authentifier les usagers sur votre serveur web. Typiquement, vos | |
164 | usagers s'enrolent dans votre Extranet Fort, sous votre controle, a | |
165 | travers le Thawte Personal Cert System. | |
166 | ||
167 | %description -n apache1-mod_sxnet -l pl.UTF-8 | |
168 | Pakiet Strong Extranet umożliwia używanie cyfrowych certyfikatów dla | |
169 | uwierzytelniania użytkowników serwera WWW. Zwykle użytkownicy | |
170 | rejestrują się pod opieką administratora poprzez Thawte Personal Cert | |
171 | System. | |
172 | ||
173 | %prep | |
174 | %setup -q -n mod_%{mod_name}-%{SSLVER}-%{APACHEVER} | |
175 | %patch1 -p1 | |
176 | %patch2 -p1 | |
177 | %patch3 -p1 | |
178 | ||
179 | %{__perl} -pi -e 's@ /lib /usr/lib @ /%{_lib} /usr/%{_lib} @' pkg.sslmod/libssl.module | |
180 | ||
181 | cd pkg.contrib | |
182 | tar xvf sxnet.tar | |
183 | ||
184 | %build | |
185 | SSL_BASE=SYSTEM; export SSL_BASE | |
186 | %configure \ | |
187 | --with-apxs=%{apxs} \ | |
188 | --enable-shared=ssl \ | |
189 | --with-ssl=%{_prefix} | |
190 | ||
191 | %{__make} | |
192 | ||
193 | cd pkg.contrib/sxnet | |
194 | %{apxs} -DMalloc=malloc -DFree=free -I%{_includedir}/openssl -L%{_libdir} -l ssl -l crypto -c mod_sxnet.c | |
195 | ||
196 | %install | |
197 | rm -rf $RPM_BUILD_ROOT | |
198 | install -d $RPM_BUILD_ROOT{%{_libdir}/mod_%{mod_name},%{_pkglibdir},%{_pkglogdir}} \ | |
199 | $RPM_BUILD_ROOT%{_includedir}/apache1 \ | |
200 | $RPM_BUILD_ROOT%{_sysconfdir}/conf.d \ | |
201 | $RPM_BUILD_ROOT/etc/logrotate.d | |
202 | ||
203 | install pkg.sslmod/libssl.so $RPM_BUILD_ROOT%{_pkglibdir} | |
204 | install pkg.contrib/sxnet/mod_sxnet.so $RPM_BUILD_ROOT%{_pkglibdir} | |
205 | ||
206 | install pkg.contrib/*.sh $RPM_BUILD_ROOT%{_libdir}/mod_%{mod_name} | |
207 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/40_mod_%{mod_name}.conf | |
208 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/server.crt | |
209 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/server.key | |
210 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/apache1-mod_%{mod_name} | |
211 | ||
212 | cp -a pkg.ssldoc ssl-doc | |
213 | ||
214 | install %{SOURCE4} sxnet.html | |
215 | echo 'LoadModule sxnet_module modules/mod_sxnet.so' > \ | |
216 | $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_sxnet.conf | |
217 | ||
218 | install pkg.sslmod/*.h $RPM_BUILD_ROOT%{_includedir}/apache1 | |
219 | ||
220 | > $RPM_BUILD_ROOT%{_pkglogdir}/ssl_engine_log | |
221 | > $RPM_BUILD_ROOT%{_pkglogdir}/ssl_request_log | |
222 | ||
223 | %clean | |
224 | rm -rf $RPM_BUILD_ROOT | |
225 | ||
226 | %post | |
227 | %service -q apache restart | |
228 | ||
229 | %postun | |
230 | if [ "$1" = "0" ]; then | |
231 | %service -q apache restart | |
232 | fi | |
233 | ||
234 | %triggerpostun -- apache1-mod_ssl < 2.8.22_1.3.33-1.7 | |
235 | if grep -q '^Include conf\.d/\*\.conf' /etc/apache/apache.conf; then | |
236 | sed -i -e ' | |
237 | /^Include.*mod_%{mod_name}.conf/d | |
238 | ' /etc/apache/apache.conf | |
239 | else | |
240 | # they're still using old apache.conf | |
241 | sed -i -e ' | |
242 | s,^Include.*mod_%{mod_name}.conf,Include %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf, | |
243 | ' /etc/apache/apache.conf | |
244 | fi | |
245 | ||
246 | %triggerpostun -- apache1-mod_sxnet < 2.8.22_1.3.33-1.9 | |
247 | # check that they're not using old apache.conf | |
248 | if grep -q '^Include conf\.d' /etc/apache/apache.conf; then | |
249 | sed -i -e '/^\(Add\|Load\)Module.*mod_sxnet\.\(so\|c\)/d' /etc/apache/apache.conf | |
250 | fi | |
251 | ||
252 | %post -n apache1-mod_sxnet | |
253 | %service -q apache restart | |
254 | ||
255 | %postun -n apache1-mod_sxnet | |
256 | if [ "$1" = "0" ]; then | |
257 | %service -q apache restart | |
258 | fi | |
259 | ||
260 | %files | |
261 | %defattr(644,root,root,755) | |
262 | %doc ANNOUNCE CHANGES CREDITS NEWS README* ssl-doc | |
263 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_ssl.conf | |
264 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/server.crt | |
265 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/server.key | |
266 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/* | |
267 | %attr(640,root,root) %ghost %{_pkglogdir}/* | |
268 | ||
269 | %attr(755,root,root) %{_pkglibdir}/libssl.so | |
270 | ||
271 | %dir %{_libdir}/mod_%{mod_name} | |
272 | %attr(755,root,root) %{_libdir}/mod_%{mod_name}/*.sh | |
273 | ||
274 | %files devel | |
275 | %defattr(644,root,root,755) | |
276 | %{_includedir}/apache1/*.h | |
277 | ||
278 | %files -n apache1-mod_sxnet | |
279 | %defattr(644,root,root,755) | |
280 | %doc sxnet.html | |
281 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_sxnet.conf | |
282 | %attr(755,root,root) %{_pkglibdir}/mod_sxnet.so |