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
F105795926: D24149.id69763.diff
Fri, Dec 20, 7:50 PM
F105795396: D24149.id69768.diff
Fri, Dec 20, 7:38 PM
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
Subscribers

Details

Summary

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

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

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

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.