mail-filter/spamassassin: new revision to fix tests and improve init script.
authorMichael Orlitzky <mjo@gentoo.org>
Sun, 13 Aug 2017 22:08:00 +0000 (18:08 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Sun, 20 Aug 2017 14:32:43 +0000 (10:32 -0400)
commit52480637e8a4cd42cb671c02fdf1c122e387a3fe
treed67420604c8a38808eeb659e0e400ce4e0e497e1
parente4293e3d5dd61dbdaec247f83c3752093e79c966
mail-filter/spamassassin: new revision to fix tests and improve init script.

This commit adds an upstream patch to fix a test suite crash with
newer versions of perl. It also largely rewrites the init script:

  * Don't conditionally "use mysql" or "use postgres" in the
    OpenRC init script. Even if SpamAssassin is installed without
    e.g. MySQL support, if MySQL is present on the system, a user
    might store his SpamAssassin data in it.

  * Use a declarative style and drop the custom start() and stop()
    functions.

  * Run the spamd daemon as the "spamd" user.

  * Use /run/spamd.pid for the PID file to avoid a "checkpath".

Some updates were made to the ebuild to facilitate those changes:

  * Don't modify the init script for USE=mysql or USE=postgres.

  * Create a "spamd" user in pkg_preinst().

Package-Manager: Portage-2.3.6, Repoman-2.3.1
mail-filter/spamassassin/files/3.4.1-spamd.init-r1 [new file with mode: 0755]
mail-filter/spamassassin/files/spamassassin-3.4.1-bug_7404.patch [new file with mode: 0644]
mail-filter/spamassassin/spamassassin-3.4.1-r13.ebuild [moved from mail-filter/spamassassin/spamassassin-3.4.1-r12.ebuild with 91% similarity]