summaryrefslogtreecommitdiff
path: root/net/bind911
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2019-03-01 21:46:50 +0000
committerjperkin <jperkin@pkgsrc.org>2019-03-01 21:46:50 +0000
commit8b12d34fab74b08da1b3acacb75e118f0b6fe2da (patch)
tree5eb27ef1bf04a9048168a8e036965f28d95b599e /net/bind911
parente8b426e3c4cd0cc6bb8d3cd8255f10d1abdeb4f3 (diff)
downloadpkgsrc-8b12d34fab74b08da1b3acacb75e118f0b6fe2da.tar.gz
bind*: Ensure named directory is created on SunOS.
Diffstat (limited to 'net/bind911')
-rw-r--r--net/bind911/files/smf/named.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bind911/files/smf/named.sh b/net/bind911/files/smf/named.sh
index 8bf5724eb13..cd5fa25e5f2 100644
--- a/net/bind911/files/smf/named.sh
+++ b/net/bind911/files/smf/named.sh
@@ -201,6 +201,9 @@ case "$method" in
rndc_config_file=${chroot_dir}${rndc_config_file}
rndc_key_file=${chroot_dir}${rndc_key_file}
rndc_cmd_opts="${rndc_cmd_opts} -t ${chroot_dir}"
+ else
+ mkdir -p @VARBASE@/run/named
+ chown ${cmduser}:${cmduser} @VARBASE@/run/named
fi
# Check if the rndc config file exists.