]>
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} |
b4ca36cd | 24 | Release: 6 |
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 |
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} |
9f12ac0f | 174 | %{__tar} -C pkg.contrib -xf pkg.contrib/sxnet.tar |
3a5a6bc3 | 175 | %patch1 -p1 |
bff01e6e | 176 | %patch2 -p1 |
2c0c4beb | 177 | %patch3 -p1 |
9f12ac0f | 178 | %patch4 -p1 |
e1b4b32e | 179 | |
bc62416b ER |
180 | %{__sed} -i -e 's@ /lib /usr/lib @ /%{_lib} /usr/%{_lib} @' pkg.sslmod/libssl.module |
181 | %{__sed} -i -e 's,@APACHE_VERSION@,%{APACHEVER},' configure | |
a8e710ce | 182 | |
e1b4b32e | 183 | %build |
9f12ac0f | 184 | export SSL_BASE=SYSTEM |
c6f95eff | 185 | %configure \ |
a9dc731b | 186 | --with-apxs=%{apxs} \ |
c6f95eff | 187 | --enable-shared=ssl \ |
b01423fe JB |
188 | --with-ssl=%{_prefix} |
189 | ||
16d4c719 | 190 | %{__make} |
e1b4b32e | 191 | |
a8e710ce | 192 | cd pkg.contrib/sxnet |
b2d70b5d | 193 | %{apxs} -DMalloc=malloc -DFree=free -I%{_includedir}/openssl -L%{_libdir} -l ssl -l crypto -c mod_sxnet.c |
e1b4b32e | 194 | |
195 | %install | |
e1b4b32e | 196 | rm -rf $RPM_BUILD_ROOT |
c7ceea99 | 197 | install -d $RPM_BUILD_ROOT{%{_libdir}/mod_%{mod_name},%{_pkglibdir},%{_pkglogdir}} \ |
20a3f94e | 198 | $RPM_BUILD_ROOT%{_includedir}/apache1 \ |
170d8c6c | 199 | $RPM_BUILD_ROOT%{_sysconfdir}/conf.d |
5a8f1f2b | 200 | |
25062ec7 ER |
201 | install -p pkg.sslmod/libssl.so $RPM_BUILD_ROOT%{_pkglibdir} |
202 | install -p pkg.contrib/sxnet/mod_sxnet.so $RPM_BUILD_ROOT%{_pkglibdir} | |
c6f95eff | 203 | |
25062ec7 ER |
204 | install -p pkg.contrib/*.sh $RPM_BUILD_ROOT%{_libdir}/mod_%{mod_name} |
205 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/40_mod_%{mod_name}.conf | |
206 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/server.crt | |
207 | cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/server.key | |
8a98f134 | 208 | |
3d024b17 | 209 | cp -a pkg.ssldoc ssl-doc |
8a98f134 | 210 | |
25062ec7 | 211 | cp -a %{SOURCE4} sxnet.html |
8c558185 ER |
212 | echo 'LoadModule sxnet_module modules/mod_sxnet.so' > \ |
213 | $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_sxnet.conf | |
5a8f1f2b | 214 | |
20a3f94e | 215 | install pkg.sslmod/*.h $RPM_BUILD_ROOT%{_includedir}/apache1 |
216 | ||
c7ceea99 ER |
217 | > $RPM_BUILD_ROOT%{_pkglogdir}/ssl_engine_log |
218 | > $RPM_BUILD_ROOT%{_pkglogdir}/ssl_request_log | |
219 | ||
95242539 JB |
220 | %clean |
221 | rm -rf $RPM_BUILD_ROOT | |
222 | ||
e1b4b32e | 223 | %post |
646e8fc6 | 224 | %service -q apache restart |
e1b4b32e | 225 | |
9b3cfc14 | 226 | %postun |
8214b892 | 227 | if [ "$1" = "0" ]; then |
646e8fc6 | 228 | %service -q apache restart |
c3b5a68f | 229 | fi |
e1b4b32e | 230 | |
3d024b17 | 231 | %triggerpostun -- apache1-mod_ssl < 2.8.22_1.3.33-1.7 |
2ff35c4c | 232 | if grep -q '^Include conf\.d/\*\.conf' /etc/apache/apache.conf; then |
aa06b06e ER |
233 | sed -i -e ' |
234 | /^Include.*mod_%{mod_name}.conf/d | |
235 | ' /etc/apache/apache.conf | |
236 | else | |
237 | # they're still using old apache.conf | |
238 | sed -i -e ' | |
239 | s,^Include.*mod_%{mod_name}.conf,Include %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf, | |
240 | ' /etc/apache/apache.conf | |
241 | fi | |
242 | ||
243 | %triggerpostun -- apache1-mod_sxnet < 2.8.22_1.3.33-1.9 | |
244 | # check that they're not using old apache.conf | |
8c558185 | 245 | if grep -q '^Include conf\.d' /etc/apache/apache.conf; then |
646e8fc6 | 246 | sed -i -e '/^\(Add\|Load\)Module.*mod_sxnet\.\(so\|c\)/d' /etc/apache/apache.conf |
aa06b06e | 247 | fi |
3d024b17 | 248 | |
05c07c6b | 249 | %post -n apache1-mod_sxnet |
646e8fc6 | 250 | %service -q apache restart |
b2d70b5d | 251 | |
9b3cfc14 | 252 | %postun -n apache1-mod_sxnet |
1d4e4f28 | 253 | if [ "$1" = "0" ]; then |
646e8fc6 | 254 | %service -q apache restart |
b2d70b5d | 255 | fi |
4fb920e6 | 256 | |
e1b4b32e | 257 | %files |
5a8f1f2b | 258 | %defattr(644,root,root,755) |
42c0a71e | 259 | %doc ANNOUNCE CHANGES CREDITS LICENSE NEWS README* ssl-doc |
f64b3b14 JB |
260 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_ssl.conf |
261 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/server.crt | |
262 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/server.key | |
c7ceea99 | 263 | %attr(640,root,root) %ghost %{_pkglogdir}/* |
e1b4b32e | 264 | |
0b152c19 | 265 | %attr(755,root,root) %{_pkglibdir}/libssl.so |
e1b4b32e | 266 | |
1446e376 | 267 | %dir %{_libdir}/mod_%{mod_name} |
268 | %attr(755,root,root) %{_libdir}/mod_%{mod_name}/*.sh | |
e1b4b32e | 269 | |
20a3f94e | 270 | %files devel |
589a42e3 | 271 | %defattr(644,root,root,755) |
20a3f94e | 272 | %{_includedir}/apache1/*.h |
273 | ||
05c07c6b | 274 | %files -n apache1-mod_sxnet |
c3b5a68f | 275 | %defattr(644,root,root,755) |
8a98f134 | 276 | %doc sxnet.html |
f64b3b14 | 277 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_sxnet.conf |
6845589e | 278 | %attr(755,root,root) %{_pkglibdir}/mod_sxnet.so |