Bug 207152 - mail/rmilter: wrong permissions on /var/run/rmilter if rmilter_user is not default [PATCH]
Summary: mail/rmilter: wrong permissions on /var/run/rmilter if rmilter_user is not de...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Vsevolod Stakhov
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-02-13 12:13 UTC by Matthieu Volat
Modified: 2019-08-16 03:15 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (vsevolod)


Attachments
Update start precmd with a chmod. (615 bytes, text/plain)
2016-02-13 12:13 UTC, Matthieu Volat
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Volat 2016-02-13 12:13:01 UTC
Created attachment 166926 [details]
Update start precmd with a chmod.

Hello,

I've been using rmilter with another user (using rc.conf rmilter_user variable), but the daemon won't start after an update because /var/run/rmilter owner is set to _rmilter:mail.

One way to fix it would be to simply add "chown ${rmilter_user}:${rmilter_group} $(dirname $rmilter_socket)" in the rmilter_cleanup() function in the rc script which is used as pre/post start cmd (patch attached).

Thank you,
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-01-09 15:38:27 UTC
Maintainer feedback?
Comment 2 Vsevolod Stakhov freebsd_committer freebsd_triage 2018-08-07 17:31:20 UTC
Well, I couldn't really find any sane definition of the preferred order: "Some vendor's distribution names which do not fit into the ${PORTNAME}-${PORTVERSION}-scheme can be handled automatically by setting DISTVERSIONPREFIX, DISTVERSION, and DISTVERSIONSUFFIX. PORTVERSION will be derived from DISTVERSION automatically." However, "If the upstream version scheme can be derived into a ports-compatible version scheme, set some variable to the upstream version, do not use DISTVERSION as the variable name. Set PORTVERSION to the computed version based on the variable you created, and set DISTNAME accordingly." Now I'm inclined to think that I was either wrong assuming that or there is some rule of thumb. I will check more later.
Comment 3 Vsevolod Stakhov freebsd_committer freebsd_triage 2018-08-07 17:32:09 UTC
(In reply to Vsevolod Stakhov from comment #2)
Sorry, wrong thread.
Comment 4 Walter Schwarzenfeld freebsd_triage 2019-08-16 03:15:24 UTC
Maintainer feedback!