Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2014 01:39:25 +0000 (UTC)
From:      Steven Kreuzer <skreuzer@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343570 - head/devel/distcc/files
Message-ID:  <201402100139.s1A1dPpH042193@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402100139.s1A1dPpH042193>