On Wed, Feb 12, 2020 at 11:53:09AM -0600, Tom Browder wrote:
>   https://github.com/OpenSMTPD/OpenSMTPD
> 
> I would like to install from source but I wonder if that is such a
> smart move, especially when we now use systemd and the source is set
> up with the traditional GNU automake system and I don't see any
> provision for systemd.  I don't grok systemd very well and usually
> rely on others for the proper setup.
> 
> I have asked for help on the OpenSMTPD mailing list, but I suggested
> my first effort would be to use the systemd setup used by the Debian
> installation (with appropriate renaming). I haven't received an answer
> yet.

Well, you have two main issues.

First, you'll want to make sure *other* packages know that you have
a mail-transport-agent installed.  The Debian answer to this is a
package called "equivs" which lets you build dummy packages that
tell the package manager that you have various things, so it doesn't
freak out.

I believe equivs even comes with a sample control file that builds
a package that "provides:" mail-transport-agent.  Mine's named
mta-local.

Second, you'll need a way to start up your service after building and
installing it.  I don't know OpenSMTPD, and I don't know what its Debian
systemd unit file looks like.  If you intend to build and install
the upstream version in a way that looks just like the Debian package
does, then you might consider copying the Debian systemd unit file,
changing its ExecStart= line(s) to point to your daemon, and dropping
it in /etc/systemd/system/.

On the other hand, if the Debian package does a lot of crazy crap
that you do not intend to duplicate, you might find it easier to
write a systemd unit file from scratch.

Reply via email to