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