diff options
author | Sheldon Hearn <sheldonh@FreeBSD.org> | 2001-12-11 12:34:54 +0000 |
---|---|---|
committer | Sheldon Hearn <sheldonh@FreeBSD.org> | 2001-12-11 12:34:54 +0000 |
commit | 06b84adc7d122c4a899061fec70d8e3b26183af9 (patch) | |
tree | 3042d055c544f6db1ec0eaccf36f07daa1be2f26 /mail/exim-devel | |
parent | c6709e2353e1ac13ed36459d0ff5f17a119dacc2 (diff) | |
download | ports-06b84adc7d122c4a899061fec70d8e3b26183af9.tar.gz ports-06b84adc7d122c4a899061fec70d8e3b26183af9.zip |
Notes
Diffstat (limited to 'mail/exim-devel')
-rw-r--r-- | mail/exim-devel/files/patch-src::EDITME | 11 | ||||
-rw-r--r-- | mail/exim-devel/files/patch-src::configure.default | 14 | ||||
-rw-r--r-- | mail/exim-devel/pkg-install | 19 |
3 files changed, 30 insertions, 14 deletions
diff --git a/mail/exim-devel/files/patch-src::EDITME b/mail/exim-devel/files/patch-src::EDITME index 6a314acc6ec4..2e25772f2520 100644 --- a/mail/exim-devel/files/patch-src::EDITME +++ b/mail/exim-devel/files/patch-src::EDITME @@ -43,6 +43,17 @@ # In some installations there may be multiple machines sharing file systems, +@@ -231,8 +231,8 @@ + # "security" setting, which controls how privilege is released (setuid vs + # seteuid). + +-# EXIM_UID= +-# EXIM_GID= ++EXIM_UID=26 ++EXIM_GID=6 + + + # Compiling the Exim monitor: If you want to compile the Exim monitor, @@ -243,7 +243,7 @@ # are defaulted in the OS/Makefile-Default file, and can be overridden # in local OS-specific make files. diff --git a/mail/exim-devel/files/patch-src::configure.default b/mail/exim-devel/files/patch-src::configure.default index a5876067d758..9b24cf348686 100644 --- a/mail/exim-devel/files/patch-src::configure.default +++ b/mail/exim-devel/files/patch-src::configure.default @@ -1,14 +1,16 @@ --- src/configure.default.orig Thu Jun 14 19:39:54 2001 +++ src/configure.default Thu Jun 14 20:10:52 2001 -@@ -99,6 +99,8 @@ +@@ -99,7 +99,9 @@ # normal user. This isn't usually a problem, as most sites have an alias for # root that redirects such mail to a human administrator. -+exim_user = exim +-never_users = root ++exim_user = mailnull +exim_group = mail - never_users = root ++never_users = root : mailnull + # The use of your host as a mail relay by any host, including the local host @@ -122,6 +124,8 @@ # See the section of the manual entitled "Control of relaying" for more # information. @@ -29,17 +31,17 @@ # This transport is used for handling pipe deliveries generated by alias -@@ -294,7 +298,8 @@ +@@ -300,7 +304,8 @@ driver = aliasfile file = /etc/aliases search_type = lsearch -# user = exim -+ user = exim ++ user = mailnull + group = mail file_transport = address_file pipe_transport = address_pipe -@@ -328,6 +333,7 @@ +@@ -334,6 +339,7 @@ file_transport = address_file pipe_transport = address_pipe reply_transport = address_reply diff --git a/mail/exim-devel/pkg-install b/mail/exim-devel/pkg-install index 85811906091a..3a1673907c5c 100644 --- a/mail/exim-devel/pkg-install +++ b/mail/exim-devel/pkg-install @@ -13,17 +13,20 @@ PKG_PREFIX=${PKG_PREFIX:=/usr/local} -user=exim +uid=26 +gid=6 +user=mailnull group=mail if [ "$2" = "PRE-INSTALL" ]; then - if /usr/bin/id ${user} 2>/dev/null; then - echo "You already have a user '${user}', so Exim will use it." - else - echo "You need a user '${user}'..." - /usr/sbin/pw useradd ${user} -c "Mail Transfer Agent" \ - -g ${group} -d /nonexistent -s /sbin/nologin || exit 1 - echo "Added user '${user}', Exim will use it." + # uid=26(mailnull) gid=26(mailnull) groups=26(mailnull) + if ! /usr/bin/id ${uid} | /usr/bin/grep "uid=${uid}(${user})"; then + echo "Exim requires user ${user} (UID ${uid}). Please update your system." 1>&2 + exit 1 + fi + if ! /usr/bin/grep "^${group}:[^:]*:${gid}:" < /etc/group; then + echo "Exim requires group ${group} (GID ${gid}). Please update your system." 1>&2 + exit 1 fi fi |