--- icecc-0.8.0.orig/debian/icecc.links +++ icecc-0.8.0/debian/icecc.links @@ -0,0 +1,4 @@ +usr/bin/icecc usr/lib/icecc/bin/c++ +usr/bin/icecc usr/lib/icecc/bin/cc +usr/bin/icecc usr/lib/icecc/bin/g++ +usr/bin/icecc usr/lib/icecc/bin/gcc --- icecc-0.8.0.orig/debian/icecc.postinst +++ icecc-0.8.0/debian/icecc.postinst @@ -0,0 +1,53 @@ +#!/bin/sh -e +# postinst script for icecc + +set -e + +# configure some variables +CONFIGFILE=/etc/default/icecc +ICECC_GROUP=icecc +ICECC_USER=icecc +ICECC_HOME=/var/cache/icecc + +# source debconf stuff +. /usr/share/debconf/confmodule +db_version 2.0 + +# generate configuration file +echo "# Defaults for icecc initscript" > $CONFIGFILE +echo "# sourced by /etc/init.d/icecc" >> $CONFIGFILE +echo "START_ICECC=" >> $CONFIGFILE +echo "START_ICECC_SCHEDULER=" >> $CONFIGFILE + +# retrieve various configuration options from debconf +db_get icecc/daemon +START_ICECC="$RET" + +db_get icecc/scheduler +START_ICECC_SCHEDULER="$RET" + +# done with debconf +db_stop + +cp -a -f $CONFIGFILE $CONFIGFILE.tmp + +sed -e "s/^ *START_ICECC=.*/START_ICECC=\"$START_ICECC\"/" \ + -e "s/^ *START_ICECC_SCHEDULER=.*/START_ICECC_SCHEDULER=\"$START_ICECC_SCHEDULER\"/" \ + < $CONFIGFILE > $CONFIGFILE.tmp + +mv -f $CONFIGFILE.tmp $CONFIGFILE + +# create group +grep -q $ICECC_GROUP /etc/group || ( echo Creating $ICECC_GROUP group... ; \ +addgroup --quiet --system $ICECC_GROUP) + +# create user +grep -q $ICECC_USER /etc/passwd || ( echo Creating $ICECC_USER user... ; \ +adduser --quiet --system --ingroup $ICECC_GROUP \ +--home $ICECC_HOME --no-create-home $ICECC_USER ) + +chown $ICECC_USER:$ICECC_GROUP $ICECC_HOME + +#DEBHELPER# + +exit 0 --- icecc-0.8.0.orig/debian/icecc.config +++ icecc-0.8.0/debian/icecc.config @@ -0,0 +1,27 @@ +#!/bin/sh +# icecc package configuration script + +set -e + +# configure some variables +CONFIGFILE=/etc/default/icecc + +# source debconf stuff +. /usr/share/debconf/confmodule +db_version 2.0 + +# source configuration file if exists +if [ -e $CONFIGFILE ]; then + . $CONFIGFILE || true + + # set configuration file values in debconf database + db_set icecc/daemon "$START_ICECC" + db_set icecc/scheduler "$START_ICECC_SCHEDULER" +fi + +# ask questions +db_input medium icecc/daemon || true +db_input medium icecc/scheduler || true +db_go || true + +exit 0 --- icecc-0.8.0.orig/debian/icecc.default +++ icecc-0.8.0/debian/icecc.default @@ -0,0 +1,71 @@ +# Defaults for icecc initscript +# sourced by /etc/init.d/icecc + +# +# should icecc be started on boot? +# +# START_ICECC="true" + +START_ICECC="true" + +# +# Nice level of running compilers +# +# ICECC_NICE_LEVEL="5" + +ICECC_NICE_LEVEL="5" + +# +# icecc daemon log file +# +# ICECC_LOG_FILE="/var/log/iceccd" + +ICECC_LOG_FILE="/var/log/iceccd.log" + +# +# Identification for the network the scheduler and daemon run on. +# You can have several distinct icecc networks in the same LAN +# for whatever reason. +# +# ICECC_NETNAME="" + +ICECC_NETNAME="" + +# +# You can overwrite here the number of jobs to run in parallel. Per +# default this depends on the number of (virtual) CPUs installed. +# +# ICECC_MAX_JOBS="" + +ICECC_MAX_JOBS="" + +# +# This is the directory where the icecc daemon stores the environments +# it compiles in. In a big network this can grow quite a bit, so use some +# path if your /tmp is small - but the user icecc has to write to it. +# +# ICECC_BASEDIR="/var/cache/icecc" + +ICECC_BASEDIR="/var/cache/icecc" + +# +# Start also the scheduler? +# +# START_ICECC_SCHEDULER="false" + +START_ICECC_SCHEDULER="false" + +# +# icecc scheduler log file +# +# ICECC_SCHEDULER_LOG_FILE="/var/log/icecc_scheduler" + +ICECC_SCHEDULER_LOG_FILE="/var/log/icecc_scheduler.log" + +# +# If the daemon can't find the scheduler by broadcast (e.g. because +# of a firewall) you can specify it. +# +# ICECC_SCHEDULER_HOST="" + +ICECC_SCHEDULER_HOST="" --- icecc-0.8.0.orig/debian/copyright +++ icecc-0.8.0/debian/copyright @@ -0,0 +1,98 @@ +This package was debianized by Fathi Boudra on +Sun, 27 Aug 2006 12:21:38 +0200. + +It was downloaded from ftp://ftp.suse.com/pub/projects/icecream + +Upstream Authors: + Stephan Kulow + Michael Matz + Cornelius Schumacher + Lubos Lunak + Frerich Raabe + +icecc is based on distcc, which is (C) 2002-2003 Martin Pool +and is licensed under the GPL. + +Copyright for safeguard, util, arg, cpp, ncpus, exitcode and tempfile code: + (C) 2002-2003 Martin Pool + +Copyright for environment, job and logging code: + (C) 2004 Stephan Kulow + +Copyright for remote, local, client, serve, main and workit code: + (C) 2004 Stephan Kulow + (C) 2002 2003 Martin Pool + +workit code is based on gcc, (C) 1999-2002 Free Software Foundation, Inc. + +Copyright for load code: + (C) 1999-2000 Chris Schlaeger + (C) 2003 Stephan Kulow + +Copyright for comm and scheduler code: + (C) 2004 Michael Matz + (C) 2004 Stephan Kulow + +Copyright for getifaddrs code: + (C) 2002 Free Software Foundation, Inc. + (C) 2002 Tim Jansen + +Copyright for suse init script: + (C) 2003 SuSE Linux AG Nuernberg, Germany. + +Copyright for miniLZO code: + (C) 1996-2005 Markus F. X. J. Oberhumer + +Copyright for md5 code: (C) 1999 Aladdin Enterprises + +License for miniLZO: + + LZO and miniLZO are distributed under the terms of the GNU General + Public License (GPL). + + Special licenses for commercial and other applications which + are not willing to accept the GNU General Public License + are available by contacting the author. + +License for MD5 implementation from Aladdin Enterprises: + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + +License for icecc: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The icecc manpages is (C) 2006 Jonathan Riddell and +is licensed under the GPL, see above. + +The Debian packaging is (C) 2006, Fathi Boudra and +is licensed under the GPL, see above. --- icecc-0.8.0.orig/debian/icecc.logrotate +++ icecc-0.8.0/debian/icecc.logrotate @@ -0,0 +1,18 @@ +# logrotate.d example configuration for icecc, contributed by Dag +# Wieers. + +# The "copytruncate" option means icecc can keep appending to the +# same filehandle. You would otherwise need to shut down and restart +# iceccd. + +/var/log/iceccd.log { + missingok + copytruncate + notifempty +} + +/var/log/icecc_scheduler.log { + missingok + copytruncate + notifempty +} --- icecc-0.8.0.orig/debian/libicecc-dev.install +++ icecc-0.8.0/debian/libicecc-dev.install @@ -0,0 +1,5 @@ +usr/include/icecc/comm.h +usr/include/icecc/job.h +usr/lib/libicecc.a +usr/lib/libicecc.la +usr/lib/pkgconfig/icecc.pc --- icecc-0.8.0.orig/debian/po/pt.po +++ icecc-0.8.0/debian/po/pt.po @@ -0,0 +1,74 @@ +# Portuguese translation of icecc's debconf messages. +# Copyright (C) 2007 +# This file is distributed under the same license as the icecc package. +# Luísa Lourenço , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: icecc 0.7.14-4\n" +"Report-Msgid-Bugs-To: pkg-kde-extras@lists.alioth.debian.org\n" +"POT-Creation-Date: 2006-09-17 00:40+0200\n" +"PO-Revision-Date: 2007-03-14 11:40+0000\n" +"Last-Translator: Luísa Lourenço \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "Start the icecc daemon on startup?" +msgstr "Iniciar o daemon icecc no arranque?" + +#. Type: boolean +#. Description +#, fuzzy +#: ../icecc.templates:1001 +msgid "icecc can be run as a daemon, listening for incoming connections." +msgstr "icecc pode ser iniciado como um daemon, à espera de conexões de entrada." + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +#, fuzzy +msgid "" +"You have the option of starting the icecc daemon automatically on the " +"computer startup. You need a running daemon on every computer which should " +"be part of the compile farm. If you later change your mind, you can run: " +"'dpkg-reconfigure icecc'." +msgstr "" +"Tem a opção de iniciar o daemon icecc automaticamente no arranque do " +"computador. Precisa de um daemon a correr em todos os computadores que devam " +"fazer parte da compile farm. Se mais tarde mudar de ideias, pode correr: " +"'dpkg-reconfigure icecc'." + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "Start the icecc scheduler on startup?" +msgstr "Iniciar o escalonador do icecc no arranque?" + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +#, fuzzy +msgid "" +"The scheduler can be run as a daemon, listening for incoming connections." +msgstr "" +"O escalonador pode ser corrido como um daemon, à espera de conexões de entrada." + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +#, fuzzy +msgid "" +"You have the option of starting the icecc scheduler automatically on the " +"computer startup. You need one scheduler in your compile farm. If in doubt, " +"you should not start it automatically on startup. If you later change your " +"mind, you can run: 'dpkg-reconfigure icecc'." +msgstr "" +"Tem a opção de iniciar o escalonador do icecc automaticamente no " +"arranque do computador. Precisa de um escalonador na sua compile farm. Em " +"caso de dúvida, não o deve começar automaticamente no arranque. Se mais tarde " +"mudar de ideias, pode correr: 'dpkg-reconfigure icecc'." --- icecc-0.8.0.orig/debian/po/cs.po +++ icecc-0.8.0/debian/po/cs.po @@ -0,0 +1,66 @@ +# Czech translation of icecc debconf messages. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the icecc package. +# Miroslav Kure , 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: icecc\n" +"Report-Msgid-Bugs-To: pkg-kde-extras@lists.alioth.debian.org\n" +"POT-Creation-Date: 2006-09-17 00:40+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "Start the icecc daemon on startup?" +msgstr "Spustit daemon icecc při zavádění systému?" + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "icecc can be run as a daemon, listening for incoming connections." +msgstr "icecc může běžet jako daemon a naslouchat příchozím spojením." + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "" +"You have the option of starting the icecc daemon automatically on the " +"computer startup. You need a running daemon on every computer which should " +"be part of the compile farm. If you later change your mind, you can run: " +"'dpkg-reconfigure icecc'." +msgstr "" +"Tento daemon musí běžet na každém počítači v kompilovací farmě. Pokud později " +"změníte názor, můžete spustit: `dpkg-reconfigure icecc'." + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "Start the icecc scheduler on startup?" +msgstr "Spustit plánovač icecc při zavádění systému?" + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "" +"The scheduler can be run as a daemon, listening for incoming connections." +msgstr "Plánovač může běžet jako daemon a naslouchat příchozím spojením." + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "" +"You have the option of starting the icecc scheduler automatically on the " +"computer startup. You need one scheduler in your compile farm. If in doubt, " +"you should not start it automatically on startup. If you later change your " +"mind, you can run: 'dpkg-reconfigure icecc'." +msgstr "" +"Pro celou kompilovací farmu stačí jediný plánovač. Pokud si nejste jisti, " +"nespouštějte ho automaticky při zavádění systému. Jestliže později změníte " +"názor, můžete spustit `dpkg-reconfigure icecc'." --- icecc-0.8.0.orig/debian/po/de.po +++ icecc-0.8.0/debian/po/de.po @@ -0,0 +1,70 @@ +# Translation of icecc debconf templates to German +# Copyright (C) Helge Kreutzmann , 2007. +# This file is distributed under the same license as the icecc package. +# +msgid "" +msgstr "" +"Project-Id-Version: icecc 0.7.14-4\n" +"Report-Msgid-Bugs-To: pkg-kde-extras@lists.alioth.debian.org\n" +"POT-Creation-Date: 2006-09-17 00:40+0200\n" +"PO-Revision-Date: 2007-03-04 20:52+0100\n" +"Last-Translator: Helge Kreutzmann \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "Start the icecc daemon on startup?" +msgstr "Den Icecc-Daemon beim Systemstart starten?" + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "icecc can be run as a daemon, listening for incoming connections." +msgstr "Icecc kann als Daemon laufen und auf eingehende Verbindungen warten." + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "" +"You have the option of starting the icecc daemon automatically on the " +"computer startup. You need a running daemon on every computer which should " +"be part of the compile farm. If you later change your mind, you can run: " +"'dpkg-reconfigure icecc'." +msgstr "" +"Sie haben die Mglichkeit, den Icecc-Daemon automatisch beim Hochfahren des " +"Rechners zu starten. Sie bentigen einen laufenden Daemon auf jedem Computer, " +"der Teil der Compile-Farm sein soll. Falls Sie spter Ihre Meinung ndern, " +"knnen Sie dpkg-reconfigure icecc ausfhren." + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "Start the icecc scheduler on startup?" +msgstr "Das Icecc-Planprogramm (Scheduler) beim Systemstart starten?" + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "" +"The scheduler can be run as a daemon, listening for incoming connections." +msgstr "" +"Das Planprogramm kann als Daemon laufen und auf eingehende Verbindungen " +"warten." + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "" +"You have the option of starting the icecc scheduler automatically on the " +"computer startup. You need one scheduler in your compile farm. If in doubt, " +"you should not start it automatically on startup. If you later change your " +"mind, you can run: 'dpkg-reconfigure icecc'." +msgstr "" +"Sie haben die Mglichkeit, das Planprogramm automatisch beim Systemstart zu " +"starten. Sie bentigen ein Planprogramm in Ihrer Compile-Farm. Im Zweifel " +"sollten Sie es nicht automatisch beim Systemstart starten. Falls Sie spter " +"Ihre Meinung ndern, fhren Sie dpkg-reconfigure icecc aus." --- icecc-0.8.0.orig/debian/po/templates.pot +++ icecc-0.8.0/debian/po/templates.pot @@ -0,0 +1,62 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: pkg-kde-extras@lists.alioth.debian.org\n" +"POT-Creation-Date: 2006-09-17 00:40+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "Start the icecc daemon on startup?" +msgstr "" + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "icecc can be run as a daemon, listening for incoming connections." +msgstr "" + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "" +"You have the option of starting the icecc daemon automatically on the " +"computer startup. You need a running daemon on every computer which should " +"be part of the compile farm. If you later change your mind, you can run: " +"'dpkg-reconfigure icecc'." +msgstr "" + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "Start the icecc scheduler on startup?" +msgstr "" + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "" +"The scheduler can be run as a daemon, listening for incoming connections." +msgstr "" + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "" +"You have the option of starting the icecc scheduler automatically on the " +"computer startup. You need one scheduler in your compile farm. If in doubt, " +"you should not start it automatically on startup. If you later change your " +"mind, you can run: 'dpkg-reconfigure icecc'." +msgstr "" --- icecc-0.8.0.orig/debian/po/fr.po +++ icecc-0.8.0/debian/po/fr.po @@ -0,0 +1,73 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Guilhelm Panaget , 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: icecc\n" +"Report-Msgid-Bugs-To: pkg-kde-extras@lists.alioth.debian.org\n" +"POT-Creation-Date: 2006-09-17 00:40+0200\n" +"PO-Revision-Date: 2006-09-20 21:31+0100\n" +"Last-Translator: Guilhelm Panaget \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "Start the icecc daemon on startup?" +msgstr "Faut-il lancer le dmon icecc au dmarrage?" + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "icecc can be run as a daemon, listening for incoming connections." +msgstr "" +"Icecc peut tre lanc en tant que dmon, l'coute de connexions entrantes." + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "" +"You have the option of starting the icecc daemon automatically on the " +"computer startup. You need a running daemon on every computer which should " +"be part of the compile farm. If you later change your mind, you can run: " +"'dpkg-reconfigure icecc'." +msgstr "" +"Vous avez la possibilit de lancer automatiquement le dmon icecc au " +"dmarrage du systme. Chaque membre de la ferme de compilation doit avoir un " +"dmon actif. Vous pourrez revenir sur ce choix ultrieurement en excutant " +"la commande dpkg-reconfigure icecc." + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "Start the icecc scheduler on startup?" +msgstr "Faut-il lancer l'ordonnanceur d'icecc au dmarrage?" + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "" +"The scheduler can be run as a daemon, listening for incoming connections." +msgstr "" +"L'ordonnanceur peut tre lanc en tant que dmon, l'coute de connexions " +"entrantes." + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "" +"You have the option of starting the icecc scheduler automatically on the " +"computer startup. You need one scheduler in your compile farm. If in doubt, " +"you should not start it automatically on startup. If you later change your " +"mind, you can run: 'dpkg-reconfigure icecc'." +msgstr "" +"Vous avez la possibilit de lancer automatiquement l'ordonnanceur d'icecc au " +"dmarrage du systme. Il vous faut un seul ordonnanceur dans votre ferme " +"de compilation. Dans le doute, vous ne devriez pas le lancer automatiquement " +"au dmarrage. Vous pourrez revenir sur ce choix ultrieurement en excutant " +"la commande dpkg-reconfigure icecc." --- icecc-0.8.0.orig/debian/po/nl.po +++ icecc-0.8.0/debian/po/nl.po @@ -0,0 +1,54 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: icecc\n" +"Report-Msgid-Bugs-To: pkg-kde-extras@lists.alioth.debian.org\n" +"POT-Creation-Date: 2006-09-17 00:40+0200\n" +"PO-Revision-Date: 2007-05-09 18:33+0100\n" +"Last-Translator: Bart Cornelis \n" +"Language-Team: debian-l10n-dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Dutch\n" + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "Start the icecc daemon on startup?" +msgstr "Wilt u de icecc-achtergronddienst starten tijdens het opstarten van het systeem?" + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "icecc can be run as a daemon, listening for incoming connections." +msgstr "Het is mogelijk om icecc te draaien als achtergronddienst die luistert voor inkomende verbindingen." + +#. Type: boolean +#. Description +#: ../icecc.templates:1001 +msgid "You have the option of starting the icecc daemon automatically on the computer startup. You need a running daemon on every computer which should be part of the compile farm. If you later change your mind, you can run: 'dpkg-reconfigure icecc'." +msgstr "U kunt de icecc-achtergronddienst automatisch opstarten telkens u het systeem start. Er dient een achtergronddienst te draaien op elke computer die deel gaat uitmaken van de 'compile farm'. U kunt later altijd van gedachten veranderen via het commando 'dpkg-reconfigure icecc'." + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "Start the icecc scheduler on startup?" +msgstr "Wilt u de icecc-planner starten tijdens het opstarten van het systeem?" + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "The scheduler can be run as a daemon, listening for incoming connections." +msgstr "De planner kan als achtergronddienst draaien, luisterent voor inkomende verbindingen." + +#. Type: boolean +#. Description +#: ../icecc.templates:2001 +msgid "You have the option of starting the icecc scheduler automatically on the computer startup. You need one scheduler in your compile farm. If in doubt, you should not start it automatically on startup. If you later change your mind, you can run: 'dpkg-reconfigure icecc'." +msgstr "U kunt de icecc-planner automatisch opstarten telkens u het systeem start. Er is slechts één planner nodig in uw 'compile farm'. U kunt later altijd van gedachten veranderen via het commando 'dpkg-reconfigure icecc'." + --- icecc-0.8.0.orig/debian/po/POTFILES.in +++ icecc-0.8.0/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] icecc.templates --- icecc-0.8.0.orig/debian/icecc.conf +++ icecc-0.8.0/debian/icecc.conf @@ -0,0 +1,47 @@ +# +# Nice level of running compilers +# +# ICECC_NICE_LEVEL="5" +ICECC_NICE_LEVEL="5" + +# +# icecc daemon log file +# +# ICECC_LOG_FILE="/var/log/iceccd.log" +ICECC_LOG_FILE="/var/log/iceccd.log" + +# +# Identification for the network the scheduler and daemon run on. +# You can have several distinct icecc networks in the same LAN +# for whatever reason. +# +# ICECC_NETNAME="" +ICECC_NETNAME="" + +# +# You can overwrite here the number of jobs to run in parallel. Per +# default this depends on the number of (virtual) CPUs installed. +# +# ICECC_MAX_JOBS="" +ICECC_MAX_JOBS="" + +# +# This is the directory where the icecc daemon stores the environments +# it compiles in. In a big network this can grow quite a bit, so use some +# path if your /tmp is small - but the user icecc has to write to it. +# +# ICECC_BASEDIR="/var/cache/icecc" +ICECC_BASEDIR="/var/cache/icecc" + +# +# icecc scheduler log file +# +# ICECC_SCHEDULER_LOG_FILE="/var/log/icecc_scheduler.log" +ICECC_SCHEDULER_LOG_FILE="/var/log/icecc_scheduler.log" + +# +# If the daemon can't find the scheduler by broadcast (e.g. because +# of a firewall) you can specify it. +# +# ICECC_SCHEDULER_HOST="" +ICECC_SCHEDULER_HOST="" --- icecc-0.8.0.orig/debian/control +++ icecc-0.8.0/debian/control @@ -0,0 +1,36 @@ +Source: icecc +Section: kde +Priority: optional +Maintainer: Debian KDE Extras Team +Uploaders: Fathi Boudra , Mark Purcell +Build-Depends: cdbs, debhelper (>= 5), automake, libtool, docbook2x +Standards-Version: 3.7.2 + +Package: icecc +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, lsb-base +Suggests: icecc-monitor +Description: distributed compiler (client and server) + icecc is a distributed compile system. It allows parallel compiling by + distributing the compile jobs to several nodes of a compile network running + the icecc daemon. The icecc scheduler routes the jobs and provides status and + statistics information to the icecc monitor. + . + Each compile node can accept one or more compile jobs depending on the number + of processors and the settings of the daemon. Link jobs and other jobs which + cannot be distributed are executed locally on the node where the compilation + is started. + . + Homepage: http://en.opensuse.org/Icecream + +Package: libicecc-dev +Architecture: any +Section: devel +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: development files for icecc (distributed compiler) + This package is part if icecc. It provides files which are necessary to build + icecc-monitor. + . + See the 'icecc' package for more informations. + . + Homepage: http://en.opensuse.org/Icecream --- icecc-0.8.0.orig/debian/icecc.templates +++ icecc-0.8.0/debian/icecc.templates @@ -0,0 +1,21 @@ +Template: icecc/daemon +Type: boolean +Default: true +_Description: Start the icecc daemon on startup? + icecc can be run as a daemon, listening for incoming connections. + . + You have the option of starting the icecc daemon automatically on the + computer startup. You need a running daemon on every computer which should + be part of the compile farm. If you later change your mind, you can run: + 'dpkg-reconfigure icecc'. + +Template: icecc/scheduler +Type: boolean +Default: false +_Description: Start the icecc scheduler on startup? + The scheduler can be run as a daemon, listening for incoming connections. + . + You have the option of starting the icecc scheduler automatically on the + computer startup. You need one scheduler in your compile farm. If in doubt, + you should not start it automatically on startup. If you later change your + mind, you can run: 'dpkg-reconfigure icecc'. --- icecc-0.8.0.orig/debian/rules +++ icecc-0.8.0/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_DH_INSTALL_ARGS = --sourcedir=debian/tmp +DEB_INSTALL_MANPAGES_icecc := icecc.1 icecc-create-env.1 icecc-scheduler.1 iceccd.1 + +makebuilddir/icecc:: + $(MAKE) -f Makefile.cvs + +build/icecc:: + for i in debian/man/*.xml; do \ + /usr/bin/docbook2x-man $$i; \ + done + +install/icecc:: + install -D -p -m0644 debian/icecc.conf debian/icecc/etc/icecc/icecc.conf + +clean:: + rm -f *.1 + rm -f aclocal.m4 config.guess config.h.in config.sub configure depcomp \ + install-sh ltmain.sh missing + rm -f services/icecc-scheduler + rm -rf autom4te.cache + find . -type f -name 'Makefile.in' | xargs rm -f + +get-orig-source: + @@dh_testdir + @@[ -d ../tarballs/. ]||mkdir -p ../tarballs + @@dpatch-get-origtargz ../tarballs + --- icecc-0.8.0.orig/debian/README.Debian +++ icecc-0.8.0/debian/README.Debian @@ -0,0 +1,107 @@ +Debian kde-extras Team +---------------------- + +1. Contacts +----------- + +General help requests + mailing list + #debian-kde on irc + +Packaging queries + mailing list + #debian-qt-kde on irc + +Maintainers + mailing list + + +2. Subversion repository +------------------------ + +You can browse it only at: + +http://svn.debian.org/wsvn/pkg-kde/kde-extras/ + +To "checkout" the repository use these commands: + + $ svn co svn+ssh://${ALIOTH_USERNAME}@svn.debian.org/svn/pkg-kde/kde-extras + +Authorized SSH keys are controlled at https://alioth.debian.org/account/ + +The repository layout is: + +- packagename/ + - trunk/ + - branches/ + - tags/ +- 0.7.2-1/ +- 0.7.2-2/ +- 0.7.2-2ubuntu1/ +- 0.7.2-2ubuntu2/ +- 0.7.2-2ubuntu3/ +- 0.8.0/ +... + +If only one version of the package is available at the time, development must +be made at trunk/ dir, copying the dir to tags/'pkg-version' each time a new +release is made. + +When, at some point, the need to have two different versions at the same time +arises (for example, if we need a version to be in unstable and a different one +to be in experimental), experimental development will be made in trunk/ and +if a new unstable package needs to be cooked, copying +tag/'latest_version_in_sid' to tag/'latest_version_in_sid'+1 will make the +trick. + +3. Using svn-buildpackage +-------------------------- + +Packages with an upstream tarball will require you to set the mergeWithUpstream +property first (from the package root) so that svn-buildpackage will look for +the .orig.tar.gz in the ../tarballs directory. + + % svn propset mergeWithUpstream 1 debian + +Please note that this only works for packages which have only the debian/ +directory committed. Consequently, you must use CDBS's simple-patchsys.mk or +dpatch to modify the upstream sources. + +After you have finished and committed your Debian patches via + + % svn commit [PACKAGE] + +as well as copying the orig.tar.gz to ../tarballs/ if necessary, you may build +your package with the following commands: + + % svn-buildpackage --svn-ignore-new -rfakeroot + +Please, don't commit tarballs/ or build-area/ directories to SVN. + +4. Tarballs and Build-area directories +------------------------------------ + +During pkg development before uploaded to debian the tarballs can be found at: + + http://pkg-kde.alioth.debian.org/kde-extra/orig.tar.gz/ + +You need to place those dirs in the parent directory of the one from which you're +running svn-buildpackage. Usually this means placing tarballs/ and build-area/ dirs +in 'pkgname'/ dir, at the same level as trunk/ + +If you want to compile inside one version in tags/ dir, you'll need to place those +dirs inside that dir. Of course the easiest and cleanest way of doing it is +by making a symlink of those dirs inside tags/ dir. + +5. Using svn-inject +------------------- + +To inject a new package into the Debian KDE Extras svn archive you should use svn-inject(1) +as follows: + + svn-inject -o .dsc svn+ssh://${ALIOTH_USERNAME}@svn.debian.org/svn/pkg-kde/kde-extras + +Type in your alioth password a few hundred times :-) and your package should be +uploaded to the archive. Note you will also need to manually copy the +package.orig.tar.gz to your tarballs directory. The -o option is important as +this ensures that we 'Only keep modified files under SVN control' --- icecc-0.8.0.orig/debian/icecc.install +++ icecc-0.8.0/debian/icecc.install @@ -0,0 +1,4 @@ +usr/bin/icecc +usr/lib/icecc/icecc-create-env +usr/sbin/icecc-scheduler +usr/sbin/iceccd --- icecc-0.8.0.orig/debian/changelog +++ icecc-0.8.0/debian/changelog @@ -0,0 +1,155 @@ +icecc (0.8.0-1) unstable; urgency=low + + * New upstream release. + * Add [INTL:nl] Dutch po-debconf translation. (Closes: #423042) + * Update clean target in rules to fix FTBFS if built twice in a row. + (Closes: #424415) + + -- Fathi Boudra Tue, 12 Jun 2007 12:01:53 +0200 + +icecc (0.7.14-5) unstable; urgency=low + + * Include gcc4.3 patch from Martin. (Closes: #417230) + * Add get-orig-source: target + * Add debconf translations + - [INTL:de] initial German debconf translation (Closes: #413407) + - [INTL:pt] Portuguese translation for debconf messages + (Closes: #414917) + + -- Mark Purcell Wed, 02 May 2007 21:35:37 +0100 + +icecc (0.7.14-4) unstable; urgency=low + + * Add czech and french debconf templates translations + (Closes: #389802, #391477) + + -- Fathi Boudra Sat, 14 Oct 2006 19:44:40 +0200 + +icecc (0.7.14-3) unstable; urgency=low + + * Fix comparisons in init script. + Thanks to Jens Reinsberger (Closes: #388166) + + -- Fathi Boudra Tue, 19 Sep 2006 11:31:49 +0200 + +icecc (0.7.14-2) unstable; urgency=low + + * Make init script LSB compliant + * Split configuration file instead of embedding it in postinst + * Unmark Default field as translatable in debconf templates (Closes: #387521) + * Rewrite long description (Closes: #387096) + + -- Fathi Boudra Sun, 17 Sep 2006 23:26:54 +0200 + +icecc (0.7.14-1) unstable; urgency=low + + * New upstream release + * watch: fix ftp address + + -- Fathi Boudra Wed, 13 Sep 2006 19:38:28 +0200 + +icecc (0.7.12-1) unstable; urgency=low + + * New upstream release + + -- Fathi Boudra Mon, 11 Sep 2006 21:32:02 +0200 + +icecc (0.7.7-1) unstable; urgency=low + + * Initial Debian release (Closes: #327462) + * Merge Andre Woebbeking and Jonathan Riddell package + * Convert package to cdbs + * control: + * add cdebconf depends + * remove unneeded depends: coreutils and grep + * update descriptions + * copyright: complete copyrights and licence informations + + -- Fathi Boudra Sun, 27 Aug 2006 12:21:38 +0200 + +icecc (0.7.6-1) unstable; urgency=low + + * New upstream version. + + -- Andre Woebbeking Sun, 16 Jul 2006 19:52:23 +0200 + +icecc (0.7.5-1) unstable; urgency=low + + * New upstream version. + + -- Andre Woebbeking Wed, 12 Jul 2006 21:11:42 +0200 + +icecc (0.7.4-1) unstable; urgency=low + + * New upstream version. + * Patches are applied upstream (rename from icecream to icecc). + + -- Andre Woebbeking Sun, 09 Jul 2006 10:01:12 +0200 + +icecc (0.7.3a-4ubuntu2) edgy; urgency=low + + * Add missing build-dep on docbook2x + + -- Jonathan Riddell Thu, 13 Jul 2006 12:28:15 +0000 + +icecc (0.7.3a-4ubuntu1) edgy; urgency=low + + * New upstream release + * Merge with upstream + + -- Jonathan Riddell Fri, 7 Jul 2006 11:25:44 +0000 + +icecc (0.7.3-4) unstable; urgency=low + + * Also create a group icecc for the user icecc. + * Build with -O2. + + -- Andre Woebbeking Mon, 03 Jun 2006 23:50:12 +0200 + +icecc (0.7.3-3) unstable; urgency=low + + * Create libicecc-dev package. + * Simplified debian files. + + -- Andre Woebbeking Sun, 02 Jun 2006 19:00:51 +0200 + +icecc (0.7.3-2) unstable; urgency=low + + * Made icecc --build-native work. + + -- Andre Woebbeking Sat, 01 Jun 2006 21:30:51 +0200 + +icecc (0.7.3-1) unstable; urgency=low + + * New upstream version with new protocol (changed in 0.7.0). + * /usr/bin/create-env is now /usr/lib/icecc/icecc-create-env + + -- Andre Woebbeking Sat, 01 Jun 2006 20:36:15 +0200 + +icecc (0.6.1-1) unstable; urgency=low + + * It still builds at the new location so just bump the version number. + + -- Andre Woebbeking Sat, 29 Apr 2006 20:36:15 +0200 + +icecc (0.6svn20060501-0ubuntu2) dapper; urgency=low + + * Create links for cc and c++ + + -- Jonathan Riddell Thu, 25 May 2006 14:34:38 +0100 + +icecc (0.6svn20060501-0ubuntu1) dapper; urgency=low + + * Initial Ubuntu upload + * Updated version from SVN + * Add manpages + * Depend on adduser + * Remove use of debconf + + -- Jonathan Riddell Sat, 29 Apr 2006 20:36:15 +0200 + +icecc (0.6-1) unstable; urgency=low + + * Initial Release. + + -- Andre Woebbeking Sat, 27 Nov 2004 15:36:15 +0200 --- icecc-0.8.0.orig/debian/icecc.dirs +++ icecc-0.8.0/debian/icecc.dirs @@ -0,0 +1 @@ +var/cache/icecc etc/icecc \ No newline at end of file --- icecc-0.8.0.orig/debian/watch +++ icecc-0.8.0/debian/watch @@ -0,0 +1,2 @@ +version=3 +ftp://ftp.suse.com/pub/projects/icecream/icecc-(.*)\.tar\.bz2 debian svn-upgrade --- icecc-0.8.0.orig/debian/patches/10_rename_scheduler.diff +++ icecc-0.8.0/debian/patches/10_rename_scheduler.diff @@ -0,0 +1,16 @@ +diff -Nur icecc-0.8.0/services/Makefile.am icecc-0.8.0.new/services/Makefile.am +--- icecc-0.8.0/services/Makefile.am 2007-06-12 12:32:10.000000000 +0200 ++++ icecc-0.8.0.new/services/Makefile.am 2007-06-12 13:43:24.000000000 +0200 +@@ -11,9 +11,9 @@ + noinst_HEADERS = bench.h exitcode.h getifaddrs.h logging.h tempfile.h platform.h + icedir = $(includedir)/icecc + +-sbin_PROGRAMS = scheduler +-scheduler_SOURCES = scheduler.cpp +-scheduler_LDADD = libicecc.la ++sbin_PROGRAMS = icecc-scheduler ++icecc_scheduler_SOURCES = scheduler.cpp ++icecc_scheduler_LDADD = libicecc.la + + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = icecc.pc --- icecc-0.8.0.orig/debian/patches/11_gcc4.3_support_bug417230.diff +++ icecc-0.8.0/debian/patches/11_gcc4.3_support_bug417230.diff @@ -0,0 +1,11 @@ +diff -Nur icecc-0.8.0/services/logging.h icecc-0.8.0.new/services/logging.h +--- icecc-0.8.0/services/logging.h 2007-06-12 12:32:10.000000000 +0200 ++++ icecc-0.8.0.new/services/logging.h 2007-06-12 13:45:04.000000000 +0200 +@@ -21,6 +21,7 @@ + #ifndef _LOGGING_H + #define _LOGGING_H + ++#include + #include + #include + #include --- icecc-0.8.0.orig/debian/compat +++ icecc-0.8.0/debian/compat @@ -0,0 +1 @@ +5 --- icecc-0.8.0.orig/debian/docs +++ icecc-0.8.0/debian/docs @@ -0,0 +1,3 @@ +NEWS +README +TODO --- icecc-0.8.0.orig/debian/man/icecc.xml +++ icecc-0.8.0/debian/man/icecc.xml @@ -0,0 +1,81 @@ + + + + + + Jonathan + Riddell + jriddell@ubuntu.com + + + 2006 + Jonathan Riddell + + + + 2006-05-01 + + + + icecc + 1 + + + icecc + icecream distributed compiler + + + + icemon + + + + + + + DESCRIPTION + + icecc is used to compile your C/C++ programmes with icecream over an icecream cluster. + + + You should not generally call icecc directly but make sure the gcc/g++ symlinks to it are in your path when compiling. + export PATH=/usr/lib/icecc/bin/:$PATH + + + + ENVIRONMENT VARIABLES + + + Environement Variables: + + + Use a specific icecc environment, see create-env + + + + The number of jobs out of 1000 that should be + compiled on multiple hosts to ensure that they're + producing the same output. The default is 10. + + + + + + COPYRIGHT + + This manual page was written by Jonathan Riddell + jriddell@ubuntu.com for the + Kubuntu system (but may be used by others). + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU General Public License, + Version 2 or any later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in + /usr/share/common-licenses/GPL. + + + --- icecc-0.8.0.orig/debian/man/icecc-create-env.xml +++ icecc-0.8.0/debian/man/icecc-create-env.xml @@ -0,0 +1,71 @@ + + + + + + Jonathan + Riddell + jriddell@ubuntu.com + + + 2006 + Jonathan Riddell + + + + 2006-07-07 + + + + icecc-create-env + 1 + + + icecc-create-env + Create a tar for icecream distributed compiler to use + + + + icecc-create-env + + + + DESCRIPTION + + /usr/lib/icecc/icecc-create-env creates an archive file containing all the files necessary to setup the compiler environment. The file will have a random unique name like "ddaea39ca1a7c88522b185eca04da2d8.tar.bz2" per default. Rename it to something more expressive for your convenience, e.g. "i386-3.3.1.tar.bz2". + + +Set ICECC_VERSION=<filename_of_archive_containing_your_environment> in the shell environment where you start the compile jobs and the file will be transfered to the daemons where your compile jobs run and installed to a chroot environment for executing the compile jobs in the environment fitting to the environment of the client. This requires that the icecream deamon runs as root. + + + + +If you do not set ICECC_VERSION, the client will use a tar ball provided by the daemon running on the same machine. So you can always be sure you're not tricked by incompatible gcc versions - and you can share your computer with users of other distributions. + + + + + OPTIONS + + icecc-create-env takes no options. + + + + COPYRIGHT + + This manual page was written by Jonathan Riddell + jriddell@ubuntu.com for the + Kubuntu system (but may be used by others). + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU General Public License, + Version 2 or any later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in + /usr/share/common-licenses/GPL. + + + --- icecc-0.8.0.orig/debian/man/icecc-scheduler.xml +++ icecc-0.8.0/debian/man/icecc-scheduler.xml @@ -0,0 +1,68 @@ + + + + + + Jonathan + Riddell + jriddell@ubuntu.com + + + 2006 + Jonathan Riddell + + + + 2006-05-01 + + + + icecc-scheduler + 1 + + + icecc-scheduler + Scheduler for your icecream compile cluster + + + + icecc-scheduler + + + + DESCRIPTION + + icecc-scheduler is the server which organises compiles on the icecream compile cluster. + + + WARNING: Never use icecream in untrusted environments. Run the deamons and the scheduler as unpriviliged user in such networks if you have to. Howeveryou will then have to rely on homogeneous networks. + + + To run the scheduler make sure START_ICECC_SCHEDULER="true" is set in /etc/default/icecc and run sudo /etc/init.d/icecc start (it will also start at bootup). + + + + OPTIONS + + icecc-scheduler takes no options. + + + + COPYRIGHT + + This manual page was written by Jonathan Riddell + jriddell@ubuntu.com for the + Kubuntu system (but may be used by others). + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU General Public License, + Version 2 or any later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in + /usr/share/common-licenses/GPL. + + + --- icecc-0.8.0.orig/debian/man/iceccd.xml +++ icecc-0.8.0/debian/man/iceccd.xml @@ -0,0 +1,62 @@ + + + + + + Jonathan + Riddell + jriddell@ubuntu.com + + + 2006 + Jonathan Riddell + + + + 2006-05-01 + + + + iceccd + 1 + + + iceccd + Server for an icecream compile cluster + + + + iceccd [-n <netname>] [-m <max_processes>] [-w] [-d|--daemonize] [-l logfile] [-s <schedulerhost>] [-v[v[v]]] [-r|--run-as-user] [-b <env-basedir>] [-u|--nobody-uid <nobody_uid>] [--cache-limit <MB>] [-N <node_name>] + + + + DESCRIPTION + + iceccd is a server for your icecream compile cluster, it must be run on every computer in the cluster. + + + You must also run icecc-scheduler on one computer in the cluster. + + + To use iceccd make sure START_ICECC="true" is set in /etc/default/icecc and run sudo /etc/init.d/icecc start (it will also start at boot). + + + + COPYRIGHT + + This manual page was written by Jonathan Riddell + jriddell@ubuntu.com for the + Kubuntu system (but may be used by others). + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU General Public License, + Version 2 or any later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in + /usr/share/common-licenses/GPL. + + + --- icecc-0.8.0.orig/debian/icecc.init +++ icecc-0.8.0/debian/icecc.init @@ -0,0 +1,125 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: icecc +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: control icecc daemon and scheduler start at boot time +# Description: control icecc daemon and scheduler start at boot time by +# sourcing /etc/default/icecc and /etc/icecc/icecc.conf. +### END INIT INFO + +DAEMON=/usr/sbin/iceccd +SCHEDULER=/usr/sbin/icecc-scheduler +CONFIGFILE=/etc/icecc/icecc.conf +DEFAULTFILE=/etc/default/icecc + +# Read configuration files +[ -r $CONFIGFILE ] && . $CONFIGFILE +[ -r $DEFAULTFILE ] && . $DEFAULTFILE + +test -x $DAEMON || exit 0 + +. /lib/lsb/init-functions + +netname= +if test -n "$ICECC_NETNAME"; then + netname="-n $ICECC_NETNAME" +fi + +start_icecc_daemon() { + logfile="" + if test -n "$ICECC_LOG_FILE"; then + logfile="-l $ICECC_LOG_FILE" + fi + nice= + if test -n "$ICECC_NICE_LEVEL"; then + nice="--nice $ICECC_NICE_LEVEL" + fi + scheduler= + if test -n "$ICECC_SCHEDULER_HOST"; then + scheduler="-s $ICECC_SCHEDULER_HOST" + fi + basedir= + if test -n "$ICECC_BASEDIR"; then + basedir="-b $ICECC_BASEDIR" + fi + maxjobs= + if test -n "$ICECC_MAX_JOBS"; then + maxjobs="-m $ICECC_MAX_JOBS" + fi + + start-stop-daemon --start --quiet --exec $DAEMON -- \ + -d "$logfile" $nice $scheduler $netname -u icecc $basedir $maxjobs +} + +stop_icecc_daemon() { + start-stop-daemon --stop --quiet --signal TERM --oknodo --exec $DAEMON +} + +start_icecc_scheduler() { + if test -z "$ICECC_SCHEDULER_LOG_FILE"; then + ICECC_SCHEDULER_LOG_FILE="/var/log/icecc_scheduler" + fi + + logfile="-l $ICECC_SCHEDULER_LOG_FILE" + : > $ICECC_SCHEDULER_LOG_FILE + chown icecc $ICECC_SCHEDULER_LOG_FILE + start-stop-daemon --start --quiet --chuid icecc \ + --exec $SCHEDULER -- -d $logfile $netname +} + +stop_icecc_scheduler() { + start-stop-daemon --stop --quiet --signal TERM --oknodo --exec $SCHEDULER +} + +case "$1" in + start) + if [ "$START_ICECC" = "true" ]; then + log_daemon_msg "Starting distributed compiler daemon" "iceccd" + start_icecc_daemon + log_end_msg $? + fi + + if [ "$START_ICECC_SCHEDULER" = "true" ]; then + log_daemon_msg "Starting distributed compiler scheduler" "icecc-scheduler" + start_icecc_scheduler + log_end_msg $? + fi + ;; + stop) + log_daemon_msg "Stopping distributed compiler daemon" "iceccd" + stop_icecc_daemon + log_end_msg $? + + log_daemon_msg "Stopping distributed compiler scheduler" "icecc_scheduler" + stop_icecc_scheduler + log_end_msg $? + ;; + restart|force-reload) + log_daemon_msg "Restarting distributed compiler daemon" "iceccd" + stop_icecc_daemon + sleep 1 + if [ "$START_ICECC" = "true" ]; then + start_icecc_daemon + fi + log_end_msg $? + + log_daemon_msg "Restarting distributed compiler scheduler" "icecc-scheduler" + stop_icecc_scheduler + sleep 1 + if [ "$START_ICECC_SCHEDULER" = "true" ]; then + start_icecc_scheduler + fi + log_end_msg $? + ;; + *) + N=/etc/init.d/icecc + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 + --- icecc-0.8.0.orig/debian/icecc.postrm +++ icecc-0.8.0/debian/icecc.postrm @@ -0,0 +1,36 @@ +#!/bin/sh +# postrm script for icecc + +set -e + +# configure some variables +ICECC_GROUP=icecc +ICECC_USER=icecc + +case "$1" in + purge) + grep -q $ICECC_USER /etc/passwd && \ + (echo Deleting $ICECC_USER user... ; \ + deluser --quiet --system $ICECC_USER) + + grep -q $ICECC_GROUP /etc/group && \ + (echo Deleting $ICECC_GROUP group... ; \ + delgroup --quiet --system $ICECC_GROUP) + + rm -rf /etc/icecc + rm -rf /var/cache/icecc + rm -f /etc/default/icecc + ;; + remove) + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0