Subject: emailing MESSAGE (was Re: packages writing files out of LOCALBASE)
To: James K. Lowden <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 11/02/2002 16:43:09
On Sat, 2 Nov 2002, James K. Lowden wrote:

> You're saying a calm, competent admin will see and do the right thing.
> I'm saying there are other kinds of admins.  Lots of people who install
> NetBSD at home to learn, and it's easy to miss a message if you redirect
> the console output to a file (which I do, for my future reference).

I agree. I had suggested the there be an option to allow mailing of the
MESSAGE files to the admin.

Debian's packaging system has that option -- it is very useful.

This would be useful especially when installing several packages at once,
because many MESSAGEs can scroll by (or easily forgotton).

Please try the following and send your feedback. Set MAIL_MESSAGE=1 in
/etc/mk.conf, for example to use.

--- mk/	Sat Nov  2 16:40:20 2002
+++ mk/	Sat Nov  2 16:23:02 2002
@@ -2193,14 +2193,6 @@
 	@${ECHO_MSG} ""
 	@${CAT} ${MESSAGE}
 	@${ECHO_MSG} ""
-	@(${ECHO} "The ${PKGNAME} package was installed." ; \
-	${ECHO_MSG} "Please note the following:" ; \
-	${ECHO} "" ; \
-	${CAT} ${MESSAGE} ; \
-	${ECHO} "" ) | \
-	mail -s "Package ${PKGNAME} installed" root
 .if !defined(NO_PKG_REGISTER)
 	${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} fake-pkg

Need to have pkg_add have this option too. And document in and pkg_add.8.

   Jeremy C. Reed