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