freebsd-ports/mail/exim/pkg-install
Sheldon Hearn 71de2357c8 I agree with the Exim community that the exim-4.xx has reached production
quality.

Move exim to exim-old for folks who need exim-3.xx, because the
configuration file for exim-4.xx is not backward compatible.  Move
exim-devel to exim, removing NO_LATEST_LINK:

        repo-copy       exim            -> exim-old
        copy over       exim-devel      -> exim
        retire          exim-devel

Slave ports are intended for use with the exim port, as before, so they
now build and install for exim-4.xx.
2002-09-12 10:09:02 +00:00

36 lines
1 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
# This is naughty, since the directory we create won't be removed along
# with Exim. However, logfiles should probably stick around after Exim
# is removed, until the administrator is sure he doesn't want them
# any more.
#
mkdir -p /var/log/exim
chown ${user}:${group} /var/log/exim