Branch Coverage

lib/Mail/Toaster/Setup/Vpopmail.pm
Criterion Covered Total %
branch 0 136 0.0


line true false branch
18 0 0 if defined $p{'test_ok'}
20 0 0 unless ($self->conf->{'install_vpopmail'})
27 0 0 if ($Mail::Toaster::Setup::Vpopmail::OSNAME eq 'freebsd')
33 0 0 if ($version ne 'port')
47 0 0 if defined $p{'test_ok'}
51 0 0 $conf->{'vpopmail_learn_passwords'} ? :
52 0 0 $conf->{'vpopmail_ip_alias_domains'} ? :
53 0 0 $conf->{'vpopmail_qmail_ext'} ? :
54 0 0 $conf->{'vpopmail_disable_many_domains'} ? :
55 0 0 $conf->{'vpopmail_maildrop'} ? :
56 0 0 $conf->{'vpopmail_mysql'} ? :
57 0 0 $conf->{'vpopmail_roaming_users'} ? :
59 0 0 $conf->{'vpopmail_auth_logging'} ? :
61 0 0 if ($roaming eq 'SET' and $conf->{'vpopmail_relay_clear_minutes'})
65 0 0 if ($mysql eq 'SET')
66 0 0 unless $conf->{'install_mysql'}
67 0 0 if $conf->{'vpopmail_mysql_replication'}
68 0 0 if $conf->{'vpopmail_mysql_limits'}
69 0 0 if $conf->{'vpopmail_valias'}
70 0 0 if $conf->{'vpopmail_mysql_logging'}
73 0 0 unless $self->freebsd->install_port('vpopmail', 'flags', join(',', @defs), 'options', "# installed by Mail::Toaster\n# Options for vpopmail-5.4.32_3\n_OPTIONS_READ=vpopmail-5.4.32_3\n_FILE_COMPLETE_OPTIONS_LIST=AUTH_LOG CLEAR_PASSWD DOCS DOMAIN_QUOTAS FILE_LOCKING FILE_SYNC FPIC IP_ALIAS LDAP LDAP_SASL LEARN_PASSWORDS MAILDROP MD5_PASSWORDS MYSQL MYSQL_LIMITS MYSQL_REPLICATION ONCHANGE_SCRIPT ORACLE PASSWD PGSQL QMAIL_EXT ROAMING SEEKABLE SINGLE_DOMAIN SMTP_AUTH_PATCH SPAMASSASSIN SPAMFOLDER SQL_LOG SQL_LOG_TRIM SUID_VCHKPW SYBASE USERS_BIG_DIR VALIAS\nOPTIONS_FILE_$auth_log+=AUTH_LOG\nOPTIONS_FILE_SET+=CLEAR_PASSWD\nOPTIONS_FILE_SET+=DOCS\nOPTIONS_FILE_UNSET+=DOMAIN_QUOTAS\nOPTIONS_FILE_SET+=FILE_LOCKING\nOPTIONS_FILE_UNSET+=FILE_SYNC\nOPTIONS_FILE_SET+=FPIC\nOPTIONS_FILE_$ip_alias+=IP_ALIAS\nOPTIONS_FILE_UNSET+=LDAP\nOPTIONS_FILE_UNSET+=LDAP_SASL\nOPTIONS_FILE_$learn+=LEARN_PASSWORDS\nOPTIONS_FILE_$maildrop+=MAILDROP\nOPTIONS_FILE_SET+=MD5_PASSWORDS\nOPTIONS_FILE_$mysql+=MYSQL\nOPTIONS_FILE_$mysql_lim+=MYSQL_LIMITS\nOPTIONS_FILE_$mysql_rep+=MYSQL_REPLICATION\nOPTIONS_FILE_UNSET+=ONCHANGE_SCRIPT\nOPTIONS_FILE_UNSET+=ORACLE\nOPTIONS_FILE_UNSET+=PASSWD\nOPTIONS_FILE_UNSET+=PGSQL\nOPTIONS_FILE_$qmail_ext+=QMAIL_EXT\nOPTIONS_FILE_$roaming+=ROAMING\nOPTIONS_FILE_SET+=SEEKABLE\nOPTIONS_FILE_$single_dom+=SINGLE_DOMAIN\nOPTIONS_FILE_UNSET+=SMTP_AUTH_PATCH\nOPTIONS_FILE_UNSET+=SPAMASSASSIN\nOPTIONS_FILE_UNSET+=SPAMFOLDER\nOPTIONS_FILE_$sql_log+=SQL_LOG\nOPTIONS_FILE_UNSET+=SQL_LOG_TRIM\nOPTIONS_FILE_UNSET+=SUID_VCHKPW\nOPTIONS_FILE_UNSET+=SYBASE\nOPTIONS_FILE_SET+=USERS_BIG_DIR\nOPTIONS_FILE_$valias+=VALIAS\n")
119 0 0 if (-d $docroot and not -e "$docroot/vpopmail")
120 0 0 if (-d "$vpopdir/doc/man_html")
141 0 0 if ($installed and $installed eq $version)
145 0 0 unless ($self->util->yes_or_no('Do you want to reinstall vpopmail with the same version?', 'timeout', 60))
157 0 0 $conf->{$mt_setting} ? :
162 0 0 unless ($self->is_newer('min', '5.3.30', 'cur', $version))
163 0 0 if (defined $conf->{'vpopmail_default_quota'}) { }
176 0 0 if ($Mail::Toaster::Setup::Vpopmail::OSNAME eq 'darwin' and not -d '/usr/local/mysql' and -d '/opt/local/include/mysql')
192 0 0 if (-e "/usr/ports/distfiles/vpopmail-$version.tar.gz")
205 0 0 if (-d $package)
206 0 0 unless $self->util->source_warning('package', $package, 'src', "$src/mail")
212 0 0 unless $self->util->extract_archive($tarball)
214 0 0 if ($conf->{'vpopmail_mysql'})
222 0 0 if (defined $conf->{'vpopmail_qmail_ext'} and $conf->{'vpopmail_qmail_ext'})
227 0 0 if (defined $conf->{'vpopmail_maildrop'})
242 0 0 if (-e 'vlimits.h')
256 0 0 if (defined $self->conf->{'vpopmail_default_domain'}) { }
260 0 0 unless ($self->util->yes_or_no('Do you want to use a default domain? '))
268 0 0 unless ($default_domain)
273 0 0 if ($self->is_newer('min', '5.3.22', 'cur', $version))
298 0 0 unless -d $vetc
300 0 0 if (-d $vetc) { }
305 0 0 unless mkdir $vetc, 509
315 0 0 unless (defined $self->conf->{'vpopmail_etc_passwd'})
322 0 0 if ($self->util->yes_or_no('Do system users (/etc/passwd) get mail? (n) '))
328 0 0 if ($self->conf->{'vpopmail_etc_passwd'})
351 0 0 unless -x "$vpopdir/bin/vpasswd"
363 0 0 if (defined $conf->{'vpopmail_logging'} and $conf->{'vpopmail_logging'})
364 0 0 if ($conf->{'vpopmail_logging_verbose'})
373 0 0 unless ($self->util->yes_or_no('Do you want logging enabled? (y) '))
377 0 0 if ($self->util->yes_or_no('Do you want verbose logging? (y) '))
390 0 0 if $self->{'conf'}{'install_ezmlm_cgi'}
400 0 0 if (defined $roaming and not $roaming)
406 0 0 unless (defined $self->conf->{'vpopmail_roaming_users'})
413 0 0 if ($min and $min ne 180)
425 0 0 if defined $p{'test_ok'}
461 0 0 if $self->conf->{'vpopmail_mysql'}
479 0 0 unless ($uid and $gid)
487 0 0 unless $uid and $gid
500 0 0 if ($self->conf->{'vpopmail_mysql_limits'})
505 0 0 if ($mysql_repl)
511 0 0 if ($self->conf->{'vpopmail_disable_many_domains'})
522 0 0 unless ($self->conf->{'vpopmail_mysql'})
540 0 0 if ($mysql_repl) { }
556 0 0 unless ($dbh)
561 0 0 unless ($dbh)
587 0 0 unless ($sth->errstr)