]>
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} |
874f0e0f | 24 | Release: 9 |
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 |
9f12ac0f | 36 | Patch4: openssl.patch |
5a8f1f2b | 37 | URL: http://www.modssl.org/ |
25062ec7 | 38 | BuildRequires: apache1-devel >= %{APACHEVER} |
e9a4dd39 | 39 | BuildRequires: db-devel >= 4.1 |
d4ada9ad | 40 | BuildRequires: openssl-devel >= 0.9.7d |
41 | BuildRequires: openssl-tools >= 0.9.7d | |
646e8fc6 | 42 | BuildRequires: rpmbuild(macros) >= 1.268 |
35d2c6a7 | 43 | BuildRequires: sed >= 4.0 |
8c558185 ER |
44 | Requires(triggerpostun): grep |
45 | Requires(triggerpostun): sed >= 4.0 | |
2fd64d9f | 46 | Requires: apache1-base >= %{APACHEVER} |
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 |
874f0e0f | 53 | %requires_ge_to openssl openssl-devel |
1446e376 | 54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e1b4b32e | 55 | |
8c558185 ER |
56 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) |
57 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
42c0a71e | 58 | %define _pkglogdir /var/log/apache |
0b152c19 | 59 | |
e1b4b32e | 60 | %description |
c3b5a68f | 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 | |
ee398bb3 | 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. | |
e1b4b32e | 66 | |
ee398bb3 | 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. | |
e1b4b32e | 72 | |
9adcd875 JR |
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 | |
c7a75f09 | 76 | Layer) a TLS (Transport Layer Security) protokoly. |
e5d67568 | 77 | |
9adcd875 JR |
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 | |
ee398bb3 | 82 | SSL/TLS-Toolkit OpenSSL, das auf SSLeay basiert, verwendet. |
e1b4b32e | 83 | |
9adcd875 JR |
84 | %description -l es.UTF-8 |
85 | El módulo mod_ssl proporciona la criptografía para el servidor Web | |
6208e2a9 ER |
86 | Apache, los sockets seguros, los protocolos de la seguridad (SSL) y de |
87 | la capa tranparente (TLS). | |
e5d67568 | 88 | |
9adcd875 | 89 | %description -l fr.UTF-8 |
ee398bb3 | 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. | |
c3b5a68f | 95 | |
9adcd875 | 96 | %description -l it.UTF-8 |
2fe8e265 ER |
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). | |
e5d67568 | 100 | |
9adcd875 JR |
101 | %description -l ja.UTF-8 |
102 | mod_ssl モジュールは、SSL (Secure Sockets Layer) および TLS (Transport | |
103 | Layer Security) プロトコルを介して Apache Web サーバー用の強力な暗号化 | |
104 | 機能を提供します。 | |
e5d67568 | 105 | |
9adcd875 JR |
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 | |
c3b5a68f | 110 | Open Source SSL/TSL -- OpenSSL, stworzonego na podstawie SSLeay Erica |
111 | A.Younga i Tima J.Hudsona. | |
e1b4b32e | 112 | |
9adcd875 JR |
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 | |
2fe8e265 | 116 | (Transport Layer Security). |
e5d67568 | 117 | |
9adcd875 JR |
118 | %description -l ru.UTF-8 |
119 | Apache -- мощный свободно распространяемый сервер а также и самым | |
120 | популярный в Internet'е (он используется на более, чем 50%% серверов в | |
121 | мире). Эта версия включает в себя поддержку SSL v2, v3 и TLS v1. | |
e5d67568 | 122 | |
9adcd875 JR |
123 | %description -l sv.UTF-8 |
124 | Modulen mod_ssl förser webbservern Apache med stark kryptografi via | |
c7a75f09 ER |
125 | protokollen SSL (Secure Sockets Layer) och TLS (Transport Layer |
126 | Security). | |
e5d67568 | 127 | |
9adcd875 JR |
128 | %description -l uk.UTF-8 |
129 | Apache -- потужний вільно розповсюджуваний сервер HTTP. Це | |
130 | найпопулярніший сервер у світі (використовується більш як на 50%% | |
131 | серверів). Ця версія містить підтримку SSL v2, v3 та TLS v1. | |
e5d67568 | 132 | |
20a3f94e | 133 | %package devel |
134 | Summary: Header files for mod_ssl | |
bae46d31 | 135 | Summary(pl.UTF-8): Pliki nagłówkowe dla mod_ssl |
20a3f94e | 136 | Group: Development/Building |
137 | Requires: apache1-devel >= %{APACHEVER} | |
138 | ||
139 | %description devel | |
140 | Header files for mod_ssl. | |
141 | ||
9adcd875 JR |
142 | %description devel -l pl.UTF-8 |
143 | Pliki nagłówkowe dla mod_ssl. | |
20a3f94e | 144 | |
05c07c6b | 145 | %package -n apache1-mod_sxnet |
5a8f1f2b | 146 | Summary: Strong Extranet module for mod_ssl and apache |
bae46d31 ER |
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 | |
c3b5a68f | 149 | Group: Networking/Daemons |
646e8fc6 ER |
150 | Requires(triggerpostun): grep |
151 | Requires(triggerpostun): sed >= 4.0 | |
cbe1d39c | 152 | Requires: apache1(EAPI) >= %{APACHEVER} |
b5cf8e7f | 153 | Obsoletes: apache-mod_sxnet < 2 |
e1b4b32e | 154 | |
05c07c6b | 155 | %description -n apache1-mod_sxnet |
ee398bb3 | 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. | |
e1b4b32e | 160 | |
9adcd875 | 161 | %description -n apache1-mod_sxnet -l fr.UTF-8 |
e1b4b32e | 162 | L'Extranet Fort vous permet d'utiliser des certificats numeriques pour |
ee398bb3 | 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. | |
e1b4b32e | 166 | |
9adcd875 JR |
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 | |
ee398bb3 | 171 | System. |
c3b5a68f | 172 | |
e1b4b32e | 173 | %prep |
8867b470 | 174 | %setup -q -n mod_%{mod_name}-%{SSLVER}-%{APACHEVER} |
9f12ac0f | 175 | %{__tar} -C pkg.contrib -xf pkg.contrib/sxnet.tar |
3a5a6bc3 | 176 | %patch1 -p1 |
bff01e6e | 177 | %patch2 -p1 |
2c0c4beb | 178 | %patch3 -p1 |
9f12ac0f | 179 | %patch4 -p1 |
e1b4b32e | 180 | |
bc62416b ER |
181 | %{__sed} -i -e 's@ /lib /usr/lib @ /%{_lib} /usr/%{_lib} @' pkg.sslmod/libssl.module |
182 | %{__sed} -i -e 's,@APACHE_VERSION@,%{APACHEVER},' configure | |
a8e710ce | 183 | |
e1b4b32e | 184 | %build |
9f12ac0f | 185 | export SSL_BASE=SYSTEM |
c6f95eff | 186 | %configure \ |
a9dc731b | 187 | --with-apxs=%{apxs} \ |
c6f95eff | 188 | --enable-shared=ssl \ |
b01423fe JB |
189 | --with-ssl=%{_prefix} |
190 | ||
16d4c719 | 191 | %{__make} |
e1b4b32e | 192 | |
a8e710ce | 193 | cd pkg.contrib/sxnet |
b2d70b5d | 194 | %{apxs} -DMalloc=malloc -DFree=free -I%{_includedir}/openssl -L%{_libdir} -l ssl -l crypto -c mod_sxnet.c |
e1b4b32e | 195 | |
196 | %install | |
e1b4b32e | 197 | rm -rf $RPM_BUILD_ROOT |
c7ceea99 | 198 | install -d $RPM_BUILD_ROOT{%{_libdir}/mod_%{mod_name},%{_pkglibdir},%{_pkglogdir}} \ |
20a3f94e | 199 | $RPM_BUILD_ROOT%{_includedir}/apache1 \ |
170d8c6c | 200 | $RPM_BUILD_ROOT%{_sysconfdir}/conf.d |
5a8f1f2b | 201 | |
25062ec7 ER |
202 | install -p pkg.sslmod/libssl.so $RPM_BUILD_ROOT%{_pkglibdir} |
203 | install -p pkg.contrib/sxnet/mod_sxnet.so $RPM_BUILD_ROOT%{_pkglibdir} | |
c6f95eff | 204 | |
25062ec7 ER |
205 | install -p pkg.contrib/*.sh $RPM_BUILD_ROOT%{_libdir}/mod_%{mod_name} |
206 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/40_mod_%{mod_name}.conf | |
207 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/server.crt | |
208 | cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/server.key | |
8a98f134 | 209 | |
3d024b17 | 210 | cp -a pkg.ssldoc ssl-doc |
8a98f134 | 211 | |
25062ec7 | 212 | cp -a %{SOURCE4} sxnet.html |
8c558185 ER |
213 | echo 'LoadModule sxnet_module modules/mod_sxnet.so' > \ |
214 | $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_sxnet.conf | |
5a8f1f2b | 215 | |
874f0e0f | 216 | cp -p pkg.sslmod/*.h $RPM_BUILD_ROOT%{_includedir}/apache1 |
20a3f94e | 217 | |
c7ceea99 ER |
218 | > $RPM_BUILD_ROOT%{_pkglogdir}/ssl_engine_log |
219 | > $RPM_BUILD_ROOT%{_pkglogdir}/ssl_request_log | |
220 | ||
95242539 JB |
221 | %clean |
222 | rm -rf $RPM_BUILD_ROOT | |
223 | ||
e1b4b32e | 224 | %post |
646e8fc6 | 225 | %service -q apache restart |
e1b4b32e | 226 | |
9b3cfc14 | 227 | %postun |
8214b892 | 228 | if [ "$1" = "0" ]; then |
646e8fc6 | 229 | %service -q apache restart |
c3b5a68f | 230 | fi |
e1b4b32e | 231 | |
3d024b17 | 232 | %triggerpostun -- apache1-mod_ssl < 2.8.22_1.3.33-1.7 |
2ff35c4c | 233 | if grep -q '^Include conf\.d/\*\.conf' /etc/apache/apache.conf; then |
aa06b06e ER |
234 | sed -i -e ' |
235 | /^Include.*mod_%{mod_name}.conf/d | |
236 | ' /etc/apache/apache.conf | |
237 | else | |
238 | # they're still using old apache.conf | |
239 | sed -i -e ' | |
240 | s,^Include.*mod_%{mod_name}.conf,Include %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf, | |
241 | ' /etc/apache/apache.conf | |
242 | fi | |
243 | ||
244 | %triggerpostun -- apache1-mod_sxnet < 2.8.22_1.3.33-1.9 | |
245 | # check that they're not using old apache.conf | |
8c558185 | 246 | if grep -q '^Include conf\.d' /etc/apache/apache.conf; then |
646e8fc6 | 247 | sed -i -e '/^\(Add\|Load\)Module.*mod_sxnet\.\(so\|c\)/d' /etc/apache/apache.conf |
aa06b06e | 248 | fi |
3d024b17 | 249 | |
05c07c6b | 250 | %post -n apache1-mod_sxnet |
646e8fc6 | 251 | %service -q apache restart |
b2d70b5d | 252 | |
9b3cfc14 | 253 | %postun -n apache1-mod_sxnet |
1d4e4f28 | 254 | if [ "$1" = "0" ]; then |
646e8fc6 | 255 | %service -q apache restart |
b2d70b5d | 256 | fi |
4fb920e6 | 257 | |
e1b4b32e | 258 | %files |
5a8f1f2b | 259 | %defattr(644,root,root,755) |
42c0a71e | 260 | %doc ANNOUNCE CHANGES CREDITS LICENSE NEWS README* ssl-doc |
f64b3b14 JB |
261 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_ssl.conf |
262 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/server.crt | |
263 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/server.key | |
c7ceea99 | 264 | %attr(640,root,root) %ghost %{_pkglogdir}/* |
e1b4b32e | 265 | |
0b152c19 | 266 | %attr(755,root,root) %{_pkglibdir}/libssl.so |
e1b4b32e | 267 | |
1446e376 | 268 | %dir %{_libdir}/mod_%{mod_name} |
269 | %attr(755,root,root) %{_libdir}/mod_%{mod_name}/*.sh | |
e1b4b32e | 270 | |
20a3f94e | 271 | %files devel |
589a42e3 | 272 | %defattr(644,root,root,755) |
20a3f94e | 273 | %{_includedir}/apache1/*.h |
274 | ||
05c07c6b | 275 | %files -n apache1-mod_sxnet |
c3b5a68f | 276 | %defattr(644,root,root,755) |
8a98f134 | 277 | %doc sxnet.html |
f64b3b14 | 278 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_sxnet.conf |
6845589e | 279 | %attr(755,root,root) %{_pkglibdir}/mod_sxnet.so |