Page MenuHomeFreeBSD

create sendmail directories only from BSD.sendmail.dist
ClosedPublic

Authored by emaste on Mar 22 2020, 1:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 3:43 PM
Unknown Object (File)
Wed, Dec 4, 8:55 AM
Unknown Object (File)
Oct 22 2024, 3:12 PM
Unknown Object (File)
Oct 10 2024, 3:27 AM
Unknown Object (File)
Oct 7 2024, 3:40 AM
Unknown Object (File)
Oct 1 2024, 1:51 AM
Unknown Object (File)
Sep 30 2024, 7:58 PM
Unknown Object (File)
Sep 30 2024, 10:01 AM
Subscribers

Details

Summary

Else when WITHOUT_SENDMAIL is set with pkgbase we create a sendmail package containing nothing but two directories.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 22 2020, 1:22 PM

We might need to look at a more holistic approach to this, e.g. adding an mtree option to include or exclude entries based on tags, or perhaps preprocessing the mtree files before stageworld. However, we already had BSD.sendmail.dist split out (although rS348981 re-added clientmqueue to BSD.var.dist, duplicating the entry in BSD.sendmail.dist) so it seemed sensible to use it for now.

BSD.var.dist still has at, dma, and unbound entries.

etc/mtree/BSD.sendmail.dist
15 ↗(On Diff #69763)

accidentally deleted a space on this line, will revert that before commit.

It is fine to commit as is. One thing to consider would be simplifying:

/set gname=daemon
            mqueue          tags=package=sendmail

to

mqueue          gname=daemon tags=package=sendmail

(note that the mqueue line above should be indented but the comment block doesn't allow leading spaces)

It is fine to commit as is. One thing to consider would be simplifying:

Thanks, sorry I didn't see your comment before committing. I agree this is preferable and committed in rS359216 - although I don't think it matters too much for this specific instance there are are couple more cases in BSD.var.dist that we'll have to address and it's good to have this as a clean example.