Page MenuHomeFreeBSD

pkgbase: resolve mailer.conf conflict WITHOUT_SENDMAIL
ClosedPublic

Authored by kevans on May 20 2020, 4:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 2, 9:45 PM
Unknown Object (File)
Feb 23 2024, 4:29 PM
Unknown Object (File)
Jan 2 2024, 8:54 AM
Unknown Object (File)
Dec 20 2023, 7:29 AM
Unknown Object (File)
Dec 4 2023, 5:08 AM
Unknown Object (File)
Dec 4 2023, 5:08 AM
Unknown Object (File)
Dec 4 2023, 5:07 AM
Unknown Object (File)
Dec 4 2023, 4:53 AM
Subscribers

Details

Summary

When WITHOUT_SENDMAIL is set, we end up with two different mailer.conf that conflict, and hilarity ensues. There's currently three different places that we might install mailer.conf:

  • ^/etc/Makefile (package=runtime, contingent on MK_MAIL != no)
  • ^/libexec/dma/dmagent/Makefile (package=dma, contingent on MK_SENDMAIL != no)
  • ^/usr.sbin/mailwrapper/Makefile (package=utilities, contingent on not-installed)

The mailwrapper installation will effectively never happen because the ^/etc one will first.

This patch simplifies the whole situation; remove the ^/etc/Makefile version and install it primarily in mailwrapper if MK_MAILWRAPPER != "no". The scenarios covered in mailwrapper are:

  • sendmail(8) is installed, dma(8) may or may not be installed
  • neither sendmail(8) nor dma(8) is installed

In the first scenario, sendmail(8) is dominant so we can go ahead and install the version in ^/etc/mail. In the unlisted scenario, sendmail(8) is not installed but dma(8) is, we'll let ^/libexec/dma/dmagent do the installation. In the second listed scenario, we still want to install an example mailer.conf so just install the base sendmail(8) version.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 31190