]> git.pld-linux.org Git - packages/apache1-mod_ssl.git/blob - apache1-mod_ssl.spec
c6b9369415eb8da13047123d296e5c79760513f1
[packages/apache1-mod_ssl.git] / apache1-mod_ssl.spec
1 %define         SSLVER 2.8.18
2 %define         APACHEVER 1.3.31
3 %define         apxs    /usr/sbin/apxs1
4 Summary:        An SSL module for the Apache Web server
5 Summary(cs):    Modul s podporou silného ¹ifrování pro WWW server Apache
6 Summary(da):    Krypteringsunderstøttelse for webtjeneren Apache
7 Summary(de):    SSL-Modul für den Apache-Webserver
8 Summary(es):    Soporte criptofráfico para el servidor de red Apache
9 Summary(fr):    Un module SSL pour le serveur Web Apache
10 Summary(id):    Interpreter Perl untuk web server Apache
11 Summary(is):    Perl túlkur fyrir Apache vefþjóninn
12 Summary(it):    Supporto di crittografia per il server Web Apache
13 Summary(ja):    Apache Web ¥µ¡¼¥Ð¡¼ÍѤΰŹ極¥Ý¡¼¥È
14 Summary(nb):    Krypteringsstøtte for webtjeneren Apache
15 Summary(pl):    Modu³ SSL dla serwera WWW Apache
16 Summary(pt):    O suporte de cifra para o servidor Web Apache
17 Summary(ru):    íÏÄÕÌØ ÐÏÄÄÅÒÖËÉ SSL × Apache
18 Summary(sl):    Podpora za ¹ifriranje za spletni stre¾nik Apache
19 Summary(sv):    Kryptografistöd till webbservern Apache
20 Summary(uk):    íÏÄÕÌؠЦÄÔÒÉÍËÉ SSL × Apache
21 Name:           apache1-mod_ssl
22 Version:        %{SSLVER}_%{APACHEVER}
23 Release:        1
24 License:        BSD
25 Group:          Networking/Daemons
26 Source0:        http://www.modssl.org/source/mod_ssl-%{SSLVER}-%{APACHEVER}.tar.gz
27 # Source0-md5:  4e966d62bb9304fef153b03868756543
28 Source1:        apache1-mod_ssl.conf
29 Source2:        %{name}-server.crt
30 Source3:        %{name}-server.key
31 Source4:        %{name}-sxnet.html
32 Source5:        %{name}.logrotate
33 Patch1:         mod_ssl-cca-openssl-path.patch
34 Patch2:         mod_ssl-db3.patch
35 Patch3:         %{name}-nohttpd.patch
36 URL:            http://www.modssl.org/
37 BuildRequires:  %{apxs}
38 BuildRequires:  apache1(EAPI)-devel = %{APACHEVER}
39 BuildRequires:  db-devel >= 4.1
40 BuildRequires:  openssl-devel >= 0.9.7d
41 BuildRequires:  openssl-tools >= 0.9.7d
42 Requires(post,preun):   apache1
43 Requires(post,preun):   grep
44 Requires(preun):        fileutils
45 Requires:       apache1(EAPI) >= %{APACHEVER}
46 Provides:       mod_ssl
47 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 Obsoletes:      mod_ssl
49
50 %define         _pkglibdir              %(%{apxs} -q LIBEXECDIR)
51 %define         _apachesysconfdir       %(%{apxs} -q SYSCONFDIR)
52
53 %description
54 The mod_ssl project provides strong cryptography for the Apache 1.3
55 webserver via the Secure Sockets Layer (SSL v2/v3) and Transport Layer
56 Security (TLS v1) protocols by the help of the Open Source SSL/TLS
57 toolkit OpenSSL, which is based on SSLeay from Eric A. Young and Tim
58 J. Hudson.
59
60 The mod_ssl package was created in April 1998 by Ralf S. Engelschall
61 and was originally derived from software developed by Ben Laurie for
62 use in the Apache-SSL HTTP server project. The mod_ssl package is
63 licensed under a BSD-style licence, which basically means that you are
64 free to get and use it for commercial and non-commercial purposes.
65
66 %description -l cs
67 "Modul mod_ssl pro WWW server Apache umo¾òuje pou¾ití silného
68 ¹ifrování\n" "komunikace klienta (WWW prohlí¾eè) a serveru - SSL
69 (Secure Sockets Layer)\n" "a TLS (Transport Layer Security)
70 protokoly."
71
72 %description -l de
73 Das mod_ssl-Projekt stellt kryptographie für den Apache 1.3-Webserver
74 über Secure Sockets Layer (SSL v2/v3) und Transport Layer Security
75 (TLS v1)-Protokolle zur Verfügung. Dazu wird das Open Source
76 SSL/TLS-Toolkit OpenSSL, das auf SSLeay basiert, verwendet.
77
78 %description -l es
79 "El módulo modd_ssl proporciona la criptografía para el servidor
80 Web\n" "Apache, los sockets seguros, los protocolos de la seguridad
81 (SSL) y de la\n" "capa tranparente (TLS)."
82
83 %description -l fr
84 Le projet mod_ssl fournit de la forte cryptographie pour le serveur
85 web Apache 1.3 via les protocoles Secure Sockets Layer (SSL v2/v3) et
86 Transport Layer Security (TLS v1) avec l'aide du kit d'outils Open
87 Source SSL/TLS, OpenSSL, base sur SSLeay d'Eric A. Young et Tim J.
88 Hudson.
89
90 %description -l it
91 "Il modulo mod_ssl fornisce un supporto di crittografia molto potente
92 per\n" "il server Web Apache tramite i protocolli SSL (Secure Sockets
93 Layer) e i\n" "protocolli TLS (Transport Layer Security)."
94
95 %description -l ja
96 "mod_ssl ¥â¥¸¥å¡¼¥ë¤Ï¡¢SSL (Secure Sockets Layer) ¤ª¤è¤Ó TLS
97 (Transport \n" "Layer Security) ¥×¥í¥È¥³¥ë¤ò²ð¤·¤Æ Apache Web
98 ¥µ¡¼¥Ð¡¼ÍѤζ¯ÎϤʰŹ沽\n" "µ¡Ç½¤òÄ󶡤·¤Þ¤¹¡£"
99
100 %description -l pl
101 Projekt mod_ssl ma za zadanie zapewniæ serwerowi www Apache 1.3 wysoki
102 poziom szyfrowania dziêki protoko³om Secure Sockets Layer (SSL v2/v3)
103 i Transport Layer Security (TLS v1) przy pomocy pakiety narzêdziowego
104 Open Source SSL/TSL -- OpenSSL, stworzonego na podstawie SSLeay Erica
105 A.Younga i Tima J.Hudsona.
106
107 %description -l pt
108 "O módulo mod_ssl oferece uma criptografia robusta para o servidor
109 Web\n" "Apache através dos protocolos SSL (Secure Sockets Layer) e TLS
110 (Transport\n" "Layer Security)."
111
112 %description -l ru
113 Apache -- ÍÏÝÎÙÊ Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÙÊ ÓÅÒ×ÅÒ Á ÔÁËÖÅ É ÓÁÍÙÍ
114 ÐÏÐÕÌÑÒÎÙÊ × Internet'Å (ÏΠÉÓÐÏÌØÚÕÅÔÓÑ ÎÁ ÂÏÌÅÅ, ÞÅÍ 50%% ÓÅÒ×ÅÒÏ× ×
115 ÍÉÒÅ). üÔÁ ×ÅÒÓÉÑ ×ËÌÀÞÁÅÔ × ÓÅÂÑ ÐÏÄÄÅÒÖËÕ SSL v2, v3 É TLS v1.
116
117 %description -l sv
118 "Modulen mod_ssl förser webbservern Apache med stark kryptografi
119 via\n" "protokollen SSL (Secure Sockets Layer) och TLS (Transport
120 Layer\n" "Security)."
121
122 %description -l uk
123 Apache -- ÐÏÔÕÖÎÉʠצÌØÎÏ ÒÏÚÐÏ×ÓÀÄÖÕ×ÁÎÉÊ ÓÅÒ×ÅÒ http. ãÅ
124 ÎÁÊÐÏÐÕÌÑÒΦÛÉÊ ÓÅÒ×ÅÒ Õ ÓצԦ (×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓѠ¦ÌØÛ ÑË ÎÁ 50%%
125 ÓÅÒ×ÅÒ¦×). ãÑ ×ÅÒӦѠͦÓÔÉÔؠЦÄÔÒÉÍËÕ SSL v2, v3 ÔÁ TLS v1.
126
127 %package -n apache1-mod_sxnet
128 Summary:        Strong Extranet module for mod_ssl and apache
129 Summary(fr):    Module d'Extranet Fort pour Apache et mod_ssl
130 Summary(pl):    Modu³ Strong Extranet dla pakietu mod_ssl i serwera WWW Apache
131 Group:          Networking/Daemons
132 Requires(post,preun):   %{apxs}
133 Requires:       apache1(EAPI) >= %{APACHEVER}
134
135 %description -n apache1-mod_sxnet
136 The Strong Extranet allows you to use digital certificates to
137 authenticate users on your web server. Typically, your users enroll in
138 your Strong Extranet, under your control, through the Thawte Personal
139 Cert System.
140
141 %description -n apache1-mod_sxnet -l fr
142 L'Extranet Fort vous permet d'utiliser des certificats numeriques pour
143 authentifier les usagers sur votre serveur web. Typiquement, vos
144 usagers s'enrolent dans votre Extranet Fort, sous votre controle, a
145 travers le Thawte Personal Cert System.
146
147 %description -n apache1-mod_sxnet -l pl
148 Pakiet Strong Extranet umo¿liwia u¿ywanie cyfrowych certyfikatów dla
149 uwierzytelniania u¿ytkowników serwera www. Zwykle u¿ytkownicy
150 rejestruj± siê pod opiek± administratora poprzez Thawte Personal Cert
151 System.
152
153 %prep
154 %setup -q -n mod_ssl-%{SSLVER}-%{APACHEVER}
155 %patch1 -p1
156 %patch2 -p1
157 %patch3 -p1
158
159 %build
160 SSL_BASE=SYSTEM; export SSL_BASE
161 %configure \
162         --with-apxs=%{apxs} \
163         --enable-shared=ssl \
164         --with-ssl=%{_prefix}
165
166 %{__make}
167
168 cd pkg.contrib
169 tar xvf sxnet.tar
170 cd sxnet
171 %{apxs} -DMalloc=malloc -DFree=free -I%{_includedir}/openssl -L%{_libdir} -l ssl -l crypto -c mod_sxnet.c
172
173 %install
174 rm -rf $RPM_BUILD_ROOT
175 install -d $RPM_BUILD_ROOT{%{_libdir}/mod_ssl,%{_pkglibdir}} \
176         $RPM_BUILD_ROOT%{_apachesysconfdir} \
177         $RPM_BUILD_ROOT/etc/logrotate.d
178
179 install pkg.sslmod/libssl.so $RPM_BUILD_ROOT%{_pkglibdir}
180 install pkg.contrib/sxnet/mod_sxnet.so $RPM_BUILD_ROOT%{_pkglibdir}
181
182 install pkg.contrib/*.sh $RPM_BUILD_ROOT%{_libdir}/mod_ssl
183 install %{SOURCE1} $RPM_BUILD_ROOT%{_apachesysconfdir}/mod_ssl.conf
184 install %{SOURCE2} $RPM_BUILD_ROOT%{_apachesysconfdir}/server.crt
185 install %{SOURCE3} $RPM_BUILD_ROOT%{_apachesysconfdir}/server.key
186 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/apache-mod_ssl
187
188 mv -f pkg.ssldoc ssl-doc
189
190 install %{SOURCE4} sxnet.html
191
192 %clean
193 rm -rf $RPM_BUILD_ROOT
194
195 %post
196 if [ -f %{_apachesysconfdir}/apache.conf ] && \
197     ! grep -q "^Include.*/mod_ssl.conf" %{_apachesysconfdir}/apache.conf; then
198         echo "Include %{_apachesysconfdir}/mod_ssl.conf" >> %{_apachesysconfdir}/apache.conf
199 fi
200 if [ -f /var/lock/subsys/apache ]; then
201         /etc/rc.d/init.d/apache restart 1>&2
202 else
203         echo "Run \"/etc/rc.d/init.d/apache start\" to start apache http daemon."
204 fi
205
206 %preun
207 if [ "$1" = "0" ]; then
208         umask 027
209         grep -E -v "^Include.*mod_ssl.conf" %{_apachesysconfdir}/apache.conf > \
210                 %{_apachesysconfdir}/apache.conf.tmp
211         mv -f %{_apachesysconfdir}/apache.conf.tmp %{_apachesysconfdir}/apache.conf
212         if [ -f /var/lock/subsys/apache ]; then
213                 /etc/rc.d/init.d/apache restart 1>&2
214         fi
215 fi
216
217 %post -n apache1-mod_sxnet
218 %{apxs} -e -a -n sxnet %{_pkglibdir}/mod_sxnet.so 1>&2
219 if [ -f /var/lock/subsys/apache ]; then
220         /etc/rc.d/init.d/apache restart 1>&2
221 fi
222
223 %preun -n apache1-mod_sxnet
224 if [ "$1" = "0" ]; then
225         %{apxs} -e -A -n sxnet %{_pkglibdir}/mod_sxnet.so 1>&2
226         if [ -f /var/lock/subsys/apache ]; then
227                 /etc/rc.d/init.d/apache restart 1>&2
228         fi
229 fi
230
231 %files
232 %defattr(644,root,root,755)
233 %doc ANNOUNCE CHANGES CREDITS NEWS README* ssl-doc
234 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_apachesysconfdir}/mod_ssl.conf
235 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_apachesysconfdir}/server.crt
236 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_apachesysconfdir}/server.key
237 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
238
239 %attr(755,root,root) %{_pkglibdir}/libssl.so
240
241 %dir %{_libdir}/mod_ssl
242 %attr(755,root,root) %{_libdir}/mod_ssl/*.sh
243
244 %files -n apache1-mod_sxnet
245 %defattr(644,root,root,755)
246 %doc sxnet.html
247 %attr(755,root,root) %{_pkglibdir}/mod_sxnet.so
This page took 0.048019 seconds and 2 git commands to generate.