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