summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Nigbur <pyrania@gentoo.org>2004-08-27 11:05:10 +0000
committerMarkus Nigbur <pyrania@gentoo.org>2004-08-27 11:05:10 +0000
commit01a706b166dcb7c153638626f93c549bca83cf06 (patch)
treeb591c57f67c0ba01d48771a7e0bc8139565cefb8 /sys-devel/distcc
parentFixing bug #56225. Thanks to James Leddy and Alexandre Veyrenc. (diff)
downloadhistorical-01a706b166dcb7c153638626f93c549bca83cf06.tar.gz
historical-01a706b166dcb7c153638626f93c549bca83cf06.tar.bz2
historical-01a706b166dcb7c153638626f93c549bca83cf06.zip
Fixing bug #57421, thanks to Stefan Sperling. Cleaning up older distcc-config version.
Diffstat (limited to 'sys-devel/distcc')
-rw-r--r--sys-devel/distcc/ChangeLog9
-rw-r--r--sys-devel/distcc/Manifest25
-rw-r--r--sys-devel/distcc/distcc-2.12.1-r1.ebuild4
-rw-r--r--sys-devel/distcc/distcc-2.13-r1.ebuild4
-rw-r--r--sys-devel/distcc/distcc-2.14.ebuild4
-rw-r--r--sys-devel/distcc/distcc-2.16.ebuild4
-rw-r--r--sys-devel/distcc/distcc-2.17-r1.ebuild4
-rw-r--r--sys-devel/distcc/distcc-2.17.ebuild4
-rw-r--r--sys-devel/distcc/files/2.11.1p/distcc-config165
-rw-r--r--sys-devel/distcc/files/distcc-config (renamed from sys-devel/distcc/files/2.17/distcc-config)4
10 files changed, 36 insertions, 191 deletions
diff --git a/sys-devel/distcc/ChangeLog b/sys-devel/distcc/ChangeLog
index 0a2c3abbbdb3..d983ec0cc273 100644
--- a/sys-devel/distcc/ChangeLog
+++ b/sys-devel/distcc/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-devel/distcc
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.113 2004/08/24 02:18:14 tgall Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.114 2004/08/27 11:05:10 pyrania Exp $
+
+ 27 Aug 2004; <pyrania@gentoo.org> +files/distcc-config,
+ -files/2.11.1p/distcc-config, -files/2.17/distcc-config,
+ distcc-2.12.1-r1.ebuild, distcc-2.13-r1.ebuild, distcc-2.14.ebuild,
+ distcc-2.16.ebuild, distcc-2.17-r1.ebuild, distcc-2.17.ebuild:
+ Fixing bug #57421, thanks to Stefan Sperling. Cleaning up older distcc-config
+ version.
22 Aug 2004; Tom Gall <tgall@gentoo.org> distcc-2.16.ebuild:
added ~ppc64, bug #59224
diff --git a/sys-devel/distcc/Manifest b/sys-devel/distcc/Manifest
index 7a131a2fea02..a73744091fc3 100644
--- a/sys-devel/distcc/Manifest
+++ b/sys-devel/distcc/Manifest
@@ -1,17 +1,20 @@
-MD5 7115741d2d78c987792beef9cb53ed61 ChangeLog 20671
-MD5 e410d067ffa3099f48c975b64dc98ec8 distcc-2.12.1-r1.ebuild 4627
-MD5 26994a05c40e35fed4942021cceb6e98 distcc-2.13-r1.ebuild 4695
-MD5 1e3e87d6fe39c6d6bd8e6002b9b0ec27 distcc-2.14.ebuild 4816
-MD5 ec30b8c4a9c65bedaebb53a1137f109e distcc-2.16.ebuild 4894
+MD5 a84405be54eedcbc7ca49e4395309e22 distcc-2.13-r1.ebuild 4682
+MD5 506fb048cb2c1ed15dcec6cb9de37b1c ChangeLog 21017
+MD5 97f489f7f331e0b258a8748afd6221a4 distcc-2.17-r1.ebuild 4961
+MD5 de5cb3fe1a5f5d11e24dcc1294dd59be distcc-2.17.ebuild 5060
+MD5 2516a1bb509c698b5db502f64f673f68 distcc-2.16.ebuild 4882
MD5 70619e7eb5fa4fd0aa4f3588579cd50d metadata.xml 443
-MD5 60de017daacc5265d673d671b1519005 distcc-2.17-r1.ebuild 4972
-MD5 48a7e545dde0dae10a5a6af1a39411ce distcc-2.17.ebuild 5071
+MD5 42f301f95619b0c636b22de7b04df1b8 distcc-2.12.1-r1.ebuild 4612
+MD5 df9642fba18d7603aeec8b953b878964 distcc-2.14.ebuild 4805
MD5 9ca407ce154707a1f27485523adf943c files/digest-distcc-2.12.1-r1 66
-MD5 6ab90bfeafe27c0d276eb8b6f1257560 files/digest-distcc-2.13-r1 64
+MD5 fec77b3be8d8bd8f2d6e5a708cb35717 files/distcc-config 4874
+MD5 af5f3983a736bd552e83d92ac9955a03 files/digest-distcc-2.17 64
MD5 47a8df000e00ce5f8bff08c9342bdae4 files/digest-distcc-2.14 64
MD5 c462167d99c154e9f8b9f94022ed2a71 files/digest-distcc-2.16 64
-MD5 af5f3983a736bd552e83d92ac9955a03 files/digest-distcc-2.17 64
MD5 af5f3983a736bd552e83d92ac9955a03 files/digest-distcc-2.17-r1 64
-MD5 0c66fbdfd3c7ad0ae07bc17bbce9b5e1 files/2.11.1p/conf 551
+MD5 6ab90bfeafe27c0d276eb8b6f1257560 files/digest-distcc-2.13-r1 64
MD5 0f86be5afa04088831e049957f87582a files/2.11.1p/init 642
-MD5 d4ca35b391ec7d05f6bc040e333370d2 files/2.11.1p/distcc-config 4877
+MD5 0c66fbdfd3c7ad0ae07bc17bbce9b5e1 files/2.11.1p/conf 551
+MD5 1161999a5d25185f95a8c284bd7307d1 files/2.17/init 733
+MD5 2f83451f527f3c2c7739d4535f1fb1b3 files/2.17/conf 1317
+MD5 a053c2281c30835b1025f307b09b78ae files/2.17/2.17-ipv6-fix.diff.gz 237
diff --git a/sys-devel/distcc/distcc-2.12.1-r1.ebuild b/sys-devel/distcc/distcc-2.12.1-r1.ebuild
index 0c88d9eeff2e..908ea1a23101 100644
--- a/sys-devel/distcc/distcc-2.12.1-r1.ebuild
+++ b/sys-devel/distcc/distcc-2.12.1-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.12.1-r1.ebuild,v 1.3 2004/06/24 22:44:29 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.12.1-r1.ebuild,v 1.4 2004/08/27 11:05:10 pyrania Exp $
inherit eutils gcc flag-o-matic
@@ -71,7 +71,7 @@ src_install() {
doins "${S}/survey.txt"
exeinto /usr/bin
- doexe "${FILESDIR}/${PATCHLEVEL}/distcc-config"
+ doexe "${FILESDIR}/distcc-config"
insinto /etc/conf.d
newins "${FILESDIR}/${PATCHLEVEL}/conf" distccd
diff --git a/sys-devel/distcc/distcc-2.13-r1.ebuild b/sys-devel/distcc/distcc-2.13-r1.ebuild
index b98f7894b898..caadf7f77d1c 100644
--- a/sys-devel/distcc/distcc-2.13-r1.ebuild
+++ b/sys-devel/distcc/distcc-2.13-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.13-r1.ebuild,v 1.8 2004/07/08 22:29:02 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.13-r1.ebuild,v 1.9 2004/08/27 11:05:10 pyrania Exp $
# If you change this in any way please email lisa@gentoo.org and make an
# entry in the ChangeLog (this means you spanky :P). (2004-04-11) Lisa Seelye
@@ -74,7 +74,7 @@ src_install() {
doins "${S}/survey.txt"
exeinto /usr/bin
- doexe "${FILESDIR}/${PATCHLEVEL}/distcc-config"
+ doexe "${FILESDIR}/distcc-config"
insinto /etc/conf.d
newins "${FILESDIR}/${PATCHLEVEL}/conf" distccd
diff --git a/sys-devel/distcc/distcc-2.14.ebuild b/sys-devel/distcc/distcc-2.14.ebuild
index fbb3d5c5b4c0..34691b29508f 100644
--- a/sys-devel/distcc/distcc-2.14.ebuild
+++ b/sys-devel/distcc/distcc-2.14.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.14.ebuild,v 1.7 2004/08/20 20:08:49 lisa Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.14.ebuild,v 1.8 2004/08/27 11:05:10 pyrania Exp $
# If you change this in any way please email lisa@gentoo.org and make an
# entry in the ChangeLog (this means you spanky :P). (2004-04-11) Lisa Seelye
@@ -73,7 +73,7 @@ src_install() {
doins "${S}/survey.txt"
exeinto /usr/bin
- doexe "${FILESDIR}/${PATCHLEVEL}/distcc-config"
+ doexe "${FILESDIR}/distcc-config"
insinto /etc/conf.d
newins "${FILESDIR}/${PATCHLEVEL}/conf" distccd
diff --git a/sys-devel/distcc/distcc-2.16.ebuild b/sys-devel/distcc/distcc-2.16.ebuild
index 55cf68fbba2d..874abeab2c18 100644
--- a/sys-devel/distcc/distcc-2.16.ebuild
+++ b/sys-devel/distcc/distcc-2.16.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.16.ebuild,v 1.4 2004/08/24 02:18:14 tgall Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.16.ebuild,v 1.5 2004/08/27 11:05:10 pyrania Exp $
# If you change this in any way please email lisa@gentoo.org and make an
# entry in the ChangeLog (this means you spanky :P). (2004-04-11) Lisa Seelye
@@ -82,7 +82,7 @@ src_install() {
doins "${S}/survey.txt"
exeinto /usr/bin
- doexe "${FILESDIR}/${PATCHLEVEL}/distcc-config"
+ doexe "${FILESDIR}/distcc-config"
insinto /etc/conf.d
newins "${FILESDIR}/${PATCHLEVEL}/conf" distccd
diff --git a/sys-devel/distcc/distcc-2.17-r1.ebuild b/sys-devel/distcc/distcc-2.17-r1.ebuild
index 64b49d44cbdc..d6bd5c68f0bc 100644
--- a/sys-devel/distcc/distcc-2.17-r1.ebuild
+++ b/sys-devel/distcc/distcc-2.17-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.17-r1.ebuild,v 1.1 2004/08/22 19:14:09 lisa Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.17-r1.ebuild,v 1.2 2004/08/27 11:05:10 pyrania Exp $
# If you change this in any way please email lisa@gentoo.org and make an
# entry in the ChangeLog (this means you spanky :P). (2004-04-11) Lisa Seelye
@@ -85,7 +85,7 @@ src_install() {
doins "${S}/survey.txt"
exeinto /usr/bin
- doexe "${FILESDIR}/${PATCHLEVEL}/distcc-config"
+ doexe "${FILESDIR}/distcc-config"
insinto /etc/conf.d
newins "${FILESDIR}/${PATCHLEVEL}/conf" distccd
diff --git a/sys-devel/distcc/distcc-2.17.ebuild b/sys-devel/distcc/distcc-2.17.ebuild
index 36fa8104de29..7dfa859b2952 100644
--- a/sys-devel/distcc/distcc-2.17.ebuild
+++ b/sys-devel/distcc/distcc-2.17.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.17.ebuild,v 1.2 2004/08/21 01:13:13 lisa Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.17.ebuild,v 1.3 2004/08/27 11:05:10 pyrania Exp $
# If you change this in any way please email lisa@gentoo.org and make an
# entry in the ChangeLog (this means you spanky :P). (2004-04-11) Lisa Seelye
@@ -86,7 +86,7 @@ src_install() {
doins "${S}/survey.txt"
exeinto /usr/bin
- doexe "${FILESDIR}/${PATCHLEVEL}/distcc-config"
+ doexe "${FILESDIR}/distcc-config"
insinto /etc/conf.d
newins "${FILESDIR}/${PATCHLEVEL}/conf" distccd
diff --git a/sys-devel/distcc/files/2.11.1p/distcc-config b/sys-devel/distcc/files/2.11.1p/distcc-config
deleted file mode 100644
index b0eac4bfcdd0..000000000000
--- a/sys-devel/distcc/files/2.11.1p/distcc-config
+++ /dev/null
@@ -1,165 +0,0 @@
-#!/usr/bin/env python
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/files/2.11.1p/distcc-config,v 1.10 2004/07/15 00:57:29 agriffis Exp $
-
-import os, re, signal, sys, commands, pwd
-from string import rstrip
-
-options=[
- '--get-hosts',
- '--set-hosts',
- '--get-verbose',
- '--set-verbose',
- '--get-log',
- '--set-log',
- '--install',
- '--help',
- '--get-env',
- '--set-env'
-]
-
-tmpcmdline=sys.argv[1:]
-cmdline=[]
-envfile = '/etc/env.d/02distcc'
-
-def exithandler(foo,bar):
- os.kill(0,signal.SIGKILL)
- sys.exit(1)
-
-signal.signal(signal.SIGINT,exithandler)
-
-def isroot(ret=0):
- if os.getuid() != 0:
- if ret == 0:
- print '!!!',sys.argv[:1][0],tmpcmdline[0],'must be run as root'
- sys.exit(1)
- else:
- retval = 0
- else:
- retval = 1
- return retval
-
-def writeenv(var,value):
- isroot()
- distcc_env = []
- distcc_env = open(envfile, 'r').readlines()
- distcc_env_new = open(envfile, 'w')
- for i in range(len(distcc_env)):
- if re.compile(var+'="(.*)"').match(distcc_env[i]):
- distcc_env[i] = var+'="'+value+'"\n'
- distcc_env_new.write(distcc_env[i])
- #print 'Set',var,'to:',value
- os.popen('/usr/sbin/env-update')
- print 'If you want to use these new settings in an existing shell,'
- print 'you need to "source /etc/profile" to get the changes.'
-
-def readenv(var):
- distcc_env = open(envfile, 'r').read()
- match = re.compile(var+'="(.*)"').search(distcc_env)
- if match:
- print var+'='+match.group(1)
- else:
- print var,'not set.'
-
-def permissions(path,user,group):
- for file in os.listdir(path):
- #print 'Configuring',path+file+'...'
- os.chown(path+file,user,group)
-
-def installlinks(chost=''):
- for file in ['gcc', 'cc', 'c++', 'g++']:
- path = '/usr/lib/distcc/bin/'
- if not chost == '':
- file = chost+'-'+file
- if os.path.exists('/usr/bin/'+file):
- #print 'Creating',path+file,'symlink...'
- if not os.path.exists(path+file):
- os.symlink('/usr/bin/distcc',path+file)
- #else:
- # print 'Already exists. Skipping...'
-
-def createdistccdir(dir):
- if not os.path.exists(dir):
- os.mkdir(dir)
- os.chmod(dir, 1777)
-
-for x in tmpcmdline:
- if not x:
- continue
- if x[0:2]=="--":
- if not x in options:
- print "!!! Error:",x,"is an invalid option."
- sys.exit(1)
- else:
- cmdline = x
-
-if '--get-hosts' in tmpcmdline:
- HOSTS_ENV = os.environ.get('DISTCC_HOSTS')
- HOSTS_HOME = os.environ.get('HOME')+'/hosts'
- if HOSTS_ENV:
- print HOSTS_ENV
- elif os.path.exists(HOSTS_HOME) and os.path.getsize(HOSTS_HOME) != 0:
- print HOSTS_HOME
- elif os.path.exists('/etc/distcc/hosts'):
- print rstrip(open('/etc/distcc/hosts', 'r').read())
- else:
- print 'No configuration file found. Setup your hosts with --set-hosts.'
-elif '--set-hosts' in tmpcmdline:
- if isroot(1):
- PATH = '/etc/distcc'
- else:
- PATH = os.environ.get('HOME')
- createdistccdir(PATH)
- open(PATH+'/hosts', 'w').write(cmdline + '\n')
-elif '--get-verbose' in tmpcmdline:
- readenv('DISTCC_VERBOSE')
-elif '--set-verbose' in tmpcmdline:
- writeenv('DISTCC_VERBOSE',tmpcmdline[1])
-elif '--get-log' in tmpcmdline:
- readenv('DISTCC_LOG')
-elif '--set-log' in tmpcmdline:
- writeenv('DISTCC_LOG',tmpcmdline[1])
-elif '--install' in tmpcmdline:
- isroot()
- print 'Creating',envfile+'...'
- distcc_env = open(envfile, 'w')
- distcc_env.write('# This file is managed by distcc-config; use it to change these settings.\n')
- distcc_env.write('DISTCC_LOG=""\n')
- distcc_env.write('DCCC_PATH="/usr/lib/distcc/bin"\n')
- distcc_env.write('DISTCC_VERBOSE="0"\n')
-
- if os.WEXITSTATUS(commands.getstatusoutput('/usr/sbin/useradd -g daemon -s /bin/false -d /dev/null -c "distccd" distcc')[0]) == 9:
- os.WEXITSTATUS(commands.getstatusoutput('/usr/sbin/usermod -g daemon -s /bin/false -d /dev/null -c "distccd" distcc')[0])
-
- foobar = pwd.getpwnam('distcc')
- user = foobar[2]
- group = foobar[3]
-
- makeconf = open('/etc/make.conf', 'r').read()
- chost = re.compile('CHOST="(.*)"').search(makeconf).group(1)
- print 'Creating symlinks...'
- installlinks()
- installlinks(chost)
-
- print 'Checking permissions...'
- permissions('/usr/lib/distcc/bin/',user,group)
- permissions('/var/run/distccd/',user,group)
-elif '--get-env' in tmpcmdline:
- if len(tmpcmdline) == 1:
- print rstrip(open(envfile, 'r').read())
- elif len(tmpcmdline) == 2:
- readenv(tmpcmdline[1])
- else:
- print '!!! Error: Specify only one variable.'
-elif '--set-env' in tmpcmdline:
- if len(tmpcmdline) > 2 and len(tmpcmdline) <= 3:
- isroot()
- writeenv(tmpcmdline[1],tmpcmdline[2])
- else:
- print '!!! Error: Awaiting two parameters.'
-else:
- print 'Usage: /usr/bin/distcc-config --set-hosts DISTCC_HOSTS | --get-hosts'
- print ' /usr/bin/distcc-config --set-verbose { 0 | 1 } | --get-verbose'
- print ' /usr/bin/distcc-config --set-log FILE | --get-log'
- print ' /usr/bin/distcc-config --set-env VARIABLE VALUE | --get-env [VARIABLE]'
diff --git a/sys-devel/distcc/files/2.17/distcc-config b/sys-devel/distcc/files/distcc-config
index e5f059e83bcb..b0a8975f4354 100644
--- a/sys-devel/distcc/files/2.17/distcc-config
+++ b/sys-devel/distcc/files/distcc-config
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/files/2.17/distcc-config,v 1.1 2004/08/22 19:14:10 lisa Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/files/distcc-config,v 1.1 2004/08/27 11:05:10 pyrania Exp $
import os, re, signal, sys, commands, pwd
from string import rstrip
@@ -99,7 +99,7 @@ if '--get-hosts' in tmpcmdline:
HOSTS_HOME = os.environ.get('HOME')+'/hosts'
if HOSTS_ENV:
print HOSTS_ENV
- elif os.path.exists(HOSTS_HOME) and os.path.getsize(HOSTS_HOME) != 0:
+ elif os.path.isfile(HOSTS_HOME) and os.path.getsize(HOSTS_HOME) != 0:
print HOSTS_HOME
elif os.path.exists('/etc/distcc/hosts'):
print rstrip(open('/etc/distcc/hosts', 'r').read())