hi! I was installing distcc and I've found that there is
a --listen option that Debian Sarge doesn't support in
configuration file (/etc/default/distcc) nor in init.d
script (/etc/init.d/distcc).
I have wroten a workaround for this, if anybody wants
to include it.
Bye
Diff -u with /etc/init.d/distcc
--- /etc/init.d/distcc 2005-03-12 03:16:15.000000000 +0100
+++ /tmp/distcc.init.d.new 2005-08-09 22:52:10.000000000 +0200
@@ -34,6 +34,13 @@
ALLOW="$ALLOW --allow $net"
done
+# construct listeners list
+LISTEN=""
+for iface in $LISTENERS
+do
+ LISTEN="$LISTEN --listen $iface"
+done
+
should_start() {
if [ "$STARTDISTCC" != "true" ] && [ "$STARTDISTCC" != "YES" ];
then
echo "STARTDISTCC is set to false in /etc/default/distcc"
@@ -51,7 +58,7 @@
echo -n "Starting $DESC: $NAME"
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--chuid distccd \
- --exec $DAEMON -- $DAEMON_ARGS $ALLOW
+ --exec $DAEMON -- $DAEMON_ARGS $ALLOW $LISTEN
echo "."
;;
stop)
@@ -75,7 +82,7 @@
should_start
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--chuid distccd \
- --exec $DAEMON -- $DAEMON_ARGS $ALLOW
+ --exec $DAEMON -- $DAEMON_ARGS $ALLOW $LISTEN
echo "."
;;
*)
And diff -u with /etc/default/distcc:
--- /etc/default/distcc 2005-08-09 22:55:09.000000000 +0200
+++ /tmp/distcc.default.new 2005-08-09 22:51:32.000000000 +0200
@@ -17,3 +17,14 @@
# ALLOWEDNETS="127.0.0.1"
ALLOWEDNETS="127.0.0.1 192.168.0.0/24"
+
+
+#
+# Which IP addresses should distccd bind to?
+# You can list multiple hosts/networks separated by spaces.
+# Networks have to be in CIDR notation, f.e. 192.168.1.0/24
+# Hosts are represented by a single IP Adress
+# If you wanto to bind to all interfaces let it empty,
+# f.e. LISTENERS="", or comment it.
+
+LISTENERS="192.168.0.1"
ps: I don't know who to send this: Ian Murdock, Miquel van Smoorenburg
or [EMAIL PROTECTED]
/etc/init.d/distcc says this (among other things):
distccd Debian init.d script contributed by Jason Thomas. (Debian #161136)
Written by Miquel van Smoorenburg <[EMAIL PROTECTED]>.
Modified for Debian GNU/Linux by Ian Murdock <[EMAIL PROTECTED]>.
Version: @(#)skeleton 1.9.1 08-Apr-2002 [EMAIL PROTECTED]
distcc --version:
distcc 2.18.3 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632)
built Mar 12 2005 02:23:27
any other information?
Perki Pat aka Pablo G. Figuerola
__
distcc mailing list http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc