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