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/2438aa0abd7b
branches:  trunk
changeset: 330390:2438aa0abd7b
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 4664fd068796 -r 2438aa0abd7b 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 4664fd068796 -r 2438aa0abd7b 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 4664fd068796 -r 2438aa0abd7b 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