git: 4f3e1fbd3c38 - main - mail/p5-Mail-Milter-Authentication: Change rc.d script
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Sep 2024 00:41:39 UTC
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=4f3e1fbd3c3853a3577b232ffc342496d66385c8 commit 4f3e1fbd3c3853a3577b232ffc342496d66385c8 Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2024-06-02 04:44:22 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2024-09-12 00:40:51 +0000 mail/p5-Mail-Milter-Authentication: Change rc.d script Change rc.d script so user can specify owner/group of directries created by it. It is necessary to run authentication_milter with non-default "ranas" and/or "rungroup" setting. Approved by: maintainer timeout --- mail/p5-Mail-Milter-Authentication/Makefile | 1 + .../files/authentication_milter.in | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/mail/p5-Mail-Milter-Authentication/Makefile b/mail/p5-Mail-Milter-Authentication/Makefile index 7416e7c9a919..83b0fa34b5ab 100644 --- a/mail/p5-Mail-Milter-Authentication/Makefile +++ b/mail/p5-Mail-Milter-Authentication/Makefile @@ -1,5 +1,6 @@ PORTNAME= Mail-Milter-Authentication PORTVERSION= 3.20240205 +PORTREVISION= 1 CATEGORIES= mail perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff --git a/mail/p5-Mail-Milter-Authentication/files/authentication_milter.in b/mail/p5-Mail-Milter-Authentication/files/authentication_milter.in index 870ea0c4b6df..0336f0ccc0a6 100644 --- a/mail/p5-Mail-Milter-Authentication/files/authentication_milter.in +++ b/mail/p5-Mail-Milter-Authentication/files/authentication_milter.in @@ -18,6 +18,8 @@ # authentication_milter_flags="<set as needed>" # authentication_milter_prefix="%%ETCDIR%%" # authentication_milter_foreground_enable="<default 'NO'>" +# authentication_milter_directory_owner="<default '%%DEFAULT_USER%%'>" +# authentication_milter_directory_group="<default '%%DEFAULT_GROUP%%'>" # . /etc/rc.subr @@ -31,6 +33,8 @@ load_rc_config $name : ${authentication_milter_enable:=NO} : ${authentication_milter_prefix:=%%ETCDIR%%} : ${authentication_milter_foreground_enable:=NO} +: ${authentication_milter_directory_owner:=%%DEFAULT_USER%%} +: ${authentication_milter_directory_group:=%%DEFAULT_GROUP%%} pidfile="%%RUNDIR%%/${name}.pid" command="%%PREFIX%%/bin/authentication_milter" @@ -76,8 +80,10 @@ authentication_milter_precmd_start () { piddir=$(dirname "$pidfile") install -d %%VARLIBDIRBASE%% - install -d -m 0755 -o "%%DEFAULT_USER%%" -g "%%DEFAULT_GROUP%%" "$piddir" - install -d -m 0750 -o "%%DEFAULT_USER%%" -g "%%DEFAULT_GROUP%%" \ + install -d -m 0755 -o "${authentication_milter_directory_owner}" \ + -g "${authentication_milter_directory_group}" "$piddir" + install -d -m 0750 -o "${authentication_milter_directory_owner}" \ + -g "${authentication_milter_directory_group}" \ %%RUNDIR%% %%CACHEDIR%% %%SPOOLDIR%% %%VARLIBDIR%% authentication_milter_precmd