From d654d25a89618baf37c91221f436d9e3aeeae1d4 Mon Sep 17 00:00:00 2001 From: "J. Lewis Muir" Date: Fri, 7 Jul 2017 12:17:40 -0500 Subject: [PATCH] Avoid mkdir /etc/rc.d when installing pbulk tools When installing the pbulk tools, rsync is installed, and even though the rsyncd system start-up script is not installed, the pkgsrc package install logic tries to create /etc/rc.d, and on macOS Sierra, this results in a mkdir error message like the following: # pkg_comp bootstrap ... ===> Binary install for pbulk-0.65 => Installing pbulk-0.65 from /pkg_comp/packages/pbulk/All mkdir: /etc/rc.d: Read-only file system Avoid the "mkdir /etc/rc.d" attempt by setting RCD_SCRIPTS_DIR to a path under the pbulk tree which is writable, so no error message is emitted. --- pkg_comp.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg_comp.sh b/pkg_comp.sh index c90ab3b..38a3118 100644 --- a/pkg_comp.sh +++ b/pkg_comp.sh @@ -340,6 +340,10 @@ bootstrap_pbulk() { "/pkg_comp/pbulk/var" || exit cat >>"${root}/pkg_comp/pbulk.mk.conf" <