aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2001-12-30 03:57:26 +0800
committersheldonh <sheldonh@FreeBSD.org>2001-12-30 03:57:26 +0800
commit952e10a791333203dcfdeb1b0050ed54333c326c (patch)
treea8f04050afbf1dd8cdf3316f3f5c5f037e4e042f /mail
parent88ce5bdcb6bcabb9e1e1c0b561f03127b43b0208 (diff)
downloadfreebsd-ports-graphics-952e10a791333203dcfdeb1b0050ed54333c326c.tar.gz
freebsd-ports-graphics-952e10a791333203dcfdeb1b0050ed54333c326c.tar.zst
freebsd-ports-graphics-952e10a791333203dcfdeb1b0050ed54333c326c.zip
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.
Diffstat (limited to 'mail')
-rw-r--r--mail/exim-devel/pkg-install11
1 files changed, 4 insertions, 7 deletions
diff --git a/mail/exim-devel/pkg-install b/mail/exim-devel/pkg-install
index 69539a8c560..40ad765f2fc 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