diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2001-12-29 19:57:26 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2001-12-29 19:57:26 +0000 |
commit | 952e10a791333203dcfdeb1b0050ed54333c326c (patch) | |
tree | a8f04050afbf1dd8cdf3316f3f5c5f037e4e042f | |
parent | 88ce5bdcb6bcabb9e1e1c0b561f03127b43b0208 (diff) | |
download | FreeBSD-ports-952e10a791333203dcfdeb1b0050ed54333c326c.zip FreeBSD-ports-952e10a791333203dcfdeb1b0050ed54333c326c.tar.gz |
Exim 4 does not require numeric values for the compile-time constants
EXIM_USER and EXIM_GROUP. Don't force numeric values down the throats
of operators who, for some reason, have different numeric IDs for
user mailnull and group mail.
-rw-r--r-- | mail/exim-devel/pkg-install | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/mail/exim-devel/pkg-install b/mail/exim-devel/pkg-install index 69539a8..40ad765 100644 --- a/mail/exim-devel/pkg-install +++ b/mail/exim-devel/pkg-install @@ -13,19 +13,16 @@ PKG_PREFIX=${PKG_PREFIX:=/usr/local} -uid=26 -gid=6 user=mailnull group=mail if [ "$2" = "PRE-INSTALL" ]; then - # uid=26(mailnull) gid=26(mailnull) groups=26(mailnull) - if ! /usr/bin/id ${uid} | /usr/bin/grep -q "uid=${uid}(${user})"; then - echo "Exim requires user ${user} (UID ${uid}). Please update your system." 1>&2 + 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}:[^:]*:${gid}:" < /etc/group; then - echo "Exim requires group ${group} (GID ${gid}). Please update your system." 1>&2 + if ! /usr/bin/grep -q "^${group}:" < /etc/group; then + echo "Exim requires group ${group}. Please update your system." 1>&2 exit 1 fi fi |