mail-filter/opendkim: new revision to overhaul service scripts.
authorMichael Orlitzky <mjo@gentoo.org>
Wed, 27 Mar 2019 15:48:17 +0000 (11:48 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Wed, 27 Mar 2019 17:18:07 +0000 (13:18 -0400)
commit28706fe998d7ea18549d78aa1bfee4da6bb18ffa
treed62fa7a1d4fce673c49af8590697818e58a3674f
parent38b55aff18a5a0c98da6d6ca59d6e4b415b70333
mail-filter/opendkim: new revision to overhaul service scripts.

The OpenRC service script has been largely rewritten in this revision,
to solve a number of problems:

  * The PID file is now stored securely (bug 629914).

  * Different PID files are used for multiple instances (bug 536162).

  * The detection of boolean options in the config file is more robust,
    allowing "1", "0", "yes", "false", et cetera.

  * The socket is now located in a conf.d file, rather than parsed from
    the config file. The service script ensures that the directory
    containing the socket has the correct permissions, and the conf.d
    file comes with a big warning to that effect. Note that the (commented-
    out) example directory IS NOT shared with the PID file.

  * An error is thrown if we can't remove a stale socket.

  * Modern OpenRC service script standards have been adopted.

Some minor changes have been made to the systemd service for
consistency, but none of them have been tested. More work needs to be
done here anyway; for example, we most likely want a tmpfiles.d entry
for the local socket directory if the user configures one. This should
be documented in opendkim.service.conf, and tested by someone who uses
systemd.

Closes: https://bugs.gentoo.org/536162
Bug: https://bugs.gentoo.org/629914
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
mail-filter/opendkim/files/opendkim-r3.service [moved from mail-filter/opendkim/files/opendkim-r2.service with 84% similarity]
mail-filter/opendkim/files/opendkim.confd [new file with mode: 0644]
mail-filter/opendkim/files/opendkim.init.r4 [deleted file]
mail-filter/opendkim/files/opendkim.init.r5 [new file with mode: 0644]
mail-filter/opendkim/files/opendkim.service.conf [new file with mode: 0644]
mail-filter/opendkim/opendkim-2.10.3-r7.ebuild [moved from mail-filter/opendkim/opendkim-2.10.3-r6.ebuild with 88% similarity]