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
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.
> 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.
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.
Home |
Main Index |
Thread Index |
Old Index