Bug 207152

Summary: mail/rmilter: wrong permissions on /var/run/rmilter if rmilter_user is not default [PATCH]
Product: Ports & Packages Reporter: Matthieu Volat <mazhe>
Component: Individual Port(s)Assignee: Vsevolod Stakhov <vsevolod>
Status: New ---    
Severity: Affects Only Me CC: w.schwarzenfeld
Priority: --- Keywords: patch
Version: LatestFlags: bugzilla: maintainer-feedback? (vsevolod)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Update start precmd with a chmod. none

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 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 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!