Date: Tue, 14 Aug 2001 11:50:01 -0700 (PDT) From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA Message-ID: <200108141850.f7EIo1l18432@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/29699; it has been noted by GNATS.
From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108141850.f7EIo1l18432>
