Gentoo Installer Feature Request: pureftpd enable TLS

on install or upgrade with "reconfigure services" the TLS option always gets kicked out, so i made a litte change. if cert file /etc/ssl/private/pure-ftpd.pem exists TLS is enabled. maybe you can add this to production version. thanks.

SEARCH

$content = preg_replace('/MISC_OTHER="[^"]+"/', 'MISC_OTHER="-b -A -E -Z -D -H -O clf:'.$logdir.'/transfer.log"', $content);

REPLACE

//* Enable TLS if certificate file exists
$enable_tls = '';
if(file_exists('/etc/ssl/private/pure-ftpd.pem')) {
  $enable_tls = ' -Y 1';
}

$content = preg_replace('/MISC_OTHER="[^"]+"/', 'MISC_OTHER="-b -A -E -Z -D -H -O clf:'.$logdir.'/transfer.log'.$enable_tls.'"', $content);
Edited by Christian