Skip to content

Commit

Permalink
mail/opendkim: Properly create pidfile dir
Browse files Browse the repository at this point in the history
Submitted by:	Evilham
Approved by:	maintainer timeout
PR:		262473
  • Loading branch information
evilham authored and bdrewery committed May 10, 2022
1 parent 7cb1942 commit e0c54af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mail/opendkim/Makefile
Expand Up @@ -2,7 +2,7 @@

PORTNAME= opendkim
PORTVERSION= 2.10.3
PORTREVISION= 15
PORTREVISION= 16
CATEGORIES= mail security
MASTER_SITES= SF/${PORTNAME} \
SF/${PORTNAME}/Previous%20Releases \
Expand Down
4 changes: 4 additions & 0 deletions mail/opendkim/files/milter-opendkim.in
Expand Up @@ -89,6 +89,9 @@ dkim_prepcmd()
{
dkim_cleansockets
dkim_get_pidfile
if [ ! -d "$(dirname "$pidfile")" ]; then
mkdir "$(dirname "$pidfile")"
fi
case ${milteropendkim_socket%:*} in
local|unix)
socketfile=${milteropendkim_socket#*:}
Expand Down Expand Up @@ -202,6 +205,7 @@ else
if [ -n "${milteropendkim_alg}" ];then
milteropendkim_alg="-S ${milteropendkim_alg}"
fi
dkim_get_pidfile
command_args="-l ${_socket_prefix} ${milteropendkim_socket} ${_uid_prefix} ${milteropendkim_uid} -P ${pidfile} ${milteropendkim_cfgfile} ${milteropendkim_domain} ${milteropendkim_key} ${milteropendkim_selector} ${milteropendkim_alg}"
fi
fi
Expand Down

0 comments on commit e0c54af

Please sign in to comment.