Subject: mail -s in bsd,pkg.mk
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <k.heinz.dez.drei@onlinehome.de>
List: tech-pkg
Date: 12/15/2003 03:49:26
Hi,
for PR 23682 I want to introduce a new variable MAIL:
defs.AIX.mk:MAIL?= /usr/bin/mailx
defs.BSDOS.mk:MAIL?= /usr/bin/mail
defs.Darwin.mk:MAIL?= /usr/bin/mail
defs.FreeBSD.mk:MAIL?= /usr/bin/mail
defs.IRIX.mk:MAIL?= /usr/sbin/mailx
defs.Linux.mk:MAIL?= /bin/mail # RH, Mandrake
defs.Linux.mk:MAIL?= /usr/bin/mail # Debian, Slackware, SuSE
defs.NetBSD.mk:MAIL?= /usr/bin/mail
defs.OpenBSD.mk:MAIL?= /usr/bin/mail
defs.SunOS.mk:MAIL?= /usr/bin/mailx
and
--- bsd.pkg.mk 13 Dec 2003 22:15:11 -0000 1.1320
+++ bsd.pkg.mk 15 Dec 2003 02:41:12 -0000
- mail -s"Package ${PKGNAME} installed" ${PKGSRC_MESSAGE_RECIPIENTS}
+ ${MAIL} -s"Package ${PKGNAME} installed" ${PKGSRC_MESSAGE_RECIPIENTS}
All of the above commands should take an option '-s' for the subject and
a list of addresses.
I think I got the correct paths, but I would be thankful if people could
check them on systems they know (NetBSD and Solaris are ok).
ciao
Klaus