]>
Commit | Line | Data |
---|---|---|
a62be9f3 ER |
1 | # TODO |
2 | # - mod_caps uses uname -r for detection | |
ee1ec582 | 3 | # - don't use internal libltdl |
b4653673 | 4 | # - package contrib/ftp* perl scripts. |
a3cd1656 | 5 | # |
16865efe | 6 | # Conditional build: |
2e58659a | 7 | %bcond_without pam # disable PAM support |
8 | %bcond_without ipv6 # disable IPv6 and TCPD support | |
9 | %bcond_without ssl # disbale TLS/SSL support | |
722bdd1f | 10 | %bcond_without ldap # disable LDAP support |
11 | %bcond_without mysql # disable MySQL support | |
12 | %bcond_without pgsql # disable PostgreSQL support | |
13 | %bcond_without quotafile # disable quota file support | |
14 | %bcond_without quotaldap # disable quota ldap support | |
15 | %bcond_without quotamysql # disable quota mysql support | |
16 | %bcond_without quotapgsql # disable quota pgsql support | |
16865efe | 17 | # |
3fd10053 JR |
18 | %define mod_clamav_version 0.11rc |
19 | ||
060127a7 | 20 | Summary: PROfessional FTP Daemon with apache-like configuration syntax |
8529003f ER |
21 | Summary(es.UTF-8): Servidor FTP profesional, con sintaxis de configuración semejante a la del apache |
22 | Summary(pl.UTF-8): PROfesionalny serwer FTP | |
23 | Summary(pt_BR.UTF-8): Servidor FTP profissional, com sintaxe de configuração semelhante à do apache | |
24 | Summary(zh_CN.UTF-8): 易于管理的,安全的 FTP 服务器 | |
060127a7 | 25 | Name: proftpd |
d2bb21b9 | 26 | Version: 1.3.5b |
c4bfeba3 | 27 | Release: 1 |
e4b41e2a | 28 | Epoch: 2 |
372155e4 | 29 | License: GPL v2+ |
89efc142 | 30 | Group: Networking/Daemons |
c4bfeba3 | 31 | Source0: ftp://ftp.proftpd.org/distrib/source/%{name}-%{version}.tar.gz |
d2bb21b9 | 32 | # Source0-md5: f7b8e3a383b34a894c2502db74ccccde |
3fd10053 JR |
33 | Source1: https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-%{mod_clamav_version}.tar.gz |
34 | # Source1-md5: 42e560ec0bd5964e13fad1b2bb7afe21 | |
35 | Source2: %{name}.conf | |
f2119458 | 36 | Source3: ftp.pamd |
9a9f906b | 37 | Source4: %{name}.inetd |
15a3b9cf JR |
38 | Source5: %{name}.sysconfig |
39 | Source6: %{name}.init | |
372155e4 | 40 | Source7: ftpusers.tar.bz2 |
87645069 | 41 | # Source7-md5: 76c80b6ec9f4d079a1e27316edddbe16 |
a62be9f3 | 42 | Source9: %{name}-mod_pam.conf |
1af975e5 | 43 | Source10: %{name}-mod_tls.conf |
813c3994 | 44 | Source11: %{name}-anonftp.conf |
86dc1cff | 45 | Source12: %{name}-mod_clamav.conf |
48217a3f | 46 | Source13: %{name}.tmpfiles |
32ba901e | 47 | Patch0: %{name}-paths.patch |
48 | Patch1: %{name}-noautopriv.patch | |
49 | Patch2: %{name}-wtmp.patch | |
50 | Patch3: %{name}-pool.patch | |
dfe8b502 | 51 | URL: http://www.proftpd.org/ |
d13a2fd3 | 52 | BuildRequires: acl-devel |
16865efe | 53 | BuildRequires: autoconf |
69a15f0d | 54 | BuildRequires: automake |
d13a2fd3 | 55 | BuildRequires: libcap-devel |
3a404937 | 56 | BuildRequires: libstdc++-devel |
16865efe | 57 | BuildRequires: libwrap-devel |
1dba37cb | 58 | %if %{with mysql} || %{with quotamysql} |
59 | BuildRequires: mysql-devel | |
60 | %endif | |
cb7b7049 | 61 | BuildRequires: ncurses-devel |
1dba37cb | 62 | %if %{with ldap} || %{with quotaldap} |
ee1ec582 | 63 | BuildRequires: openldap-devel |
1dba37cb | 64 | %endif |
af998dea | 65 | %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} |
eb09e120 | 66 | %{?with_pam:BuildRequires: pam-devel} |
1dba37cb | 67 | %if %{with pgsql} || %{with quotapgsql} |
68 | BuildRequires: postgresql-devel | |
69 | %endif | |
af998dea | 70 | BuildRequires: rpmbuild(macros) >= 1.268 |
d5382fca | 71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
12250d98 | 72 | |
acb6a758 | 73 | %define _sysconfdir /etc/ftpd |
86e5ce30 | 74 | %define _localstatedir /var/run |
a62be9f3 | 75 | %define _libexecdir %{_prefix}/%{_lib}/%{name} |
3531a682 | 76 | |
d2bb21b9 BS |
77 | %define filterout -flto |
78 | ||
12250d98 | 79 | %description |
a7f94b1a | 80 | ProFTPD is a highly configurable FTP daemon for Unix and Unix-like |
3a652411 ER |
81 | operating systems. ProFTPD is designed to be somewhat of a "drop-in" |
82 | replacement for wu-ftpd. Full online documentation is available at | |
83 | <http://www.proftpd.org/>, including a server configuration directive | |
84 | reference manual. | |
85 | ||
840f54f1 | 86 | %description -l es.UTF-8 |
3a652411 | 87 | ProFTPD es un servidor FTP altamente configurable para sistemas |
a7f94b1a | 88 | operativos Unix. Está proyectado para ser un substituto directo al |
840f54f1 | 89 | wu-ftpd. La documentación completa está disponible en |
3a652411 | 90 | <http://www.proftpd.org/>, incluido el manual de referencia para las |
840f54f1 | 91 | directivas de configuración del servidor. |
3a652411 | 92 | |
840f54f1 JR |
93 | %description -l pl.UTF-8 |
94 | ProFTPD jest wysoce konfigurowalnym serwerem FTP dla systemów Unix. | |
95 | ProFTPD jest robiony jako bezpośredni zamiennik wu-ftpd. Pełna | |
96 | dokumentacja jest dostępna on-line pod <http://www.proftpd.org/> | |
97 | włącznie z dokumentacją dotyczącą konfigurowania. | |
3a652411 | 98 | |
840f54f1 JR |
99 | %description -l pt_BR.UTF-8 |
100 | O ProFTPD é um servidor FTP altamente configurável para sistemas | |
a7f94b1a | 101 | operacionais Unix. |
3a652411 | 102 | |
840f54f1 JR |
103 | É projetado para ser um substituto direto para o wu-ftpd. A |
104 | documentação completa está disponível em <http://www.proftpd.org/>, | |
105 | incluindo o manual de referência para as diretivas de configuração do | |
3a652411 | 106 | servidor. |
0e899110 ER |
107 | |
108 | %package common | |
109 | Summary: PROfessional FTP Daemon with apache-like configuration syntax - common files | |
89efc142 TP |
110 | Summary(pl.UTF-8): PROfesionalny serwer FTP - wspólne pliki |
111 | Group: Networking/Daemons | |
0e899110 ER |
112 | Requires(post): awk |
113 | Requires(post): fileutils | |
0e899110 ER |
114 | Obsoletes: proftpd < 0:1.2.2rc1-3 |
115 | ||
116 | %description common | |
a7f94b1a | 117 | ProFTPD is a highly configurable FTP daemon for Unix and Unix-like |
64843696 | 118 | operating systems. ProFTPD is designed to be somewhat of a "drop-in" |
3915e5da | 119 | replacement for wu-ftpd. Full online documentation is available at |
c4b4ddf1 | 120 | <http://www.proftpd.org/>, including a server configuration directive |
3915e5da | 121 | reference manual. |
12250d98 | 122 | |
840f54f1 | 123 | %description common -l es.UTF-8 |
a62be9f3 | 124 | ProFTPD es un servidor FTP altamente configurable para sistemas |
a7f94b1a | 125 | operativos Unix. Está proyectado para ser un substituto directo al |
840f54f1 | 126 | wu-ftpd. La documentación completa está disponible en |
a62be9f3 | 127 | <http://www.proftpd.org/>, incluido el manual de referencia para las |
840f54f1 | 128 | directivas de configuración del servidor. |
c4b4ddf1 | 129 | |
840f54f1 JR |
130 | %description common -l pl.UTF-8 |
131 | ProFTPD jest wysoce konfigurowalnym serwerem FTP dla systemów Unix. | |
132 | ProFTPD jest robiony jako bezpośredni zamiennik wu-ftpd. Pełna | |
133 | dokumentacja jest dostępna on-line pod <http://www.proftpd.org/> | |
134 | włącznie z dokumentacją dotyczącą konfigurowania. | |
0e899110 | 135 | |
840f54f1 JR |
136 | %description common -l pt_BR.UTF-8 |
137 | O ProFTPD é um servidor FTP altamente configurável para sistemas | |
a7f94b1a | 138 | operacionais Unix. |
a62be9f3 | 139 | |
840f54f1 JR |
140 | É projetado para ser um substituto direto para o wu-ftpd. A |
141 | documentação completa está disponível em <http://www.proftpd.org/>, | |
142 | incluindo o manual de referência para as diretivas de configuração do | |
a62be9f3 | 143 | servidor. |
d815f4e3 | 144 | |
15a3b9cf JR |
145 | %package inetd |
146 | Summary: inetd configs for proftpd | |
8529003f | 147 | Summary(pl.UTF-8): Pliki konfiguracyjne do użycia proftpd poprzez inetd |
89efc142 | 148 | Group: Networking/Daemons |
16865efe JB |
149 | Requires(post): fileutils |
150 | Requires(post): grep | |
8eb57af0 ER |
151 | Requires(post): sed >= 4.0 |
152 | Requires(triggerpostun): sed >= 4.0 | |
e6b0aff7 ER |
153 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
154 | Requires: rc-inetd | |
d8cfd64c | 155 | Provides: ftpserver |
af998dea | 156 | Provides: proftpd = %{epoch}:%{version}-%{release} |
d8cfd64c AF |
157 | Obsoletes: anonftp |
158 | Obsoletes: bftpd | |
159 | Obsoletes: ftpd-BSD | |
af998dea | 160 | Obsoletes: ftpserver |
79b434cd | 161 | Obsoletes: glftpd |
d8cfd64c | 162 | Obsoletes: heimdal-ftpd |
077db6cc | 163 | Obsoletes: krb5-ftpd |
d8cfd64c | 164 | Obsoletes: linux-ftpd |
c9f4d6dc | 165 | Obsoletes: muddleftpd |
af998dea | 166 | Obsoletes: proftpd-standalone |
d8cfd64c | 167 | Obsoletes: pure-ftpd |
c9f4d6dc | 168 | Obsoletes: troll-ftpd |
43f51e83 | 169 | Obsoletes: vsftpd |
d8cfd64c | 170 | Obsoletes: wu-ftpd |
0fba9130 | 171 | Conflicts: man-pages < 1.51 |
a62be9f3 | 172 | Conflicts: rpm < 4.4.2-0.2 |
15a3b9cf JR |
173 | |
174 | %description inetd | |
175 | ProFTPD configs for running from inetd. | |
176 | ||
840f54f1 | 177 | %description inetd -l pl.UTF-8 |
752e9a49 PG |
178 | Pliki konfiguracyjna ProFTPD do startowania demona poprzez inetd. |
179 | ||
15a3b9cf | 180 | %package standalone |
c65518c5 | 181 | Summary: Standalone daemon configs for proftpd |
8529003f | 182 | Summary(pl.UTF-8): Pliki konfiguracyjne do startowania proftpd w trybie standalone |
89efc142 | 183 | Group: Networking/Daemons |
16865efe JB |
184 | Requires(post): fileutils |
185 | Requires(post): grep | |
8eb57af0 | 186 | Requires(post): sed >= 4.0 |
e6b0aff7 | 187 | Requires(post,preun): /sbin/chkconfig |
8eb57af0 | 188 | Requires(triggerpostun): sed >= 4.0 |
e6b0aff7 ER |
189 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
190 | Requires: rc-scripts | |
d8cfd64c | 191 | Provides: ftpserver |
af998dea | 192 | Provides: proftpd = %{epoch}:%{version}-%{release} |
d8cfd64c AF |
193 | Obsoletes: anonftp |
194 | Obsoletes: bftpd | |
195 | Obsoletes: ftpd-BSD | |
af998dea | 196 | Obsoletes: ftpserver |
79b434cd | 197 | Obsoletes: glftpd |
d8cfd64c | 198 | Obsoletes: heimdal-ftpd |
077db6cc | 199 | Obsoletes: krb5-ftpd |
d8cfd64c | 200 | Obsoletes: linux-ftpd |
c9f4d6dc | 201 | Obsoletes: muddleftpd |
af998dea | 202 | Obsoletes: proftpd-inetd |
d8cfd64c | 203 | Obsoletes: pure-ftpd |
c9f4d6dc | 204 | Obsoletes: troll-ftpd |
43f51e83 | 205 | Obsoletes: vsftpd |
d8cfd64c | 206 | Obsoletes: wu-ftpd |
0fba9130 | 207 | Conflicts: man-pages < 1.51 |
a62be9f3 | 208 | Conflicts: rpm < 4.4.2-0.2 |
15a3b9cf JR |
209 | |
210 | %description standalone | |
211 | ProFTPD configs for running as a standalone daemon. | |
212 | ||
840f54f1 | 213 | %description standalone -l pl.UTF-8 |
d815f4e3 | 214 | Pliki konfiguracyjne ProFTPD do startowania demona w trybie |
215 | standalone. | |
752e9a49 | 216 | |
a62be9f3 ER |
217 | %package devel |
218 | Summary: Header files ProFTPD | |
8529003f | 219 | Summary(pl.UTF-8): Pliki nagłówkowe ProFTPD |
a62be9f3 | 220 | Group: Development/Libraries |
6f8e0c48 | 221 | Requires: acl-devel |
a62be9f3 ER |
222 | |
223 | %description devel | |
224 | This is the package containing the header files for ProFTPD. | |
225 | ||
840f54f1 JR |
226 | %description devel -l pl.UTF-8 |
227 | Ten pakiet zawiera pliki nagłówkowe ProFTPD | |
018e0f25 | 228 | |
e37dae10 ER |
229 | %package anonftp |
230 | Summary: Anonymous FTP config for ProFTPD | |
8529003f | 231 | Summary(pl.UTF-8): Konfiguracja anonimowego FTP dla ProFTPD |
89efc142 | 232 | Group: Networking/Daemons |
e37dae10 ER |
233 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
234 | ||
235 | %description anonftp | |
e3db86e8 JB |
236 | Anonymous FTP config for ProFTPD. |
237 | ||
840f54f1 | 238 | %description anonftp -l pl.UTF-8 |
e3db86e8 | 239 | Konfiguracja anonimowego FTP dla ProFTPD. |
e37dae10 | 240 | |
a62be9f3 ER |
241 | %package mod_auth_pam |
242 | Summary: ProFTPD PAM auth module | |
8529003f | 243 | Summary(pl.UTF-8): Moduł uwierzytelnienia PAM dla ProFTPD |
89efc142 | 244 | Group: Networking/Daemons |
a62be9f3 ER |
245 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
246 | Requires: pam >= 0.79.0 | |
247 | ||
248 | %description mod_auth_pam | |
249 | PAM authentication method for ProFTPD. | |
250 | ||
840f54f1 | 251 | %description mod_auth_pam -l pl.UTF-8 |
018e0f25 JB |
252 | Metoda uwierzytelnienia PAM dla ProFTPD. |
253 | ||
a62be9f3 ER |
254 | %package mod_ldap |
255 | Summary: ProFTPD OpenLDAP module | |
8529003f | 256 | Summary(pl.UTF-8): Moduł OpenLDAP dla ProFTPD |
89efc142 | 257 | Group: Networking/Daemons |
a62be9f3 ER |
258 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
259 | ||
260 | %description mod_ldap | |
a62be9f3 ER |
261 | mod_ldap provides LDAP authentication support for ProFTPD. It supports |
262 | many features useful in "toaster" environments such as default UID/GID | |
263 | and autocreation/autogeneration of home directories. | |
264 | ||
840f54f1 JR |
265 | %description mod_ldap -l pl.UTF-8 |
266 | mod_ldap dodaje obsługę uwierzytelnienia LDAP do ProFTPD. Obsługuje | |
267 | wiele cech przydatnych w środowiskach "tosterowych", takich jak | |
268 | domyślny UID/GID i automatyczne tworzenie/generowanie katalogów | |
018e0f25 JB |
269 | domowych. |
270 | ||
a62be9f3 ER |
271 | %package mod_quotatab |
272 | Summary: ProFTPD quotatab module | |
8529003f | 273 | Summary(pl.UTF-8): Moduł quotatab dla ProFTPD |
89efc142 | 274 | Group: Networking/Daemons |
a62be9f3 ER |
275 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
276 | ||
277 | %description mod_quotatab | |
278 | A module for managing FTP byte/file quotas via centralized tables. | |
279 | ||
840f54f1 JR |
280 | %description mod_quotatab -l pl.UTF-8 |
281 | Moduł do zarządzania ograniczeniami bajtów/plików FTP poprzez | |
018e0f25 JB |
282 | scentralizowane tabele. |
283 | ||
a62be9f3 ER |
284 | %package mod_quotatab_file |
285 | Summary: ProFTPD quotatab file module | |
8529003f | 286 | Summary(pl.UTF-8): Moduł quotatab_file dla ProFTPD |
89efc142 | 287 | Group: Networking/Daemons |
a62be9f3 ER |
288 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
289 | Requires: %{name}-mod_quotatab = %{epoch}:%{version}-%{release} | |
290 | ||
291 | %description mod_quotatab_file | |
292 | A mod_quotatab sub-module for managing quota data via file-based | |
293 | tables. | |
294 | ||
840f54f1 JR |
295 | %description mod_quotatab_file -l pl.UTF-8 |
296 | Podmoduł mod_quotatab do zarządzania danymi o ograniczeniach poprzez | |
018e0f25 JB |
297 | tabele zapisane w pliku. |
298 | ||
a62be9f3 ER |
299 | %package mod_quotatab_ldap |
300 | Summary: ProFTPD quotatab ldap module | |
8529003f | 301 | Summary(pl.UTF-8): Moduł quotatab_ldap dla ProFTPD |
89efc142 | 302 | Group: Networking/Daemons |
a62be9f3 ER |
303 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
304 | Requires: %{name}-mod_ldap = %{epoch}:%{version}-%{release} | |
305 | Requires: %{name}-mod_quotatab = %{epoch}:%{version}-%{release} | |
306 | ||
307 | %description mod_quotatab_ldap | |
308 | A mod_quotatab sub-module for obtaining quota information from an LDAP | |
309 | directory. | |
310 | ||
840f54f1 JR |
311 | %description mod_quotatab_ldap -l pl.UTF-8 |
312 | Podmoduł mod_quotatab do pobierania informacji o ograniczeniach z | |
018e0f25 JB |
313 | katalogu LDAP. |
314 | ||
a62be9f3 ER |
315 | %package mod_quotatab_sql |
316 | Summary: ProFTPD quotatab sql module | |
8529003f | 317 | Summary(pl.UTF-8): Moduł quotatab_sql dla ProFTPD |
89efc142 | 318 | Group: Networking/Daemons |
a62be9f3 ER |
319 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
320 | Requires: %{name}-mod_quotatab = %{epoch}:%{version}-%{release} | |
321 | Requires: %{name}-mod_sql = %{epoch}:%{version}-%{release} | |
322 | ||
323 | %description mod_quotatab_sql | |
324 | A mod_quotatab sub-module for managing quota data via SQL-based | |
325 | tables. | |
326 | ||
840f54f1 JR |
327 | %description mod_quotatab_sql -l pl.UTF-8 |
328 | Podmoduł mod_quotatab do zarządzania danymi o ograniczeniach poprzez | |
018e0f25 JB |
329 | tabele SQL. |
330 | ||
a62be9f3 | 331 | %package mod_ratio |
018e0f25 | 332 | Summary: ProFTPD ratio module |
8529003f | 333 | Summary(pl.UTF-8): Moduł ratio dla ProFTPD |
89efc142 | 334 | Group: Networking/Daemons |
a62be9f3 ER |
335 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
336 | ||
337 | %description mod_ratio | |
338 | Support upload/download ratios. | |
339 | ||
840f54f1 JR |
340 | %description mod_ratio -l pl.UTF-8 |
341 | Obsługa współczynników upload/download. | |
018e0f25 | 342 | |
a62be9f3 ER |
343 | %package mod_readme |
344 | Summary: ProFTPD readme module | |
8529003f | 345 | Summary(pl.UTF-8): Moduł readme dla ProFTPD |
89efc142 | 346 | Group: Networking/Daemons |
a62be9f3 ER |
347 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
348 | ||
349 | %description mod_readme | |
350 | "README" file support. | |
351 | ||
840f54f1 JR |
352 | %description mod_readme -l pl.UTF-8 |
353 | Obsługa pliku "README". | |
018e0f25 | 354 | |
6cf064e5 | 355 | %package mod_rewrite |
356 | Summary: ProFTPD rewrite module | |
357 | Summary(pl.UTF-8): Moduł rewrite dla ProFTPD | |
89efc142 | 358 | Group: Networking/Daemons |
6cf064e5 | 359 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
360 | ||
361 | %description mod_rewrite | |
362 | Runtime rewrite engine. | |
363 | ||
debd9bf3 JB |
364 | %description mod_rewrite -l pl.UTF-8 |
365 | Silnik przepisujący adresy w locie. | |
366 | ||
a62be9f3 ER |
367 | %package mod_sql |
368 | Summary: ProFTPD SQL support module | |
8529003f | 369 | Summary(pl.UTF-8): Moduł obsługi SQL dla ProFTPD |
89efc142 | 370 | Group: Networking/Daemons |
a62be9f3 ER |
371 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
372 | ||
373 | %description mod_sql | |
374 | This module provides the necessary support for SQL based | |
375 | authentication, logging and other features as required. | |
376 | ||
840f54f1 JR |
377 | %description mod_sql -l pl.UTF-8 |
378 | Ten moduł dodaje obsługę SQL potrzebną do uwierzytelniania, logowania | |
379 | i innych możliwości opartych o SQL. | |
018e0f25 | 380 | |
a62be9f3 ER |
381 | %package mod_sql_mysql |
382 | Summary: ProFTPD sql mysql module | |
8529003f | 383 | Summary(pl.UTF-8): Moduł sql_mysql dla ProFTPD |
89efc142 | 384 | Group: Networking/Daemons |
a62be9f3 ER |
385 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
386 | Requires: %{name}-mod_sql = %{epoch}:%{version}-%{release} | |
82547e9c | 387 | |
a62be9f3 ER |
388 | %description mod_sql_mysql |
389 | Support for connecting to MySQL databases. | |
390 | ||
840f54f1 JR |
391 | %description mod_sql_mysql -l pl.UTF-8 |
392 | Obsługa łączenia się z bazami danych MySQL. | |
018e0f25 | 393 | |
a62be9f3 ER |
394 | %package mod_sql_postgres |
395 | Summary: ProFTPD sql postgres module | |
8529003f | 396 | Summary(pl.UTF-8): Moduł sql_postgres dla ProFTPD |
89efc142 | 397 | Group: Networking/Daemons |
a62be9f3 ER |
398 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
399 | Requires: %{name}-mod_sql = %{epoch}:%{version}-%{release} | |
400 | ||
401 | %description mod_sql_postgres | |
018e0f25 JB |
402 | Support for connecting to PostgreSQL databases. |
403 | ||
840f54f1 JR |
404 | %description mod_sql_postgres -l pl.UTF-8 |
405 | Obsługa łączenia się z bazami danych PostgreSQL. | |
a62be9f3 ER |
406 | |
407 | %package mod_tls | |
408 | Summary: ProFTPD TLS support | |
8529003f | 409 | Summary(pl.UTF-8): Obsługa TLS dla ProFTPD |
89efc142 | 410 | Group: Networking/Daemons |
a62be9f3 ER |
411 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
412 | ||
413 | %description mod_tls | |
414 | An RFC2228 SSL/TLS module for ProFTPD. | |
415 | ||
840f54f1 JR |
416 | %description mod_tls -l pl.UTF-8 |
417 | Moduł SSL/TLS zgodny z RFC2228 dla ProFTPD. | |
018e0f25 | 418 | |
a62be9f3 | 419 | %package mod_wrap |
018e0f25 | 420 | Summary: ProFTPD interface to libwrap |
8529003f | 421 | Summary(pl.UTF-8): Interfejs ProFTPD do libwrap |
89efc142 | 422 | Group: Networking/Daemons |
a62be9f3 ER |
423 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
424 | Requires: libwrap | |
425 | ||
426 | %description mod_wrap | |
427 | It enables the daemon to use the common tcpwrappers access control | |
428 | library while in standalone mode, and in a very configurable manner. | |
429 | ||
430 | Many programs will automatically add entries in the common allow/deny | |
431 | files, and use of this module will allow a ProFTPD daemon running in | |
432 | standalone mode to adapt as these entries are added. The portsentry | |
433 | program does this, for example: when illegal access is attempted, it | |
434 | will add hosts to the /etc/hosts.deny file. | |
435 | ||
840f54f1 JR |
436 | %description mod_wrap -l pl.UTF-8 |
437 | Ten pakiet pozwala demonowi używać wspólnej biblioteki kontroli | |
438 | dostępu tcpwrappers w trybie samodzielnym w bardzo wygodny sposób. | |
018e0f25 | 439 | |
840f54f1 JR |
440 | Wiele programów automatycznie dodaje wpisy we wspólnych plikach |
441 | allow/deny, a użycie tego modułu pozwala demonowi ProFTPD działającemu | |
442 | w trybie samodzielnym adaptować te wpisy w miarę dodawania. Robi tak | |
443 | na przykład program portsentry: przy próbie niedozwolonego dostępu | |
018e0f25 JB |
444 | dodaje hosty do pliku /etc/hosts.deny. |
445 | ||
a62be9f3 | 446 | %prep |
3fd10053 | 447 | %setup -q -n %{name}-%{version}%{?_rc} -a1 |
b87d6462 | 448 | %patch0 -p1 |
5cb6df78 | 449 | %patch1 -p1 |
b87d6462 MW |
450 | %patch2 -p1 |
451 | %patch3 -p1 | |
f8c6b2a1 | 452 | |
3fd10053 JR |
453 | # mod_clamav |
454 | patch -p0 < mod_clamav-%{mod_clamav_version}/proftpd.patch | |
455 | cp -a mod_clamav-%{mod_clamav_version}/*.{c,h} contrib/ | |
456 | ||
69a15f0d | 457 | cp -f /usr/share/automake/config.sub . |
9c6ec5e2 ER |
458 | |
459 | # cleanup backups after patching | |
460 | find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f | |
461 | ||
462 | %build | |
41af587d | 463 | %{__autoconf} |
0ef9be5d ER |
464 | |
465 | MODULES=" | |
d13a2fd3 TP |
466 | mod_auth_file |
467 | mod_ident | |
0ef9be5d ER |
468 | mod_ratio |
469 | mod_readme | |
6cf064e5 | 470 | mod_rewrite |
a62be9f3 | 471 | mod_wrap |
d13a2fd3 TP |
472 | mod_facl |
473 | mod_ifsession | |
0ef9be5d | 474 | %{?with_ssl:mod_tls} |
0ef9be5d ER |
475 | %{?with_pam:mod_auth_pam} |
476 | %{?with_ldap:mod_ldap} | |
477 | %{?with_quotafile:mod_quotatab mod_quotatab_file} | |
478 | %{?with_quotaldap:mod_quotatab mod_quotatab_ldap} | |
479 | %{?with_quotamysql:mod_quotatab mod_quotatab_sql} | |
480 | %{?with_quotapgsql:mod_quotatab mod_quotatab_sql} | |
0ef9be5d ER |
481 | %{?with_mysql:mod_sql mod_sql_mysql} |
482 | %{?with_pgsql:mod_sql mod_sql_postgres} | |
483 | " | |
484 | ||
a62be9f3 | 485 | MODARG=$(echo $MODULES | tr ' ' '\n' | sort -u | xargs | tr ' ' ':') |
3531a682 | 486 | %configure \ |
367a54d9 | 487 | --with-includes=/usr/include/ncurses%{?with_mysql::%{_includedir}/mysql} \ |
3fb73282 | 488 | --disable-strip \ |
2c1da1ca | 489 | --enable-buffer-size=4096 \ |
d13a2fd3 | 490 | --disable-auth-file \ |
e95a6f1e | 491 | --enable-autoshadow \ |
a62be9f3 | 492 | --enable-ctrls \ |
d2bb21b9 | 493 | --enable-nls \ |
a62be9f3 | 494 | --enable-dso \ |
2e58659a | 495 | %{?with_ipv6:--enable-ipv6} \ |
a62be9f3 | 496 | --enable-sendfile \ |
2e58659a | 497 | %{!?with_ssl:--disable-tls} \ |
a62be9f3 | 498 | --with-shared=$MODARG \ |
3fd10053 | 499 | --with-modules=mod_clamav |
060127a7 | 500 | |
cf9db571 | 501 | %{__make} -j1 |
12250d98 | 502 | |
503 | %install | |
504 | rm -rf $RPM_BUILD_ROOT | |
b1cddbe1 | 505 | install -d $RPM_BUILD_ROOT/etc/{pam.d,security,sysconfig/rc-inetd,rc.d/init.d} \ |
3fd10053 | 506 | $RPM_BUILD_ROOT/var/{lib/ftp/pub/Incoming,log,run/proftpd} \ |
a62be9f3 | 507 | $RPM_BUILD_ROOT%{_sysconfdir}/conf.d \ |
48217a3f JR |
508 | $RPM_BUILD_ROOT%{_includedir}/%{name} \ |
509 | $RPM_BUILD_ROOT/usr/lib/tmpfiles.d | |
42d1ba60 | 510 | |
a294d837 PG |
511 | %{__make} install \ |
512 | DESTDIR=$RPM_BUILD_ROOT \ | |
c4b4ddf1 ER |
513 | INSTALL_USER=%(id -u) \ |
514 | INSTALL_GROUP=%(id -g) | |
f8c6b2a1 | 515 | |
a62be9f3 | 516 | rm $RPM_BUILD_ROOT%{_sbindir}/in.proftpd |
efae4c7e | 517 | |
3fd10053 | 518 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir} |
a62be9f3 | 519 | install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/mod_auth_pam.conf |
d13a2fd3 TP |
520 | MODULES=" |
521 | mod_auth_file | |
522 | mod_ident | |
523 | mod_ratio | |
524 | mod_readme | |
525 | mod_rewrite | |
526 | mod_wrap | |
527 | %{?with_ldap:mod_ldap} | |
528 | %{?with_quotafile:mod_quotatab mod_quotatab_file} | |
529 | %{?with_quotaldap:mod_quotatab mod_quotatab_ldap} | |
530 | %{?with_quotamysql:mod_quotatab mod_quotatab_sql} | |
531 | %{?with_quotapgsql:mod_quotatab mod_quotatab_sql} | |
532 | %{?with_mysql:mod_sql mod_sql_mysql} | |
533 | %{?with_pgsql:mod_sql mod_sql_postgres} | |
534 | " | |
535 | for module in $MODULES; do | |
536 | echo "LoadModule $module.c" > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/$module.conf | |
537 | done | |
1af975e5 | 538 | install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/mod_tls.conf |
367a54d9 | 539 | install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/anonftp.conf |
86dc1cff | 540 | install %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/mod_clamav.conf |
a62be9f3 | 541 | |
2e58659a | 542 | %{?with_pam:install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/ftp} |
3915e5da | 543 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd |
15a3b9cf JR |
544 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/proftpd |
545 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/proftpd | |
66721136 | 546 | install contrib/xferstats.holger-preiss $RPM_BUILD_ROOT%{_bindir}/xferstat |
e95a6f1e | 547 | |
372155e4 | 548 | bzip2 -dc %{SOURCE7} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
0fba9130 | 549 | |
3915e5da | 550 | :> $RPM_BUILD_ROOT%{_sysconfdir}/ftpusers.default |
551 | :> $RPM_BUILD_ROOT%{_sysconfdir}/ftpusers | |
e95a6f1e | 552 | |
48217a3f JR |
553 | install %{SOURCE13} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf |
554 | ||
a62be9f3 | 555 | # only for -inetd package? |
c9f4d6dc | 556 | ln -sf proftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd |
efae4c7e | 557 | |
91058308 | 558 | :> $RPM_BUILD_ROOT/etc/security/blacklist.ftp |
559 | ||
d13a2fd3 TP |
560 | rm $RPM_BUILD_ROOT%{_libexecdir}/*.a |
561 | rm $RPM_BUILD_ROOT%{_libexecdir}/*.la | |
a62be9f3 | 562 | |
b1cddbe1 | 563 | rm -f $RPM_BUILD_ROOT%{_mandir}/ftpusers-path.diff* |
9c6ec5e2 | 564 | cp -aL include/* config.h $RPM_BUILD_ROOT%{_includedir}/%{name} |
acb6a758 | 565 | |
a6fa6631 JB |
566 | %clean |
567 | rm -rf $RPM_BUILD_ROOT | |
e95a6f1e | 568 | |
4498344e | 569 | %post common |
16865efe | 570 | umask 027 |
8eb57af0 | 571 | awk -F: '{ if (($3 < 500) && ($1 != "ftp")) print $1; }' < /etc/passwd >> %{_sysconfdir}/ftpusers.default |
3915e5da | 572 | if [ ! -f %{_sysconfdir}/ftpusers ]; then |
16865efe | 573 | cp -f %{_sysconfdir}/ftpusers.default %{_sysconfdir}/ftpusers |
f2119458 | 574 | fi |
4d723dc9 | 575 | |
a62be9f3 | 576 | %posttrans inetd |
15a3b9cf | 577 | if grep -iEqs "^ServerType[[:space:]]+standalone" %{_sysconfdir}/proftpd.conf ; then |
8eb57af0 ER |
578 | cp -f %{_sysconfdir}/proftpd.conf{,.rpmorig} |
579 | sed -i -e 's/^ServerType[[:space:]]\+standalone/ServerType inetd/g' %{_sysconfdir}/proftpd.conf | |
15a3b9cf | 580 | fi |
af998dea | 581 | %service -q rc-inetd reload |
5178b82d | 582 | |
15a3b9cf | 583 | %postun inetd |
af998dea ER |
584 | if [ "$1" = "0" ]; then |
585 | %service -q rc-inetd reload | |
29aece6c | 586 | fi |
12250d98 | 587 | |
a62be9f3 | 588 | %posttrans standalone |
15a3b9cf | 589 | if grep -iEqs "^ServerType[[:space:]]+inetd" %{_sysconfdir}/proftpd.conf ; then |
8eb57af0 ER |
590 | cp -f %{_sysconfdir}/proftpd.conf{,.rpmorig} |
591 | sed -i -e 's/^ServerType[[:space:]]\+inetd/ServerType standalone/g' %{_sysconfdir}/proftpd.conf | |
15a3b9cf | 592 | fi |
af998dea ER |
593 | /sbin/chkconfig --add proftpd |
594 | %service proftpd restart "ProFTPD daemon" | |
15a3b9cf JR |
595 | |
596 | %preun standalone | |
f7d997ba | 597 | if [ "$1" = "0" ]; then |
af998dea | 598 | %service proftpd stop |
f7d997ba | 599 | /sbin/chkconfig --del proftpd |
29aece6c | 600 | fi |
15a3b9cf | 601 | |
a60cdb30 JR |
602 | %triggerin standalone -- pam |
603 | # restart proftpd if pam is upgraded | |
604 | # (proftpd is linked with old libpam but tries to open modules linked with new libpam) | |
605 | if [ "$2" != 1 ]; then | |
606 | %service -q proftpd restart | |
607 | fi | |
608 | ||
a62be9f3 ER |
609 | # macro called at module post scriptlet |
610 | %define module_post \ | |
611 | if [ "$1" = "1" ]; then \ | |
612 | if grep -iEqs "^ServerType[[:space:]]+inetd" %{_sysconfdir}/proftpd.conf; then \ | |
613 | %service -q rc-inetd reload \ | |
614 | elif grep -iEqs "^ServerType[[:space:]]+standalone" %{_sysconfdir}/proftpd.conf; then \ | |
615 | %service -q proftpd restart \ | |
616 | fi \ | |
617 | fi | |
618 | ||
619 | # macro called at module postun scriptlet | |
620 | %define module_postun \ | |
621 | if [ "$1" = "0" ]; then \ | |
622 | if grep -iEqs "^ServerType[[:space:]]+inetd" %{_sysconfdir}/proftpd.conf; then \ | |
623 | %service -q rc-inetd reload \ | |
624 | elif grep -iEqs "^ServerType[[:space:]]+standalone" %{_sysconfdir}/proftpd.conf; then \ | |
625 | %service -q proftpd restart \ | |
626 | fi \ | |
627 | fi | |
628 | ||
629 | # it's sooo annoying to write them | |
630 | %define module_scripts() \ | |
631 | %post %1 \ | |
632 | %module_post \ | |
633 | \ | |
634 | %postun %1 \ | |
635 | %module_postun | |
636 | ||
637 | %module_scripts mod_auth_pam | |
638 | %module_scripts mod_ldap | |
639 | %module_scripts mod_quotatab | |
640 | %module_scripts mod_quotatab_file | |
641 | %module_scripts mod_quotatab_ldap | |
642 | %module_scripts mod_quotatab_sql | |
643 | %module_scripts mod_ratio | |
644 | %module_scripts mod_readme | |
6cf064e5 | 645 | %module_scripts mod_rewrite |
a62be9f3 ER |
646 | %module_scripts mod_sql |
647 | %module_scripts mod_sql_mysql | |
648 | %module_scripts mod_sql_postgres | |
649 | %module_scripts mod_tls | |
650 | %module_scripts mod_wrap | |
651 | ||
695a30e2 | 652 | %files common |
060127a7 | 653 | %defattr(644,root,root,755) |
1ea19330 | 654 | %doc sample-configurations/*.conf CREDITS ChangeLog NEWS RELEASE_NOTES |
a62be9f3 | 655 | %doc README README.capabilities README.classes README.controls README.IPv6 |
d03b6eea | 656 | %doc README.modules |
2a67e8f1 | 657 | %doc doc/*.html doc/contrib doc/howto doc/modules |
a62be9f3 | 658 | %dir %attr(750,root,ftp) %dir %{_sysconfdir} |
d8cfd64c | 659 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf |
ebc84569 PG |
660 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/ftpusers |
661 | %attr(640,root,root) %{_sysconfdir}/ftpusers.default | |
a62be9f3 | 662 | %dir %attr(750,root,root) %{_sysconfdir}/conf.d |
d13a2fd3 TP |
663 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_auth_file.conf |
664 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_ident.conf | |
86dc1cff | 665 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_clamav.conf |
90d88248 | 666 | #%attr(640,root,root) %ghost /var/log/* |
7118a494 | 667 | %attr(755,root,root) %{_bindir}/* |
6c45e3b3 | 668 | %attr(755,root,root) %{_sbindir}/* |
d13a2fd3 TP |
669 | %dir %{_libexecdir} |
670 | %attr(755,root,root) %{_libexecdir}/mod_auth_file.so | |
671 | %attr(755,root,root) %{_libexecdir}/mod_facl.so | |
672 | %attr(755,root,root) %{_libexecdir}/mod_ident.so | |
673 | %attr(755,root,root) %{_libexecdir}/mod_ifsession.so | |
86e5ce30 | 674 | %dir %{_localstatedir}/proftpd |
48217a3f | 675 | /usr/lib/tmpfiles.d/%{name}.conf |
65e2b723 JR |
676 | %{_mandir}/man5/* |
677 | %lang(ja) %{_mandir}/ja/man5/ftpusers* | |
678 | %lang(pl) %{_mandir}/pl/man5/ftpusers* | |
679 | %lang(pt_BR) %{_mandir}/pt_BR/man5/ftpusers* | |
680 | %lang(ru) %{_mandir}/ru/man5/ftpusers* | |
0fba9130 | 681 | %{_mandir}/man[18]/* |
372155e4 TO |
682 | %dir /var/lib/ftp |
683 | %dir /var/lib/ftp/pub | |
5b54e24d | 684 | %attr(711,ftp,ftp) %dir /var/lib/ftp/pub/Incoming |
15a3b9cf JR |
685 | |
686 | %files inetd | |
687 | %defattr(644,root,root,755) | |
15a3b9cf JR |
688 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/ftpd |
689 | ||
690 | %files standalone | |
691 | %defattr(644,root,root,755) | |
acb6a758 | 692 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/proftpd |
15a3b9cf | 693 | %attr(754,root,root) /etc/rc.d/init.d/proftpd |
a62be9f3 ER |
694 | |
695 | %files devel | |
696 | %defattr(644,root,root,755) | |
697 | %{_includedir}/%{name} | |
32ba901e | 698 | %{_pkgconfigdir}/%{name}.pc |
a62be9f3 | 699 | |
e37dae10 ER |
700 | %files anonftp |
701 | %defattr(644,root,root,755) | |
702 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/anonftp.conf | |
703 | ||
1dba37cb | 704 | %if %{with pam} |
a62be9f3 ER |
705 | %files mod_auth_pam |
706 | %defattr(644,root,root,755) | |
707 | %doc README.PAM | |
708 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/* | |
02a964e1 | 709 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.ftp |
a62be9f3 ER |
710 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_auth_pam.conf |
711 | %attr(755,root,root) %{_libexecdir}/mod_auth_pam.so | |
1dba37cb | 712 | %endif |
a62be9f3 | 713 | |
1dba37cb | 714 | %if %{with ldap} |
a62be9f3 ER |
715 | %files mod_ldap |
716 | %defattr(644,root,root,755) | |
717 | %doc README.LDAP | |
718 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_ldap.conf | |
719 | %attr(755,root,root) %{_libexecdir}/mod_ldap.so | |
1dba37cb | 720 | %endif |
a62be9f3 ER |
721 | |
722 | %files mod_quotatab | |
723 | %defattr(644,root,root,755) | |
724 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_quotatab.conf | |
725 | %attr(755,root,root) %{_libexecdir}/mod_quotatab.so | |
726 | ||
1dba37cb | 727 | %if %{with quotafile} |
a62be9f3 ER |
728 | %files mod_quotatab_file |
729 | %defattr(644,root,root,755) | |
730 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_quotatab_file.conf | |
731 | %attr(755,root,root) %{_libexecdir}/mod_quotatab_file.so | |
1dba37cb | 732 | %endif |
a62be9f3 | 733 | |
1dba37cb | 734 | %if %{with quotaldap} |
a62be9f3 ER |
735 | %files mod_quotatab_ldap |
736 | %defattr(644,root,root,755) | |
737 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_quotatab_ldap.conf | |
738 | %attr(755,root,root) %{_libexecdir}/mod_quotatab_ldap.so | |
1dba37cb | 739 | %endif |
a62be9f3 | 740 | |
1dba37cb | 741 | %if %{with quotamysql} || %{with quotapgsql} |
a62be9f3 ER |
742 | %files mod_quotatab_sql |
743 | %defattr(644,root,root,755) | |
744 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_quotatab_sql.conf | |
745 | %attr(755,root,root) %{_libexecdir}/mod_quotatab_sql.so | |
1dba37cb | 746 | %endif |
a62be9f3 ER |
747 | |
748 | %files mod_ratio | |
749 | %defattr(644,root,root,755) | |
2a67e8f1 | 750 | %doc contrib/README.ratio |
a62be9f3 ER |
751 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_ratio.conf |
752 | %attr(755,root,root) %{_libexecdir}/mod_ratio.so | |
753 | ||
754 | %files mod_readme | |
755 | %defattr(644,root,root,755) | |
756 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_readme.conf | |
757 | %attr(755,root,root) %{_libexecdir}/mod_readme.so | |
758 | ||
6cf064e5 | 759 | %files mod_rewrite |
760 | %defattr(644,root,root,755) | |
761 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_rewrite.conf | |
762 | %attr(755,root,root) %{_libexecdir}/mod_rewrite.so | |
763 | ||
1dba37cb | 764 | %if %{with mysql} || %{with pgsql} |
a62be9f3 ER |
765 | %files mod_sql |
766 | %defattr(644,root,root,755) | |
767 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_sql.conf | |
768 | %attr(755,root,root) %{_libexecdir}/mod_sql.so | |
1dba37cb | 769 | %endif |
a62be9f3 | 770 | |
1dba37cb | 771 | %if %{with mysql} |
a62be9f3 ER |
772 | %files mod_sql_mysql |
773 | %defattr(644,root,root,755) | |
774 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_sql_mysql.conf | |
775 | %attr(755,root,root) %{_libexecdir}/mod_sql_mysql.so | |
1dba37cb | 776 | %endif |
a62be9f3 | 777 | |
1dba37cb | 778 | %if %{with pgsql} |
a62be9f3 ER |
779 | %files mod_sql_postgres |
780 | %defattr(644,root,root,755) | |
781 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_sql_postgres.conf | |
782 | %attr(755,root,root) %{_libexecdir}/mod_sql_postgres.so | |
1dba37cb | 783 | %endif |
a62be9f3 ER |
784 | |
785 | %files mod_tls | |
786 | %defattr(644,root,root,755) | |
787 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_tls.conf | |
788 | %attr(755,root,root) %{_libexecdir}/mod_tls.so | |
789 | ||
790 | %files mod_wrap | |
791 | %defattr(644,root,root,755) | |
792 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_wrap.conf | |
793 | %attr(755,root,root) %{_libexecdir}/mod_wrap.so |