svn commit: r343570 - head/devel/distcc/files

Steven Kreuzer skreuzer at FreeBSD.org
Mon Feb 10 01:39:25 UTC 2014


Author: skreuzer
Date: Mon Feb 10 01:39:25 2014
New Revision: 343570
URL: http://svnweb.freebsd.org/changeset/ports/343570
QAT: https://qat.redports.org/buildarchive/r343570/

Log:
  Add rc option to set DISTCCD_PATH
  
  PR:		ports/185977
  Submitted by:	David Shane Holden <dpejesh at yahoo.com>

Modified:
  head/devel/distcc/files/distccd.in

Modified: head/devel/distcc/files/distccd.in
==============================================================================
--- head/devel/distcc/files/distccd.in	Mon Feb 10 01:35:05 2014	(r343569)
+++ head/devel/distcc/files/distccd.in	Mon Feb 10 01:39:25 2014	(r343570)
@@ -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"


More information about the svn-ports-all mailing list