diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2009-03-19 17:56:10 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2009-03-19 17:56:10 +0000 |
commit | 4e9b7b6a9944b4d196aec0b797fdc46fecaf87c3 (patch) | |
tree | a8e7d4e3cc2739c9e1e72053ec63a1660996b46b /sys-devel/distcc/files/3.1 | |
parent | - tie in the libXCalibrate to wrap up xtscal support when tslib is enabled (diff) | |
download | historical-4e9b7b6a9944b4d196aec0b797fdc46fecaf87c3.tar.gz historical-4e9b7b6a9944b4d196aec0b797fdc46fecaf87c3.tar.bz2 historical-4e9b7b6a9944b4d196aec0b797fdc46fecaf87c3.zip |
Load PATH and GCC_SPECS from gcc-config, bug #262773. Fixed python issue, bug #258364.
Package-Manager: portage-2.1.6.8/cvs/Linux x86_64
Diffstat (limited to 'sys-devel/distcc/files/3.1')
-rwxr-xr-x | sys-devel/distcc/files/3.1/init | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys-devel/distcc/files/3.1/init b/sys-devel/distcc/files/3.1/init new file mode 100755 index 000000000000..7c4277c5a441 --- /dev/null +++ b/sys-devel/distcc/files/3.1/init @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/files/3.1/init,v 1.1 2009/03/19 17:56:09 matsuu Exp $ + +depend() { + need net + use avahi-daemon ypbind +} + +start() { + ebegin "Starting distccd" + + if [ ! -e /var/run/distccd ] ; then + mkdir -p /var/run/distccd + chown distcc:daemon /var/run/distccd + fi + + # Load PATH and GCC_SPECS from gcc-config, bug #262773 + eval "$(gcc-config -E)" + + start-stop-daemon --start --quiet --exec "${DISTCCD_EXEC}" -- \ + --daemon --pid-file "${DISTCCD_PIDFILE}" --user distcc \ + ${DISTCCD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping distccd" + start-stop-daemon --stop --quiet --pidfile "${DISTCCD_PIDFILE}" + eend $? +} |