tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] wip/dma: update to 0.14



On 17/11/2026 11:13, Philip Dodd wrote:
On 17/11/2026 00:20, Greg Troxel wrote:
Philip Dodd <orange.spyderman%gmail.com@localhost> writes:

sbin is for programs invoked by a system administrator, or a script in
rc.d.

libexec is for programs invoked by other programs.
Thanks, that's helpful guidance.  On BSDs, where I expect dma to be
invoked via mailwrapper, libexec seems to be correct, rather than
sbin, and I assume that's also why FreeBSD packages it the way it
does.

But presumably on pkgsrc systems where there is no mailwrapper
equivalent, installing to libexec would leave users without a command
in the path.  Upstream does have separate make targets to make
sendmail, mailq symlinks to dma (but also in that case installs dma
into sbin...)
See pkgsrc/mail/mailwrapper, which provides the mailwrapper mechanisms
for other systems.  The pkgsrc-straightforward thing would be to install
in libexec always and expect those systems to use mailwrapper.

I suggest looking at all the other MTA packages and see what they do.  A
quick glance suggests they don't depend on mailwrapper and put a lot of
things in libexec, with commands for admins in sbin.

Thanks again for the steer, very helpful.

I've been checking up on what the "prior art" looks like for other MTAs in pkgsrc, and it does seem wip/dma is currently a bit of an outlier in this regard.  I like the straightforward approach and dma plays well with mailwrapper in my experience.

I would propose that a cleaner approach for pkgsrc would be :

- install dma to libexec

- provide example mailer.conf for mailwrapper users

- provide a pkg option that also provides the symlinks into sbin (for
   sendmail) or bin (for mailq, newaliases and possibly sendmail,
   because mailwrapper does this) for systems that rely on these, the
   way upstream and mailwrapper do

- (OPTIONALLY...) a separate package (dma-aliases?) for binary package
   users to achieve the same thing as the option without having to
  recompile...
It would be great to hear from Charlotte, but my 0.02 is that the fewer
options the better, and pkgsrc tends hard to doing everything in the
pkgsrc world the same everywhere.
Right, yes, I can see that less is probably more, especially for a package which exists largely to be a simpler MTA...
You have definitely absorbed that options and binary packages don't play
well together.

So yes, example mailer.conf (to be installed in share/examples/dma)
sounds good.

Done.  I have made a sample mailer.conf and a README.pkgsrc (in share/doc/dma) with a brief "Getting Started" message.

I've attached the current state of my branch including these more impactful changes.  pkglint -Wall "looks fine", and nothing jumps out at me when building with PKG_DEVELOPER=yes, but I'm new to this and it's now quite a bit more than just updating to 0.14 so definitely won't push this until there's a nod (or otherwise :) ) from Charlotte as maintainer.

Having said that, and ffter further testing, I've pushed my changes.  The libexec install target change is separate from the version bump to 0.14 and fixes for unprivileged staging and unprivileged mail submission.  It should be easy to revert if needed.

Thanks for all the advice,



Home | Main Index | Thread Index | Old Index