aboutsummaryrefslogtreecommitdiff
path: root/devel/distcc
diff options
context:
space:
mode:
authorSteven Kreuzer <skreuzer@FreeBSD.org>2014-02-10 01:39:25 +0000
committerSteven Kreuzer <skreuzer@FreeBSD.org>2014-02-10 01:39:25 +0000
commit98b3383194a3d6e0008e231846f524e66e461a67 (patch)
treed79d07ed0cf703f7526a23edd24d4cad1937fddf /devel/distcc
parent6c3c53afb812f6d2d1f68614f02814a4e5f97774 (diff)
downloadports-98b3383194a3d6e0008e231846f524e66e461a67.tar.gz
ports-98b3383194a3d6e0008e231846f524e66e461a67.zip
Notes
Diffstat (limited to 'devel/distcc')
-rw-r--r--devel/distcc/files/distccd.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/devel/distcc/files/distccd.in b/devel/distcc/files/distccd.in
index c9b9d4ac3b2d..752bc65351f9 100644
--- a/devel/distcc/files/distccd.in
+++ b/devel/distcc/files/distccd.in
@@ -10,7 +10,9 @@
#
# Add the following lines to /etc/rc.conf to enable distccd:
#
-# distccd_enable="YES"
+# distccd_enable (bool): Set to YES to enable distccd.
+# distccd_flags (str): Arguments passed to distccd.
+# distccd_path (str): DISTCCD_PATH environment value for distccd..
#
distccd_enable=${distccd_enable-"NO"}
@@ -32,9 +34,13 @@ distccd_precmd()
# distccd drops root privileges and then attempts to create the pid file
touch ${pidfile}
chown distcc:distcc ${pidfile}
+
+ if [ -n "${distccd_path}" ]
+ then
+ export DISTCCD_PATH="${distccd_path}"
+ fi
}
start_precmd="distccd_precmd"
-
load_rc_config ${name}
run_rc_command "$1"