pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net bind*: Ensure named directory is created on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e5ae7d6c87ff
branches:  trunk
changeset: 392390:e5ae7d6c87ff
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Mar 01 21:46:50 2019 +0000

description:
bind*: Ensure named directory is created on SunOS.

diffstat:

 net/bind910/files/smf/named.sh |  3 +++
 net/bind911/files/smf/named.sh |  3 +++
 net/bind912/files/smf/named.sh |  3 +++
 3 files changed, 9 insertions(+), 0 deletions(-)

diffs (39 lines):

diff -r ebd8e2aa2f72 -r e5ae7d6c87ff net/bind910/files/smf/named.sh
--- a/net/bind910/files/smf/named.sh    Fri Mar 01 20:10:21 2019 +0000
+++ b/net/bind910/files/smf/named.sh    Fri Mar 01 21:46:50 2019 +0000
@@ -201,6 +201,9 @@
         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.
diff -r ebd8e2aa2f72 -r e5ae7d6c87ff net/bind911/files/smf/named.sh
--- a/net/bind911/files/smf/named.sh    Fri Mar 01 20:10:21 2019 +0000
+++ b/net/bind911/files/smf/named.sh    Fri Mar 01 21:46:50 2019 +0000
@@ -201,6 +201,9 @@
         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.
diff -r ebd8e2aa2f72 -r e5ae7d6c87ff net/bind912/files/smf/named.sh
--- a/net/bind912/files/smf/named.sh    Fri Mar 01 20:10:21 2019 +0000
+++ b/net/bind912/files/smf/named.sh    Fri Mar 01 21:46:50 2019 +0000
@@ -201,6 +201,9 @@
         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.



Home | Main Index | Thread Index | Old Index