3 # _without_pam - disable PAM support
4 # _with_ldap - enable LDAP suppoer
5 # _with_mysql - enable MySQL suppoer
6 # _with_quota - enable quota support
7 # _with_linuxprivs - enable libcap support
8 # _without_ipv6 - disable IPv6 and TCPD support
9 # _without_ssl - disbale TLS/SSL support
11 Summary: PROfessional FTP Daemon with apache-like configuration syntax
12 Summary(es): Servidor FTP profesional, con sintaxis de configuración semejante a la del apache
13 Summary(pl): PROfesionalny serwer FTP
14 Summary(pt_BR): Servidor FTP profissional, com sintaxe de configuração semelhante à do apache
15 Summary(zh_CN): Ò×ÓÚ¹ÜÀíµÄ,°²È«µÄ FTP ·þÎñÆ÷
22 Source0: ftp://ftp.proftpd.org/distrib/source/%{name}-%{version}.tar.bz2
23 # Source0-md5: 100a374dfcaa4852cb767dc6afeb4277
25 Source2: %{name}.logrotate
27 Source4: %{name}.inetd
28 Source5: %{name}.sysconfig
30 Source7: %{name}-mod_tcpd.c
31 Source8: ftpusers.tar.bz2
32 # Source8-md5: 76c80b6ec9f4d079a1e27316edddbe16
33 Patch0: %{name}-1.2.5-v6-20020808.patch.gz
34 # ftp://ftp.runestig.com/pub/proftpd-tls/
35 Patch1: %{name}-1.2.2rc3+v6-tls.20010505.patch.gz
36 Patch2: %{name}-umode_t.patch
37 Patch3: %{name}-glibc.patch
38 Patch4: %{name}-paths.patch
39 Patch5: %{name}-release.patch
40 Patch6: %{name}-noautopriv.patch
41 Patch7: %{name}-DESTDIR.patch
42 Patch8: %{name}-wtmp.patch
43 Patch9: %{name}-link.patch
44 Patch10: %{name}-port-65535.patch
45 Patch11: %{name}-vmail_crypt.patch
46 URL: http://www.proftpd.org/
47 BuildRequires: autoconf
48 BuildRequires: libwrap-devel
49 %{?_with_mysql:BuildRequires: mysql-devel}
50 %{?_with_ldap:BuildRequires: openldap-devel}
51 %{?!_without_ssl:BuildRequires: openssl-devel >= 0.9.7}
52 %{?!_without_pam:BuildRequires: pam-devel}
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 %define _sysconfdir /etc/ftpd
56 %define _localstatedir /var/run
59 ProFTPD is a highly configurable ftp daemon for unix and unix-like
60 operating systems. ProFTPD is designed to be somewhat of a "drop-in"
61 replacement for wu-ftpd. Full online documentation is available at
62 http://www.proftpd.org/, including a server configuration directive
66 ProFTPD es un servidor ftp altamente configurable para sistemas
67 operativos unix. Está proyectado para ser un substituto directo al
68 wu-ftpd. La documentación completa está disponible en
69 http://www.proftpd.org, incluido el manual de referencia para las
70 directivas de configuración del servidor.
73 ProFTPD jest wysoce konfigurowalnym serwerem ftp dla systemów Unix.
74 ProFTPD jest robiony jako bezpo¶redni zamiennik wu-ftpd. Pe³na
75 dokunentacja jest dostêpna on-line pod http://www.proftpd.org/
76 w³±cznie z dokumentacj± dotycz±c± konfigurowania.
79 O ProFTPD é um servidor ftp altamente configurável para sistemas
82 É projetado para ser um substituto direto para o wu-ftpd. A
83 documentação completa está disponível em http://www.proftpd.org,
84 incluindo o manual de referência para as diretivas de configuração do
88 Summary: PROfessional FTP Daemon with apache-like configuration syntax - common files
89 Summary(pl): PROfesionalny serwer FTP - wspólne pliki
92 Requires(post): fileutils
94 %{?!_without_pam:Requires: pam >= 0.67}
95 Obsoletes: proftpd < 0:1.2.2rc1-3
98 ProFTPD is a highly configurable ftp daemon for unix and unix-like
99 operating systems. ProFTPD is designed to be somewhat of a "drop-in"
100 replacement for wu-ftpd. Full online documentation is available at
101 http://www.proftpd.org/, including a server configuration directive
104 %description common -l pl
105 ProFTPD jest wysoce konfigurowalnym serwerem ftp dla systemów Unix.
106 ProFTPD jest robiony jako bezpo¶redni zamiennik wu-ftpd. Pe³na
107 dokunentacja jest dostêpna on-line pod http://www.proftpd.org/
108 w³±cznie z dokumentacj± dotycz±c± konfigurowania.
111 Summary: inetd configs for proftpd
112 Summary(pl): Pliki konfiguracyjne do u¿ycia proftpd poprzez inetd
114 PreReq: %{name}-common = %{epoch}:%{version}
116 Requires(post): fileutils
119 Provides: proftpd = %{epoch}:%{version}-%{release}
121 Obsoletes: proftpd-standalone
126 Obsoletes: heimdal-ftpd
127 Obsoletes: linux-ftpd
128 Obsoletes: muddleftpd
130 Obsoletes: troll-ftpd
133 Conflicts: man-pages < 1.51
136 ProFTPD configs for running from inetd.
138 %description inetd -l pl
139 Pliki konfiguracyjna ProFTPD do startowania demona poprzez inetd.
142 Summary: standalone daemon configs for proftpd
143 Summary(pl): Pliki konfiguracyjne do startowania proftpd w trybie standalone
145 PreReq: %{name}-common = %{version}
147 Requires(post,preun): /sbin/chkconfig
148 Requires(post): fileutils
151 Provides: proftpd = %{epoch}:%{version}-%{release}
153 Obsoletes: proftpd-inetd
158 Obsoletes: heimdal-ftpd
159 Obsoletes: linux-ftpd
160 Obsoletes: muddleftpd
162 Obsoletes: troll-ftpd
165 Conflicts: man-pages < 1.51
167 %description standalone
168 ProFTPD configs for running as a standalone daemon.
170 %description standalone -l pl
171 Pliki konfiguracyjne ProFTPD do startowania demona w trybie
188 install -m644 %{SOURCE7} contrib/mod_tcpd.c
192 RUN_DIR=%{_localstatedir} ; export RUN_DIR
194 --enable-autoshadow \
195 --with-modules=mod_ratio:mod_readme%{?!_without_ipv6::mod_tcpd}%{?!_without_pam::mod_pam}%{?_with_ldap::mod_ldap}%{?_with_quota::mod_quota}%{?_with_linuxprivs::mod_linuxprivs}%{?_with_mysql::mod_sql:mod_sql_mysql} \
196 %{?!_without_ipv6:--enable-ipv6} \
197 %{?_without_ssl:--disable-tls} \
203 rm -rf $RPM_BUILD_ROOT
205 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,security,sysconfig/rc-inetd,rc.d/init.d} \
206 $RPM_BUILD_ROOT/{home/services/ftp/pub/Incoming,var/log}
208 %{__make} install DESTDIR=$RPM_BUILD_ROOT \
209 INSTALL_USER=`id -u` \
210 INSTALL_GROUP=`id -g`
212 rm -f $RPM_BUILD_ROOT%{_sbindir}/in.proftpd
214 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
215 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/ftpd
216 %{?!_without_pam:install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/ftp}
217 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
218 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/proftpd
219 install %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/proftpd
220 install contrib/xferstats.holger-preiss $RPM_BUILD_ROOT%{_bindir}/xferstat
222 bzip2 -dc %{SOURCE8} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
224 mv -f contrib/README contrib/README.modules
226 :> $RPM_BUILD_ROOT%{_sysconfdir}/ftpusers.default
227 :> $RPM_BUILD_ROOT%{_sysconfdir}/ftpusers
228 :> $RPM_BUILD_ROOT/var/log/xferlog
230 ln -sf proftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd
232 :> $RPM_BUILD_ROOT/etc/security/blacklist.ftp
235 rm -rf $RPM_BUILD_ROOT
239 touch /var/log/xferlog
240 awk 'BEGIN { FS = ":" }; { if(($3 < 500)&&($1 != "ftp")) print $1; }' < /etc/passwd >> %{_sysconfdir}/ftpusers.default
241 if [ ! -f %{_sysconfdir}/ftpusers ]; then
242 cp -f %{_sysconfdir}/ftpusers.default %{_sysconfdir}/ftpusers
247 if grep -iEqs "^ServerType[[:space:]]+standalone" %{_sysconfdir}/proftpd.conf ; then
248 cp -a %{_sysconfdir}/proftpd.conf %{_sysconfdir}/proftpd.conf.rpmorig
249 sed -e "s/^ServerType[[:space:]]\+standalone/ServerType inetd/g" \
250 %{_sysconfdir}/proftpd.conf.rpmorig >%{_sysconfdir}/proftpd.conf
252 if [ -f /var/lock/subsys/rc-inetd ]; then
253 /etc/rc.d/init.d/rc-inetd reload 1>&2
255 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
259 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
260 /etc/rc.d/init.d/rc-inetd reload 1>&2
264 /sbin/chkconfig --add proftpd
265 if grep -iEqs "^ServerType[[:space:]]+inetd" %{_sysconfdir}/proftpd.conf ; then
266 cp -a %{_sysconfdir}/proftpd.conf %{_sysconfdir}/proftpd.conf.rpmorig
267 sed -e "s/^ServerType[[:space:]]\+inetd/ServerType standalone/g" \
268 %{_sysconfdir}/proftpd.conf.rpmorig >%{_sysconfdir}/proftpd.conf
270 if [ -f /var/lock/subsys/proftpd ]; then
271 /etc/rc.d/init.d/proftpd restart 1>&2
273 echo "Run \"/etc/rc.d/init.d/proftpd start\" to start ProFTPD daemon."
277 if [ "$1" = "0" ]; then
278 if [ -f /var/lock/subsys/proftpd ]; then
279 /etc/rc.d/init.d/proftpd stop 1>&2
281 /sbin/chkconfig --del proftpd
285 %defattr(644,root,root,755)
286 %doc sample-configurations/{virtual,anonymous}.conf ChangeLog README
287 %doc README.linux-* contrib/README.modules README.IPv6 README.PAM
288 %doc README.TLS README.mod_sql README.LDAP doc/*html
290 %attr(750,root,ftp) %dir %{_sysconfdir}
291 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
292 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/ftpusers
293 %attr(640,root,root) %{_sysconfdir}/ftpusers.default
294 %attr(640,root,root) /etc/logrotate.d/*
295 %attr(640,root,root) %ghost /var/log/*
296 %{?!_without_pam:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/*}
298 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.ftp
300 %attr(755,root,root) %{_bindir}/*
301 %attr(755,root,root) %{_sbindir}/*
305 %dir /home/services/ftp
306 %dir /home/services/ftp/pub
307 %attr(711,root,root) %dir /home/services/ftp/pub/Incoming
310 %defattr(644,root,root,755)
311 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/ftpd
313 %lang(ja) %{_mandir}/ja/man5/ftpusers*
314 %lang(pl) %{_mandir}/pl/man5/ftpusers*
315 %lang(pt_BR) %{_mandir}/pt_BR/man5/ftpusers*
316 %lang(ru) %{_mandir}/ru/man5/ftpusers*
319 %defattr(644,root,root,755)
320 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/proftpd
321 %attr(754,root,root) /etc/rc.d/init.d/proftpd
323 %lang(ja) %{_mandir}/ja/man5/ftpusers*
324 %lang(pl) %{_mandir}/pl/man5/ftpusers*
325 %lang(pt_BR) %{_mandir}/pt_BR/man5/ftpusers*
326 %lang(ru) %{_mandir}/ru/man5/ftpusers*