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/1981880b2ee1
branches:  trunk
changeset: 320166:1981880b2ee1
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 051408335f71 -r 1981880b2ee1 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 051408335f71 -r 1981880b2ee1 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 051408335f71 -r 1981880b2ee1 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