pkg-descr

Ftp server based on the OpenBSD ftp server code, implements the
FTP AUTH TLS IETF draft plus a custom SSL/TLS client authentication.

pkg-message

===========================================================================

Depending on how you would like to start ftpd-tls(8) you have two choices:
1) Add the following line to /etc/rc.conf or /etc/rc.conf.local:

ftpd_tls_enable="YES"

For further available configuration variables when using this method see
%%PREFIX%%/etc/rc.d/ftpd-tls{,.sh}.

2) Add the following entries to your /etc/inetd.conf:

ftp stream tcp nowait root %%PREFIX%%/libexec/ftpd-tls ftpd-tls -U -l
ftp stream tcp6 nowait root %%PREFIX%%/libexec/ftpd-tls ftpd-tls -U -l

See %%DOCSDIR%%/README.TLS and the openssl(1) manual
page for further information on how to generate the certificates and
the keys and where to place them.

===========================================================================

pkg-plist

libexec/ftpd-tls
%%PORTDOCS%%%%DOCSDIR%%/README.TLS
%%PORTDOCS%%%%DOCSDIR%%/draft-murray-auth-ftp-ssl-09.txt
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@exec mkdir -p %D/etc/ftpd-tls && chmod 700 %D/etc/ftpd-tls
@exec if [ ! -f %D/etc/ftpd-tls/ftpusers ] && [ -f /etc/ftpusers ]; then cp /etc/ftpusers %D/etc/ftpd-tls/ftpusers; fi
@unexec if cmp -s %D/etc/ftpd-tls/ftpusers /etc/ftpusers; then rm -f %D/etc/ftpd-tls/ftpusers; fi
@unexec rmdir %D/etc/ftpd-tls 2> /dev/null || echo "If permanently deleting this package, %D/etc/ftpd-tls and its contents must be removed manually."