summaryrefslogtreecommitdiff
path: root/mail/mailman/files
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2017-09-10 16:53:56 +0000
committerMatthias Andree <mandree@FreeBSD.org>2017-09-10 16:53:56 +0000
commit4412b821218f19603d201c4696cb7e015ad1814a (patch)
treec001f7feeb3e8873f3549f0e084b7bdeed52c4ce /mail/mailman/files
parentAllow RUST_BACKTRACE to work without /proc mounted (diff)
Fix up DEFAULT_URL_HOST/DEFAULT_MAIL_HOST for jailed or external builds.
If the package is built in, for instance, poudriere, or on a computer other than the one it is later installed on, the DEFAULT_MAIL_HOST and DEFAULT_URL_HOST variables in the Mailman/Defaults.py file were unsuitable. Leverage pkg-install to fix these up to be the same as hostname -f at install time. [The MFH would require the intermediate update to 2.1.24 to be included.] MFH: 2017Q3
Notes
Notes: svn path=/head/; revision=449582
Diffstat (limited to 'mail/mailman/files')
-rw-r--r--mail/mailman/files/pkg-install.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/mailman/files/pkg-install.in b/mail/mailman/files/pkg-install.in
index 90d4f0584318..ce9bbd6474c0 100644
--- a/mail/mailman/files/pkg-install.in
+++ b/mail/mailman/files/pkg-install.in
@@ -106,6 +106,9 @@ POST-INSTALL)
echo "---> rcfile sets mailman_fix_perms to no, skipping check_perms"
fi
+ echo "---> Fixing up default host names (MAILHOST, URLHOST)"
+ sed -Ee "s}^(DEFAULT_(EMAIL|URL)_HOST) = '//'}\1 = '`hostname -f`'}" -i '' "%%MAILMANDIR%%/Mailman/Defaults.py"
+
echo "---> Running assorted other checks"
if egrep -q "^[ \t]*MTA.*=.*Postfix" "%%MAILMANDIR%%/Mailman/mm_cfg.py" ; then
# run Postfix-specific checks