From 5ce31b8c1ad65debabf6e44fe28e5551eac7a672 Mon Sep 17 00:00:00 2001 From: millert <> Date: Thu, 6 Apr 2000 18:26:05 +0000 Subject: [PATCH] Enable sendmail 8.10.0. Things like sendmail.* and aliases now live in /etc/mail. --- src/etc/Makefile | 9 ++++++--- src/etc/mtree/special | 10 ++++++---- src/etc/rc | 6 +++--- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/etc/Makefile b/src/etc/Makefile index 1d73ba77..f504ac91 100644 --- a/src/etc/Makefile +++ b/src/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.106 2000/01/11 13:50:03 peter Exp $ +# $OpenBSD: Makefile,v 1.107 2000/04/06 18:26:04 millert Exp $ TZDIR= /usr/share/zoneinfo LOCALTIME= US/Pacific @@ -12,7 +12,7 @@ NOOBJ= oobj # -rw-r--r-- BINOWN= root BINGRP= wheel -BIN1= aliases bootptab changelist ccd.conf csh.cshrc csh.login csh.logout \ +BIN1= bootptab changelist ccd.conf csh.cshrc csh.login csh.logout \ daily dhcpd.conf dhcpd.interfaces dm.conf exports ftpusers \ ftpchroot gettytab group hosts hosts.lpd ifaliases inetd.conf \ ipf.rules ksh.kshrc locate.rc man.conf monthly motd mrouted.conf \ @@ -206,7 +206,10 @@ distribution-etc-root-var: distrib-dirs (cd ../lib/libssl; ${MAKE} -f Makefile.bsd-wrapper distribution) (cd ../gnu/usr.bin/lynx; ${MAKE} -f Makefile.bsd-wrapper distribution) (cd ../usr.bin/mail; ${MAKE} distribution) - /usr/libexec/sendmail/sendmail -C${DESTDIR}/etc/sendmail.cf -bi -O AliasFile=${DESTDIR}/etc/aliases + ${INSTALL} -c -o root -g ${BINGRP} -m 644 aliases \ + ${DESTDIR}/etc/mail/aliases + /usr/libexec/sendmail/sendmail -C${DESTDIR}/etc/mail/sendmail.cf \ + -bi -O AliasFile=${DESTDIR}/etc/mail/aliases ${INSTALL} -c -o root -g wheel -m 600 root/root.mail \ ${DESTDIR}/var/mail/root diff --git a/src/etc/mtree/special b/src/etc/mtree/special index 25674ae7..8f9011ff 100644 --- a/src/etc/mtree/special +++ b/src/etc/mtree/special @@ -1,4 +1,4 @@ -# $OpenBSD: special,v 1.23 2000/01/05 19:57:37 angelos Exp $ +# $OpenBSD: special,v 1.24 2000/04/06 18:26:05 millert Exp $ # $NetBSD: special,v 1.4 1996/05/08 21:30:18 pk Exp $ # @(#)special 8.2 (Berkeley) 1/23/94 # @@ -16,8 +16,6 @@ mem type=char mode=0640 uname=root gname=kmem .. #dev etc type=dir mode=0755 uname=root gname=wheel -aliases type=file mode=0644 uname=root gname=wheel optional -aliases.db type=file mode=0644 uname=root gname=wheel optional crontab type=file mode=0644 uname=root gname=wheel optional csh.cshrc type=file mode=0644 uname=root gname=wheel csh.login type=file mode=0644 uname=root gname=wheel @@ -44,6 +42,11 @@ mailer.conf type=file mode=0644 uname=root gname=wheel master.passwd type=file mode=0600 uname=root gname=wheel monthly type=file mode=0644 uname=root gname=wheel monthly.local type=file mode=0644 uname=root gname=wheel optional +mail type=dir mode=0755 uname=root gname=wheel +aliases type=file mode=0644 uname=root gname=wheel optional +aliases.db type=file mode=0644 uname=root gname=wheel optional +sendmail.cf type=file mode=0644 uname=root gname=wheel optional +.. #mail mtree type=dir mode=0755 uname=root gname=wheel special type=file mode=0600 uname=root gname=wheel .. #mtree @@ -58,7 +61,6 @@ rc.securelevel type=file mode=0644 uname=root gname=wheel rc.shutdown type=file mode=0644 uname=root gname=wheel security type=file mode=0644 uname=root gname=wheel resolv.conf type=file mode=0644 uname=root gname=wheel optional -sendmail.cf type=file mode=0644 uname=root gname=wheel optional shells type=file mode=0644 uname=root gname=wheel skeykeys type=file mode=0600 uname=root gname=wheel optional spwd.db type=file mode=0600 uname=root gname=wheel diff --git a/src/etc/rc b/src/etc/rc index 26792c6d..13491d5c 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.131 2000/03/05 16:55:22 millert Exp $ +# $OpenBSD: rc,v 1.132 2000/04/06 18:26:04 millert Exp $ # System startup script run by init on autoboot # or after single-user. @@ -445,10 +445,10 @@ if [ X${lpd} = X"YES" ]; then fi # $sendmail_flags is imported from /etc/rc.conf; -# If $sendmail_flags == NO or /etc/sendmail.cf doesn't exist, then +# If $sendmail_flags == NO or /etc/mail/sendmail.cf doesn't exist, then # sendmail isn't run. We call sendmail with a full path so that # SIGHUP works. -if [ "X${sendmail_flags}" != X"NO" -a -s /etc/sendmail.cf ]; then +if [ "X${sendmail_flags}" != X"NO" -a -s /etc/mail/sendmail.cf ]; then echo -n ' sendmail'; /usr/sbin/sendmail ${sendmail_flags} fi