Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/distcc/files/, sys-devel/distcc/files/3.1/, ...
Date: Sat, 08 Dec 2018 11:25:27
Message-Id: 1544268314.dee8c1cf023188cb2bfe67ed2189016c02941bc3.mgorny@gentoo
1 commit: dee8c1cf023188cb2bfe67ed2189016c02941bc3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 8 11:22:52 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 8 11:25:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dee8c1cf
7
8 sys-devel/distcc: Drop old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-devel/distcc/Manifest | 1 -
13 sys-devel/distcc/distcc-3.1-r10.ebuild | 169 --------------
14 sys-devel/distcc/files/3.0/conf | 40 ----
15 sys-devel/distcc/files/3.0/distcc-config | 122 ----------
16 sys-devel/distcc/files/3.1/conf | 35 ---
17 sys-devel/distcc/files/3.1/init | 31 ---
18 sys-devel/distcc/files/distcc-3.1-argc-fix.patch | 17 --
19 .../distcc/files/distcc-3.1-freedesktop.patch | 76 ------
20 sys-devel/distcc/files/distcc-3.1-python.patch | 258 ---------------------
21 sys-devel/distcc/files/distcc-config | 164 -------------
22 10 files changed, 913 deletions(-)
23
24 diff --git a/sys-devel/distcc/Manifest b/sys-devel/distcc/Manifest
25 index fecfec3da50..1d4758855f8 100644
26 --- a/sys-devel/distcc/Manifest
27 +++ b/sys-devel/distcc/Manifest
28 @@ -1,3 +1,2 @@
29 -DIST distcc-3.1.tar.bz2 588820 BLAKE2B fbd00a9cf8af0b2a0c901a60086901e505d9859827a8249ed7937cb8298fc946f6f72470e40dba17e143dbf1525cb0aef4deec3d083268d608f24f1447301df0 SHA512 0ca7167309badf5d36d2783bab398295b52c43fde0355cf1902032c70b27fc40c21729c98af0ee4c0aeea0c48755e4626308e9385d938b7822de27cdb048e7bd
30 DIST distcc-3.2rc1.tar.bz2 609904 BLAKE2B e6b928f3b9231524d37bdf86b39cd6a3601b6cdb1e03d913ae562286794240b4dd364d5d01da2176f9bb440809b166b4b877443459751adf8bd3ecf92ceb8476 SHA512 98b2e8423d724bbb6a615d946d170441a8e293310785f867d7a277b318c043a37b0af39ae8ed1f7a0667803de9db1d1925199bad85130cf9bd9cb347635125ee
31 DIST distcc-3.3.tar.gz 1171281 BLAKE2B f637cacbfdaaca6efb56e912de55fcfa49e3fffcb8f34649e339f16376250e18a20d30281a46f207992c0b300c726427a3ad5a77bd8976d2993f8f49b9b6b970 SHA512 459c175c8ac905bc70299e77ac11b6d24782bd69c9152126249c9af8fbb4c269e6f7317b02abf50cf6cc0405dd0f887e803320e19dc528a19c4c488640c615dc
32
33 diff --git a/sys-devel/distcc/distcc-3.1-r10.ebuild b/sys-devel/distcc/distcc-3.1-r10.ebuild
34 deleted file mode 100644
35 index 49ff6bd8242..00000000000
36 --- a/sys-devel/distcc/distcc-3.1-r10.ebuild
37 +++ /dev/null
38 @@ -1,169 +0,0 @@
39 -# Copyright 1999-2018 Gentoo Foundation
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI=5
43 -
44 -PYTHON_COMPAT=( python2_7 )
45 -
46 -inherit eutils fdo-mime flag-o-matic multilib python-single-r1 systemd toolchain-funcs user
47 -
48 -DESCRIPTION="Distribute compilation of C code across several machines on a network"
49 -HOMEPAGE="http://distcc.org/"
50 -SRC_URI="https://distcc.googlecode.com/files/${P}.tar.bz2"
51 -
52 -LICENSE="GPL-2"
53 -SLOT="0"
54 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
55 -IUSE="avahi gtk hardened ipv6 selinux xinetd"
56 -
57 -RESTRICT="test"
58 -
59 -CDEPEND="${PYTHON_DEPS}
60 - dev-libs/popt
61 - avahi? ( >=net-dns/avahi-0.6[dbus] )
62 - gtk? ( x11-libs/gtk+:2 )"
63 -DEPEND="${CDEPEND}
64 - virtual/pkgconfig"
65 -RDEPEND="${CDEPEND}
66 - !net-misc/pump
67 - >=sys-devel/gcc-config-1.4.1
68 - selinux? ( sec-policy/selinux-distcc )
69 - xinetd? ( sys-apps/xinetd )"
70 -
71 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
72 -
73 -DISTCC_LOG=""
74 -DCCC_PATH="/usr/$(get_libdir)/distcc/bin"
75 -DISTCC_VERBOSE="0"
76 -
77 -pkg_setup() {
78 - enewuser distcc 240 -1 -1 daemon
79 - python-single-r1_pkg_setup
80 -}
81 -
82 -src_prepare() {
83 - epatch "${FILESDIR}/${PN}-3.0-xinetd.patch"
84 - # bug #253786
85 - epatch "${FILESDIR}/${PN}-3.0-fix-fortify.patch"
86 - # bug #255188
87 - epatch "${FILESDIR}/${P}-freedesktop.patch"
88 - # bug #258364
89 - epatch "${FILESDIR}/${P}-python.patch"
90 - # bug #351979
91 - epatch "${FILESDIR}/${P}-argc-fix.patch"
92 - epatch_user
93 -
94 - sed -i -e "/PATH/s:\$distcc_location:${DCCC_PATH}:" pump.in || die
95 -
96 - # Bugs #120001, #167844 and probably more. See patch for description.
97 - use hardened && epatch "${FILESDIR}/distcc-hardened.patch"
98 -}
99 -
100 -src_configure() {
101 - local myconf="--disable-Werror --with-docdir=/usr/share/doc/${PF}"
102 - # More legacy stuff?
103 - [ "$(gcc-major-version)" = "2" ] && filter-lfs-flags
104 -
105 - # --disable-rfc2553 b0rked, bug #254176
106 - use ipv6 && myconf="${myconf} --enable-rfc2553"
107 -
108 - econf \
109 - $(use_with avahi) \
110 - $(use_with gtk) \
111 - ${myconf}
112 -}
113 -
114 -src_install() {
115 - # In rare cases, parallel make install failed
116 - MAKEOPTS+=" -j1"
117 - default
118 -
119 - dobin "${FILESDIR}/3.0/distcc-config"
120 -
121 - newinitd "${FILESDIR}/${PV}/init" distccd
122 - systemd_dounit "${FILESDIR}/distccd.service"
123 - systemd_install_serviced "${FILESDIR}/distccd.service.conf"
124 -
125 - cp "${FILESDIR}/3.1/conf" "${T}/distccd" || die
126 - if use avahi; then
127 - cat >> "${T}/distccd" <<-EOF
128 -
129 - # Enable zeroconf support in distccd
130 - DISTCCD_OPTS="\${DISTCCD_OPTS} --zeroconf"
131 - EOF
132 -
133 - sed -i '/ExecStart/ s|$| --zeroconf|' "${ED}"/usr/lib/systemd/system/distccd.service || die
134 - fi
135 - doconfd "${T}/distccd"
136 -
137 - cat > "${T}/02distcc" <<-EOF
138 - # This file is managed by distcc-config; use it to change these settings.
139 - DISTCC_LOG="${DISTCC_LOG}"
140 - DCCC_PATH="${DCCC_PATH}"
141 - DISTCC_VERBOSE="${DISTCC_VERBOSE}"
142 - EOF
143 - doenvd "${T}/02distcc"
144 -
145 - # create the masquerade directory
146 - dodir "${DCCC_PATH}"
147 - for f in cc c++ gcc g++; do
148 - dosym /usr/bin/distcc "${DCCC_PATH}/${f}"
149 - if [ "${f}" != "cc" ]; then
150 - dosym /usr/bin/distcc "${DCCC_PATH}/${CTARGET:-${CHOST}}-${f}"
151 - fi
152 - done
153 -
154 - if use gtk; then
155 - einfo "Renaming /usr/bin/distccmon-gnome to /usr/bin/distccmon-gui"
156 - einfo "This is to have a little sensability in naming schemes between distccmon programs"
157 - mv "${ED}/usr/bin/distccmon-gnome" "${ED}/usr/bin/distccmon-gui" || die
158 - dosym distccmon-gui /usr/bin/distccmon-gnome
159 - fi
160 -
161 - if use xinetd; then
162 - insinto /etc/xinetd.d
163 - newins "doc/example/xinetd" distcc
164 - fi
165 -
166 - rm -rf "${ED}/etc/default" || die
167 - rm -f "${ED}/etc/distcc/clients.allow" || die
168 - rm -f "${ED}/etc/distcc/commands.allow.sh" || die
169 -
170 - python_fix_shebang "${ED}"
171 - python_optimize
172 -}
173 -
174 -pkg_postinst() {
175 - use gtk && fdo-mime_desktop_database_update
176 -
177 - if use ipv6; then
178 - elog
179 - elog "IPv6 is not supported yet by ${P}."
180 - fi
181 - elog
182 - elog "Tips on using distcc with Gentoo can be found at"
183 - elog "https://wiki.gentoo.org/wiki/Distcc"
184 - elog
185 - elog "How to use pump mode with Gentoo:"
186 - elog "# distcc-config --set-hosts \"foo,cpp,lzo bar,cpp,lzo baz,cpp,lzo\""
187 - elog "# pump emerge -u world"
188 - elog
189 - elog "To use the distccmon programs with Gentoo you should use this command:"
190 - elog "# DISTCC_DIR=\"${DISTCC_DIR}\" distccmon-text 5"
191 -
192 - if use gtk; then
193 - elog "Or:"
194 - elog "# DISTCC_DIR=\"${DISTCC_DIR}\" distccmon-gnome"
195 - fi
196 -
197 - elog
198 - elog "***SECURITY NOTICE***"
199 - elog "If you are upgrading distcc please make sure to run etc-update to"
200 - elog "update your /etc/conf.d/distccd and /etc/init.d/distccd files with"
201 - elog "added security precautions (the --listen and --allow directives)"
202 - elog
203 -}
204 -
205 -pkg_postrm() {
206 - use gtk && fdo-mime_desktop_database_update
207 -}
208
209 diff --git a/sys-devel/distcc/files/3.0/conf b/sys-devel/distcc/files/3.0/conf
210 deleted file mode 100644
211 index c499271685e..00000000000
212 --- a/sys-devel/distcc/files/3.0/conf
213 +++ /dev/null
214 @@ -1,40 +0,0 @@
215 -# /etc/conf.d/distccd: config file for /etc/init.d/distccd
216 -
217 -DISTCCD_OPTS=""
218 -
219 -# this is the distccd executable
220 -DISTCCD_EXEC="/usr/bin/distccd"
221 -
222 -# this is where distccd will store its pid file
223 -DISTCCD_PIDFILE="/var/run/distccd/distccd.pid"
224 -
225 -# set this option to run distccd with extra parameters
226 -# Default port is 3632. For most people the default is okay.
227 -DISTCCD_OPTS="${DISTCCD_OPTS} --port 3632"
228 -
229 -# Logging
230 -# You can change some logging options here:
231 -# --log-file FILE
232 -# --log-level LEVEL [critical,error,warning, notice, info, debug]
233 -#
234 -# Leaving --log-file blank will log to syslog
235 -# example: --log-file /dev/null --log-level warning
236 -# example: --log-level critical
237 -
238 -DISTCCD_OPTS="${DISTCCD_OPTS} --log-level critical"
239 -
240 -# SECURITY NOTICE:
241 -# It is HIGHLY recommended that you use the --listen option
242 -# for increased security. You can specify an IP to permit connections
243 -# from or a CIDR mask
244 -# --listen accepts only a single IP
245 -# --allow is now mandatory as of distcc-2.18.
246 -# example: --allow 192.168.0.0/24
247 -# example: --allow 192.168.0.5 --allow 192.168.0.150
248 -# example: --listen 192.168.0.2
249 -DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.0.0/24"
250 -#DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.0.2"
251 -
252 -# set this for niceness
253 -# Default is 15
254 -DISTCCD_OPTS="${DISTCCD_OPTS} -N 15"
255
256 diff --git a/sys-devel/distcc/files/3.0/distcc-config b/sys-devel/distcc/files/3.0/distcc-config
257 deleted file mode 100644
258 index ed2a2eec435..00000000000
259 --- a/sys-devel/distcc/files/3.0/distcc-config
260 +++ /dev/null
261 @@ -1,122 +0,0 @@
262 -#!/usr/bin/env python
263 -# Copyright 1999-2004 Gentoo Foundation
264 -# Distributed under the terms of the GNU General Public License v2
265 -
266 -import os, re, signal, sys
267 -from string import rstrip
268 -from subprocess import Popen
269 -
270 -options=[
271 - '--get-hosts',
272 - '--set-hosts',
273 - '--get-verbose',
274 - '--set-verbose',
275 - '--get-log',
276 - '--set-log',
277 - '--help',
278 - '--get-env',
279 - '--set-env'
280 -]
281 -
282 -tmpcmdline=sys.argv[1:]
283 -cmdline=[]
284 -envfile = '/etc/env.d/02distcc'
285 -
286 -def exithandler(foo,bar):
287 - os.kill(0,signal.SIGKILL)
288 - sys.exit(1)
289 -
290 -signal.signal(signal.SIGINT,exithandler)
291 -
292 -def isroot(ret=0):
293 - if os.getuid() != 0:
294 - if ret == 0:
295 - print '!!!',sys.argv[:1][0],tmpcmdline[0],'must be run as root'
296 - sys.exit(1)
297 - else:
298 - retval = 0
299 - else:
300 - retval = 1
301 - return retval
302 -
303 -def writeenv(var,value):
304 - isroot()
305 - distcc_env = []
306 - distcc_env = open(envfile, 'r').readlines()
307 - distcc_env_new = open(envfile, 'w')
308 - for i in range(len(distcc_env)):
309 - if re.compile(var+'="(.*)"').match(distcc_env[i]):
310 - distcc_env[i] = var+'="'+value+'"\n'
311 - distcc_env_new.write(distcc_env[i])
312 - #print 'Set',var,'to:',value
313 - Popen('/usr/sbin/env-update', shell=True)
314 - print 'If you want to use these new settings in an existing shell,'
315 - print 'you need to "source /etc/profile" to get the changes.'
316 -
317 -def readenv(var):
318 - distcc_env = open(envfile, 'r').read()
319 - match = re.compile(var+'="(.*)"').search(distcc_env)
320 - if match:
321 - print var+'='+match.group(1)
322 - else:
323 - print var,'not set.'
324 -
325 -def createdistccdir(dir):
326 - if not os.path.exists(dir):
327 - os.mkdir(dir)
328 - os.chmod(dir, 0755)
329 -
330 -for x in tmpcmdline:
331 - if not x:
332 - continue
333 - if x[0:2]=="--":
334 - if not x in options:
335 - print "!!! Error:",x,"is an invalid option."
336 - sys.exit(1)
337 - else:
338 - cmdline = x
339 -
340 -if '--get-hosts' in tmpcmdline:
341 - HOSTS_ENV = os.environ.get('DISTCC_HOSTS')
342 - HOSTS_HOME = os.environ.get('HOME')+'/hosts'
343 - if HOSTS_ENV:
344 - print HOSTS_ENV
345 - elif os.path.isfile(HOSTS_HOME) and os.path.getsize(HOSTS_HOME) != 0:
346 - print rstrip(open(HOSTS_HOME, 'r').read())
347 - elif os.path.exists('/etc/distcc/hosts'):
348 - print rstrip(open('/etc/distcc/hosts', 'r').read())
349 - else:
350 - print 'No configuration file found. Setup your hosts with --set-hosts.'
351 -elif '--set-hosts' in tmpcmdline:
352 - if isroot(1):
353 - PATH = '/etc/distcc'
354 - else:
355 - PATH = os.environ.get('HOME')
356 - createdistccdir(PATH)
357 - open(PATH+'/hosts', 'w').write(cmdline + '\n')
358 -elif '--get-verbose' in tmpcmdline:
359 - readenv('DISTCC_VERBOSE')
360 -elif '--set-verbose' in tmpcmdline:
361 - writeenv('DISTCC_VERBOSE',tmpcmdline[1])
362 -elif '--get-log' in tmpcmdline:
363 - readenv('DISTCC_LOG')
364 -elif '--set-log' in tmpcmdline:
365 - writeenv('DISTCC_LOG',tmpcmdline[1])
366 -elif '--get-env' in tmpcmdline:
367 - if len(tmpcmdline) == 1:
368 - print rstrip(open(envfile, 'r').read())
369 - elif len(tmpcmdline) == 2:
370 - readenv(tmpcmdline[1])
371 - else:
372 - print '!!! Error: Specify only one variable.'
373 -elif '--set-env' in tmpcmdline:
374 - if len(tmpcmdline) > 2 and len(tmpcmdline) <= 3:
375 - isroot()
376 - writeenv(tmpcmdline[1],tmpcmdline[2])
377 - else:
378 - print '!!! Error: Awaiting two parameters.'
379 -else:
380 - print 'Usage: %s --set-hosts DISTCC_HOSTS | --get-hosts' % sys.argv[0]
381 - print ' %s --set-verbose { 0 | 1 } | --get-verbose' % sys.argv[0]
382 - print ' %s --set-log FILE | --get-log' % sys.argv[0]
383 - print ' %s --set-env VARIABLE VALUE | --get-env [VARIABLE]' % sys.argv[0]
384
385 diff --git a/sys-devel/distcc/files/3.1/conf b/sys-devel/distcc/files/3.1/conf
386 deleted file mode 100644
387 index 39f6e3e86f4..00000000000
388 --- a/sys-devel/distcc/files/3.1/conf
389 +++ /dev/null
390 @@ -1,35 +0,0 @@
391 -# /etc/conf.d/distccd: config file for /etc/init.d/distccd
392 -
393 -# this is the distccd executable
394 -DISTCCD_EXEC="/usr/bin/distccd"
395 -
396 -# this is where distccd will store its pid file
397 -DISTCCD_PIDFILE="/var/run/distccd/distccd.pid"
398 -
399 -# Ports:
400 -# Default port is 3632. For most people the default is okay.
401 -#
402 -# Logging:
403 -# You can change some logging options here:
404 -# --log-file FILE
405 -# --log-level LEVEL [critical,error,warning, notice, info, debug]
406 -#
407 -# Leaving --log-file blank will log to syslog
408 -# example: --log-file /dev/null --log-level warning
409 -# example: --log-level critical
410 -#
411 -# Nice level:
412 -# The default nice level is 15. You can change it by adding: -N xx
413 -# where xx is the nice level.
414 -
415 -# SECURITY NOTICE:
416 -# It is HIGHLY recommended that you use the --listen option
417 -# for increased security. You can specify an IP to permit connections
418 -# from or a CIDR mask
419 -# --listen accepts only a single IP
420 -# --allow is now mandatory as of distcc-2.18.
421 -# example: --allow 192.168.0.0/24
422 -# example: --allow 192.168.0.5 --allow 192.168.0.150
423 -# example: --listen 192.168.0.2
424 -
425 -DISTCCD_OPTS="--port 3632 --log-level notice --log-file /var/log/distccd.log -N 15"
426
427 diff --git a/sys-devel/distcc/files/3.1/init b/sys-devel/distcc/files/3.1/init
428 deleted file mode 100644
429 index e89dcb3702b..00000000000
430 --- a/sys-devel/distcc/files/3.1/init
431 +++ /dev/null
432 @@ -1,31 +0,0 @@
433 -#!/sbin/openrc-run
434 -# Copyright 1999-2011 Gentoo Foundation
435 -# Distributed under the terms of the GNU General Public License v2
436 -
437 -depend() {
438 - need net
439 - use avahi-daemon ypbind
440 -}
441 -
442 -start() {
443 - ebegin "Starting distccd"
444 -
445 - if [ ! -e /var/run/distccd ] ; then
446 - mkdir -p /var/run/distccd
447 - chown distcc:daemon /var/run/distccd
448 - fi
449 -
450 - # Load PATH and GCC_SPECS from gcc-config, bug #262773
451 - eval "$(gcc-config -E)"
452 -
453 - start-stop-daemon --start --quiet --exec "${DISTCCD_EXEC}" --user distcc -- \
454 - --daemon --pid-file "${DISTCCD_PIDFILE}" \
455 - ${DISTCCD_OPTS}
456 - eend $?
457 -}
458 -
459 -stop() {
460 - ebegin "Stopping distccd"
461 - start-stop-daemon --stop --quiet --pidfile "${DISTCCD_PIDFILE}"
462 - eend $?
463 -}
464
465 diff --git a/sys-devel/distcc/files/distcc-3.1-argc-fix.patch b/sys-devel/distcc/files/distcc-3.1-argc-fix.patch
466 deleted file mode 100644
467 index d7f30b5567f..00000000000
468 --- a/sys-devel/distcc/files/distcc-3.1-argc-fix.patch
469 +++ /dev/null
470 @@ -1,17 +0,0 @@
471 -this fixes virtualbox not compiling with distcc
472 -
473 -https://bugs.gentoo.org/show_bug.cgi?id=351979
474 -http://code.google.com/p/distcc/issues/detail?id=83
475 -http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626926
476 -
477 ---- distcc-3.1.orig/source/src/arg.c
478 -+++ distcc-3.1/source/src/arg.c
479 -@@ -515,6 +515,8 @@
480 - }
481 - free(argv);
482 - *argv_ptr = argv = new_argv;
483 -+ i += extra_args - 1;
484 -+ argc += extra_args - 1;
485 - }
486 - }
487 - return 0;
488
489 diff --git a/sys-devel/distcc/files/distcc-3.1-freedesktop.patch b/sys-devel/distcc/files/distcc-3.1-freedesktop.patch
490 deleted file mode 100644
491 index b23db21a255..00000000000
492 --- a/sys-devel/distcc/files/distcc-3.1-freedesktop.patch
493 +++ /dev/null
494 @@ -1,76 +0,0 @@
495 -diff -Naur distcc-3.1.orig/Makefile.in distcc-3.1/Makefile.in
496 ---- distcc-3.1.orig/Makefile.in 2008-12-03 06:50:31.000000000 +0900
497 -+++ distcc-3.1/Makefile.in 2009-02-02 00:40:20.000000000 +0900
498 -@@ -49,13 +49,14 @@
499 - includedir = @includedir@
500 - oldincludedir = /usr/include
501 - docdir = @docdir@
502 --pkgdatadir = $(datadir)/@PACKAGE_NAME@
503 -+icondir = $(datadir)/pixmaps
504 -+desktopdir = $(datadir)/applications
505 -
506 - include_server_builddir = $(builddir)/_include_server
507 -
508 - # These must be done from here, not from autoconf, because they can
509 - # contain variable expansions written in Make syntax. Ew.
510 --DIR_DEFS = -DSYSCONFDIR="\"${sysconfdir}\"" -DPKGDATADIR="\"${pkgdatadir}\""
511 -+DIR_DEFS = -DSYSCONFDIR="\"${sysconfdir}\"" -DICONDIR="\"${icondir}\""
512 -
513 - # arguments to pkgconfig
514 - GNOME_PACKAGES = @GNOME_PACKAGES@
515 -@@ -1003,7 +1004,8 @@
516 - @echo " documents $(DESTDIR)$(docdir)"
517 - @echo " programs $(DESTDIR)$(bindir)"
518 - @echo " system configuration $(DESTDIR)$(sysconfdir)"
519 -- @echo " shared data files $(DESTDIR)$(pkgdatadir)"
520 -+ @echo " icons $(DESTDIR)$(icondir)"
521 -+ @echo " .desktop file $(DESTDIR)$(desktopdir)"
522 -
523 -
524 - # install-sh can't handle multiple arguments, but we don't need any
525 -@@ -1086,10 +1088,10 @@
526 - done
527 -
528 - install-gnome-data: $(gnome_data)
529 -- $(mkinstalldirs) "$(DESTDIR)$(pkgdatadir)"
530 -- for p in $(gnome_data); do \
531 -- $(INSTALL_DATA) "$$p" "$(DESTDIR)$(pkgdatadir)" || exit 1; \
532 -- done
533 -+ $(mkinstalldirs) $(DESTDIR)$(icondir)
534 -+ $(mkinstalldirs) $(DESTDIR)$(desktopdir)
535 -+ $(INSTALL_DATA) gnome/distccmon-gnome-icon.png $(DESTDIR)$(icondir)
536 -+ $(INSTALL_DATA) gnome/distccmon-gnome.desktop $(DESTDIR)$(desktopdir)
537 -
538 - install-conf: $(conf_files) $(default_files)
539 - $(mkinstalldirs) "$(DESTDIR)$(sysconfdir)/distcc"
540 -diff -Naur distcc-3.1.orig/gnome/distccmon-gnome.desktop distcc-3.1/gnome/distccmon-gnome.desktop
541 ---- distcc-3.1.orig/gnome/distccmon-gnome.desktop 2008-12-03 06:50:27.000000000 +0900
542 -+++ distcc-3.1/gnome/distccmon-gnome.desktop 2009-02-02 00:40:55.000000000 +0900
543 -@@ -1,13 +1,11 @@
544 - [Desktop Entry]
545 --Version=0.9.4
546 --Encoding=UTF-8
547 - Exec=distccmon-gnome
548 - Name=distcc monitor
549 - GenericName=Distributed Compile Monitor
550 - Comment=Graphical view of distributed compile tasks
551 --Icon=distccmon-gnome-icon.png
552 -+Icon=distccmon-gnome-icon
553 - TryExec=distccmon-gnome
554 - Terminal=false
555 - Type=Application
556 --Categories=GNOME;Application;Development;
557 -+Categories=GNOME;Development;
558 - StartupNotify=true
559 -diff -Naur distcc-3.1.orig/src/mon-gnome.c distcc-3.1/src/mon-gnome.c
560 ---- distcc-3.1.orig/src/mon-gnome.c 2008-12-03 06:50:25.000000000 +0900
561 -+++ distcc-3.1/src/mon-gnome.c 2009-02-02 00:41:18.000000000 +0900
562 -@@ -599,7 +599,7 @@
563 -
564 - #if GTK_CHECK_VERSION(2,2,0)
565 - gtk_window_set_icon_from_file (GTK_WINDOW (mainwin),
566 -- PKGDATADIR "/distccmon-gnome-icon.png",
567 -+ ICONDIR "/distccmon-gnome-icon.png",
568 - NULL);
569 - #endif
570 -
571
572 diff --git a/sys-devel/distcc/files/distcc-3.1-python.patch b/sys-devel/distcc/files/distcc-3.1-python.patch
573 deleted file mode 100644
574 index 733357a5393..00000000000
575 --- a/sys-devel/distcc/files/distcc-3.1-python.patch
576 +++ /dev/null
577 @@ -1,258 +0,0 @@
578 -diff -Naur distcc-3.1.orig/bench/statistics.py distcc-3.1/bench/statistics.py
579 ---- distcc-3.1.orig/bench/statistics.py 2008-12-03 06:50:21.000000000 +0900
580 -+++ distcc-3.1/bench/statistics.py 2009-03-17 01:29:26.000000000 +0900
581 -@@ -1,4 +1,4 @@
582 --#! /usr/bin/env python2.2
583 -+#! /usr/bin/env python
584 -
585 - # benchmark -- automated system for testing distcc correctness
586 - # and performance on various source trees.
587 -diff -Naur distcc-3.1.orig/configure distcc-3.1/configure
588 ---- distcc-3.1.orig/configure 2008-12-03 06:50:34.000000000 +0900
589 -+++ distcc-3.1/configure 2009-03-17 01:31:09.000000000 +0900
590 -@@ -3629,7 +3629,7 @@
591 - #
592 - # NB: Cannot use AC_CONFIG_LIBOBJ_DIR here, because it's not present
593 - # in autoconf 2.53.
594 --for ac_prog in python2.5 python-2.5 python2.4 python-2.4 python
595 -+for ac_prog in python
596 - do
597 - # Extract the first word of "$ac_prog", so it can be a program name with args.
598 - set dummy $ac_prog; ac_word=$2
599 -diff -Naur distcc-3.1.orig/configure.ac distcc-3.1/configure.ac
600 ---- distcc-3.1.orig/configure.ac 2008-12-03 06:50:31.000000000 +0900
601 -+++ distcc-3.1/configure.ac 2009-03-17 01:29:04.000000000 +0900
602 -@@ -243,7 +243,7 @@
603 - #
604 - # NB: Cannot use AC_CONFIG_LIBOBJ_DIR here, because it's not present
605 - # in autoconf 2.53.
606 --AC_PATH_PROGS(PYTHON, [python2.5 python-2.5 python2.4 python-2.4 python])
607 -+AC_PATH_PROGS(PYTHON, [python])
608 - AC_ARG_VAR(PYTHON, [Python interpreter])
609 - # Python 1 doesn't even support -V
610 - if ! "$PYTHON" -V 2>&1 | grep "^Python" >/dev/null; then
611 -diff -Naur distcc-3.1.orig/include_server/basics.py distcc-3.1/include_server/basics.py
612 ---- distcc-3.1.orig/include_server/basics.py 2008-12-03 06:50:31.000000000 +0900
613 -+++ distcc-3.1/include_server/basics.py 2009-03-17 01:30:46.000000000 +0900
614 -@@ -1,4 +1,4 @@
615 --#!/usr/bin/python2.4
616 -+#!/usr/bin/python
617 - #
618 - # Copyright 2007 Google Inc.
619 - #
620 -diff -Naur distcc-3.1.orig/include_server/basics_test.py distcc-3.1/include_server/basics_test.py
621 ---- distcc-3.1.orig/include_server/basics_test.py 2008-12-03 06:50:31.000000000 +0900
622 -+++ distcc-3.1/include_server/basics_test.py 2009-03-17 01:30:46.000000000 +0900
623 -@@ -1,4 +1,4 @@
624 --#! /usr/bin/python2.4
625 -+#! /usr/bin/python
626 -
627 - # Copyright 2007 Google Inc.
628 - #
629 -diff -Naur distcc-3.1.orig/include_server/c_extensions_test.py distcc-3.1/include_server/c_extensions_test.py
630 ---- distcc-3.1.orig/include_server/c_extensions_test.py 2008-12-03 06:50:31.000000000 +0900
631 -+++ distcc-3.1/include_server/c_extensions_test.py 2009-03-17 01:30:46.000000000 +0900
632 -@@ -1,4 +1,4 @@
633 --#!/usr/bin/python2.4
634 -+#!/usr/bin/python
635 -
636 - # Copyright 2007 Google Inc.
637 - #
638 -diff -Naur distcc-3.1.orig/include_server/cache_basics.py distcc-3.1/include_server/cache_basics.py
639 ---- distcc-3.1.orig/include_server/cache_basics.py 2008-12-03 06:50:31.000000000 +0900
640 -+++ distcc-3.1/include_server/cache_basics.py 2009-03-17 01:30:46.000000000 +0900
641 -@@ -1,4 +1,4 @@
642 --#! /usr/bin/python2.4
643 -+#! /usr/bin/python
644 -
645 - # Copyright 2007 Google Inc.
646 - #
647 -diff -Naur distcc-3.1.orig/include_server/compiler_defaults.py distcc-3.1/include_server/compiler_defaults.py
648 ---- distcc-3.1.orig/include_server/compiler_defaults.py 2008-12-03 06:50:31.000000000 +0900
649 -+++ distcc-3.1/include_server/compiler_defaults.py 2009-03-17 01:30:46.000000000 +0900
650 -@@ -1,4 +1,4 @@
651 --#! /usr/bin/python2.4
652 -+#! /usr/bin/python
653 -
654 - # Copyright 2007 Google Inc.
655 - #
656 -diff -Naur distcc-3.1.orig/include_server/compress_files.py distcc-3.1/include_server/compress_files.py
657 ---- distcc-3.1.orig/include_server/compress_files.py 2008-12-03 06:50:31.000000000 +0900
658 -+++ distcc-3.1/include_server/compress_files.py 2009-03-17 01:30:46.000000000 +0900
659 -@@ -1,4 +1,4 @@
660 --#! /usr/bin/python2.4
661 -+#! /usr/bin/python
662 -
663 - # Copyright 2007 Google Inc.
664 - #
665 -diff -Naur distcc-3.1.orig/include_server/include_analyzer.py distcc-3.1/include_server/include_analyzer.py
666 ---- distcc-3.1.orig/include_server/include_analyzer.py 2008-12-03 06:50:31.000000000 +0900
667 -+++ distcc-3.1/include_server/include_analyzer.py 2009-03-17 01:30:46.000000000 +0900
668 -@@ -1,4 +1,4 @@
669 --#! /usr/bin/python2.4
670 -+#! /usr/bin/python
671 -
672 - # Copyright 2007 Google Inc.
673 - #
674 -diff -Naur distcc-3.1.orig/include_server/include_analyzer_memoizing_node.py distcc-3.1/include_server/include_analyzer_memoizing_node.py
675 ---- distcc-3.1.orig/include_server/include_analyzer_memoizing_node.py 2008-12-03 06:50:31.000000000 +0900
676 -+++ distcc-3.1/include_server/include_analyzer_memoizing_node.py 2009-03-17 01:30:46.000000000 +0900
677 -@@ -1,4 +1,4 @@
678 --#! /usr/bin/python2.4
679 -+#! /usr/bin/python
680 -
681 - # Copyright 2007 Google Inc.
682 - #
683 -diff -Naur distcc-3.1.orig/include_server/include_analyzer_memoizing_node_test.py distcc-3.1/include_server/include_analyzer_memoizing_node_test.py
684 ---- distcc-3.1.orig/include_server/include_analyzer_memoizing_node_test.py 2008-12-03 06:50:31.000000000 +0900
685 -+++ distcc-3.1/include_server/include_analyzer_memoizing_node_test.py 2009-03-17 01:30:46.000000000 +0900
686 -@@ -1,4 +1,4 @@
687 --#! /usr/bin/python2.4
688 -+#! /usr/bin/python
689 -
690 - # Copyright 2007 Google Inc.
691 - #
692 -diff -Naur distcc-3.1.orig/include_server/include_analyzer_test.py distcc-3.1/include_server/include_analyzer_test.py
693 ---- distcc-3.1.orig/include_server/include_analyzer_test.py 2008-12-03 06:50:31.000000000 +0900
694 -+++ distcc-3.1/include_server/include_analyzer_test.py 2009-03-17 01:30:46.000000000 +0900
695 -@@ -1,4 +1,4 @@
696 --#! /usr/bin/python2.4
697 -+#! /usr/bin/python
698 -
699 - # Copyright 2007 Google Inc.
700 - #
701 -diff -Naur distcc-3.1.orig/include_server/include_server.py distcc-3.1/include_server/include_server.py
702 ---- distcc-3.1.orig/include_server/include_server.py 2008-12-03 06:50:31.000000000 +0900
703 -+++ distcc-3.1/include_server/include_server.py 2009-03-17 01:30:46.000000000 +0900
704 -@@ -1,4 +1,4 @@
705 --#!/usr/bin/python2.4
706 -+#!/usr/bin/python
707 -
708 - # Copyright 2007 Google Inc.
709 - #
710 -diff -Naur distcc-3.1.orig/include_server/include_server_test.py distcc-3.1/include_server/include_server_test.py
711 ---- distcc-3.1.orig/include_server/include_server_test.py 2008-12-03 06:50:31.000000000 +0900
712 -+++ distcc-3.1/include_server/include_server_test.py 2009-03-17 01:30:46.000000000 +0900
713 -@@ -1,4 +1,4 @@
714 --#!/usr/bin/python2.4
715 -+#!/usr/bin/python
716 -
717 - # Copyright 2007 Google Inc.
718 - #
719 -diff -Naur distcc-3.1.orig/include_server/macro_eval.py distcc-3.1/include_server/macro_eval.py
720 ---- distcc-3.1.orig/include_server/macro_eval.py 2008-12-03 06:50:31.000000000 +0900
721 -+++ distcc-3.1/include_server/macro_eval.py 2009-03-17 01:30:46.000000000 +0900
722 -@@ -1,4 +1,4 @@
723 --#! /usr/bin/python2.4
724 -+#! /usr/bin/python
725 -
726 - # Copyright 2007 Google Inc.
727 - #
728 -diff -Naur distcc-3.1.orig/include_server/macro_eval_test.py distcc-3.1/include_server/macro_eval_test.py
729 ---- distcc-3.1.orig/include_server/macro_eval_test.py 2008-12-03 06:50:31.000000000 +0900
730 -+++ distcc-3.1/include_server/macro_eval_test.py 2009-03-17 01:30:46.000000000 +0900
731 -@@ -1,4 +1,4 @@
732 --#! /usr/bin/python2.4
733 -+#! /usr/bin/python
734 -
735 - # Copyright 2007 Google Inc.
736 - #
737 -diff -Naur distcc-3.1.orig/include_server/mirror_path.py distcc-3.1/include_server/mirror_path.py
738 ---- distcc-3.1.orig/include_server/mirror_path.py 2008-12-03 06:50:31.000000000 +0900
739 -+++ distcc-3.1/include_server/mirror_path.py 2009-03-17 01:30:46.000000000 +0900
740 -@@ -1,4 +1,4 @@
741 --#!/usr/bin/python2.4
742 -+#!/usr/bin/python
743 -
744 - # Copyright 2007 Google Inc.
745 - #
746 -diff -Naur distcc-3.1.orig/include_server/mirror_path_test.py distcc-3.1/include_server/mirror_path_test.py
747 ---- distcc-3.1.orig/include_server/mirror_path_test.py 2008-12-03 06:50:31.000000000 +0900
748 -+++ distcc-3.1/include_server/mirror_path_test.py 2009-03-17 01:30:46.000000000 +0900
749 -@@ -1,4 +1,4 @@
750 --#! /usr/bin/python2.4
751 -+#! /usr/bin/python
752 -
753 - # Copyright 2007 Google Inc.
754 - #
755 -diff -Naur distcc-3.1.orig/include_server/parse_command.py distcc-3.1/include_server/parse_command.py
756 ---- distcc-3.1.orig/include_server/parse_command.py 2008-12-03 06:50:31.000000000 +0900
757 -+++ distcc-3.1/include_server/parse_command.py 2009-03-17 01:30:46.000000000 +0900
758 -@@ -1,4 +1,4 @@
759 --#! /usr/bin/python2.4
760 -+#! /usr/bin/python
761 -
762 - # Copyright 2007 Google Inc.
763 - #
764 -diff -Naur distcc-3.1.orig/include_server/parse_command_test.py distcc-3.1/include_server/parse_command_test.py
765 ---- distcc-3.1.orig/include_server/parse_command_test.py 2008-12-03 06:50:31.000000000 +0900
766 -+++ distcc-3.1/include_server/parse_command_test.py 2009-03-17 01:30:46.000000000 +0900
767 -@@ -1,4 +1,4 @@
768 --#! /usr/bin/python2.4
769 -+#! /usr/bin/python
770 -
771 - # Copyright 2007 Google Inc.
772 - #
773 -diff -Naur distcc-3.1.orig/include_server/parse_file.py distcc-3.1/include_server/parse_file.py
774 ---- distcc-3.1.orig/include_server/parse_file.py 2008-12-03 06:50:31.000000000 +0900
775 -+++ distcc-3.1/include_server/parse_file.py 2009-03-17 01:30:46.000000000 +0900
776 -@@ -1,4 +1,4 @@
777 --#! /usr/bin/python2.4
778 -+#! /usr/bin/python
779 -
780 - # Copyright 2007 Google Inc.
781 - #
782 -diff -Naur distcc-3.1.orig/include_server/parse_file_test.py distcc-3.1/include_server/parse_file_test.py
783 ---- distcc-3.1.orig/include_server/parse_file_test.py 2008-12-03 06:50:31.000000000 +0900
784 -+++ distcc-3.1/include_server/parse_file_test.py 2009-03-17 01:30:46.000000000 +0900
785 -@@ -1,4 +1,4 @@
786 --#! /usr/bin/python2.4
787 -+#! /usr/bin/python
788 -
789 - # Copyright 2007 Google Inc.
790 - #
791 -diff -Naur distcc-3.1.orig/include_server/run.py distcc-3.1/include_server/run.py
792 ---- distcc-3.1.orig/include_server/run.py 2008-12-03 06:50:31.000000000 +0900
793 -+++ distcc-3.1/include_server/run.py 2009-03-17 01:30:46.000000000 +0900
794 -@@ -1,4 +1,4 @@
795 --#! /usr/bin/python2.4
796 -+#! /usr/bin/python
797 -
798 - # Copyright 2007 Google Inc.
799 - #
800 -diff -Naur distcc-3.1.orig/include_server/setup.py distcc-3.1/include_server/setup.py
801 ---- distcc-3.1.orig/include_server/setup.py 2008-12-03 06:50:31.000000000 +0900
802 -+++ distcc-3.1/include_server/setup.py 2009-03-17 01:30:46.000000000 +0900
803 -@@ -1,4 +1,4 @@
804 --#!/usr/bin/python2.4
805 -+#!/usr/bin/python
806 -
807 - # Copyright 2007 Google Inc.
808 - #
809 -diff -Naur distcc-3.1.orig/include_server/statistics.py distcc-3.1/include_server/statistics.py
810 ---- distcc-3.1.orig/include_server/statistics.py 2008-12-03 06:50:31.000000000 +0900
811 -+++ distcc-3.1/include_server/statistics.py 2009-03-17 01:30:46.000000000 +0900
812 -@@ -1,4 +1,4 @@
813 --#! /usr/bin/python2.4
814 -+#! /usr/bin/python
815 - #
816 - # Copyright 2007 Google Inc.
817 - #
818 -diff -Naur distcc-3.1.orig/test/onetest.py distcc-3.1/test/onetest.py
819 ---- distcc-3.1.orig/test/onetest.py 2008-12-03 06:50:22.000000000 +0900
820 -+++ distcc-3.1/test/onetest.py 2009-03-17 01:29:44.000000000 +0900
821 -@@ -1,4 +1,4 @@
822 --#!/usr/bin/python2.4
823 -+#!/usr/bin/python
824 - #
825 - # Copyright 2007 Google Inc.
826 - #
827 -diff -Naur distcc-3.1.orig/test/testdistcc.py distcc-3.1/test/testdistcc.py
828 ---- distcc-3.1.orig/test/testdistcc.py 2008-12-03 06:50:22.000000000 +0900
829 -+++ distcc-3.1/test/testdistcc.py 2009-03-17 01:29:36.000000000 +0900
830 -@@ -1,4 +1,4 @@
831 --#! /usr/bin/env python2.2
832 -+#! /usr/bin/env python
833 -
834 - # Copyright (C) 2002, 2003, 2004 by Martin Pool <mbp@×××××.org>
835 - # Copyright 2007 Google Inc.
836
837 diff --git a/sys-devel/distcc/files/distcc-config b/sys-devel/distcc/files/distcc-config
838 deleted file mode 100644
839 index 094307c1050..00000000000
840 --- a/sys-devel/distcc/files/distcc-config
841 +++ /dev/null
842 @@ -1,164 +0,0 @@
843 -#!/usr/bin/env python
844 -# Copyright 1999-2004 Gentoo Foundation
845 -# Distributed under the terms of the GNU General Public License v2
846 -
847 -import os, re, signal, sys, commands, pwd
848 -from string import rstrip
849 -
850 -options=[
851 - '--get-hosts',
852 - '--set-hosts',
853 - '--get-verbose',
854 - '--set-verbose',
855 - '--get-log',
856 - '--set-log',
857 - '--install',
858 - '--help',
859 - '--get-env',
860 - '--set-env'
861 -]
862 -
863 -tmpcmdline=sys.argv[1:]
864 -cmdline=[]
865 -envfile = '/etc/env.d/02distcc'
866 -
867 -def exithandler(foo,bar):
868 - os.kill(0,signal.SIGKILL)
869 - sys.exit(1)
870 -
871 -signal.signal(signal.SIGINT,exithandler)
872 -
873 -def isroot(ret=0):
874 - if os.getuid() != 0:
875 - if ret == 0:
876 - print '!!!',sys.argv[:1][0],tmpcmdline[0],'must be run as root'
877 - sys.exit(1)
878 - else:
879 - retval = 0
880 - else:
881 - retval = 1
882 - return retval
883 -
884 -def writeenv(var,value):
885 - isroot()
886 - distcc_env = []
887 - distcc_env = open(envfile, 'r').readlines()
888 - distcc_env_new = open(envfile, 'w')
889 - for i in range(len(distcc_env)):
890 - if re.compile(var+'="(.*)"').match(distcc_env[i]):
891 - distcc_env[i] = var+'="'+value+'"\n'
892 - distcc_env_new.write(distcc_env[i])
893 - #print 'Set',var,'to:',value
894 - os.popen('/usr/sbin/env-update')
895 - print 'If you want to use these new settings in an existing shell,'
896 - print 'you need to "source /etc/profile" to get the changes.'
897 -
898 -def readenv(var):
899 - distcc_env = open(envfile, 'r').read()
900 - match = re.compile(var+'="(.*)"').search(distcc_env)
901 - if match:
902 - print var+'='+match.group(1)
903 - else:
904 - print var,'not set.'
905 -
906 -def permissions(path,user,group):
907 - for file in os.listdir(path):
908 - #print 'Configuring',path+file+'...'
909 - os.chown(path+file,user,group)
910 -
911 -def installlinks(chost=''):
912 - for file in ['gcc', 'cc', 'c++', 'g++']:
913 - path = '/usr/lib/distcc/bin/'
914 - if not chost == '':
915 - file = chost+'-'+file
916 - if os.path.exists('/usr/bin/'+file):
917 - #print 'Creating',path+file,'symlink...'
918 - if not os.path.exists(path+file):
919 - os.symlink('/usr/bin/distcc',path+file)
920 - #else:
921 - # print 'Already exists. Skipping...'
922 -
923 -def createdistccdir(dir):
924 - if not os.path.exists(dir):
925 - os.mkdir(dir)
926 - os.chmod(dir, 1777)
927 -
928 -for x in tmpcmdline:
929 - if not x:
930 - continue
931 - if x[0:2]=="--":
932 - if not x in options:
933 - print "!!! Error:",x,"is an invalid option."
934 - sys.exit(1)
935 - else:
936 - cmdline = x
937 -
938 -if '--get-hosts' in tmpcmdline:
939 - HOSTS_ENV = os.environ.get('DISTCC_HOSTS')
940 - HOSTS_HOME = os.environ.get('HOME')+'/hosts'
941 - if HOSTS_ENV:
942 - print HOSTS_ENV
943 - elif os.path.isfile(HOSTS_HOME) and os.path.getsize(HOSTS_HOME) != 0:
944 - print HOSTS_HOME
945 - elif os.path.exists('/etc/distcc/hosts'):
946 - print rstrip(open('/etc/distcc/hosts', 'r').read())
947 - else:
948 - print 'No configuration file found. Setup your hosts with --set-hosts.'
949 -elif '--set-hosts' in tmpcmdline:
950 - if isroot(1):
951 - PATH = '/etc/distcc'
952 - else:
953 - PATH = os.environ.get('HOME')
954 - createdistccdir(PATH)
955 - open(PATH+'/hosts', 'w').write(cmdline + '\n')
956 -elif '--get-verbose' in tmpcmdline:
957 - readenv('DISTCC_VERBOSE')
958 -elif '--set-verbose' in tmpcmdline:
959 - writeenv('DISTCC_VERBOSE',tmpcmdline[1])
960 -elif '--get-log' in tmpcmdline:
961 - readenv('DISTCC_LOG')
962 -elif '--set-log' in tmpcmdline:
963 - writeenv('DISTCC_LOG',tmpcmdline[1])
964 -elif '--install' in tmpcmdline:
965 - isroot()
966 - print 'Creating',envfile+'...'
967 - distcc_env = open(envfile, 'w')
968 - distcc_env.write('# This file is managed by distcc-config; use it to change these settings.\n')
969 - distcc_env.write('DISTCC_LOG=""\n')
970 - distcc_env.write('DCCC_PATH="/usr/lib/distcc/bin"\n')
971 - distcc_env.write('DISTCC_VERBOSE="0"\n')
972 -
973 - if os.WEXITSTATUS(commands.getstatusoutput('/usr/sbin/useradd -u 240 -g daemon -s /bin/false -d /dev/null -c "distccd" distcc')[0]) == 9:
974 - os.WEXITSTATUS(commands.getstatusoutput('/usr/sbin/usermod -g daemon -s /bin/false -d /dev/null -c "distccd" distcc')[0])
975 -
976 - foobar = pwd.getpwnam('distcc')
977 - user = foobar[2]
978 - group = foobar[3]
979 -
980 - makeconf = open('/etc/make.conf', 'r').read()
981 - chost = re.compile('CHOST="(.*)"').search(makeconf).group(1)
982 - print 'Creating symlinks...'
983 - installlinks()
984 - installlinks(chost)
985 -
986 - print 'Checking permissions...'
987 - permissions('/usr/lib/distcc/bin/',user,group)
988 - permissions('/var/run/distccd/',user,group)
989 -elif '--get-env' in tmpcmdline:
990 - if len(tmpcmdline) == 1:
991 - print rstrip(open(envfile, 'r').read())
992 - elif len(tmpcmdline) == 2:
993 - readenv(tmpcmdline[1])
994 - else:
995 - print '!!! Error: Specify only one variable.'
996 -elif '--set-env' in tmpcmdline:
997 - if len(tmpcmdline) > 2 and len(tmpcmdline) <= 3:
998 - isroot()
999 - writeenv(tmpcmdline[1],tmpcmdline[2])
1000 - else:
1001 - print '!!! Error: Awaiting two parameters.'
1002 -else:
1003 - print 'Usage: /usr/bin/distcc-config --set-hosts DISTCC_HOSTS | --get-hosts'
1004 - print ' /usr/bin/distcc-config --set-verbose { 0 | 1 } | --get-verbose'
1005 - print ' /usr/bin/distcc-config --set-log FILE | --get-log'
1006 - print ' /usr/bin/distcc-config --set-env VARIABLE VALUE | --get-env [VARIABLE]'