Debian Codegraph @

contrib/dist/rpm/proftpd.spec

raw
1 # Module List:
2 #
3 # Dynamic modules with no/minimal additional build or runtime dependencies, always built
4 # mod_auth_pam
5 # mod_ban
6 # mod_copy
7 # mod_ctrls_admin
8 # mod_deflate
9 # mod_dnsbl
10 # mod_dynmasq
11 # mod_exec
12 # mod_facl
13 # mod_ifsession
14 # mod_load
15 # mod_quotatab
16 # mod_quotatab_file
17 # mod_quotatab_radius
18 # mod_quotatab_sql
19 # mod_radius
20 # mod_ratio
21 # mod_readme
22 # mod_rewrite
23 # mod_shaper
24 # mod_site_misc
25 # mod_snmp
26 # mod_sql
27 # mod_sql_passwd
28 # mod_wrap2
29 # mod_wrap2_file
30 # mod_wrap2_redis
31 # mod_wrap2_sql
32 # mod_unique_id
33 #
34 # Dynamic modules with additional build or runtime dependencies, not built by default
35 #
36 # mod_auth_otp (needs openssl [--with ssl])
37 # mod_digest (needs openssl [--with ssl])
38 # mod_geoip (needs geoip [--with geoip])
39 # mod_ldap (needs openldap [--with ldap])
40 # mod_quotatab_ldap (needs openldap [--with ldap])
41 # mod_sftp (needs openssl [--with ssl], sodium [--with sodium])
42 # mod_sftp_pam (needs openssl [--with ssl])
43 # mod_sftp_sql (needs openssl [--with ssl])
44 # mod_sql_mysql (needs mysql client libraries [--with mysql])
45 # mod_sql_sqlite (needs sqlite libraries [--with sqlite])
46 # mod_sql_postgres (needs postgresql client libraries [--with postgresql])
47 # mod_tls (needs openssl [--with ssl])
48 # mod_tls_fscache (needs openssl [--with ssl])
49 # mod_tls_shmcache (needs openssl [--with ssl])
50 # mod_wrap (needs tcp_wrappers [--with wrap])
51 #
52 # Note: ALL optional features can be enabled using --with everything
53 # RHEL5 and clones don't have suitably recent versions of pcre/libmemcached
54 # so use --with rhel5 to inhibit those features when using --with everything
55
56 %global proftpd_version 1.3.9d
57
58 # rc_version should be incremented for each RC release, and reset back to 1
59 # AFTER each stable release.
60 %global rc_version 1
61
62 # release_version should be incremented for each maint release, and reset back
63 # to 1 BEFORE starting new release cycle.
64 %global release_version 5
65
66 %if %(echo %{proftpd_version} | grep rc >/dev/null 2>&1 && echo 1 || echo 0)
67 %global rpm_version %(echo %{proftpd_version} | sed -e 's/rc.*//')
68 %global rpm_release 0.%{rc_version}.%(echo %{proftpd_version} | sed -e 's/.*rc/rc/')
69 %else
70 %global rpm_version %{proftpd_version}
71 %global rpm_release %{release_version}
72 %endif
73
74 %global usecvsversion 0%{?_with_cvs:1}
75
76 %global proftpd_cvs_version_main 1.3.9
77 %global proftpd_cvs_version_date 20150527
78
79 # Spec default assumes that a gzipped tarball is used, since nightly CVS builds,
80 # release candidates and stable/maint releases are all available in that form;
81 # to use a differently-compressed tarball, specify "srcext" at build time, e.g.
82 # rpmbuild -tb --define 'srcext .bz2' proftpd-nnn.tar.bz2
83 %{!?srcext:%global srcext .gz}
84
85 # Handle optional functionality
86 #
87 # --with everything (for all optional functionality EXCEPT mod_wrap)
88 # --with rhel5 inhibits features not available on RHEL5 and clones
89 # --with rhel6 inhibits features not available on RHEL6 and clones
90 %if 0%{?_with_everything:1}
91 %global _with_geoip 1
92 %global _with_ldap 1
93 %if 0%{!?_with_rhel5:1} && 0%{!?_with_rhel6:1}
94 %global _with_memcache 1
95 %endif
96 %global _with_mysql 1
97 %if 0%{!?_with_rhel5:1}
98 %global _with_pcre 1
99 %endif
100 %global _with_redis 1
101 %global _with_sqlite 1
102 %global _with_postgresql 1
103 %global _with_ssl 1
104 %global _with_sodium 1
105 #
106 # --with wrap (for mod_wrap)
107 %if 0%{?_with_wrap:1}
108 %global _with_wrap 1
109 %endif
110 %endif
111 #
112 # --with geoip (for mod_geoip)
113 %if 0%{?_with_geoip:1}
114 BuildRequires: geoip-devel
115 %endif
116 #
117 # --with ldap (for mod_ldap, mod_quotatab_ldap)
118 %if 0%{?_with_ldap:1}
119 BuildRequires: cyrus-sasl-devel, openldap-devel
120 %endif
121 #
122 # --with memcache (for mod_memcache, mod_tls_memcache)
123 %if 0%{?_with_memcache:1}
124 BuildRequires: libmemcached-devel >= 0.41
125 %endif
126 #
127 # --with mysql (for mod_sql_mysql)
128 %if 0%{?_with_mysql:1}
129 BuildRequires: mysql-devel
130 %endif
131 #
132 # --with pcre (to use pcre rather than glibc regex engine)
133 %if 0%{?_with_pcre:1}
134 BuildRequires: pcre-devel >= 7.0
135 %endif
136 #
137 # --with postgresql (for mod_sql_postgres)
138 %if 0%{?_with_postgresql:1}
139 BuildRequires: postgresql-devel
140 %endif
141 #
142 # --with redis (for mod_redis, mod_tls_redis)
143 %if 0%{?_with_redis:1}
144 BuildRequires: hiredis
145 %endif
146 # --with ssl (for mod_auth_otp, mod_digest, mod_sftp, mod_sftp_pam, mod_sftp_sql, mod_sql_passwd, mod_tls, mod_tls_fscache, mod_tls_shmcache)
147 %if 0%{?_with_ssl:1}
148 BuildRequires: openssl-devel
149 %endif
150 #
151 # --with sodium (for mod_sftp)
152 %if 0%{?_with_sodium:1}
153 BuildRequires: epel-release, libsodium-devel
154 %endif
155 #
156 # --with-sqlite (for mod_sql_sqlite)
157 %if 0%{?_with_sqlite:1}
158 BuildRequires: sqlite-devel
159 %endif
160 #
161 # --with wrap (for mod_wrap)
162 %if 0%{?_with_wrap:1}
163 # This header file might be in package tcp_wrappers or tcp_wrappers-devel
164 BuildRequires: /usr/include/tcpd.h
165 %endif
166
167 # Assume init is systemd if /run/console exists, else SysV
168 %global use_systemd %([ -d /run/console ] && echo 1 || echo 0)
169
170 # rundir is /run/proftpd under systemd, else %%{_localstatedir}/run/proftpd
171 %if %{use_systemd}
172 %global rundir /run/proftpd
173 %else
174 %global rundir %{_localstatedir}/run/proftpd
175 %endif
176
177 Summary: ProFTPD - Professional FTP Server
178 Name: proftpd
179 License: GPLv2+
180 Group: System Environment/Daemons
181 Packager: The ProFTPD Project <[email protected]>
182 Vendor: The ProFTPD Project
183 URL: http://www.proftpd.org/
184 %if %{usecvsversion}
185 Version: %{proftpd_cvs_version_main}
186 Release: 0.1.cvs%{proftpd_cvs_version_date}%{?dist}
187 Source0: ftp://ftp.proftpd.org/devel/source/proftpd-cvs-%{proftpd_cvs_version_date}.tar%{srcext}
188 %else
189 Version: %{rpm_version}
190 Release: %{rpm_release}%{?dist}
191 Source0: ftp://ftp.proftpd.org/distrib/source/proftpd-%{proftpd_version}.tar%{srcext}
192 %endif
193 BuildRoot: %{_tmppath}/%{name}-%{version}-root
194 Requires: pam >= 0.99, /sbin/chkconfig
195 Requires(preun): coreutils, findutils
196 %if %{use_systemd}
197 BuildRequires: systemd-units
198 Requires: systemd-units
199 Requires(post): systemd-units
200 Requires(preun): systemd-units
201 Requires(postun): systemd-units
202 %else
203 Requires(post): /sbin/chkconfig
204 Requires(preun): /sbin/service, /sbin/chkconfig
205 Requires(postun): /sbin/service
206 %endif
207 BuildRequires: gettext, pkgconfig, pam-devel, ncurses-devel, zlib-devel
208 BuildRequires: libacl-devel, libcap-devel
209 Provides: ftpserver
210 Obsoletes: proftpd-core < %{version}-%{release}, proftpd-standalone < %{version}-%{release}, proftpd-inetd < %{version}-%{release}
211 Provides: proftpd-core = %{version}-%{release}, proftpd-standalone = %{version}-%{release}, proftpd-inetd = %{version}-%{release}
212
213 %description
214 ProFTPD is an enhanced FTP server with a focus toward simplicity, security,
215 and ease of configuration. It features a very Apache-like configuration
216 syntax, and a highly customizable server infrastructure, including support for
217 multiple 'virtual' FTP servers, anonymous FTP, and permission-based directory
218 visibility.
219
220 This package defaults to the standalone behavior of ProFTPD, but all the
221 needed scripts to have it run by xinetd instead are included.
222
223 Modules requiring additional dependencies such as mod_sql_mysql, mod_ldap,
224 etc. are in separate sub-packages so as not to inconvenience users that
225 do not need that functionality.
226
227 %if 0%{?_with_geoip:1}
228 %package geoip
229 Summary: ProFTPD - Modules relying on GeoIP
230 Group: System Environment/Daemons
231 Requires: proftpd = %{version}-%{release}
232
233 %description geoip
234 This optional package contains the modules using GeoIP.
235 %endif
236
237 %if 0%{?_with_ldap:1}
238 %package ldap
239 Summary: ProFTPD - Modules relying on LDAP
240 Group: System Environment/Daemons
241 Requires: proftpd = %{version}-%{release}
242
243 %description ldap
244 This optional package contains the modules using LDAP.
245 %endif
246
247 %if 0%{?_with_mysql:1}
248 %package mysql
249 Summary: ProFTPD - Modules relying on MySQL
250 Group: System Environment/Daemons
251 Requires: proftpd = %{version}-%{release}
252
253 %description mysql
254 This optional package contains the modules using MySQL.
255 %endif
256
257 %if 0%{?_with_sqlite:1}
258 %package sqlite
259 Summary: ProFTPD - Modules relying on SQLite
260 Group: System Environment/Daemons
261 Requires: proftpd = %{version}-%{release}
262
263 %description sqlite
264 This optional package contains the modules using SQLite.
265 %endif
266
267 %if 0%{?_with_postgresql:1}
268 %package postgresql
269 Summary: ProFTPD - Modules relying on PostgreSQL
270 Group: System Environment/Daemons
271 Requires: proftpd = %{version}-%{release}
272
273 %description postgresql
274 This optional package contains the modules using PostgreSQL.
275 %endif
276
277 %if 0%{?_with_wrap:1}
278 %package wrap
279 Summary: ProFTPD - Modules relying on TCP Wrappers
280 Group: System Environment/Daemons
281 Requires: proftpd = %{version}-%{release}
282
283 %description wrap
284 This optional package contains the modules using tcpwrappers/libwrap.
285 %endif
286
287 %package devel
288 Summary: ProFTPD - Tools and header files for developers
289 Group: Development/Libraries
290 Requires: proftpd = %{version}-%{release}
291 # devel package requires the same devel packages as were build-required
292 # for the main package
293 Requires: gcc, libtool
294 Requires: libacl-devel
295 Requires: libcap-devel
296 Requires: pkgconfig
297 Requires: pam-devel
298 Requires: ncurses-devel
299 Requires: zlib-devel
300 %{?_with_geoip:Requires: geoip-devel}
301 %{?_with_ldap:Requires: cyrus-sasl-devel, openldap-devel}
302 %{?_with_memcache:Requires: libmemcached-devel >= 0.41}
303 %{?_with_mysql:Requires: mysql-devel}
304 %{?_with_pcre:Requires: pcre-devel >= 7.0}
305 %{?_with_postgresql:Requires: postgresql-devel}
306 %{?_with_redis:Requires: hiredis}
307 %{?_with_ssl:Requires: openssl-devel}
308 %{?_with_sodium:Requires: epel-release, libsodium-devel}
309 %{?_with_sqlite:Requires: sqlite-devel}
310 %{?_with_wrap:Requires: /usr/include/tcpd.h}
311
312 %description devel
313 This package is required to develop additional modules for ProFTPD.
314
315 %package utils
316 Summary: ProFTPD - Additional utilities
317 Group: System Environment/Daemons
318 Requires: proftpd = %{version}-%{release}
319
320 %description utils
321 This package contains additional utilities for monitoring and configuring the
322 ProFTPD server:
323
324 * ftpasswd: generate passwd(5) files for use with AuthUserFile
325 * ftpcount: show the current number of connections per server/virtualhost
326 * ftpmail: monitor transfer log and send email when files uploaded
327 * ftpquota: manipulate quota tables
328 * ftptop: show the current status of FTP sessions
329 * ftpwho: show the current process information for each FTP session
330
331 %prep
332 %if %{usecvsversion}
333 %setup -q -n %{name}-%{proftpd_cvs_version_main}
334 %else
335 %setup -q -n %{name}-%{proftpd_version}
336 %endif
337
338 # Avoid documentation name conflicts
339 mv contrib/README contrib/README.contrib
340
341 # Prefer documentation to be UTF-8 encoded
342 iconv -f iso-8859-1 -t utf-8 < ChangeLog > ChangeLog.utf-8
343 mv ChangeLog ChangeLog.iso-8859-1
344 mv ChangeLog.utf-8 ChangeLog
345
346 # Default PAM configuration file uses password-auth common config;
347 # revert to system-auth if password-auth is not available
348 if [ ! -f /etc/pam.d/password-auth ]; then
349 sed -i -e s/password-auth/system-auth/ contrib/dist/rpm/proftpd.pam
350 fi
351
352 # Compile the module list (note: mod_ifsession is always included - last)
353 STANDARD_MODULE_LIST=" mod_auth_pam \
354 mod_ban \
355 mod_copy \
356 mod_ctrls_admin \
357 mod_deflate \
358 mod_dnsbl \
359 mod_dynmasq \
360 mod_exec \
361 mod_facl \
362 mod_load \
363 mod_quotatab \
364 mod_quotatab_file \
365 mod_quotatab_radius \
366 mod_quotatab_sql \
367 mod_radius \
368 mod_ratio \
369 mod_readme \
370 mod_rewrite \
371 mod_shaper \
372 mod_site_misc \
373 mod_snmp \
374 mod_sql \
375 mod_wrap2 \
376 mod_wrap2_file \
377 mod_wrap2_redis \
378 mod_wrap2_sql \
379 mod_unique_id "
380
381 OPTIONAL_MODULE_LIST=" \
382 %{?_with_ssl: mod_auth_otp} \
383 %{?_with_ssl: mod_digest} \
384 %{?_with_geoip: mod_geoip} \
385 %{?_with_ldap: mod_ldap} \
386 %{?_with_ldap: mod_quotatab_ldap} \
387 %{?_with_ssl: mod_sftp} \
388 %{?_with_ssl: mod_sftp_pam} \
389 %{?_with_ssl: mod_sftp_sql} \
390 %{?_with_mysql: mod_sql_mysql} \
391 %{?_with_ssl: mod_sql_passwd} \
392 %{?_with_sqlite: mod_sql_sqlite} \
393 %{?_with_postgresql: mod_sql_postgres} \
394 %{?_with_ssl: mod_tls} \
395 %{?_with_ssl: mod_tls_fscache} \
396 %{?_with_ssl: mod_tls_shmcache} \
397 %{?_with_ssl:%{?_with_memcache:mod_tls_memcache}} \
398 %{?_with_ssl:%{?_with_redis:mod_tls_redis}} \
399 %{?_with_wrap: mod_wrap} "
400
401 MODULE_LIST=$(echo ${STANDARD_MODULE_LIST} ${OPTIONAL_MODULE_LIST} mod_ifsession | tr -s '[:space:]' ':' | sed 's/:$//')
402
403 %configure \
404 --libexecdir=%{_libexecdir}/proftpd \
405 --localstatedir=%{rundir} \
406 --disable-strip \
407 --enable-ctrls \
408 --enable-dso \
409 --enable-facl \
410 --enable-ipv6 \
411 --enable-nls \
412 %{?_with_memcache:--enable-memcache} \
413 %{?_with_pcre:--enable-pcre} \
414 %{?_with_redis:--enable-redis} \
415 %{?_with_ssl:--enable-openssl} \
416 --enable-shadow \
417 --with-lastlog \
418 --with-libraries=%{_libdir}/mysql \
419 --with-includes=%{_includedir}/mysql \
420 --with-pkgconfig=%{_lib}/pkgconfig \
421 --with-shared=${MODULE_LIST}
422
423 %build
424 make
425
426 %install
427 rm -rf %{buildroot}
428 make DESTDIR=%{buildroot} rundir=%{rundir} \
429 INSTALL_USER=`id -un` INSTALL_GROUP=`id -gn` \
430 INSTALL="install -p" \
431 install
432
433 # Red Hat style distributions use PAM so install a PAM configuration
434 mkdir -p %{buildroot}/etc/pam.d
435 install -p -m 644 contrib/dist/rpm/proftpd.pam %{buildroot}/etc/pam.d/proftpd
436
437 # Use the basic-pam config as a default
438 install -m 644 contrib/dist/rpm/basic-pam.conf %{buildroot}/etc/proftpd.conf
439
440 %if %{use_systemd}
441 # Systemd unit files
442 mkdir -p %{buildroot}%{_unitdir}
443 install -p -m 644 contrib/dist/rpm/proftpd.service \
444 %{buildroot}%{_unitdir}/proftpd.service
445 install -p -m 644 contrib/dist/systemd/[email protected] \
446 %{buildroot}%{_unitdir}/[email protected]
447 install -p -m 644 contrib/dist/systemd/proftpd.socket \
448 %{buildroot}%{_unitdir}/proftpd.socket
449 # Ensure /run/proftpd exists
450 mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
451 install -p -m 644 contrib/dist/rpm/proftpd-tmpfs.conf \
452 %{buildroot}%{_sysconfdir}/tmpfiles.d/proftpd.conf
453 %else
454 # SysV initscript
455 mkdir -p %{buildroot}/etc/rc.d/init.d
456 install -p -m 755 contrib/dist/rpm/proftpd.init.d \
457 %{buildroot}/etc/rc.d/init.d/proftpd
458 %endif
459
460 # xinetd configuration for socket-based activation (not used by default)
461 mkdir -p %{buildroot}/etc/xinetd.d/
462 install -p -m 644 contrib/dist/rpm/xinetd %{buildroot}/etc/xinetd.d/proftpd
463
464 # Rotate the logs periodically
465 mkdir -p %{buildroot}/etc/logrotate.d/
466 install -p -m 644 contrib/dist/rpm/proftpd.logrotate %{buildroot}/etc/logrotate.d/proftpd
467
468 # Create anonymous ftp area
469 mkdir -p %{buildroot}%{_localstatedir}/ftp/pub/
470
471 # Find translations
472 %find_lang proftpd
473
474 %post
475 %if %{use_systemd}
476 /bin/systemctl daemon-reload &>/dev/null || :
477 %endif
478 if [ $1 -eq 1 ]; then
479 # Initial installation
480 %if ! %{use_systemd}
481 /sbin/chkconfig --add proftpd || :
482 %endif
483 IFS=":"; cat /etc/passwd | \
484 while { read username nu nu gid nu nu nu nu; }; do \
485 if [ $gid -lt 500 -a "$username" != "ftp" ]; then
486 echo $username >> %{_sysconfdir}/ftpusers
487 fi
488 done
489 fi
490
491 %preun
492 if [ $1 -eq 0 ]; then
493 # Package removal, not upgrade
494 %if %{use_systemd}
495 /bin/systemctl --no-reload disable proftpd.service &>/dev/null || :
496 /bin/systemctl stop proftpd.service &>/dev/null || :
497 %else
498 /sbin/service proftpd stop &>/dev/null || :
499 /sbin/chkconfig --del proftpd || :
500 %endif
501 find %{rundir} -depth -mindepth 1 | xargs rm -rf &>/dev/null || :
502 fi
503
504 %postun
505 %if %{use_systemd}
506 /bin/systemctl daemon-reload &>/dev/null || :
507 %endif
508 if [ $1 -ge 1 ]; then
509 # Package upgrade, not uninstall
510 %if %{use_systemd}
511 /bin/systemctl try-restart proftpd.service &>/dev/null || :
512 %else
513 /sbin/service proftpd condrestart &>/dev/null || :
514 %endif
515 else
516 # Package removal, not upgrade
517 %if %{use_systemd}
518 /bin/systemctl reload xinetd.service &>/dev/null || :
519 %else
520 /sbin/service xinetd reload &>/dev/null || :
521 %endif
522 fi
523
524 %clean
525 rm -rf %{buildroot}
526 rm -rf %{_builddir}/%{name}-%{version}
527
528 %files -f proftpd.lang
529 %{_bindir}/ftpdctl
530 %{?_with_ssl:%{_sbindir}/auth-otp}
531 %{_sbindir}/ftpscrub
532 %{_sbindir}/ftpshut
533 %{_sbindir}/in.proftpd
534 %{_sbindir}/proftpd
535 %dir %{_libexecdir}/proftpd/
536 %{?_with_ssl:%{_libexecdir}/proftpd/mod_auth_otp.so}
537 %{_libexecdir}/proftpd/mod_auth_pam.so
538 %{_libexecdir}/proftpd/mod_ban.so
539 %{_libexecdir}/proftpd/mod_copy.so
540 %{_libexecdir}/proftpd/mod_ctrls_admin.so
541 %{_libexecdir}/proftpd/mod_deflate.so
542 %{?_with_ssl:%{_libexecdir}/proftpd/mod_digest.so}
543 %{_libexecdir}/proftpd/mod_dnsbl.so
544 %{_libexecdir}/proftpd/mod_dynmasq.so
545 %{_libexecdir}/proftpd/mod_exec.so
546 %{_libexecdir}/proftpd/mod_facl.so
547 %{?_with_geoip:%{_libexecdir}/proftpd/mod_geoip.so}
548 %{_libexecdir}/proftpd/mod_ifsession.so
549 %{_libexecdir}/proftpd/mod_load.so
550 %{_libexecdir}/proftpd/mod_quotatab.so
551 %{_libexecdir}/proftpd/mod_quotatab_file.so
552 %{_libexecdir}/proftpd/mod_quotatab_radius.so
553 %{_libexecdir}/proftpd/mod_quotatab_sql.so
554 %{_libexecdir}/proftpd/mod_radius.so
555 %{_libexecdir}/proftpd/mod_ratio.so
556 %{_libexecdir}/proftpd/mod_readme.so
557 %{_libexecdir}/proftpd/mod_rewrite.so
558 %{?_with_ssl:%{_libexecdir}/proftpd/mod_sftp.so}
559 %{?_with_ssl:%{_libexecdir}/proftpd/mod_sftp_pam.so}
560 %{?_with_ssl:%{_libexecdir}/proftpd/mod_sftp_sql.so}
561 %{_libexecdir}/proftpd/mod_shaper.so
562 %{_libexecdir}/proftpd/mod_site_misc.so
563 %{_libexecdir}/proftpd/mod_snmp.so
564 %{_libexecdir}/proftpd/mod_sql.so
565 %{?_with_ssl:%{_libexecdir}/proftpd/mod_sql_passwd.so}
566 %{?_with_ssl:%{_libexecdir}/proftpd/mod_tls.so}
567 %{?_with_ssl:%{_libexecdir}/proftpd/mod_tls_fscache.so}
568 %{?_with_ssl:%{?_with_memcache:%{_libexecdir}/proftpd/mod_tls_memcache.so}}
569 %{?_with_ssl:%{?_with_redis:%{_libexecdir}/proftpd/mod_tls_redis.so}}
570 %{?_with_ssl:%{_libexecdir}/proftpd/mod_tls_shmcache.so}
571 %{_libexecdir}/proftpd/mod_wrap2.so
572 %{_libexecdir}/proftpd/mod_wrap2_file.so
573 %{_libexecdir}/proftpd/mod_wrap2_redis.so
574 %{_libexecdir}/proftpd/mod_wrap2_sql.so
575 %{_libexecdir}/proftpd/mod_unique_id.so
576 %exclude %{_libexecdir}/proftpd/*.a
577 %exclude %{_libexecdir}/proftpd/*.la
578 %dir %{rundir}/
579 %dir %{_localstatedir}/ftp/
580 %dir %{_localstatedir}/ftp/pub/
581 %if %{use_systemd}
582 %{_unitdir}/proftpd.service
583 %{_unitdir}/[email protected]
584 %{_unitdir}/proftpd.socket
585 %{_sysconfdir}/tmpfiles.d/proftpd.conf
586 %else
587 %{_sysconfdir}/rc.d/init.d/proftpd
588 %endif
589 %{?_with_ssl:%config(noreplace) %{_sysconfdir}/blacklist.dat}
590 %{?_with_ssl:%config(noreplace) %{_sysconfdir}/dhparams.pem}
591 %config(noreplace) %{_sysconfdir}/proftpd.conf
592 %config(noreplace) %{_sysconfdir}/pam.d/proftpd
593 %config(noreplace) %{_sysconfdir}/logrotate.d/proftpd
594 %config(noreplace) %{_sysconfdir}/xinetd.d/proftpd
595 %config(noreplace) %{_sysconfdir}/PROFTPD-MIB.txt
596
597 %doc COPYING CREDITS ChangeLog NEWS README.md RELEASE_NOTES
598 %doc contrib/README.contrib contrib/README.ratio
599 %doc contrib/dist/systemd/README.systemd
600 %doc doc/* sample-configurations/
601 %{_mandir}/man5/proftpd.conf.5*
602 %{_mandir}/man5/xferlog.5*
603 %{_mandir}/man8/ftpdctl.8*
604 %{_mandir}/man8/ftpscrub.8*
605 %{_mandir}/man8/ftpshut.8*
606 %{_mandir}/man8/proftpd.8*
607 %{?_with_ssl:%{_mandir}/man8/auth-otp.8*}
608
609 %if 0%{?_with_ldap:1}
610 %files ldap
611 %doc contrib/mod_quotatab_ldap.ldif contrib/mod_quotatab_ldap.schema
612 %{_libexecdir}/proftpd/mod_ldap.so
613 %{_libexecdir}/proftpd/mod_quotatab_ldap.so
614 %endif
615
616 %if 0%{?_with_mysql:1}
617 %files mysql
618 %{_libexecdir}/proftpd/mod_sql_mysql.so
619 %endif
620
621 %if 0%{?_with_postgresql:1}
622 %files postgresql
623 %{_libexecdir}/proftpd/mod_sql_postgres.so
624 %endif
625
626 %if 0%{?_with_sqlite:1}
627 %files sqlite
628 %{_libexecdir}/proftpd/mod_sql_sqlite.so
629 %endif
630
631 %if 0%{?_with_wrap:1}
632 %files wrap
633 %{_libexecdir}/proftpd/mod_wrap.so
634 %endif
635
636 %files devel
637 %{_bindir}/prxs
638 %{_includedir}/proftpd/
639 %{_libdir}/pkgconfig/proftpd.pc
640
641 %files utils
642 %doc contrib/xferstats.holger-preiss
643 %{_bindir}/ftpquota
644 %{_bindir}/ftpasswd
645 %{_bindir}/ftpcount
646 %{_bindir}/ftpmail
647 %{_bindir}/ftptop
648 %{_bindir}/ftpwho
649 %{_mandir}/man1/ftpasswd.1*
650 %{_mandir}/man1/ftpcount.1*
651 %{_mandir}/man1/ftpmail.1*
652 %{_mandir}/man1/ftpquota.1*
653 %{_mandir}/man1/ftptop.1*
654 %{_mandir}/man1/ftpwho.1*
655
656 %changelog
657 * Fri Dec 11 2015 Paul Howarth <[email protected]>
658 - Include systemd unit files for native inetd operation (bug 3661)
659 - Use /run/console rather than /run/lock for systemd detection, because the
660 'mock' build tool may create /run/lock itself
661 - Fix bogus dates in spec changelog
662
663 * Fri Jun 28 2013 Paul Howarth <[email protected]>
664 - Support arbitrary tarball compression types using %%{srcext} macro
665 - Package proftpd.conf manpage
666
667 * Tue Jul 31 2012 Paul Howarth <[email protected]>
668 - Package translations and BR: gettext to make sure we get them
669 - Drop %%defattr, redundant since rpm 4.4
670
671 * Tue Jan 10 2012 Paul Howarth <[email protected]>
672 - devel package requires gcc and libtool (for prxs)
673
674 * Fri Nov 11 2011 Paul Howarth <[email protected]>
675 - mod_wrap2 and friends don't need tcp_wrappers, so move them from the wrap
676 subpackage to the main package
677
678 * Tue Oct 4 2011 Paul Howarth <[email protected]>
679 - Upstream RPM package refactored to support Red Hat/Fedora based distributions
680 from EL-5 onwards:
681 - Fix build failure on CentOS 5 (bug 3640)
682 - Build all modules that don't require additional dependencies by default
683 - Optionally build other modules (use --with everything for all modules)
684 - Use PAM-based configuration by default
685 - Add systemd support
686 - Merge inetd subpackage back into main package
687 - Create new utils subpackage
688 - Lots of minor fixes
689
690 * Mon Sep 10 2007 Philip Prindeville <[email protected]>
691 - Cleaned up the .spec file to work with more recent releases of RPM. Moved
692 header files into separate component.
693
694 * Sun Mar 5 2006 Itamar Reis Peixoto <[email protected]>
695 - Added "--with mod_quotatab" and "--with mod_quotatab_sql" to enable Quota Support while building the RPM
696
697 * Sun Nov 2 2003 John Morrissey <[email protected]>
698 - This changelog is not frequently updated - please check the CVS revision
699 history at http://cvs.proftpd.org/ instead.
700
701 * Tue Sep 23 2003 Daniel Roesen <[email protected]>
702 - Added "--with ipv6" to enable IPv6 support while building the RPM
703
704 * Sun May 25 2003 John Morrissey <[email protected]>
705 - Permit selection of additional contrib modules when building the RPM
706 Submitted by: Ivan F. Martinez <[email protected]>
707
708 * Sat Nov 2 2002 John Morrissey <[email protected]>
709 - Don't let dangling contrib/README.* symlinks get into the built RPM
710 - logrotate for xferlog
711
712 * Wed Aug 14 2002 John Morrissey <[email protected]>
713 - Added removal of build leftover directory in %%clean.
714 Submitted by: Christian Pelealu <[email protected]>
715
716 * Wed Jul 3 2002 John Morrissey <[email protected]> 1.2.6rc1-1
717 - 1.2.6rc1 release.
718
719 * Sun Jun 9 2002 John Morrissey <[email protected]> 1.2.5-1
720 - 1.2.5 release.
721
722 * Fri May 10 2002 TJ Saunders <[email protected]>
723 - Added use of %%defattr to allow build of RPMs by non-root users
724 For details see http://bugs.proftpd.org/show_bug.cgi?id=1580
725
726 * Mon Mar 05 2001 Daniel Roesen <[email protected]>
727 - PAM >= 0.72 is now a requirement. Versions before are broken and
728 Red Hat provides a PAM update for all RH 6.x releases. See:
729 http://www.redhat.com/support/errata/RHSA-2000-120.html
730 Thanks to O.Elliyasa <[email protected]> for the suggestion.
731 For details see http://bugs.proftpd.org/show_bug.cgi?id=1048
732 - release: 1.2.1-2
733
734 * Thu Mar 01 2001 Daniel Roesen <[email protected]>
735 - Update to 1.2.1
736 - release: 1.2.1-1
737
738 * Tue Feb 27 2001 Daniel Roesen <[email protected]>
739 - added "Obsoletes: proftpd-core" to make migration to new RPMs easier.
740 Thanks to Sébastien Prud'homme <[email protected]> for the hint.
741 - release: 1.2.0-3
742
743 * Mon Feb 26 2001 Daniel Roesen <[email protected]>
744 - cleaned up .spec formatting (cosmetics)
745 - fixed CFLAGS (fixes /etc/shadow support)
746 - included COPYING, CREDITS, ChangeLog and NEWS
747 - Renamed main package from "proftpd-core" to just "proftpd"
748 - release: 1.2.0-2
749
750 * Wed Feb 14 2001 Daniel Roesen <[email protected]>
751 - moved Changelog to bottom
752 - fixed %%pre script /etc/ftpusers generator
753 - removed /ftp/ftpusers from package management. Deinstalling ProFTPD
754 should _not_ result in removal of this file.
755
756 * Sun Oct 03 1999 O.Elliyasa <[email protected]>
757 - Multi package creation.
758 Created core, standalone, inetd (&doc) package creations.
759 Added startup script for init.d
760 Need to make the "standalone & inetd" packages being created as "noarch"
761 - Added URL.
762 - Added prefix to make the package relocatable.
763
764 * Wed Sep 08 1999 O.Elliyasa <[email protected]>
765 - Corrected inetd.conf line addition/change logic.
766
767 * Sat Jul 24 1999 MacGyver <[email protected]>
768 - Initial import of spec.