mail-filter/opendkim: new revision to set sysconfdir consistently.
authorMichael Orlitzky <mjo@gentoo.org>
Wed, 24 Apr 2019 21:23:44 +0000 (17:23 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Wed, 24 Apr 2019 21:24:15 +0000 (17:24 -0400)
commit843899b66751006b2b882d6f5741f3d0082c06fd
tree9a4544f263814f2b4add3edb8b062cc035466cba
parent38ea1783b5176c18d9ec35cd4391c54cd5ed5bb6
mail-filter/opendkim: new revision to set sysconfdir consistently.

In the previous revision -r11, we tried to unite the configuration for
OpenRC and systemd. But, I made a mistake: the upstream location for
e.g. the main configuration file is @sysconfdir@/opendkim.conf, but in
Gentoo we install it to @sysconfdir@/opendkim/opendkim.conf. That path
is overridden in the OpenRC service script, but not in the systemd
service, which now crashes upon starting.

The error, however, is in the OpenRC script (and in our ebuild). The
correct way to relocate the configuration files is to pass a different
value to --sysconfdir in src_configure(). This new revision does that,
and updates the OpenRC service script to use the built-in location,
rather than a custom Gentoo-defined one. That's how it should have
been all along.

This also fixes an unreported bug, wherein all of the installed
documentation like opendkim.conf(5) pointed to the wrong path.

Thanks to Ralph Seichter who built a systemd virtual machine in order
to test everything.

Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
mail-filter/opendkim/files/opendkim-2.10.3-openrc.patch
mail-filter/opendkim/opendkim-2.10.3-r12.ebuild [moved from mail-filter/opendkim/opendkim-2.10.3-r11.ebuild with 96% similarity]