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 13/11/2026 13:44, Greg Troxel wrote:
Philip Dodd <orange.spyderman%gmail.com@localhost> writes:

Besides the above, this package uses the portable ${PREFIX}/sbin/dma,
following upstream’s top-level Makefile and preserving the existing
pkgsrc layout. The FreeBSD port uses upstream’s separate bsd/ build
and explicitly sets BINDIR=${LIBEXEC}, installing it under
${PREFIX}/libexec/dma. This update does not change that, but it might
be desirable on BSD installs.
More or less, we should end up with installation following pkgsrc norms,
and either upstream plan may need fixing.

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...)

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...


I now have wip access and have the two initial commits I proposed ready to push and I'll do that in a couple of days if there is no objection from the Maintainer, but I'd appreciate any steer on the above as it's a bigger change.




Home | Main Index | Thread Index | Old Index