2f4eff9be7
* Update to exim-4.24 (bugfix release). * Wishlist patch for "eqi" incorporated. * Mark exim-{ldap2,mysql,postgresql,} as conflicting. * Substitute PORTREVISION for build number so that the version string hints at which version of the port the binary comes from. * Clean up POST-INSTALL-NOTES. * Install example scripts, especially upgrade converters, now that exim-old has been retired. * Enable DNSDB-style lookup support by default; it can be disabled with WITHOUT_DNSDB. * Simplify LDAP support, using various versions of OpenLDAP only. The old WITH_OPENLDAP[0-9][0-9] options are now invalid; use WITH_OPENLDAP and/or WITH_OPENLDAP_VER instead. * Retired exim-ldap port; OpenLDAP 1.2 is ancient. * Allow the operator to specify preferred MySql version with WITH_MYSQL_VER. * Allow the operator to specify preferred Berkeley DB version with WITH_BDB_VER; the old DB_LIB_VERSION option is now invalid. * Respect bsd.ports.mk defaults of MySQL 4.0 and OpenLDAP 2.1. * Allow the operator to specify default charset for header conversions, with WITH_DEFAULT_CHARSET. * Limit configure files to ${PREFIX}/etc/exim by default for security reasons; the operator may override this behaviour with WITHOUT_ALT_CONFIG_PREFIX. !!!WARNING!!! Some of these changes may cause trouble for folks who have a bunch of exim port tweaks in make.conf and pkgtools.conf. The ALT_CONFIG_PREFIX change may break existing deployments. PR: ports/57098 Submitted by: Oliver Eikemeier <eikemeier@fillmore-labs.com> PR: ports/56117 Submitted by: Pat Lashley <patl+freebsd@volant.org> PR: ports/57099 Reported by: Mark Foster <mark@foster.cc>
55 lines
1.7 KiB
Bash
55 lines
1.7 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Since FreeBSD does not supply a user for running an MTA in a sandbox
|
|
# by default, use user 'exim', adding it if it does not exist. Even
|
|
# if FreeBSD supplied an MTA user, it's neglected to do so for so long
|
|
# that every sandboxed MTA under the sun uses its own user, so user
|
|
# 'exim' should probably be used forever.
|
|
#
|
|
# Modern FreeBSD systems already have a group mail.
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PKG_PREFIX=${PKG_PREFIX:=/usr/local}
|
|
|
|
user=mailnull
|
|
group=mail
|
|
|
|
if [ "$2" = "PRE-INSTALL" ]; then
|
|
if ! /usr/bin/id ${user} > /dev/null; then
|
|
echo "Exim requires user ${user}. Please update your system." 1>&2
|
|
exit 1
|
|
fi
|
|
if ! /usr/bin/grep -q "^${group}:" < /etc/group; then
|
|
echo "Exim requires group ${group}. Please update your system." 1>&2
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
if [ "$2" = "POST-INSTALL" ]; then
|
|
cf=$PKG_PREFIX/etc/exim/configure
|
|
if [ -e $cf ]; then
|
|
if /usr/bin/grep -q '^[^#]*hostlist.*relay_from_hosts.*=.*127.0.0.1' $cf
|
|
then
|
|
echo
|
|
echo "============================================================"
|
|
echo " !!! WARNING !!! "
|
|
echo "============================================================"
|
|
echo
|
|
echo "Existing configure file $cf"
|
|
echo "contains 127.0.0.1 in relay_from_hosts hostlist!"
|
|
echo "Use of localhost instead of 127.0.0.1 is highly recommended."
|
|
echo
|
|
echo "============================================================"
|
|
echo " !!! WARNING !!! "
|
|
echo "============================================================"
|
|
fi
|
|
fi
|
|
if ! /usr/bin/grep -qs "^exim_enable" /etc/rc.conf
|
|
then
|
|
echo
|
|
echo "Don't forget to add 'exim_enable=\"YES\"' to rc.conf(5)"
|
|
echo
|
|
fi
|
|
fi
|