summaryrefslogtreecommitdiff
path: root/mail/postfixadmin33/files
diff options
context:
space:
mode:
authorMel Pilgrim <ports.maintainer@evilphi.com>2021-10-25 16:36:01 +0900
committerYasuhiro Kimura <yasu@FreeBSD.org>2021-10-26 16:21:22 +0900
commit3d87bd0fc819729e9089ce28e097e30d7b92d950 (patch)
tree114c8f54e357f2e8e64f934f93b6858c2e32dfb3 /mail/postfixadmin33/files
parentwww/deno: Update to 1.15.3 (diff)
mail/postfixadmin33(-lite): Add new ports
* Add mail/postfixadmin33 as PostfixAdmin 3.3.x release * Add mail/postfixadmin33-lite as slave port of mail/postfixadmin33 PR: 258651 Approved by: ygy (mentor) Differential Revision: https://reviews.freebsd.org/D32637
Diffstat (limited to 'mail/postfixadmin33/files')
-rw-r--r--mail/postfixadmin33/files/patch-config.inc.php18
-rw-r--r--mail/postfixadmin33/files/pkg-message.in23
2 files changed, 41 insertions, 0 deletions
diff --git a/mail/postfixadmin33/files/patch-config.inc.php b/mail/postfixadmin33/files/patch-config.inc.php
new file mode 100644
index 000000000000..9fade3e9ea4a
--- /dev/null
+++ b/mail/postfixadmin33/files/patch-config.inc.php
@@ -0,0 +1,18 @@
+--- config.inc.php.orig 2021-08-09 14:34:09 UTC
++++ config.inc.php
+@@ -212,10 +212,11 @@ $CONF['authlib_default_flavor'] = 'md5raw';
+ // for dovecot 1.x
+ // $CONF['dovecotpw'] = "/usr/sbin/dovecotpw";
+ // for dovecot 2.x (dovecot 2.0.0 - 2.0.7 is not supported!)
+-$CONF['dovecotpw'] = "/usr/sbin/doveadm pw";
+-if(@file_exists('/usr/bin/doveadm')) { // @ to silence openbase_dir stuff; see https://github.com/postfixadmin/postfixadmin/issues/171
+- $CONF['dovecotpw'] = "/usr/bin/doveadm pw"; # debian
+-}
++#$CONF['dovecotpw'] = "/usr/sbin/doveadm pw";
++#if(@file_exists('/usr/bin/doveadm')) { // @ to silence openbase_dir stuff; see https://github.com/postfixadmin/postfixadmin/issues/171
++# $CONF['dovecotpw'] = "/usr/bin/doveadm pw"; # debian
++#}
++$CONF['dovecotpw'] = "/usr/local/sbin/dovecotpw"; # FreeBSD
+
+ // Password validation
+ // New/changed passwords will be validated using all regular expressions in the array.
diff --git a/mail/postfixadmin33/files/pkg-message.in b/mail/postfixadmin33/files/pkg-message.in
new file mode 100644
index 000000000000..9b1f449d5b69
--- /dev/null
+++ b/mail/postfixadmin33/files/pkg-message.in
@@ -0,0 +1,23 @@
+[
+{ type: install
+ message: <<EOM
+If you are upgrading, you may need to update your existing database.
+You can do so by browsing to [URL]/setup.php where [URL] is the
+postfixadmin root.
+
+To avoid checksum errors when uninstalling or upgrading postfixadmin,
+do not edit config.inc.php. Instead, put your configuration settings
+in config.local.php in the postfixadmin webroot. That file will be
+included automatically by config.inc.php.
+
+For detailed information, please see the complete installation steps
+in %%DOCSDIR%%/INSTALL.TXT.
+EOM
+}
+{ type: upgrade
+ message: <<EOM
+For upgrade-related details, including configuration changes, see
+%%DOCSDIR%%/CHANGELOG.TXT.
+EOM
+}
+]