From owner-freebsd-bugs Tue Aug 14 11:50: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CD8AB37B401 for ; Tue, 14 Aug 2001 11:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7EIo1l18432; Tue, 14 Aug 2001 11:50:01 -0700 (PDT) (envelope-from gnats) Date: Tue, 14 Aug 2001 11:50:01 -0700 (PDT) Message-Id: <200108141850.f7EIo1l18432@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Andre Albsmeier Subject: Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA Reply-To: Andre Albsmeier Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/29699; it has been noted by GNATS. From: Andre Albsmeier To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA Date: Tue, 14 Aug 2001 20:42:44 +0200 One more thing I noticed here: When using the above Makefile and NO_MAILWRAPPER is set and the link /usr/sbin/sendmail -> /usr/sbin/mailwrapper exists, sendmail gets installed as /usr/sbin/mailwrapper: andre@voyager:/usr/sbin>ll sendmail mailwrapper -r-sr-xr-x 1 root wheel - 371756 Aug 14 20:35 mailwrapper* lrwxr-xr-x 1 root wheel - 21 Aug 14 20:34 sendmail@ -> /usr/sbin/mailwrapper I don't understand this since man install says: -S Safe copy. Normally, install unlinks an existing target before installing the new file. With the -S flag a temporary file is used and then renamed to be the target. The reason this is safer is that if the copy or rename fails, the existing target is left untouched. The -S option is not used during the install, so the file should get unlinked before but this is obviously not the case. I have helped myself with the following, additional path to usr.sbin/sendmail/Makefile: --- Makefile.ORI Sat Aug 4 09:07:27 2001 +++ Makefile Tue Aug 14 20:40:36 2001 @@ -58,6 +60,11 @@ LDADD+=${SENDMAIL_LDADD} LDFLAGS+=${SENDMAIL_LDFLAGS} +.if defined(NO_MAILWRAPPER) && exists(/usr/sbin/sendmail) +beforeinstall: + @rm /usr/sbin/sendmail +.endif + afterinstall: @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/sendmail.cf -a \ ! -f ${DESTDIR}/etc/mail/sendmail.cf ]; then \ I assume there are better ways of doing this -- or install is broken. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message