diff options
author | Oleksii Samorukov <samm@FreeBSD.org> | 2023-06-06 08:03:07 +0200 |
---|---|---|
committer | Oleksii Samorukov <samm@FreeBSD.org> | 2023-06-06 08:04:10 +0200 |
commit | 86bb83ce8acd6c460fa3f708fd7ac95c6ad7f000 (patch) | |
tree | 456c5f71d6dcacd7d753d506011d768ad6f6c8cc | |
parent | ee34ecfe846e116b2bee2f8035d9cee98191e0ad (diff) | |
download | freebsd-ports-86bb83ce8acd6c460fa3f708fd7ac95c6ad7f000.zip |
dns/inadyn: fix for pidfile creation on transient /var/run configuration
PR: 266106
-rw-r--r-- | dns/inadyn/Makefile | 1 | ||||
-rw-r--r-- | dns/inadyn/files/inadyn.in | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/dns/inadyn/Makefile b/dns/inadyn/Makefile index a23046619979..abc44df60198 100644 --- a/dns/inadyn/Makefile +++ b/dns/inadyn/Makefile @@ -1,5 +1,6 @@ PORTNAME= inadyn PORTVERSION= 2.11.0 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= https://github.com/troglobit/${PORTNAME}/releases/download/v${PORTVERSION}/ diff --git a/dns/inadyn/files/inadyn.in b/dns/inadyn/files/inadyn.in index 2c1a77815724..a5bf457e9ce4 100644 --- a/dns/inadyn/files/inadyn.in +++ b/dns/inadyn/files/inadyn.in @@ -40,6 +40,11 @@ inadyn_checkconfig() { echo "Performing sanity check on ${name} configuration:" eval ${command} ${command_args} --check-config + piddir="$(dirname ${pidfile})" + if [ ! -d "${piddir}" ] && id inadyn >/dev/null 2>&1 ; then + mkdir -p "${piddir}" + chown inadyn:inadyn "${piddir}" + fi } run_rc_command "$1" |