Page MenuHomeDevCentral

D3627.diff
No OneTemporary

D3627.diff

diff --git a/roles/mailserver/dovecot/software.sls b/roles/mailserver/dovecot/software.sls
--- a/roles/mailserver/dovecot/software.sls
+++ b/roles/mailserver/dovecot/software.sls
@@ -5,5 +5,40 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
+{% if grains['os'] == 'FreeBSD' %}
+
+# -------------------------------------------------------------
+# Port options
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/var/db/ports/mail_dovecot/options:
+ file.managed:
+ - source: salt://roles/devserver/userland-software/files/port_options
+ - template: jinja
+ - mode: 644
+ - context:
+ args:
+ category: mail
+ name: mail_dovecot
+ options:
+ set:
+ - PGSQL
+
+# -------------------------------------------------------------
+# Build and install package
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+dovecot_build_port:
+ cmd.run:
+ - name: |
+ make build package deinstall reinstall
+ pkg lock --yes mail_dovecot
+ - cwd: /usr/ports/databases/mail_dovecot
+ - creates: /usr/local/etc/dovecot
+
+{% else %}
+
dovecot:
pkg.installed
+
+{% endif %}

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 25, 21:41 (15 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2602136
Default Alt Text
D3627.diff (1 KB)

Event Timeline