From owner-svn-ports-all@FreeBSD.ORG Mon Feb 10 01:39:25 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C102DBD; Mon, 10 Feb 2014 01:39:25 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AB5781BE7; Mon, 10 Feb 2014 01:39:25 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1A1dPeN042194; Mon, 10 Feb 2014 01:39:25 GMT (envelope-from skreuzer@svn.freebsd.org) Received: (from skreuzer@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1A1dPpH042193; Mon, 10 Feb 2014 01:39:25 GMT (envelope-from skreuzer@svn.freebsd.org) Message-Id: <201402100139.s1A1dPpH042193@svn.freebsd.org> From: Steven Kreuzer Date: Mon, 10 Feb 2014 01:39:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r343570 - head/devel/distcc/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 01:39:25 -0000 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 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"