2 %define APACHEVER 1.3.22
3 Summary: An SSL module for the Apache Web server
4 Summary(de): SSL-Modul fuer den Apache-Webserver
5 Summary(fr): Un module SSL pour le serveur Web Apache
6 Summary(pl): Modu³ SSL dla webserwera Apache
8 Version: %{SSLVER}_%{APACHEVER}
11 Group: Networking/Daemons
12 Group(de): Netzwerkwesen/Server
13 Group(pl): Sieciowe/Serwery
14 Source0: http://www.modssl.org/source/mod_ssl-%{SSLVER}-%{APACHEVER}.tar.gz
16 Source2: %{name}-server.crt
17 Source3: %{name}-server.key
18 Source4: %{name}-sxnet.html
19 Source5: %{name}.logrotate
20 Patch1: mod_ssl-cca-openssl-path.patch
21 Patch2: mod_ssl-db3.patch
22 URL: http://www.modssl.org/
23 BuildRequires: apache(EAPI)-devel = %{APACHEVER}
24 BuildRequires: openssl-devel >= 0.9.6a
25 BuildRequires: openssl-tools >= 0.9.6a
26 BuildRequires: db3-devel
27 BuildRequires: apache(EAPI)-devel = %{APACHEVER}
28 Requires: apache(EAPI) >= %{APACHEVER}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _pkglibdir %(%{_sbindir}/apxs -q LIBEXECDIR)
34 The mod_ssl project provides strong cryptography for the Apache 1.3
35 webserver via the Secure Sockets Layer (SSL v2/v3) and Transport Layer
36 Security (TLS v1) protocols by the help of the Open Source SSL/TLS
37 toolkit OpenSSL, which is based on SSLeay from Eric A. Young and Tim
40 The mod_ssl package was created in April 1998 by Ralf S. Engelschall
41 and was originally derived from software developed by Ben Laurie for
42 use in the Apache-SSL HTTP server project. The mod_ssl package is
43 licensed under a BSD-style licence, which basically means that you are
44 free to get and use it for commercial and non-commercial purposes.
47 Das mod_ssl-Projekt stellt kryptographie für den Apache 1.3-Webserver
48 über Secure Sockets Layer (SSL v2/v3) und Transport Layer Security
49 (TLS v1)-Protokolle zur Verfügung. Dazu wird das Open Source
50 SSL/TLS-Toolkit OpenSSL, das auf SSLeay basiert, verwendet.
53 Le projet mod_ssl fournit de la forte cryptographie pour le serveur
54 web Apache 1.3 via les protocoles Secure Sockets Layer (SSL v2/v3) et
55 Transport Layer Security (TLS v1) avec l'aide du kit d'outils Open
56 Source SSL/TLS, OpenSSL, base sur SSLeay d'Eric A. Young et Tim J.
60 Projekt mod_ssl ma za zadanie zapewniæ serwerowi www Apache 1.3 wysoki
61 poziom szyfrowania dziêki protoko³om Secure Sockets Layer (SSL v2/v3)
62 i Transport Layer Security (TLS v1) przy pomocy pakiety narzêdziowego
63 Open Source SSL/TSL -- OpenSSL, stworzonego na podstawie SSLeay Erica
64 A.Younga i Tima J.Hudsona.
66 %package -n apache-mod_sxnet
67 Summary: Strong Extranet module for mod_ssl and apache
68 Summary(fr): Module d'Extranet Fort pour Apache et mod_ssl
69 Summary(pl): Modu³ Strong Extranet dla pakietu mod_ssl i webserwera Apache
70 Group: Networking/Daemons
71 Group(de): Netzwerkwesen/Server
72 Group(pl): Sieciowe/Serwery
73 Requires: apache(EAPI) >= %{APACHEVER}
75 %description -n apache-mod_sxnet
76 The Strong Extranet allows you to use digital certificates to
77 authenticate users on your web server. Typically, your users enroll in
78 your Strong Extranet, under your control, through the Thawte Personal
81 %description -l fr -n apache-mod_sxnet
82 L'Extranet Fort vous permet d'utiliser des certificats numeriques pour
83 authentifier les usagers sur votre serveur web. Typiquement, vos
84 usagers s'enrolent dans votre Extranet Fort, sous votre controle, a
85 travers le Thawte Personal Cert System.
87 %description -l pl -n apache-mod_sxnet
88 Pakiet Strong Extranet umo¿liwia u¿ywanie cyfrowych certyfikatów dla
89 uwierzytleniania u¿ytkowników serwera www. Zwykle u¿ytkownicy
90 rejestruj± siê pod opiek± administratora poprzez Thawte Personal Cert
94 %setup -q -n mod_ssl-%{SSLVER}-%{APACHEVER}
102 --with-apxs=%{_sbindir}/apxs \
103 --enable-shared=ssl \
104 --with-ssl=%{_prefix}
110 /usr/sbin/apxs -I%{_includedir}/openssl/ -L%{_libdir} -l ssl -l crypto -c mod_sxnet.c
113 rm -rf $RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT{%{_libdir}/mod_ssl,%{_pkglibdir}} \
115 $RPM_BUILD_ROOT%{_sysconfdir}/httpd \
116 $RPM_BUILD_ROOT/etc/logrotate.d
118 install pkg.sslmod/libssl.so $RPM_BUILD_ROOT%{_pkglibdir}
119 install pkg.contrib/sxnet/mod_sxnet.so $RPM_BUILD_ROOT%{_pkglibdir}
121 install pkg.contrib/*.sh $RPM_BUILD_ROOT%{_libdir}/mod_ssl
122 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/mod_ssl.conf
123 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/server.crt
124 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/server.key
125 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/apache-mod_ssl
127 mv -f pkg.ssldoc ssl-doc
129 install %{SOURCE4} sxnet.html
131 gzip -9nf ANNOUNCE CHANGES CREDITS NEWS README*
134 if [ -f %{_sysconfdir}/httpd/httpd.conf ] && \
135 ! grep -q "^Include.*/mod_ssl.conf" %{_sysconfdir}/httpd/httpd.conf; then
136 echo "Include /etc/httpd/mod_ssl.conf" >> %{_sysconfdir}/httpd/httpd.conf
138 if [ -f /var/lock/subsys/httpd ]; then
139 /etc/rc.d/init.d/httpd restart 1>&2
141 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
145 if [ "$1" = "0" ]; then
146 grep -E -v "^Include.*mod_ssl.conf" %{_sysconfdir}/httpd/httpd.conf > \
147 %{_sysconfdir}/httpd/httpd.conf.tmp
148 mv -f %{_sysconfdir}/httpd/httpd.conf.tmp %{_sysconfdir}/httpd/httpd.conf
149 if [ -f /var/lock/subsys/httpd ]; then
150 /etc/rc.d/init.d/httpd restart 1>&2
155 %defattr(644,root,root,755)
156 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/mod_ssl.conf
157 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/server.crt
158 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/server.key
159 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
163 %attr(755,root,root) %{_pkglibdir}/libssl.so
165 %dir %{_libdir}/mod_ssl
166 %attr(755,root,root) %{_libdir}/mod_ssl/*.sh
168 %files -n apache-mod_sxnet
169 %defattr(644,root,root,755)
170 %attr(755,root,root) %{_pkglibdir}/mod_sxnet.so
174 rm -rf $RPM_BUILD_ROOT