From 3a053aeaefa40118d9a23eedc84b7a7371e840c0 Mon Sep 17 00:00:00 2001 From: Donnie Berkholz Date: Wed, 11 Oct 2006 01:50:50 +0000 Subject: [PATCH] (#139352) Version bump (Marcus Furlong, Patrick Avery, Sergey Okhapkin, me). Package-Manager: portage-2.1.2_pre2-r5 --- sys-devel/icecream/ChangeLog | 10 +- sys-devel/icecream/Manifest | 50 +++++----- .../files/0.7.14-conf.d-verbosity.patch | 19 ++++ .../files/0.7.14-dont-create-symlinks.patch | 14 +++ .../icecream/files/digest-icecream-0.7.14 | 3 + sys-devel/icecream/files/icecream | 51 ++++------ sys-devel/icecream/files/icecream-config | 34 +++---- sys-devel/icecream/icecream-0.7.14.ebuild | 93 +++++++++++++++++++ 8 files changed, 200 insertions(+), 74 deletions(-) create mode 100644 sys-devel/icecream/files/0.7.14-conf.d-verbosity.patch create mode 100644 sys-devel/icecream/files/0.7.14-dont-create-symlinks.patch create mode 100644 sys-devel/icecream/files/digest-icecream-0.7.14 create mode 100644 sys-devel/icecream/icecream-0.7.14.ebuild diff --git a/sys-devel/icecream/ChangeLog b/sys-devel/icecream/ChangeLog index e474d8f67b07..bb5e96becd5f 100644 --- a/sys-devel/icecream/ChangeLog +++ b/sys-devel/icecream/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sys-devel/icecream # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/icecream/ChangeLog,v 1.5 2006/07/16 21:59:01 tantive Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/icecream/ChangeLog,v 1.6 2006/10/11 01:50:50 dberkholz Exp $ + +*icecream-0.7.14 (11 Oct 2006) + + 11 Oct 2006; Donnie Berkholz ; + +files/0.7.14-conf.d-verbosity.patch, + +files/0.7.14-dont-create-symlinks.patch, files/icecream, + files/icecream-config, +icecream-0.7.14.ebuild: + (#139352) Version bump (Marcus Furlong, Patrick Avery, Sergey Okhapkin, me). *icecream-0.6.20050413-r1 (16 Jul 2006) diff --git a/sys-devel/icecream/Manifest b/sys-devel/icecream/Manifest index 5813d15a4ca8..e6ca38c5a058 100644 --- a/sys-devel/icecream/Manifest +++ b/sys-devel/icecream/Manifest @@ -1,14 +1,19 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +AUX 0.7.14-conf.d-verbosity.patch 535 RMD160 e3d6d5242d6057c845f6f0ad3eda03d24c6b3ac4 SHA1 c544215f2bdb13f850b4f0c9af189bcf89bc63db SHA256 41ac1f5b064f77ab471c5ceebb80d11e30228be349b1f75f6f49d3c320a5a0d2 +MD5 be724bbbc928fd044e3d59f60712a77f files/0.7.14-conf.d-verbosity.patch 535 +RMD160 e3d6d5242d6057c845f6f0ad3eda03d24c6b3ac4 files/0.7.14-conf.d-verbosity.patch 535 +SHA256 41ac1f5b064f77ab471c5ceebb80d11e30228be349b1f75f6f49d3c320a5a0d2 files/0.7.14-conf.d-verbosity.patch 535 +AUX 0.7.14-dont-create-symlinks.patch 476 RMD160 a773490dccc543ab1fae25813c455fcefb56f953 SHA1 4f2cf484e78df355a0d7a39cd56bdefea0ac635a SHA256 adc7a325a868907f0c5f77a1bdfe426a9d8e01fbc40bb3239a39576901c6e710 +MD5 07b8c83d6520a6ce5705eed8102424f2 files/0.7.14-dont-create-symlinks.patch 476 +RMD160 a773490dccc543ab1fae25813c455fcefb56f953 files/0.7.14-dont-create-symlinks.patch 476 +SHA256 adc7a325a868907f0c5f77a1bdfe426a9d8e01fbc40bb3239a39576901c6e710 files/0.7.14-dont-create-symlinks.patch 476 AUX 99icecream 69 RMD160 413b4024634d5d2168d40defaba9fc92b24e1288 SHA1 9c8d38bd689ba2850d7de797963c15b2ac5de23f SHA256 b30e73e9725ca2ac586e7f2b8c4f38f5a780a333ecbd090d5aad4864745b7e90 MD5 70af2ad7d27b5da02a1653d2098e8ee4 files/99icecream 69 RMD160 413b4024634d5d2168d40defaba9fc92b24e1288 files/99icecream 69 SHA256 b30e73e9725ca2ac586e7f2b8c4f38f5a780a333ecbd090d5aad4864745b7e90 files/99icecream 69 -AUX icecream 1608 RMD160 269632f604e597e670a7b146aa21aeffbd8904b9 SHA1 a27bf665c5a33a0c9ea3bb89c32c3ef9d8628c22 SHA256 c70464863cfd9dff726329f72663560fc674d2c133033dc170fb5ddd08652670 -MD5 0c899553f7f34b95d4e92d1623822198 files/icecream 1608 -RMD160 269632f604e597e670a7b146aa21aeffbd8904b9 files/icecream 1608 -SHA256 c70464863cfd9dff726329f72663560fc674d2c133033dc170fb5ddd08652670 files/icecream 1608 +AUX icecream 1546 RMD160 f99d695c7cfe3ee93a4ded66cb7f1d24bbbf740e SHA1 ca9270513e40d27650a823fd39f14a4fc0875419 SHA256 d122f104e141d6e0c4f368ece47a871adf01919f6fdaa4ea6785d83293040fbb +MD5 ebde3c96877d02f1b184f8f026b204ef files/icecream 1546 +RMD160 f99d695c7cfe3ee93a4ded66cb7f1d24bbbf740e files/icecream 1546 +SHA256 d122f104e141d6e0c4f368ece47a871adf01919f6fdaa4ea6785d83293040fbb files/icecream 1546 AUX icecream-0.6-20050413-add-disable-option.patch 1190 RMD160 a8d900908affe0cb03f5b87811abf00393a1d130 SHA1 b179031c51398e397ff5d03eda192e85efdd65e1 SHA256 1d3c367c43f5dcb65d4aedd00c88521410a0e69b9ab90554b3cf690fe9a9662c MD5 2d8c936f7ecdd9803399eba916b105f1 files/icecream-0.6-20050413-add-disable-option.patch 1190 RMD160 a8d900908affe0cb03f5b87811abf00393a1d130 files/icecream-0.6-20050413-add-disable-option.patch 1190 @@ -25,10 +30,10 @@ AUX icecream-0.6-20050413-no-kde.patch 2729 RMD160 b7306ee2345f4f4f0a153e030c2c0 MD5 945acf7b90e7c2eea86fbfd6ab89ff25 files/icecream-0.6-20050413-no-kde.patch 2729 RMD160 b7306ee2345f4f4f0a153e030c2c0efb55249c19 files/icecream-0.6-20050413-no-kde.patch 2729 SHA256 27ac580d4c31c94b24378b2ca6a47b1aa61e96a33d57924bb1d058a4e4c8fc55 files/icecream-0.6-20050413-no-kde.patch 2729 -AUX icecream-config 1684 RMD160 82ac2dd060899e3b0a4fbaef2c8d84d115b54595 SHA1 846d5de2820af3656a90e2fae05f3ffe2db69095 SHA256 c268ec42b5b1f2d16fbe7d68d5388504428e590364f73c0fba9f7742ae29af1a -MD5 4ba61de59776bd40d2922399ac19ecfc files/icecream-config 1684 -RMD160 82ac2dd060899e3b0a4fbaef2c8d84d115b54595 files/icecream-config 1684 -SHA256 c268ec42b5b1f2d16fbe7d68d5388504428e590364f73c0fba9f7742ae29af1a files/icecream-config 1684 +AUX icecream-config 1689 RMD160 1f49cb792ea34fb90cadb40fa4febbb02512fb46 SHA1 f52ab186856598591ecbf299bfa68912b41f21ac SHA256 f6723b36c8955f2b919445ada3bcf51862139a2a691d677133b10baa21d87410 +MD5 9a269f3b610a83bd740129c50fc7ddc7 files/icecream-config 1689 +RMD160 1f49cb792ea34fb90cadb40fa4febbb02512fb46 files/icecream-config 1689 +SHA256 f6723b36c8955f2b919445ada3bcf51862139a2a691d677133b10baa21d87410 files/icecream-config 1689 AUX icecream_disable.patch 1247 RMD160 672bfc262c0eb1c1064b9c9ed1cc8f17f206fcd1 SHA1 d3458baba253b0dc1397b1c7e6b847f09137d3b6 SHA256 63b9f9275f411aed34426022ec0bee51a20399f4f4eeda7e192fb69ca0a5851f MD5 ed4be6637604b623bd3b0ffd2e1bae18 files/icecream_disable.patch 1247 RMD160 672bfc262c0eb1c1064b9c9ed1cc8f17f206fcd1 files/icecream_disable.patch 1247 @@ -41,6 +46,7 @@ AUX icecreamscheduler 366 RMD160 d09d53aed5c57a2de2246699b369c4ddf398bcee SHA1 e MD5 b5b8e00fbdd696a2030334749ab1184b files/icecreamscheduler 366 RMD160 d09d53aed5c57a2de2246699b369c4ddf398bcee files/icecreamscheduler 366 SHA256 ece00082e01b1bab085ab741ede5ec00952bea37a1eab09d23fa192278955cf0 files/icecreamscheduler 366 +DIST icecc-0.7.14.tar.bz2 147404 RMD160 424930cad2c68141742b3c5b30a53134cbc2124f SHA1 e59a51d08524e71af22966419da79c3b2cfd6d4b SHA256 eb61bf5cdbcbba66e4b11d765111cc97df27589ddadd5478d95796f6e63c5001 DIST icecream-0.6-20040829.tar.bz2 549028 DIST icecream-0.6-20050413.tar.bz2 594135 RMD160 dca34e902610ad887e926c27f2f4bc21f8416e7c SHA1 84fd01ddf8356b7c9371966ec5472d2ffdecbe5b SHA256 f47aaa70044342f046a8ca356ae5ec553ac01c940f48e7bf045b91a6ee3517b2 DIST icecream-0.6.20040829.nokde.patch.bz2 45508 @@ -56,10 +62,14 @@ EBUILD icecream-0.6.20050413.ebuild 3878 RMD160 35e94b6175f7e9fc0430f21a58e31098 MD5 011e07f9e7563a7f133d36bbc55b8976 icecream-0.6.20050413.ebuild 3878 RMD160 35e94b6175f7e9fc0430f21a58e31098306b1766 icecream-0.6.20050413.ebuild 3878 SHA256 d25d0ce84ee0f39c4eeb1743f6ff2e3501b3ecf0afc27b6bcff359481b61255c icecream-0.6.20050413.ebuild 3878 -MISC ChangeLog 1372 RMD160 06a9aed3cf7e72c2e0265cda13f25c1c494cbaa8 SHA1 1e17b3af93c2052826a71e6d9873ffab7de83086 SHA256 d7e51ee71200314830a7a5e3daa97d06f8ffdfa6af0af1a4042a5bc84627fa47 -MD5 710e88f03c987a50fb1c705dca9cd295 ChangeLog 1372 -RMD160 06a9aed3cf7e72c2e0265cda13f25c1c494cbaa8 ChangeLog 1372 -SHA256 d7e51ee71200314830a7a5e3daa97d06f8ffdfa6af0af1a4042a5bc84627fa47 ChangeLog 1372 +EBUILD icecream-0.7.14.ebuild 3532 RMD160 406ddd9c47915e92bc085411bc3994afd48209ad SHA1 3c8c84641309bb2709953b2a6e57fbb65599fbab SHA256 451acd692b68d2b78a2785cfa8e96ce22db0987964eaa4fa4611e2f14db68692 +MD5 e5a68be0ad3af4f3a8ebfe6a2bedaf9a icecream-0.7.14.ebuild 3532 +RMD160 406ddd9c47915e92bc085411bc3994afd48209ad icecream-0.7.14.ebuild 3532 +SHA256 451acd692b68d2b78a2785cfa8e96ce22db0987964eaa4fa4611e2f14db68692 icecream-0.7.14.ebuild 3532 +MISC ChangeLog 1691 RMD160 21ea95aef3645ccb460079ea765d03677dc19088 SHA1 885819aad3ebad70b182490cac7d0f3bf9222608 SHA256 e00545a0c321906e58a2ecf10379b76b4525ac0bf6fc741b07359d559f2a5b23 +MD5 0a489f5e44ec86fd14b2e611ed88a044 ChangeLog 1691 +RMD160 21ea95aef3645ccb460079ea765d03677dc19088 ChangeLog 1691 +SHA256 e00545a0c321906e58a2ecf10379b76b4525ac0bf6fc741b07359d559f2a5b23 ChangeLog 1691 MISC metadata.xml 160 RMD160 1233ca29861ca7c47f0b09d1d7a29def80f7df02 SHA1 1bfdc9d282a84c95e2bdcda19ace5b94e2e67349 SHA256 56717bdb03ad5d833acecfbc612a67f569256b328bf610fbc6cc33714186dae9 MD5 cde8b4e93c9339eb99fe3ad45941c99b metadata.xml 160 RMD160 1233ca29861ca7c47f0b09d1d7a29def80f7df02 metadata.xml 160 @@ -73,10 +83,6 @@ SHA256 11dc37cd7e9cb0b166fcb3555d8ddd6ea4f468a5fe84790f85fbfd1b48c13986 files/di MD5 3d1ff4008e6c4348d6a6cd3b2c094829 files/digest-icecream-0.6.20050413-r1 268 RMD160 d455d07e0f4dacf107730972a88fb607cc11fe04 files/digest-icecream-0.6.20050413-r1 268 SHA256 11dc37cd7e9cb0b166fcb3555d8ddd6ea4f468a5fe84790f85fbfd1b48c13986 files/digest-icecream-0.6.20050413-r1 268 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2.2 (GNU/Linux) - -iD8DBQFEura1KtJO8LeSoosRAshVAJ4ur+6H5z211H7svYelgx8VfMr3RwCfVodh -9w4eaP3iGVFtYcAVhJkwNJ4= -=pwaA ------END PGP SIGNATURE----- +MD5 3e6824ded3674a001f8ce1044de81304 files/digest-icecream-0.7.14 241 +RMD160 ea7912a8e897ffa5be3ebdcffbaba37d3d1c1b19 files/digest-icecream-0.7.14 241 +SHA256 409019bb192a625ab74bda72743082c182b7f169fe46c3c473650f034301e414 files/digest-icecream-0.7.14 241 diff --git a/sys-devel/icecream/files/0.7.14-conf.d-verbosity.patch b/sys-devel/icecream/files/0.7.14-conf.d-verbosity.patch new file mode 100644 index 000000000000..b2f6ad732f0d --- /dev/null +++ b/sys-devel/icecream/files/0.7.14-conf.d-verbosity.patch @@ -0,0 +1,19 @@ +diff -urN icecream.orig/suse/sysconfig.icecream icecream/suse/sysconfig.icecream +--- icecream.orig/suse/sysconfig.icecream 2004-08-30 10:01:30.000000000 +0100 ++++ icecream/suse/sysconfig.icecream 2006-08-12 16:05:09.000000000 +0100 +@@ -39,6 +39,15 @@ + # + ## Type: string + ## Path: Applications/icecream ++## Defaut: -v ++# ++# icecream's level of verbosity ([-v[v[v]]]) ++# ++ICECREAM_VERBOSITY="-v" ++ ++# ++## Type: string ++## Path: Applications/icecream + ## Defaut: "" + # + # Identification for the network the scheduler and daemon run on. diff --git a/sys-devel/icecream/files/0.7.14-dont-create-symlinks.patch b/sys-devel/icecream/files/0.7.14-dont-create-symlinks.patch new file mode 100644 index 000000000000..3fc4fdc87eeb --- /dev/null +++ b/sys-devel/icecream/files/0.7.14-dont-create-symlinks.patch @@ -0,0 +1,14 @@ +diff -urN icecream/client/Makefile.am icecream.new/client/Makefile.am +--- icecream/client/Makefile.am 2004-08-30 09:00:56.000000000 +0100 ++++ icecream.new/client/Makefile.am 2006-05-31 19:29:02.000000000 +0100 +@@ -15,10 +15,6 @@ + + install-exec-local: + $(mkinstalldirs) $(DESTDIR)$(bindir) +- for link in g++ gcc c++ cc; do \ +- rm -f $(DESTDIR)$(bindir)/$$link ;\ +- $(LN_S) icecc $(DESTDIR)$(bindir)/$$link ;\ +- done + + uninstall-local: + for link in g++ gcc c++ cc; do \ diff --git a/sys-devel/icecream/files/digest-icecream-0.7.14 b/sys-devel/icecream/files/digest-icecream-0.7.14 new file mode 100644 index 000000000000..3507102803a1 --- /dev/null +++ b/sys-devel/icecream/files/digest-icecream-0.7.14 @@ -0,0 +1,3 @@ +MD5 8d167d48bc7854b6277a105cafbf2b49 icecc-0.7.14.tar.bz2 147404 +RMD160 424930cad2c68141742b3c5b30a53134cbc2124f icecc-0.7.14.tar.bz2 147404 +SHA256 eb61bf5cdbcbba66e4b11d765111cc97df27589ddadd5478d95796f6e63c5001 icecc-0.7.14.tar.bz2 147404 diff --git a/sys-devel/icecream/files/icecream b/sys-devel/icecream/files/icecream index cb831ded5a1b..cae25eb28a4f 100644 --- a/sys-devel/icecream/files/icecream +++ b/sys-devel/icecream/files/icecream @@ -8,43 +8,26 @@ depend() { start() { - netname= - if test -n "$ICECREAM_NETNAME"; then - netname="-n $ICECREAM_NETNAME" - fi - if test "$ICECREAM_RUN_SCHEDULER" == "yes"; then - logfile="" - if test -z "$ICECREAM_SCHEDULER_LOG_FILE"; then - ICECREAM_SCHEDULER_LOG_FILE="/var/log/icecc_scheduler" - fi - logfile="-l $ICECREAM_SCHEDULER_LOG_FILE" - : > $ICECREAM_SCHEDULER_LOG_FILE - chown icecream:icecream $ICECREAM_SCHEDULER_LOG_FILE - + local basedir=${ICECREAM_BASEDIR:-"/var/cache/icecream"} + local netname=${ICECREAM_NETNAME:+"-n ${ICECREAM_NETNAME}"} + local logfile=${ICECREAM_LOG_FILE:+"-l ${ICECREAM_LOG_FILE}"} + local nice=${ICECREAM_NICE_LEVEL:+"--nice ${ICECREAM_NICE_LEVEL}"} + local scheduler=${ICECREAM_SCHEDULER_HOST:+"-s ${ICECREAM_SCHEDULER_HOST}"} + local maxjobs=${ICECREAM_MAX_JOBS:+"-m ${ICECREAM_MAX_JOBS}"} + local verbosity=${ICECREAM_VERBOSITY:-"-v"} + + if [[ "${ICECREAM_RUN_SCHEDULER}" == "yes" ]]; then + local slogfile=${ICECREAM_SCHEDULER_LOG_FILE:-"/var/log/icecc_scheduler"} + touch ${slogfile} && chown icecream:icecream ${slogfile} + slogfile=${slogfile:+"-l ${slogfile}"} ebegin "Starting Distributed Compiler Scheduler" - start-stop-daemon -u icecream --start --quiet --exec /usr/sbin/scheduler -- -d $logfile $netname + start-stop-daemon -u icecream --start --quiet --exec /usr/sbin/scheduler -- -d ${slogfile} ${netname} ${verbosity} eend ${?} - fi - logfile="" - if test -n "$ICECREAM_LOG_FILE"; then - logfile="-l $ICECREAM_LOG_FILE" - : > $ICECREAM_LOG_FILE - chown icecream:icecream $ICECREAM_LOG_FILE - fi - nice= - if test -n "$ICECREAM_NICE_LEVEL"; then - nice="--nice $ICECREAM_NICE_LEVEL" - fi - scheduler= - if test -n "$ICECREAM_SCHEDULER_HOST"; then - scheduler="-s $ICECREAM_SCHEDULER_HOST" - fi - maxjobs= - if test -n "$ICECREAM_MAX_JOBS"; then - maxjobs="-m $ICECREAM_MAX_JOBS" fi + + [[ ! -d ${basedir} ]] && mkdir -p ${basedir} && chown icecream:icecream ${basedir} ebegin "Starting Distributed Compiler Daemon" - start-stop-daemon --start --quiet --exec /usr/sbin/iceccd -- -d $logfile $nice $scheduler $netname -u icecream -b "$ICECREAM_BASEDIR" $maxjobs + start-stop-daemon --start --quiet --exec /usr/sbin/iceccd -- -d ${logfile} ${nice} ${scheduler} ${netname} -u icecream -b "${basedir}" ${maxjobs} ${verbosity} eend ${?} } @@ -52,7 +35,7 @@ stop() { ebegin "Stopping Distributed Compiler Daemon" start-stop-daemon --stop --quiet --name iceccd eend ${?} - if test "$ICECREAM_RUN_SCHEDULER" == "yes"; then + if [[ "${ICECREAM_RUN_SCHEDULER}" == "yes" ]]; then ebegin "Stopping Distributed Compiler Scheduler" start-stop-daemon --stop --quiet --name scheduler eend ${?} diff --git a/sys-devel/icecream/files/icecream-config b/sys-devel/icecream/files/icecream-config index fefc1c65f4a8..d520072090f0 100644 --- a/sys-devel/icecream/files/icecream-config +++ b/sys-devel/icecream/files/icecream-config @@ -6,49 +6,49 @@ # This program licensed under the GNU GPL version 2. # # This script developed by Zachary T Welch at Superlucidity Services, LLC -# it was cloned from the distcc-config script to make ccache-config +# it was cloned from the distcc-config script to make ccache-config # and then modified by Marcus Furlong to configure icecream too. # # Additional features to come; this provides a starting point # this should be getopt'd someday (override with ICEC_QUIET=1) -ICEC_VERBOSE=1 +ICECC_VERBOSE=1 -icec_echo() { - [ -z "${ICEC_QUIET}" -a -n "${ICEC_VERBOSE}" ] && echo "$*" +icecc_echo() { + [ -z "${ICECC_QUIET}" -a -n "${ICECC_VERBOSE}" ] && echo "$*" } ### # the following functions manage the icecream symlinks # they allow the user or other scripts (namely gcc-config) to -# automatically update iceceam's links when upgrading toolchains +# automatically update icecream's links when upgrading toolchains # -icec_remove_link() { - local t="/usr/lib/icecream/bin/${1}" +icecc_remove_link() { + local t="/usr/lib/icecc/bin/${1}" if [ -L ${t} ]; then - icec_echo "Removing ${t}..." + icecc_echo "Removing ${t}..." rm -f "${t}" fi } -icec_install_link() { +icecc_install_link() { # Search the PATH for the specified compiler - # then create shadow link in /usr/lib/icecream/bin to icecc + # then create shadow link in /usr/lib/icecc/bin to icecc if [ -n "$(type -p ${1})" ]; then # first be sure any old link is removed - ICEC_QUIET=1 icec_remove_link "${1}" + ICECC_QUIET=1 icecc_remove_link "${1}" # then create the new link - local t="/usr/lib/icecream/bin/${1}" - icec_echo "Creating icecream shadow link: ${t}..." + local t="/usr/lib/icecc/bin/${1}" + icecc_echo "Creating icecream shadow link: ${t}..." ln -s /usr/bin/icecc "${t}" fi } -icec_links() { +icecc_links() { local a for a in gcc cc c++ g++ ; do [ -n "${2}" ] && a="${2}-${a}" - eval "icec_${1}_link" "${a}" + eval "icecc_${1}_link" "${a}" done } @@ -57,10 +57,10 @@ icec_links() { case "${1}" in --install-links ) - icec_links install "${2}" + icecc_links install "${2}" ;; --remove-links ) - icec_links remove "${2}" + icecc_links remove "${2}" ;; * ) echo "usage: ${0} {--install-links|--remove-links} [ CHOST ]" diff --git a/sys-devel/icecream/icecream-0.7.14.ebuild b/sys-devel/icecream/icecream-0.7.14.ebuild new file mode 100644 index 000000000000..853dc461cb7f --- /dev/null +++ b/sys-devel/icecream/icecream-0.7.14.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/icecream/icecream-0.7.14.ebuild,v 1.1 2006/10/11 01:50:50 dberkholz Exp $ + +inherit autotools eutils flag-o-matic + +MY_P="icecc-${PV}" +DESCRIPTION="icecc is a program for distributed compiling of C(++) code across several machines based on ideas and code by distcc." +HOMEPAGE="http://www.opensuse.org/icecream" +SRC_URI="ftp://ftp.suse.com/pub/projects/icecream/${MY_P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +DEPEND="virtual/libc" + +S="${WORKDIR}/${PN}" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PV}-dont-create-symlinks.patch + epatch "${FILESDIR}"/${PV}-conf.d-verbosity.patch + + use amd64 && append-flags -fPIC -DPIC + + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + dobin "${FILESDIR}"/icecream-config + newconfd suse/sysconfig.icecream icecream + doinitd "${FILESDIR}"/icecream + diropts -m0755 + keepdir /usr/lib/icecc/bin + cd "${WORKDIR}"/mans + doman icecc.1 iceccd.1 icecream.7 scheduler.1 +} + +pkg_postinst() { + enewgroup icecream || die "Problem creating icecream group" + + #are we doing bootstrap with has no useradd? + if [ -x /usr/sbin/useradd ]; then + enewuser icecream -1 -1 /var/cache/icecream icecream || die "Problem adding icecream user" + else + ewarn "You do not have useradd (bootstrap) from shadow so I didn't" + ewarn "install the icecream user. Note that attempting to start the daemon" + ewarn "will fail. Please install shadow and re-emerge icecream." + ebeep 2 + fi + + if [[ ${ROOT} = "/" ]] ; then + elog "Scanning for compiler front-ends..." + /usr/bin/icecream-config --install-links + /usr/bin/icecream-config --install-links ${CHOST} + else + ewarn "Install is incomplete; you must run the following command:" + ewarn " # icecream-config --install-links ${CHOST}" + ewarn "after booting or chrooting to ${ROOT} to complete installation." + fi + + elog + elog "If you have compiled binutils/gcc/glibc with processor-specific flags" + elog "(as normal using Gentoo), there is a greater chance that your compiler" + elog "won't work on other machines. The best would be to build gcc, glibc and" + elog "binutils without those flags and then copy the needed files into your" + elog "tarball for distribution to other machines. This tarball can be created" + elog "by running /usr/bin/icecc --build-native, and used by setting" + elog "ICECC_VERSION in /etc/conf.d/icecream" + elog ' ICECC_VERSION=' + elog + elog "To use icecream with portage add the following line to /etc/make.conf" + elog ' PREROOTPATH=/usr/lib/icecc/bin' + elog + elog "To use icecream with normal make use (e.g. in /etc/profile)" + elog ' PATH=/usr/lib/icecc/bin:$PATH' + elog + elog "N.B. To use icecream with ccache, the ccache PATH should come first:" + elog ' PATH=/usr/lib/ccache/bin:/usr/lib/icecc/bin:$PATH' + elog + elog "Don't forget to open the following ports in your firewall(s):" + elog " TCP/10245 on the daemon computers (required)" + elog " TCP/8765 for the the scheduler computer (required)" + elog " TCP/8766 for the telnet interface to the scheduler (optional)" + elog " UDP/8765 for broadcast to find the scheduler (optional)" + elog + elog "Further usage instructions: http://www.opensuse.org/icecream" + elog + elog "The icecream monitor is no longer included in this package, emerge" + elog "kde-misc/icemon if you wish to graphically monitor your compile cluster." +} -- 2.26.2