Addptions for freebsd

This commit is contained in:
Tube 2023-11-04 22:08:02 +01:00
parent 0b7b31eb3e
commit 26028c9652
1 changed files with 14 additions and 5 deletions

View File

@ -9,14 +9,23 @@ classes:
"rspamd_scripts" expression => strcmp("$(cfg[rspamd_scripts])","true"); "rspamd_scripts" expression => strcmp("$(cfg[rspamd_scripts])","true");
vars: vars:
"imap_key" string => "$(cfg_dir)/private/imap.key";
"imap_cert" string => "$(cfg_dir)/private/imap.crt";
"submission_key" string => "$(cfg_dir)/private/submission.key";
"submission_cert" string => "$(cfg_dir)/private/submission.crt";
freebsd:: freebsd::
"service_name" string => "dovecot"; "service_name" string => "dovecot";
"cfg_dir" string => "/usr/local/etc/dovecot"; "cfg_dir" string => "/usr/local/etc/dovecot";
"dovecot_conf" string => "$(cfg_dir)/dovecot.conf"; "dovecot_conf" string => "$(cfg_dir)/dovecot.conf";
"pkgs" slist => { "pkgs" slist => {
"dovecot" "dovecot",
"dovecot-pigeonhole"
}; };
"sievec_exe" string => "/usr/local/bin/sievec";
debian:: debian::
"cfg_dir" string => "/etc/dovecot"; "cfg_dir" string => "/etc/dovecot";
"dovecot_conf" string => "$(cfg_dir)/dovecot.conf"; "dovecot_conf" string => "$(cfg_dir)/dovecot.conf";
@ -103,25 +112,25 @@ files:
"$(imap_cert)" "$(imap_cert)"
handle => "dovecot_imap_cert_installed", handle => "dovecot_imap_cert_installed",
classes => if_repaired(dovecot_repaired), classes => if_repaired(dovecot_repaired),
copy_from => local_dcp( execresult( "/usr/bin/readlink -qfn $(cfg[imap_cert])","noshell" )), copy_from => local_dcp( execresult( "/usr/bin/readlink -fn $(cfg[imap_cert])","noshell" )),
perms => m("600"); perms => m("600");
"$(imap_key)" "$(imap_key)"
handle => "dovecot_imap_key_installed", handle => "dovecot_imap_key_installed",
classes => if_repaired(dovecot_repaired), classes => if_repaired(dovecot_repaired),
copy_from => local_dcp( execresult( "/usr/bin/readlink -qfn $(cfg[imap_key])","noshell" )), copy_from => local_dcp( execresult( "/usr/bin/readlink -fn $(cfg[imap_key])","noshell" )),
perms => m("600"); perms => m("600");
"$(submission_cert)" "$(submission_cert)"
handle => "dovecot_submission_cert_installed", handle => "dovecot_submission_cert_installed",
classes => if_repaired(dovecot_repaired), classes => if_repaired(dovecot_repaired),
copy_from => local_dcp( execresult( "/usr/bin/readlink -qfn $(cfg[submission_cert])","noshell" )), copy_from => local_dcp( execresult( "/usr/bin/readlink -fn $(cfg[submission_cert])","noshell" )),
perms => m("600"); perms => m("600");
"$(submission_key)" "$(submission_key)"
handle => "dovecot_submission_key_installed", handle => "dovecot_submission_key_installed",
classes => if_repaired(dovecot_repaired), classes => if_repaired(dovecot_repaired),
copy_from => local_dcp( execresult( "/usr/bin/readlink -qfn $(cfg[submission_key])","noshell" )), copy_from => local_dcp( execresult( "/usr/bin/readlink -fn $(cfg[submission_key])","noshell" )),
perms => m("600"); perms => m("600");