Subject: Re: etcupdate error
To: None <current-users@netbsd.org>
From: Rui-Xiang Guo <rxg@myrealbox.com>
List: current-users
Date: 11/03/2004 09:11:45
> On Tue, Nov 02, 2004 at 02:55:20PM +0800, Rui-Xiang Guo wrote:
> > Hi, all.
> > Affer everything building and installing finished, I tried to update the
> > /etc on my box. Then just got such error message:
> > 
> > bee# /usr/sbin/etcupdate -s /usr/src/etc
> > *** Creating /tmp/temproot
> > *** Populating /tmp/temproot from /usr/src/etc
> > install: etcsubmit.cf: stat: No such file or directory
> > bee# 

Hmm, I tried to trace it.
1. In /usr/bin/etcupdate, it jump to /usr/src/etc then 'make distribution'.
2. When 'make distribution', it will install configure file for sendmail.
[...]
..if (${MKSENDMAIL} != "no")
        ${MAKEDIRTARGET} ${NETBSDSRCDIR}/gnu/usr.sbin/sendmail/cf/cf configinstall
..endif
[...]
3. In the Makefile in above directory, I found these codes -
[...]
..if !defined(SENDMAIL_SUIDROOT) || ${SENDMAIL_SUIDROOT} != "yes"
CONFIGFILES+=           etcsubmit.cf
FILESDIR_etcsubmit.cf=  /etc/mail
FILESNAME_etcsubmit.cf= submit.cf
..endif
[...]

Then I can't find etcsubmit.cf in ${NETBSDSRCDIR}/gnu/dist/sendmail/cf/cf
:(