Effectively remove sendmail from base
authorJohn Marino <draco@marino.st>
Sat, 7 Mar 2015 23:45:13 +0000 (00:45 +0100)
committerJohn Marino <draco@marino.st>
Sun, 8 Mar 2015 01:53:46 +0000 (02:53 +0100)
commit7d7c9684c83f02126cd4e001085b8417dceca797
treedab8c1d71b7cd8d0e2799bd3ccc4b4a73e5b2bd2
parent2f49d4c50cae1d6a1370f18b922893f7d87b9b17
Effectively remove sendmail from base

The NO_SENDMAIL build knob has been hardwired in sys.mk, so it is not
possible for it to be unset by /etc/make.conf.  This effectively prevents
sendmail from building.

A new check was added to "make upgrade" target to make sure the current
/etc/mail/mailer.conf is not configured to use the base sendmail as the
MTA.  If it fails the check, the upgrade will fail before it starts.
Directions are given hot to fix the problem in the error message.  A
successful check results in the sendmail-related binaries getting removed
from the system.

Finally, NO_SENDMAIL has been removed from the default make.conf and it's
man page.

The actual sendmail makefiles and source remain for now.  Once it is
confirmed that transition is working and dma is functioning well as a
replacement, sendmail and the NO_SENDMAIL conditions will be removed
permanently, along with modifying the mtree files.

Approved-by: dillon
Makefile_upgrade.inc
etc/Makefile
etc/defaults/make.conf
share/man/man5/make.conf.5
share/mk/sys.mk