sys-devel/distcc: Revbump adding TMPDIR handling to init script
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 10 Feb 2020 16:05:26 +0000 (17:05 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Mon, 10 Feb 2020 16:06:56 +0000 (17:06 +0100)
With kind permission from mgorny
Committed straight to stable as we don't change upstream default
without action from the user

Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-devel/distcc/distcc-3.3.3-r1.ebuild [moved from sys-devel/distcc/distcc-3.3.3.ebuild with 100% similarity]
sys-devel/distcc/files/distccd.confd
sys-devel/distcc/files/distccd.initd

index bc08d40777d3b4cbc02edd8094bd6daedd6c59b0..736527a4a89924eafcf63dc25025f5841a4d5ee9 100644 (file)
@@ -35,3 +35,8 @@ DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.0.0/24"
 # set this for niceness
 # Default is 15
 DISTCCD_OPTS="${DISTCCD_OPTS} -N 15"
+
+# By default distccd stores temporary files in /tmp
+# Make sure to give distcc user write permission to
+# the given TMPDIR
+#TMPDIR="/tmp"
index 7673ff2cf4299b03120019475ee2f6282ae05dbd..963f7b74c12e517c682d9c49093cae2a617dd4ef 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 depend() {
@@ -11,3 +11,5 @@ command="${DISTCCD_EXEC:-usr/bin/distccd}"
 command_args="--user distcc --daemon --no-detach ${DISTCCD_OPTS}"
 command_background="true"
 pidfile="/run/${RC_SVCNAME}.pid"
+
+export TMPDIR="${TMPDIR:-/tmp}"