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