mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
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
This commit is contained in:
parent
de97c5e9a7
commit
4412b82121
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=449582
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= mailman
|
||||
DISTVERSION= 2.1.24
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= GNU \
|
||||
SF/${PORTNAME}/Mailman%202.1%20%28stable%29/${PORTVERSION} \
|
||||
@ -34,7 +35,9 @@ CONFIGURE_ARGS+=--with-python=${PYTHON_CMD} \
|
||||
--with-username=${MM_USERNAME} \
|
||||
--with-groupname=${MM_GROUPNAME} \
|
||||
--with-mail-gid=${MAIL_GID} --with-cgi-gid=${CGI_GID} \
|
||||
--with-permcheck=no
|
||||
--with-permcheck=no \
|
||||
--with-mailhost=// \
|
||||
--with-urlhost=//
|
||||
|
||||
# The Mailman port supports a number of variables that may be tweaked at
|
||||
# build time. Getting the values of some of them right is crucial!
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user