diff options
Diffstat (limited to 'suse')
-rw-r--r-- | suse/Makefile.am | 2 | ||||
-rw-r--r-- | suse/Makefile.in | 359 | ||||
-rw-r--r-- | suse/SuSEfirewall.iceccd | 24 | ||||
-rw-r--r-- | suse/SuSEfirewall.scheduler | 24 | ||||
-rw-r--r-- | suse/icecream.spec.in | 115 | ||||
-rw-r--r-- | suse/init.icecream | 128 | ||||
-rw-r--r-- | suse/logrotate | 15 | ||||
-rw-r--r-- | suse/sysconfig.icecream | 92 |
8 files changed, 759 insertions, 0 deletions
diff --git a/suse/Makefile.am b/suse/Makefile.am new file mode 100644 index 0000000..7fd841a --- /dev/null +++ b/suse/Makefile.am @@ -0,0 +1,2 @@ + +EXTRA_DIST = icecream.spec.in init.icecream logrotate SuSEfirewall.iceccd SuSEfirewall.scheduler sysconfig.icecream diff --git a/suse/Makefile.in b/suse/Makefile.in new file mode 100644 index 0000000..9c5882e --- /dev/null +++ b/suse/Makefile.in @@ -0,0 +1,359 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = suse +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(srcdir)/icecream.spec.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = icecream.spec +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBRSYNC = @LIBRSYNC@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIB_KINFO = @LIB_KINFO@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TAR = @TAR@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +EXTRA_DIST = icecream.spec.in init.icecream logrotate SuSEfirewall.iceccd SuSEfirewall.scheduler sysconfig.icecream +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign suse/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign suse/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +icecream.spec: $(top_builddir)/config.status $(srcdir)/icecream.spec.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/suse/SuSEfirewall.iceccd b/suse/SuSEfirewall.iceccd new file mode 100644 index 0000000..7d8a1dd --- /dev/null +++ b/suse/SuSEfirewall.iceccd @@ -0,0 +1,24 @@ +# Only the variables TCP, UDP, RPC, IP and BROADCAST are allowed. +# More may be supported in the future. +# +# For a more detailed description of the individual variables see +# the comments for FW_SERVICES_*_EXT in /etc/sysconfig/SuSEfirewall2 +# + +## Name: icecream daemon +## Description: opens socket for the icecream compilation daemon + +# space separated list of allowed TCP ports +TCP="10245" + +# space separated list of allowed UDP ports +UDP="" + +# space separated list of allowed RPC services +RPC="" + +# space separated list of allowed IP protocols +IP="" + +# space separated list of allowed UDP broadcast ports +BROADCAST="" diff --git a/suse/SuSEfirewall.scheduler b/suse/SuSEfirewall.scheduler new file mode 100644 index 0000000..f251200 --- /dev/null +++ b/suse/SuSEfirewall.scheduler @@ -0,0 +1,24 @@ +# Only the variables TCP, UDP, RPC, IP and BROADCAST are allowed. +# More may be supported in the future. +# +# For a more detailed description of the individual variables see +# the comments for FW_SERVICES_*_EXT in /etc/sysconfig/SuSEfirewall2 +# + +## Name: icecream scheduler +## Description: Opens ports for the icecream scheduler + +# space separated list of allowed TCP ports +TCP="8765 8766" + +# space separated list of allowed UDP ports +UDP="" + +# space separated list of allowed RPC services +RPC="" + +# space separated list of allowed IP protocols +IP="" + +# space separated list of allowed UDP broadcast ports +BROADCAST="8765" diff --git a/suse/icecream.spec.in b/suse/icecream.spec.in new file mode 100644 index 0000000..5237b27 --- /dev/null +++ b/suse/icecream.spec.in @@ -0,0 +1,115 @@ +# +# spec file for package icecream +# + +# neededforbuild gcc-c++ libstdc++-devel +# norootforbuild +# don't use icecc to avoid bootstrap problems +# icecream 0 + +Name: icecream +BuildRequires: gcc-c++ +License: GPL, LGPL +Group: Development/Tools/Building +Summary: For Distributed Compile in the Network +Requires: /bin/tar /usr/bin/bzip2 +%if 0%{?suse_version} +PreReq: %fillup_prereq +PreReq: %insserv_prereq +%endif +Prereq: /usr/sbin/useradd /usr/sbin/groupadd +Requires: gcc-c++ +Version: @VERSION@ +Release: 1 +Source0: ftp://ftp.suse.com/pub/projects/icecream/icecc-%{version}.tar.bz2 +Source1: %name-manpages.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +icecream is the next generation distcc. + +%package -n libicecream-devel +Summary: libicecream-devel +Group: Development/Tools/Building +Summary: For Distributed Compile in the Network +Requires: libstdc++-devel + +%description -n libicecream-devel +libicecream-devel + +%prep +%setup -q -n %name -a 1 + +%build +export CFLAGS="$RPM_OPT_FLAGS" +export CXXFLAGS="$RPM_OPT_FLAGS" +make -f Makefile.cvs +%configure +make %{?jobs:-j %jobs} + +%install +make DESTDIR=$RPM_BUILD_ROOT KDEDIR=/opt/kde3 install +mkdir -p $RPM_BUILD_ROOT/opt/icecream/bin +for i in g++ gcc cc c++; do + ln -s /usr/bin/icecc $RPM_BUILD_ROOT/opt/icecream/bin/$i + rm -f $RPM_BUILD_ROOT/usr/bin/$i +done +# +# Install icecream init script +mkdir -p $RPM_BUILD_ROOT/etc/init.d/ +install -m 755 suse/init.icecream $RPM_BUILD_ROOT/etc/init.d/icecream +ln -sf /etc/init.d/icecream $RPM_BUILD_ROOT%{_sbindir}/rcicecream +%if 0%{?suse_version} +mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates +install -m 644 suse/sysconfig.icecream $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.icecream +%endif +mkdir -p $RPM_BUILD_ROOT/var/cache/icecream +mkdir -p $RPM_BUILD_ROOT%_mandir/man{1,7} +for i in mans/*.1 mans/*.7; do + install -m 644 $i $RPM_BUILD_ROOT%_mandir/man`echo $i | sed -e 's,.*\(.\)$,\1,'`/`basename $i` +done +install -m 644 -D suse/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/icecream + +%preun +%stop_on_removal icecream + +%pre +/usr/sbin/groupadd -r icecream 2> /dev/null || : +/usr/sbin/useradd -r -g icecream -s /bin/false -c "Icecream Daemon" -d /var/cache/icecream icecream 2> /dev/null || : + +%if 0%{?suse_version} +%post +%{fillup_and_insserv -n icecream icecream} +%endif + +%postun +%restart_on_update icecream +%{insserv_cleanup} + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root) +%config /etc/logrotate.d/icecream +%config /etc/init.d/icecream +%_bindir/icecc +%_bindir/icerun +%_sbindir/scheduler +%_libdir/icecc +%_sbindir/iceccd +%_sbindir/rcicecream +%_mandir/man*/* +/opt/icecream +%if 0%{?suse_version} +/var/adm/fillup-templates/sysconfig.icecream +%endif +%attr(-,icecream,icecream) /var/cache/icecream + +%files -n libicecream-devel +%defattr(-,root,root) +%_includedir/icecc +%_libdir/libicecc.* +%_libdir/pkgconfig/icecc.pc + +%changelog -n icecream diff --git a/suse/init.icecream b/suse/init.icecream new file mode 100644 index 0000000..b471b40 --- /dev/null +++ b/suse/init.icecream @@ -0,0 +1,128 @@ +#! /bin/sh +# Copyright (c) 2003 SuSE Linux AG Nuernberg, Germany. +# +# Author: Stephan Kulow <http://www.suse.de/feedback> +# +# /etc/init.d/icecream +# and its symbolic link +# /usr/sbin/rcicecream +# +### BEGIN INIT INFO +# Provides: icecream +# Required-Start: $network $syslog $remote_fs +# Required-Stop: $network $remote_fs +# Default-Start: 3 5 +# Default-Stop: +# Description: distributed compiler daemon +# Short-Description: icecc +### END INIT INFO + +# Determine the base and follow a runlevel link name. +base=${0##*/} +link=${base#*[SK][0-9][0-9]} + +# Force execution if not called by a runlevel directory. +test -x /usr/sbin/iceccd || exit 0 + +. /etc/rc.status +. /etc/sysconfig/icecream + +rc_reset +case "$1" in + start) + echo -n "Starting Distributed Compiler Daemon" + 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 + startproc -u icecream /usr/sbin/scheduler -d $logfile $netname + fi + logfile="" + if test -n "$ICECREAM_LOG_FILE"; then + touch $ICECREAM_LOG_FILE + chown icecream:icecream $ICECREAM_LOG_FILE + logfile="-l $ICECREAM_LOG_FILE" + else + touch /var/log/iceccd + chown icecream:icecream /var/log/iceccd + 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 + noremote= + if test "$ICECREAM_ALLOW_REMOTE" = "no" 2> /dev/null; then + noremote="--no-remote" + fi + maxjobs= + if test -n "$ICECREAM_MAX_JOBS"; then + if test "$ICECREAM_MAX_JOBS" -eq 0 2> /dev/null; then + maxjobs="-m 1" + noremote="--no-remote" + else + maxjobs="-m $ICECREAM_MAX_JOBS" + fi + fi + startproc /usr/sbin/iceccd -d $logfile $nice $scheduler $netname -u icecream -b "$ICECREAM_BASEDIR" $maxjobs $noremote + rc_status -v + ;; + stop) + echo -n "Shutting down Distributed Compiler Daemon" + killproc -TERM /usr/sbin/iceccd + if test "$ICECREAM_RUN_SCHEDULER" == "yes"; then + killproc -TERM /usr/sbin/scheduler + fi + rc_status -v + ;; + restart) + ## If first returns OK call the second, if first or + ## second command fails, set echo return value. + $0 stop; sleep 1 && $0 start + rc_status + ;; + try-restart|condrestart) + ## Do a restart only if the service was active before. + ## Note: try-restart is now part of LSB (as of 1.9). + ## RH has a similar command named condrestart. + if test "$1" = "condrestart"; then + echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}" + fi + $0 status + if test $? = 0; then + $0 restart + else + rc_reset # Not running is not a failure. + fi + # Remember status and be quiet + rc_status + ;; + reload|force-reload) + if test "$ICECREAM_RUN_SCHEDULER" == "yes"; then + killproc -HUP /usr/sbin/scheduler + fi + killproc -HUP /usr/sbin/iceccd + rc_status + ;; + status) + echo -n "Checking for Distributed Compiler Daemon: " + checkproc /usr/sbin/iceccd + rc_status -v + ;; + *) + echo "Usage: $0 {start|stop|status|restart|try-restart|reload}" + exit 1 + ;; +esac +rc_exit diff --git a/suse/logrotate b/suse/logrotate new file mode 100644 index 0000000..16be587 --- /dev/null +++ b/suse/logrotate @@ -0,0 +1,15 @@ +/var/log/iceccd /var/log/icecc_scheduler { + compress + dateext + maxage 30 + rotate 99 + missingok + notifempty + size +4096k + create 644 icecream icecream + sharedscripts + postrotate + /etc/init.d/icecream reload + endscript +} + diff --git a/suse/sysconfig.icecream b/suse/sysconfig.icecream new file mode 100644 index 0000000..30e1073 --- /dev/null +++ b/suse/sysconfig.icecream @@ -0,0 +1,92 @@ +# +## Type: integer(0:19) +## Path: Applications/icecream +## Description: Icecream settings +## ServiceRestart: icecream +## Default: 5 +# +# Nice level of running compilers +# +ICECREAM_NICE_LEVEL="5" + +# +## Type: string +## Path: Applications/icecream +## Defaut: /var/log/iceccd +# +# icecream daemon log file +# +ICECREAM_LOG_FILE="/var/log/iceccd" + +# +## Type: string +## Path: Applications/icecream +## Defaut: no +# +# Start also the scheduler? +# +ICECREAM_RUN_SCHEDULER="no" + +# +## Type: string +## Path: Applications/icecream +## Defaut: /var/log/icecc_scheduler +# +# icecream scheduler log file +# +ICECREAM_SCHEDULER_LOG_FILE="/var/log/icecc_scheduler" + +# +## Type: string +## Path: Applications/icecream +## Defaut: "" +# +# Identification for the network the scheduler and daemon run on. +# You can have several distinct icecream networks in the same LAN +# for whatever reason. +# +ICECREAM_NETNAME="" + +# +## Type: string +## Path: Applications/icecream +## Defaut: "" +# +# If the daemon can't find the scheduler by broadcast (e.g. because +# of a firewall) you can specify it. +# +ICECREAM_SCHEDULER_HOST="" + +# +## Type: integer +## Path: Applications/icecream +## Defaut: "" +# +# You can overwrite here the number of jobs to run in parallel. Per +# default this depends on the number of (virtual) CPUs installed. +# +# Note: a value of "0" is actually interpreted as "1", however it +# also sets ICECREAM_ALLOW_REMOTE="no". +# +ICECREAM_MAX_JOBS="" + +# +## Type: yesno +## Path: Applications/icecream +## Defaut: "yes" +# +# Specifies whether jobs submitted by other nodes are allowed to run on +# this one. +# +ICECREAM_ALLOW_REMOTE="yes" + +# +## Type: string +## Path: Applications/icecream +## Default: "/var/cache/icecream" +# +# This is the directory where the icecream 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 icecream has to write to it. +# +ICECREAM_BASEDIR="/var/cache/icecream" |