From: <ruf...@us...> - 2011-07-05 16:50:02
|
Revision: 2623 http://ganglia.svn.sourceforge.net/ganglia/?rev=2623&view=rev Author: rufustfirefly Date: 2011-07-05 16:49:53 +0000 (Tue, 05 Jul 2011) Log Message: ----------- Import Debian packaging from https://github.com/fastly/ganglia.git Added Paths: ----------- trunk/monitor-core/debian/ trunk/monitor-core/debian/README.Debian trunk/monitor-core/debian/apache.conf trunk/monitor-core/debian/changelog trunk/monitor-core/debian/compat trunk/monitor-core/debian/control trunk/monitor-core/debian/copyright trunk/monitor-core/debian/docs trunk/monitor-core/debian/ganglia-monitor.dirs trunk/monitor-core/debian/ganglia-monitor.docs trunk/monitor-core/debian/ganglia-monitor.init trunk/monitor-core/debian/ganglia-monitor.install trunk/monitor-core/debian/ganglia-monitor.manpages trunk/monitor-core/debian/ganglia-monitor.postinst trunk/monitor-core/debian/ganglia-monitor.postrm trunk/monitor-core/debian/ganglia-webfrontend.config trunk/monitor-core/debian/ganglia-webfrontend.dirs trunk/monitor-core/debian/ganglia-webfrontend.postinst trunk/monitor-core/debian/ganglia-webfrontend.postrm trunk/monitor-core/debian/ganglia-webfrontend.templates trunk/monitor-core/debian/gmetad.conf trunk/monitor-core/debian/gmetad.dirs trunk/monitor-core/debian/gmetad.init trunk/monitor-core/debian/gmetad.install trunk/monitor-core/debian/gmetad.manpages trunk/monitor-core/debian/gmetad.postinst trunk/monitor-core/debian/gmetad.postrm trunk/monitor-core/debian/gmond.conf trunk/monitor-core/debian/libganglia1-dev.dirs trunk/monitor-core/debian/libganglia1-dev.install trunk/monitor-core/debian/libganglia1-dev.manpages trunk/monitor-core/debian/libganglia1.dirs trunk/monitor-core/debian/libganglia1.install trunk/monitor-core/debian/patches/ trunk/monitor-core/debian/patches/debian-changes-3.1.7-2 trunk/monitor-core/debian/patches/series trunk/monitor-core/debian/po/ trunk/monitor-core/debian/po/POTFILES.in trunk/monitor-core/debian/po/cs.po trunk/monitor-core/debian/po/da.po trunk/monitor-core/debian/po/de.po trunk/monitor-core/debian/po/es.po trunk/monitor-core/debian/po/et.po trunk/monitor-core/debian/po/eu.po trunk/monitor-core/debian/po/fi.po trunk/monitor-core/debian/po/fr.po trunk/monitor-core/debian/po/gl.po trunk/monitor-core/debian/po/it.po trunk/monitor-core/debian/po/ja.po trunk/monitor-core/debian/po/pt.po trunk/monitor-core/debian/po/ru.po trunk/monitor-core/debian/po/sv.po trunk/monitor-core/debian/po/templates.pot trunk/monitor-core/debian/po/vi.po trunk/monitor-core/debian/rules trunk/monitor-core/debian/source/ trunk/monitor-core/debian/source/format Added: trunk/monitor-core/debian/README.Debian =================================================================== --- trunk/monitor-core/debian/README.Debian (rev 0) +++ trunk/monitor-core/debian/README.Debian 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,11 @@ +ganglia for Debian +------------------ + + Ganglia builds and runs on any Linux architecture, though it is certainly + less tested on non x86 archs. + + As of 3.0 ganglia's gmond.conf has changed format. To convert your + configuration use gmond -r /etc/gmond.conf and check the output does + what you want. + + -- Stuart Teasdale <st...@dr...>, Wed Jul 6 15:46:34 BST 2005 Added: trunk/monitor-core/debian/apache.conf =================================================================== --- trunk/monitor-core/debian/apache.conf (rev 0) +++ trunk/monitor-core/debian/apache.conf 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,2 @@ +Alias /ganglia /usr/share/ganglia-webfrontend + Property changes on: trunk/monitor-core/debian/apache.conf ___________________________________________________________________ Added: svn:keywords + Id Author Revision Date Added: svn:eol-style + native Added: trunk/monitor-core/debian/changelog =================================================================== --- trunk/monitor-core/debian/changelog (rev 0) +++ trunk/monitor-core/debian/changelog 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,325 @@ +ganglia (3.2.0-3) unstable; urgency=low + + * Fix jasons broken adduser + + -- Artur Bergman <ar...@fa...> Tue, 05 Jul 2011 02:32:59 +0000 + +ganglia (3.2.0-2) unstable; urgency=low + + * Replace useradd with adduser for gmetad too + + -- Jason Cook <ja...@fa...> Mon, 04 Jul 2011 18:36:20 -0700 + +ganglia (3.2.0-1) unstable; urgency=low + + * Replace useradd with adduser + + -- Jason Cook <ja...@fa...> Fri, 01 Jul 2011 16:21:42 -0700 + +ganglia (3.2.0-0) unstable; urgency=low + + * Rebase against 3.2.x svn + + -- Jason Cook <ja...@fa...> Fri, 01 Jul 2011 15:15:49 -0700 + +ganglia (3.1.7-2) unstable; urgency=low + + * Stop ganglia-monitor from changing permissions on /var/lib/ganglia + in postinst. Closes: #586909 + * Switch from adduser to useradd in postinst and prerm. Closes: #620505 + * Include Danish debconf template. Closes: #605328 + * Remove la files from dependency_libs. Closes: #621232 #620721 + * Switch to dpkg-source 3.0 (quilt) format + + -- Stuart Teasdale <sd...@de...> Thu, 07 Apr 2011 21:26:32 +0100 + +ganglia (3.1.7-1) unstable; urgency=low + + * New upstream version. Closes: #584276. + * Bump of standards-version to 3.8.4 + * Add build-dep on libpcre3-dev + + -- Stuart Teasdale <sd...@de...> Tue, 15 Jun 2010 22:33:13 +0100 + +ganglia (3.1.2-3.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix pending l10n issues. Debconf translations: + - Czech (Michal Simunek). Closes: #538741 + - Italian (Vincenzo Campanella). Closes: #556105 + - Czech (Michal Simunek). Closes: #574010 + + -- Christian Perrier <bu...@de...> Mon, 22 Mar 2010 00:45:10 +0100 + +ganglia (3.1.2-3) unstable; urgency=high + + * Adjust the default umask of the daemons. Closes: #567175 + * Fix in postinst to change the umask of existing rrds + * Add build dependency for libdbi0-dev. Closes: #569395 + * Horrid directory mangling in postinst hacked around for permissions + + -- Stuart Teasdale <sd...@de...> Sat, 13 Feb 2010 23:15:02 +0000 + +ganglia (3.1.2-2.1) unstable; urgency=low + + * Non-maintainer upload by arrangement with maintainer. + + [ Jonathan Wiltshire ] + * Debconf templates and debian/control reviewed by the debian-l10n- + english team as part of the Smith review project. Closes: #539204 + * Debconf translation updates: + - Swedish (closes: #539217) + - Finnish (closes: #539325) + - Czech (closes: #539614) + - Basque (closes: #539872) + - French (closes: #540038) + - Italian (closes: #540200) + - German (closes: #540220) + - Spanish (closes: #540708) + - Portugese (closes: #540769) + - Russian (closes: #540849) + - Vietnamese (closes: #547916) + - Japanese (closes: #551022) + * Refactor ganglia-webfrontend.{post,pre}inst for changed templates, and + simultaneously purge old code now that apache2 is the only package in + Squeeze. Use the a2enmod and a2dismod helpers to enable and disable the + Apache module instead of directly creating symbolic links. + + [ Christian Perrier ] + * Debconf translation updates: + - Galician (Marce Villarino). Closes: #555451 + + -- Christian Perrier <bu...@de...> Tue, 10 Nov 2009 22:02:43 +0100 + +ganglia (3.1.2-2) unstable; urgency=low + + * Tweaks to ganglia-webfrontend debconf templates + * If we have an old gmond.conf convert it. Closes: #512154 + * Changes to the example apache aliases. Closes: #518255 + + -- Stuart Teasdale <sd...@de...> Thu, 02 Jul 2009 19:59:35 +0100 + +ganglia (3.1.2-1) experimental; urgency=low + + * New upstream version with security fixes. (Closes: #512365.) + * Include the gmond.conf manpage in the ganglia-monitor package. + Closes: #512695. + * Fix up the apache config stub. Closes: #512153. + + -- Stu Teasdale <sd...@de...> Sat, 31 Jan 2009 21:43:26 +0000 + +ganglia (3.1.1-3) +experimental; urgency=low + + * Extra dependencies to allow php5-gd to be loaded + * Fix gmond.conf to run gmond as the ganglia user. Closes: #510381 + + -- Stu Teasdale <sd...@de...> Tue, 6 Dec 2008 13:30:30 +0000 + +ganglia (3.1.1-2) experimental; urgency=low + + * Ensure all archs use $prefix/lib for library installs. + Closes: #507008. + * Build option tweaks + * Ensure graph.d is correctly pulled in. Closes: #507012. + * actually ship the apapche.conf + + -- Stuart Teasdale <sd...@de...> Wed, 12 Nov 2008 21:47:51 +0000 + +ganglia (3.1.1-1) experimental; urgency=low + + * New upstream version + * Fix libganglia1 version dependencies + * Change maintainer to sd...@de... + * Add explicit libxml2-dev build-dep. Closes: #493947. + + -- Stuart Teasdale <sd...@de...> Sun, 31 Aug 2008 10:34:13 +0100 + +ganglia (3.1.0-1) experimental; urgency=low + + * New Upstream version + * Includes ganglia-webfrontend package. Closes: #284346. + + -- Stuart Teasdale <st...@dr...> Sun, 29 Jun 2008 10:13:45 +0100 + +ganglia-monitor-core (2.5.7-2) unstable; urgency=low + + * Autoreconfed again for mips/mipsel shared library support. + Closes: #285212. + + -- Stuart Teasdale <st...@dr...> Sat, 11 Dec 2004 18:07:29 +0000 + +ganglia-monitor-core (2.5.7-1) unstable; urgency=low + + * New upstream release, closes #281526. + + -- Stuart Teasdale <st...@dr...> Sat, 20 Nov 2004 13:06:30 +0000 + +ganglia-monitor-core (2.5.5-8) unstable; urgency=low + + * Friendly package takeover, thanks to Preston Smith for his work up to + now. + * New maintainer is Stuart Teasdale. + * New uploaders are Stephen Quinney and Andrew Stribblehill. + * Removed conflicts with firebird2-utils-super and + firebird2-utils-classic. firebird2 changed the name of its gstat + binary to fbstat, closes: #281527. + + -- Stephen Quinney <st...@ja...> Tue, 16 Nov 2004 18:40:32 +0000 + +ganglia-monitor-core (2.5.5-7) unstable; urgency=low + + * Updated conflicts with /usr/bin/gstat for packages + firebird2-utils-super firebird2-utils-classic. + + -- Preston Smith <ps...@ph...> Wed, 20 Oct 2004 10:10:29 -0500 + +ganglia-monitor-core (2.5.5-6) unstable; urgency=low + + * Added patch to check for matching strings while parsing /proc files. + Some architectures, or UML, etc. don't match all the regular cases. + Fix sprouted from segfaults in determining cpu MHz on UML. + (Closes: #235827) + + -- Preston Smith <ps...@fo...> Mon, 17 May 2004 13:52:45 -0500 + +ganglia-monitor-core (2.5.5-5) unstable; urgency=low + + * Make install wasn't putting ganglia header files in /usr/include, fixed. + (Closes: #237202) + + -- Preston Smith <ps...@ph...> Wed, 10 Mar 2004 09:03:38 -0500 + +ganglia-monitor-core (2.5.5-4) unstable; urgency=low + + * Fixed postinst scripts that didn't have --system for creating + the ganglia group. (Closes: #227020) + + -- Preston Smith <ps...@ph...> Sat, 10 Jan 2004 10:55:05 -0500 + +ganglia-monitor-core (2.5.5-3) unstable; urgency=low + + * Fixed bad logic in postrms, for removing /var/lib/ganglia/rrds. + Made sure that rm uses -f to catch any errors. (Closes: #222706) + + -- Preston Smith <ps...@ph...> Fri, 5 Dec 2003 14:20:13 -0500 + +ganglia-monitor-core (2.5.5-2) unstable; urgency=low + + * Configure script lacked the proper version number (thought it was still + 2.5.4). Fixed. (Closes: #221264) + + -- Preston Smith <ps...@ph...> Mon, 17 Nov 2003 12:57:17 -0500 + +ganglia-monitor-core (2.5.5-1) unstable; urgency=low + + * New upstream release. + * This release fixes DOS that can crash gmond if a specially crafted packet + is sent to it. + * Fixed gmetad's dependencies, which for some reason manually specified a + libc version, which was keeping it out of testing. + + -- Preston Smith <ps...@ph...> Thu, 6 Nov 2003 14:09:57 -0500 + +ganglia-monitor-core (2.5.4-2) unstable; urgency=low + + * Re-autoconf'd to fix mips/mipsel so that shlibs can be build right. + (Closes: #208711) + + -- Preston Smith <ps...@ph...> Mon, 8 Sep 2003 09:08:08 -0500 + +ganglia-monitor-core (2.5.4-1) unstable; urgency=low + + * New upstream release + + -- Preston Smith <ps...@ph...> Thu, 4 Sep 2003 09:29:40 -0500 + +ganglia-monitor-core (2.5.3-6) unstable; urgency=low + + * Ok, patched ltmain.sh and aclocal.m4 to set link_all_deplibs=no and + set dependency libs correctly. (Closes: #192000, 187606) + + -- Preston Smith <ps...@ph...> Tue, 1 Jul 2003 11:02:59 -0500 + +ganglia-monitor-core (2.5.3-5) unstable; urgency=low + + * build-deps cleanup was overzealous, removed dependency on cgilib. + Sigh. (Closes: #191342) + + -- Preston Smith <ps...@ph...> Tue, 29 Apr 2003 21:19:10 -0500 + +ganglia-monitor-core (2.5.3-4) unstable; urgency=low + + * Changed build-depends to not specify libpng-dev, and get it from + librrd0. (Closes: #180981) + + -- Preston Smith <ps...@ph...> Mon, 28 Apr 2003 22:35:41 -0500 + +ganglia-monitor-core (2.5.3-3) unstable; urgency=low + + * Fixed build failure on hppa (Closes: #186928) + + -- Preston Smith <ps...@ph...> Sun, 27 Apr 2003 23:32:11 -0500 + +ganglia-monitor-core (2.5.3-2) unstable; urgency=low + + * Re-made autoconf scripts so that mips and mipsel can make proper + shared libraries. (Closes: #186431) + + -- Preston Smith <ps...@ph...> Thu, 27 Mar 2003 23:09:16 -0500 + +ganglia-monitor-core (2.5.3-1) unstable; urgency=low + + * New upstream release + * Added a conflicts: with firebird-utils until upstream decides if + "gstat" will get renamed. (Closes: #175154) + + -- Preston Smith <ps...@ph...> Wed, 12 Mar 2003 13:07:24 -0500 + +ganglia-monitor-core (2.5.1-4) unstable; urgency=low + + * Egad, libganglia1-dev put include files in /usr/include.. Put in + /usr/include/ganglia + + -- Preston Smith <ps...@ph...> Sun, 15 Dec 2002 00:10:19 -0500 + +ganglia-monitor-core (2.5.1-3) unstable; urgency=low + + * Changed package short description. + * Upped the standards-version to 3.5.7. + + -- Preston Smith <ps...@fo...> Fri, 15 Nov 2002 18:02:15 -0500 + +ganglia-monitor-core (2.5.1-2) unstable; urgency=low + + * Autobuilders gagged on a missing build-dep. + + -- Preston Smith <ps...@fo...> Thu, 14 Nov 2002 18:53:19 -0500 + +ganglia-monitor-core (2.5.1-1) unstable; urgency=low + + * New upstream release. + * Removed unnecessary Depends on libganglia1 for gmond/gmetad. + + -- Preston Smith <ps...@fo...> Sun, 10 Nov 2002 14:21:05 -0500 + +ganglia-monitor-core (2.5.0-3) unstable; urgency=low + + * Another fix, upstream's autoconf stuff doesn't make config scripts + all correctly. + + -- Preston Smith <ps...@ph...> Mon, 23 Sep 2002 17:30:16 -0500 + +ganglia-monitor-core (2.5.0-2) unstable; urgency=low + + * Fixed a problematic build-depends: changed the dependency on any libgd-dev + package to libgd-gif1-dev, since that's what rrdtool explicitly depends on. + + -- Preston Smith <ps...@ph...> Mon, 23 Sep 2002 14:28:38 -0500 + +ganglia-monitor-core (2.5.0-1) unstable; urgency=low + + * Intitial release of ganglia 2.5.0 + + -- Preston Smith <ps...@fo...> Thu, 19 Sep 2002 20:07:48 -0500 + Added: trunk/monitor-core/debian/compat =================================================================== --- trunk/monitor-core/debian/compat (rev 0) +++ trunk/monitor-core/debian/compat 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1 @@ +5 Added: trunk/monitor-core/debian/control =================================================================== --- trunk/monitor-core/debian/control (rev 0) +++ trunk/monitor-core/debian/control 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,59 @@ +Source: ganglia +Section: net +Priority: optional +Maintainer: Stuart Teasdale <sd...@de...> +Homepage: http://www.ganglia.info/ +Build-Depends: debhelper (>> 5.0.0), librrd2-dev, autoconf, autotools-dev, automake, libapr1-dev, libexpat1-dev, python-dev, libconfuse-dev, po-debconf, libxml2-dev, libdbi0-dev, libpcre3-dev +Standards-Version: 3.8.4 + +Package: ganglia-monitor +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, adduser, libganglia1 (=${binary:Version}) +Description: cluster monitoring toolkit - node daemon + Ganglia is a scalable, real-time cluster monitoring environment + that collects cluster statistics in an open and well-defined XML format. + . + This package contains the monitor core program. + +Package: gmetad +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, adduser, libganglia1 (=${binary:Version}) +Suggests: ganglia-monitor, ganglia-webfrontend +Description: cluster monitoring toolkit - Ganglia Meta-Daemon + Ganglia is a scalable, real-time cluster monitoring environment + that collects cluster statistics in an open and well-defined XML format. + . + This package contains the 'gmetad' daemon, which collects information from + ganglia monitor clients and writes it to RRD databases. + +Package: libganglia1 +Architecture: any +Section: libs +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: cluster monitoring toolkit - shared libraries + Ganglia is a scalable, real-time cluster monitoring environment + that collects cluster statistics in an open and well-defined XML format. + . + This package contains shared libraries. + +Package: libganglia1-dev +Architecture: any +Section: libdevel +Depends: ${misc:Depends}, libganglia1 (=${binary:Version}), ${shlibs:Depends} +Description: cluster monitoring toolkit - development libraries + Ganglia is a scalable, real-time cluster monitoring environment + that collects cluster statistics in an open and well-defined XML format. + . + This package contains development libraries. + +Package: ganglia-webfrontend +Architecture: all +Depends: ${misc:Depends}, apache | apache-ssl | apache-perl | apache2, php5 | php5-cgi | libapache2-mod-php5, rrdtool, debconf (>= 0.5), libgd2-noxpm | libgd2-xpm +Recommends: gmetad, php5-gd +Description: cluster monitoring toolkit - web front-end + Ganglia is a scalable, real-time cluster monitoring environment + that collects cluster statistics in an open and well-defined XML + format. + . + This package contains the PHP-based web front-end, which displays + information gathered by 'gmetad'. Added: trunk/monitor-core/debian/copyright =================================================================== --- trunk/monitor-core/debian/copyright (rev 0) +++ trunk/monitor-core/debian/copyright 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,15 @@ +This package was debianized by Preston Smith <ps...@fo...> on +Tue, 16 Apr 2002 22:55:55 -0500. + +It was downloaded from http://ganglia.sourceforge.net + +Upstream Author: Matt Massie <ma...@cs...> + +Copyright: + +Copyright (c) 2001 by Matt Massie and The Regents of the University of California +. +All rights reserved. + +On Debian GNU/Linux systems, the text of the BSD License can be found in +/usr/share/common-licenses/BSD. Added: trunk/monitor-core/debian/docs =================================================================== --- trunk/monitor-core/debian/docs (rev 0) +++ trunk/monitor-core/debian/docs 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,2 @@ +NEWS +README Added: trunk/monitor-core/debian/ganglia-monitor.dirs =================================================================== --- trunk/monitor-core/debian/ganglia-monitor.dirs (rev 0) +++ trunk/monitor-core/debian/ganglia-monitor.dirs 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,5 @@ +etc +etc/ganglia +usr/bin +usr/sbin +usr/share/man Added: trunk/monitor-core/debian/ganglia-monitor.docs =================================================================== --- trunk/monitor-core/debian/ganglia-monitor.docs (rev 0) +++ trunk/monitor-core/debian/ganglia-monitor.docs 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1 @@ +NEWS Added: trunk/monitor-core/debian/ganglia-monitor.init =================================================================== --- trunk/monitor-core/debian/ganglia-monitor.init (rev 0) +++ trunk/monitor-core/debian/ganglia-monitor.init 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,45 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: ganglia-monitor +# Required-Start: $network $named $remote_fs $syslog +# Required-Stop: $network $named $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/gmond +NAME=gmond +DESC="Ganglia Monitor Daemon" + +test -x $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet -m --pidfile /var/run/$NAME.pid \ + --exec $DAEMON + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --oknodo --name $NAME \ + 2>&1 > /dev/null + echo "$NAME." + ;; + reload) + ;; + restart|force-reload) + $0 stop + $0 start + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 Added: trunk/monitor-core/debian/ganglia-monitor.install =================================================================== --- trunk/monitor-core/debian/ganglia-monitor.install (rev 0) +++ trunk/monitor-core/debian/ganglia-monitor.install 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,3 @@ +usr/bin/gstat +usr/bin/gmetric +usr/sbin/gmond Added: trunk/monitor-core/debian/ganglia-monitor.manpages =================================================================== --- trunk/monitor-core/debian/ganglia-monitor.manpages (rev 0) +++ trunk/monitor-core/debian/ganglia-monitor.manpages 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,4 @@ +mans/gmetric.1 +mans/gmond.1 +mans/gstat.1 +gmond/gmond.conf.5 Added: trunk/monitor-core/debian/ganglia-monitor.postinst =================================================================== --- trunk/monitor-core/debian/ganglia-monitor.postinst (rev 0) +++ trunk/monitor-core/debian/ganglia-monitor.postinst 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,29 @@ +#!/bin/sh +set -e + +if ! getent group ganglia >/dev/null; then + echo Adding group: ganglia. + addgroup --system ganglia +fi + +if ! getent passwd ganglia >/dev/null; then + echo Adding system user: ganglia. + adduser --system --ingroup ganglia --home /var/lib/ganglia ganglia + usermod -c "Ganglia Monitor" ganglia + usermod -d "/var/lib/ganglia" ganglia + usermod -g "ganglia" ganglia + usermod -s "/bin/false" ganglia +fi + +#if we have an old 2.5.x gmond +if [ -f /etc/gmond.conf ]; then + if [ ! -e /etc/ganglia/gmond.conf ]; then + gmond -r /etc/gmond.conf >/etc/ganglia/gmond.conf + else + gmond -r /etc/gmond.conf >/etc/ganglia/gmond.conf.old + fi + rm /etc/gmond.conf +fi +#DEBHELPER# + +exit 0 Added: trunk/monitor-core/debian/ganglia-monitor.postrm =================================================================== --- trunk/monitor-core/debian/ganglia-monitor.postrm (rev 0) +++ trunk/monitor-core/debian/ganglia-monitor.postrm 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,20 @@ +#!/bin/sh -e + +if [ "$1" = "purge" ] ; then + # rm the rrds if this is the last ganglia package being removed. + if [ ! -f /usr/sbin/gmetad ] ; then + if [ -d /var/lib/ganglia ]; then + # Remove rrd dir + rm -rf /var/lib/ganglia/rrds + fi + # Only remove ganglia user if gmetad isn't installed + if getent passwd ganglia >/dev/null; then + userdel ganglia + fi + if getent group ganglia >/dev/null; then + groupdel ganglia + fi + fi +fi + +#DEBHELPER# Added: trunk/monitor-core/debian/ganglia-webfrontend.config =================================================================== --- trunk/monitor-core/debian/ganglia-webfrontend.config (rev 0) +++ trunk/monitor-core/debian/ganglia-webfrontend.config 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,18 @@ +#!/bin/bash + +set -e + +action=$1 +version=$2 + +# Source debconf library. +. /usr/share/debconf/confmodule +db_version 2.0 || [ 0 -lt 30 ] + + db_input medium ganglia-webfrontend/webserver || true + db_go + db_reset ganglia-webfrontend/restart || true + db_subst ganglia-webfrontend/restart webserver "$webserver" + db_input high ganglia-webfrontend/restart || true + db_go + Added: trunk/monitor-core/debian/ganglia-webfrontend.dirs =================================================================== --- trunk/monitor-core/debian/ganglia-webfrontend.dirs (rev 0) +++ trunk/monitor-core/debian/ganglia-webfrontend.dirs 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,2 @@ +etc/ganglia-webfrontend +usr/share/ganglia-webfrontend Added: trunk/monitor-core/debian/ganglia-webfrontend.postinst =================================================================== --- trunk/monitor-core/debian/ganglia-webfrontend.postinst (rev 0) +++ trunk/monitor-core/debian/ganglia-webfrontend.postinst 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,39 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule +db_version 2.0 || [ $? -lt 30 ] + +if [ "$1" = "configure" ]; then + + db_get ganglia-webfrontend/webserver + autoconfigure="$RET" + webserver="apache2" + + if [ "$autoconfigure" = true ]; then + test -x /usr/sbin/$webserver || continue + + # Auto-configure module dependencies + a2enmod php5 || true + a2enmod cgi || true + + if [ ! -f /etc/$webserver/conf.d/ganglia-webfrontend -a ! -h /etc/$webserver/conf.d/ganglia-webfrontend ]; then + ln -s /etc/ganglia-webfrontend/apache.conf /etc/$webserver/conf.d/ganglia-webfrontend + fi + + # Restart apache2 if requested + db_get ganglia-webfrontend/restart + if [ "$RET" = "true" ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d $webserver restart + else + /etc/init.d/$webserver restart + fi + fi + + fi + +fi + +#DEBHELPER# Added: trunk/monitor-core/debian/ganglia-webfrontend.postrm =================================================================== --- trunk/monitor-core/debian/ganglia-webfrontend.postrm (rev 0) +++ trunk/monitor-core/debian/ganglia-webfrontend.postrm 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,42 @@ +#! /bin/sh + +set -e + +. /usr/share/debconf/confmodule +db_version 2.0 || [ $? -lt 30 ] + +if [ "$1" = "purge" ]; then + + db_get ganglia-webfrontend/webserver || true + + if [ "$RET" = "true" ]; then + webserver="apache2" + + if [ -h /etc/$webserver/conf.d/ganglia-webfrontend ]; then + rm -f /etc/$webserver/conf.d/ganglia-webfrontend + fi + + if [ -x /usr/sbin/$webserver ]; then + db_reset ganglia-webfrontend/restart + db_input high ganglia-webfrontend/restart || true + db_go + + # Restart apache2 if requested + db_get ganglia-webfrontend/restart + if [ "$RET" = "true" ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d $webserver restart + else + /etc/init.d/$webserver restart + fi + fi + fi + fi + + rmdir --ignore-fail-on-non-empty /etc/ganglia-webfrontend || true + + db_purge + +fi + +#DEBHELPER# Added: trunk/monitor-core/debian/ganglia-webfrontend.templates =================================================================== --- trunk/monitor-core/debian/ganglia-webfrontend.templates (rev 0) +++ trunk/monitor-core/debian/ganglia-webfrontend.templates 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,23 @@ +# These templates have been reviewed by the debian-l10n-english +# team +# +# If modifications/additions/rewording are needed, please ask +# deb...@li... for advice. +# +# Even minor modifications require translation updates and such +# changes should be coordinated with translators and reviewers. + +Template: ganglia-webfrontend/webserver +Type: boolean +Default: false +_Description: Automatically configure apache2? + The ganglia front-end will be unavailable until a web server is configured. + Automatic configuration can be performed for the Apache 2 web server. + +Template: ganglia-webfrontend/restart +Type: boolean +Default: false +_Description: Restart apache2? + In order to activate the new configuration, the web server needs + to be restarted. If you choose not to do this automatically, you should + do so manually at the first opportunity. Added: trunk/monitor-core/debian/gmetad.conf =================================================================== --- trunk/monitor-core/debian/gmetad.conf (rev 0) +++ trunk/monitor-core/debian/gmetad.conf 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,43 @@ +# This is an example of a Ganglia Meta Daemon configuration file +# http://ganglia.sourceforge.net/ +# +# $Id$ +# +# Setting the debug_level above zero will make gmetad output +# debugging information and stay in the foreground +# default: 0 +# debug_level 10 +# +# The data_source tag must immediately be followed by a unique +# string which identifies the source then a list of machines +# which service the data source in the format ip:port, or name:port. +# If a # port is not specified then 8649 (the default gmond port) is +# assumed. +# default: There is no default value +data_source "this host" localhost +# data_source "my box" localhost my.machine.edu:8655 1.2.3.5:8655 +# data_source "another source" 1.3.4.7:8655 1.3.4.8 +# +# List of machines this gmetad will share XML with +# default: There is no default value +trusted_hosts 127.0.0.1 +# +# If you don't want gmetad to setuid then set this to off +# default: on +# setuid off +# +# User gmetad will setuid to (defaults to "nobody") +# default: "nobody" +setuid_username "ganglia" +# +# The port gmetad will answer requests for XML +# default: 8651 +# xml_port 8651 +# +# The number of threads answering XML requests +# default: 2 +# server_threads 4 +# +# Where gmetad stores its round-robin databases +# default: "/var/lib/ganglia/rrds" +# rrd_rootdir "/some/other/place" Property changes on: trunk/monitor-core/debian/gmetad.conf ___________________________________________________________________ Added: svn:keywords + Id Author Revision Date Added: svn:eol-style + native Added: trunk/monitor-core/debian/gmetad.dirs =================================================================== --- trunk/monitor-core/debian/gmetad.dirs (rev 0) +++ trunk/monitor-core/debian/gmetad.dirs 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,6 @@ +etc +etc/ganglia +usr/sbin +usr/share/man +var/lib/ganglia +var/lib/ganglia/rrds Added: trunk/monitor-core/debian/gmetad.init =================================================================== --- trunk/monitor-core/debian/gmetad.init (rev 0) +++ trunk/monitor-core/debian/gmetad.init 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,45 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: gmetad +# Required-Start: $network $named $remote_fs $syslog +# Required-Stop: $network $named $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/gmetad +NAME=gmetad +DESC="Ganglia Monitor Meta-Daemon" + +test -x $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --oknodo \ + --exec $DAEMON 2>&1 > /dev/null + echo "$NAME." + ;; + reload) + ;; + restart|force-reload) + $0 stop + $0 start + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 Added: trunk/monitor-core/debian/gmetad.install =================================================================== --- trunk/monitor-core/debian/gmetad.install (rev 0) +++ trunk/monitor-core/debian/gmetad.install 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1 @@ +usr/sbin/gmetad Added: trunk/monitor-core/debian/gmetad.manpages =================================================================== --- trunk/monitor-core/debian/gmetad.manpages (rev 0) +++ trunk/monitor-core/debian/gmetad.manpages 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1 @@ +mans/gmetad.1 Added: trunk/monitor-core/debian/gmetad.postinst =================================================================== --- trunk/monitor-core/debian/gmetad.postinst (rev 0) +++ trunk/monitor-core/debian/gmetad.postinst 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,30 @@ +#!/bin/sh +set -e + +if ! getent group ganglia >/dev/null; then + echo Adding group: ganglia. + addgroup --system ganglia +fi + +if ! getent passwd ganglia >/dev/null; then + echo Adding system user: ganglia. + adduser --system ganglia --ingroup ganglia --home /var/lib/ganglia + usermod -c "Ganglia Monitor" ganglia + usermod -d "/var/lib/ganglia" ganglia + usermod -g "ganglia" ganglia + usermod -s "/bin/false" ganglia +fi + +if [ ! -d /var/lib/ganglia/rrds ]; then + mkdir -p /var/lib/ganglia/rrds +fi +if [ -d /var/lib/ganglia/rrds ]; then + chown -R ganglia:ganglia /var/lib/ganglia + chown -R nobody /var/lib/ganglia/rrds + chmod 0755 /var/lib/ganglia + chmod -R o-w /var/lib/ganglia/rrds +fi + +#DEBHELPER# + +exit 0 Added: trunk/monitor-core/debian/gmetad.postrm =================================================================== --- trunk/monitor-core/debian/gmetad.postrm (rev 0) +++ trunk/monitor-core/debian/gmetad.postrm 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,20 @@ +#!/bin/sh -e + +if [ "$1" = "purge" ] ; then + # rm the rrds if this is the last ganglia package being removed. + if [ ! -f /usr/sbin/gmond ] ; then + if [ -d /var/lib/ganglia ]; then + # Remove rrd dir + rm -rf /var/lib/ganglia/rrds + fi + # remove ganglia user only if gmond isn't installed + if getent passwd ganglia >/dev/null; then + userdel ganglia + fi + if getent group ganglia >/dev/null; then + groupdel ganglia + fi + fi +fi + +#DEBHELPER# Added: trunk/monitor-core/debian/gmond.conf =================================================================== --- trunk/monitor-core/debian/gmond.conf (rev 0) +++ trunk/monitor-core/debian/gmond.conf 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,337 @@ +/* This configuration is as close to 2.5.x default behavior as possible + The values closely match ./gmond/metric.h definitions in 2.5.x */ +globals { + daemonize = yes + setuid = yes + user = ganglia + debug_level = 0 + max_udp_msg_len = 1472 + mute = no + deaf = no + host_dmax = 0 /*secs */ + cleanup_threshold = 300 /*secs */ + gexec = no + send_metadata_interval = 0 +} + +/* If a cluster attribute is specified, then all gmond hosts are wrapped inside + * of a <CLUSTER> tag. If you do not specify a cluster tag, then all <HOSTS> will + * NOT be wrapped inside of a <CLUSTER> tag. */ +cluster { + name = "unspecified" + owner = "unspecified" + latlong = "unspecified" + url = "unspecified" +} + +/* The host section describes attributes of the host, like the location */ +host { + location = "unspecified" +} + +/* Feel free to specify as many udp_send_channels as you like. Gmond + used to only support having a single channel */ +udp_send_channel { + mcast_join = 239.2.11.71 + port = 8649 + ttl = 1 +} + +/* You can specify as many udp_recv_channels as you like as well. */ +udp_recv_channel { + mcast_join = 239.2.11.71 + port = 8649 + bind = 239.2.11.71 +} + +/* You can specify as many tcp_accept_channels as you like to share + an xml description of the state of the cluster */ +tcp_accept_channel { + port = 8649 +} + +/* Each metrics module that is referenced by gmond must be specified and + loaded. If the module has been statically linked with gmond, it does not + require a load path. However all dynamically loadable modules must include + a load path. */ +modules { + module { + name = "core_metrics" + } + module { + name = "cpu_module" + path = "/usr/lib/ganglia/modcpu.so" + } + module { + name = "disk_module" + path = "/usr/lib/ganglia/moddisk.so" + } + module { + name = "load_module" + path = "/usr/lib/ganglia/modload.so" + } + module { + name = "mem_module" + path = "/usr/lib/ganglia/modmem.so" + } + module { + name = "net_module" + path = "/usr/lib/ganglia/modnet.so" + } + module { + name = "proc_module" + path = "/usr/lib/ganglia/modproc.so" + } + module { + name = "sys_module" + path = "/usr/lib/ganglia/modsys.so" + } +} + +include ('/etc/ganglia/conf.d/*.conf') + + +/* The old internal 2.5.x metric array has been replaced by the following + collection_group directives. What follows is the default behavior for + collecting and sending metrics that is as close to 2.5.x behavior as + possible. */ + +/* This collection group will cause a heartbeat (or beacon) to be sent every + 20 seconds. In the heartbeat is the GMOND_STARTED data which expresses + the age of the running gmond. */ +collection_group { + collect_once = yes + time_threshold = 20 + metric { + name = "heartbeat" + } +} + +/* This collection group will send general info about this host every 1200 secs. + This information doesn't change between reboots and is only collected once. */ +collection_group { + collect_once = yes + time_threshold = 1200 + metric { + name = "cpu_num" + title = "CPU Count" + } + metric { + name = "cpu_speed" + title = "CPU Speed" + } + metric { + name = "mem_total" + title = "Memory Total" + } + /* Should this be here? Swap can be added/removed between reboots. */ + metric { + name = "swap_total" + title = "Swap Space Total" + } + metric { + name = "boottime" + title = "Last Boot Time" + } + metric { + name = "machine_type" + title = "Machine Type" + } + metric { + name = "os_name" + title = "Operating System" + } + metric { + name = "os_release" + title = "Operating System Release" + } + metric { + name = "location" + title = "Location" + } +} + +/* This collection group will send the status of gexecd for this host every 300 secs */ +/* Unlike 2.5.x the default behavior is to report gexecd OFF. */ +collection_group { + collect_once = yes + time_threshold = 300 + metric { + name = "gexec" + title = "Gexec Status" + } +} + +/* This collection group will collect the CPU status info every 20 secs. + The time threshold is set to 90 seconds. In honesty, this time_threshold could be + set significantly higher to reduce unneccessary network chatter. */ +collection_group { + collect_every = 20 + time_threshold = 90 + /* CPU status */ + metric { + name = "cpu_user" + value_threshold = "1.0" + title = "CPU User" + } + metric { + name = "cpu_system" + value_threshold = "1.0" + title = "CPU System" + } + metric { + name = "cpu_idle" + value_threshold = "5.0" + title = "CPU Idle" + } + metric { + name = "cpu_nice" + value_threshold = "1.0" + title = "CPU Nice" + } + metric { + name = "cpu_aidle" + value_threshold = "5.0" + title = "CPU aidle" + } + metric { + name = "cpu_wio" + value_threshold = "1.0" + title = "CPU wio" + } + /* The next two metrics are optional if you want more detail... + ... since they are accounted for in cpu_system. + metric { + name = "cpu_intr" + value_threshold = "1.0" + title = "CPU intr" + } + metric { + name = "cpu_sintr" + value_threshold = "1.0" + title = "CPU sintr" + } + */ +} + +collection_group { + collect_every = 20 + time_threshold = 90 + /* Load Averages */ + metric { + name = "load_one" + value_threshold = "1.0" + title = "One Minute Load Average" + } + metric { + name = "load_five" + value_threshold = "1.0" + title = "Five Minute Load Average" + } + metric { + name = "load_fifteen" + value_threshold = "1.0" + title = "Fifteen Minute Load Average" + } +} + +/* This group collects the number of running and total processes */ +collection_group { + collect_every = 80 + time_threshold = 950 + metric { + name = "proc_run" + value_threshold = "1.0" + title = "Total Running Processes" + } + metric { + name = "proc_total" + value_threshold = "1.0" + title = "Total Processes" + } +} + +/* This collection group grabs the volatile memory metrics every 40 secs and + sends them at least every 180 secs. This time_threshold can be increased + significantly to reduce unneeded network traffic. */ +collection_group { + collect_every = 40 + time_threshold = 180 + metric { + name = "mem_free" + value_threshold = "1024.0" + title = "Free Memory" + } + metric { + name = "mem_shared" + value_threshold = "1024.0" + title = "Shared Memory" + } + metric { + name = "mem_buffers" + value_threshold = "1024.0" + title = "Memory Buffers" + } + metric { + name = "mem_cached" + value_threshold = "1024.0" + title = "Cached Memory" + } + metric { + name = "swap_free" + value_threshold = "1024.0" + title = "Free Swap Space" + } +} + +collection_group { + collect_every = 40 + time_threshold = 300 + metric { + name = "bytes_out" + value_threshold = 4096 + title = "Bytes Sent" + } + metric { + name = "bytes_in" + value_threshold = 4096 + title = "Bytes Received" + } + metric { + name = "pkts_in" + value_threshold = 256 + title = "Packets Received" + } + metric { + name = "pkts_out" + value_threshold = 256 + title = "Packets Sent" + } +} + +/* Different than 2.5.x default since the old config made no sense */ +collection_group { + collect_every = 1800 + time_threshold = 3600 + metric { + name = "disk_total" + value_threshold = 1.0 + title = "Total Disk Space" + } +} + +collection_group { + collect_every = 40 + time_threshold = 180 + metric { + name = "disk_free" + value_threshold = 1.0 + title = "Disk Space Available" + } + metric { + name = "part_max_used" + value_threshold = 1.0 + title = "Maximum Disk Space Used" + } +} + Property changes on: trunk/monitor-core/debian/gmond.conf ___________________________________________________________________ Added: svn:keywords + Id Author Revision Date Added: svn:eol-style + native Added: trunk/monitor-core/debian/libganglia1-dev.dirs =================================================================== --- trunk/monitor-core/debian/libganglia1-dev.dirs (rev 0) +++ trunk/monitor-core/debian/libganglia1-dev.dirs 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,2 @@ +usr/lib +usr/include Added: trunk/monitor-core/debian/libganglia1-dev.install =================================================================== --- trunk/monitor-core/debian/libganglia1-dev.install (rev 0) +++ trunk/monitor-core/debian/libganglia1-dev.install 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,2 @@ +usr/lib/libganglia.*a +usr/include Added: trunk/monitor-core/debian/libganglia1-dev.manpages =================================================================== --- trunk/monitor-core/debian/libganglia1-dev.manpages (rev 0) +++ trunk/monitor-core/debian/libganglia1-dev.manpages 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1 @@ +docs/libganglia/man/man3/*.3 Added: trunk/monitor-core/debian/libganglia1.dirs =================================================================== --- trunk/monitor-core/debian/libganglia1.dirs (rev 0) +++ trunk/monitor-core/debian/libganglia1.dirs 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1 @@ +usr/lib Added: trunk/monitor-core/debian/libganglia1.install =================================================================== --- trunk/monitor-core/debian/libganglia1.install (rev 0) +++ trunk/monitor-core/debian/libganglia1.install 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,2 @@ +usr/lib*/libganglia*.so* +usr/lib*/ganglia Added: trunk/monitor-core/debian/patches/debian-changes-3.1.7-2 =================================================================== --- trunk/monitor-core/debian/patches/debian-changes-3.1.7-2 (rev 0) +++ trunk/monitor-core/debian/patches/debian-changes-3.1.7-2 2011-07-05 16:49:53 UTC (rev 2623) @@ -0,0 +1,3829 @@ +Description: Upstream changes introduced in version 3.1.7-2 + This patch has been created by dpkg-source during the package build. + Here's the last changelog entry, hopefully it gives details on why + those changes were made: + . + ganglia (3.1.7-2) unstable; urgency=low + . + * Stop ganglia-monitor from changing permissions on /var/lib/ganglia + in postinst. Closes: #586909 + * Switch from adduser to useradd in postinst and prerm. Closes: #620505 + * Include Danish debconf template. Closes: #605328 + * Remove la files from dependency_libs. Closes: #621232 #620721 + * Switch to dpkg-source 3.0 (quilt) format + . + The person named in the Author field signed this changelog entry. +Author: Stuart Teasdale <sd...@de...> +Bug-Debian: http://bugs.debian.org/586909 +Bug-Debian: http://bugs.debian.org/605328 +Bug-Debian: http://bugs.debian.org/620505 +Bug-Debian: http://bugs.debian.org/621232 + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: <vendor|upstream|other>, <url of original patch> +Bug: <url in upstream bugtracker> +Bug-Debian: http://bugs.debian.org/<bugnumber> +Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> +Forwarded: <no|not-needed|url proving that it has been forwarded> +Reviewed-By: <name and email of someone who approved the patch> +Last-Update: <YYYY-MM-DD> + +--- /dev/null ++++ ganglia-3.1.7/config.guess +@@ -0,0 +1,1502 @@ ++#! /bin/sh ++# Attempt to guess a canonical system name. ++# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, ++# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 ++# Free Software Foundation, Inc. ++ ++timestamp='2009-12-30' ++ ++# This file 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 program 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 program; if not, write to the Free Software ++# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA ++# 02110-1301, USA. ++# ++# As a special exception to the GNU General Public License, if you ++# distribute this file as part of a program that contains a ++# configuration script generated by Autoconf, you may include it under ++# the same distribution terms that you use for the rest of that program. ++ ++ ++# Originally written by Per Bothner. Please send patches (context ++# diff format) to <con...@gn...> and include a ChangeLog ++# entry. ++# ++# This script attempts to guess a canonical system name similar to ++# config.sub. If it succeeds, it prints the system name on stdout, and ++# exits with 0. Otherwise, it exits with 1. ++# ++# You can get the latest version of this script from: ++# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD ++ ++me=`echo "$0" | sed -e 's,.*/,,'` ++ ++usage="\ ++Usage: $0 [OPTION] ++ ++Output the configuration name of the system \`$me' is run on. ++ ++Operation modes: ++ -h, --help print this help, then exit ++ -t, --time-stamp print date of last modification, then exit ++ -v, --version print version number, then exit ++ ++Report bugs and patches to <con...@gn...>." ++ ++version="\ ++GNU config.guess ($timestamp) ++ ++Originally written by Per Bothner. ++Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, ++2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free ++Software Foundation, Inc. ++ ++This is free software; see the source for copying conditions. There is NO ++warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." ++ ++help=" ++Try \`$me --help' for more information." ++ ++# Parse command line ++while test $# -gt 0 ; do ++ case $1 in ++ --time-stamp | --time* | -t ) ++ echo "$timestamp" ; exit ;; ++ --version | -v ) ++ echo "$version" ; exit ;; ++ --help | --h* | -h ) ++ echo "$usage"; exit ;; ++ -- ) # Stop option processing ++ shift; break ;; ++ - ) # Use stdin as input. ++ break ;; ++ -* ) ++ echo "$me: invalid option $1$help" >&2 ++ exit 1 ;; ++ * ) ++ break ;; ++ esac ++done ++ ++if test $# != 0; then ++ echo "$me: too many arguments$help" >&2 ++ exit 1 ++fi ++ ++trap 'exit 1' 1 2 15 ++ ++# CC_FOR_BUILD -- compiler used by this script. Note that the use of a ++# compiler to aid in system detection is discouraged as it requires ++# temporary files to be created and, as you can see below, it is a ++# headache to deal with in a portable fashion. ++ ++# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still ++# use `HOST_CC' if defined, but it is deprecated. ++ ++# Portable tmp directory creation inspired by the Autoconf team. ++ ++set_cc_for_build=' ++trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; ++trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; ++: ${TMPDIR=/tmp} ; ++ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || ++ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || ++ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || ++ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; ++dummy=$tmp/dummy ; ++tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; ++case $CC_FOR_BUILD,$HOST_CC,$CC in ++ ,,) echo "int x;" > $dummy.c ; ++ for c in cc gcc c89 c99 ; do ++ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then ++ CC_FOR_BUILD="$c"; break ; ++ fi ; ++ done ; ++ if test x"$CC_FOR_BUILD" = x ; then ++ CC_FOR_BUILD=no_compiler_found ; ++ fi ++ ;; ++ ,,*) CC_FOR_BUILD=$CC ;; ++ ,*,*) CC_FOR_BUILD=$HOST_CC ;; ++esac ; set_cc_for_build= ;' ++ ++# This is needed to find uname on a Pyramid OSx when run in the BSD universe. ++# (gh...@no... 1994-08-24) ++if (test -f /.attbin/uname) >/dev/null 2>&1 ; then ++ PATH=$PATH:/.attbin ; export PATH ++fi ++ ++UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown ++UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown ++UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown ++UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown ++ ++# Note: order is significant - the case branches are not exclusive. ++ ++case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in ++ *:NetBSD:*:*) ++ # NetBSD (nbsd) targets should (where applicable) match one or ++ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, ++ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently ++ # switched to ELF, *-*-netbsd* would select the old ++ # object file format. This provides both forward ++ # compatibility and a consistent mechanism for selecting the ++ # object file format. ++ # ++ # Note: NetBSD doesn't particularly care about the vendor ++ # portion of the name. We always set it to "unknown". ++ sysctl="sysctl -n hw.machine_arch" ++ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ ++ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` ++ case "${UNAME_MACHINE_ARCH}" in ++ armeb) machine=armeb-unknown ;; ++ arm*) machine=arm-unknown ;; ++ sh3el) machine=shl-unknown ;; ++ sh3eb) machine=sh-unknown ;; ++ sh5el) machine=sh5le-unknown ;; ++ *) machine=${UNAME_MACHINE_ARCH}-unknown ;; ++ esac ++ # The Operating System including object format, if it has switched ++ # to ELF recently, or will in the future. ++ case "${UNAME_MACHINE_ARCH}" in ++ arm*|i386|m68k|ns32k|sh3*|sparc|vax) ++ eval $set_cc_for_build ++ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ ++ | grep -q __ELF__ ++ then ++ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). ++ # Return netbsd for either. FIX? ++ os=netbsd ++ else ++ os=netbsdelf ++ fi ++ ;; ++ *) ++ os=netbsd ++ ;; ++ esac ++ # The OS release ++ # Debian GNU/NetBSD machines have a different userland, and ++ # thus, need a distinct triplet. However, they do not need ++ # kernel version information, so it can be replaced with a ++ # suitable tag, in the style of linux-gnu. ++ case "${UNAME_VERSION}" in ++ Debian*) ++ release='-gnu' ++ ;; ++ *) ++ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ++ ;; ++ esac ++ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: ++ # contains redundant information, the shorter form: ++ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. ++ echo "${machine}-${os}${release}" ++ exit ;; ++ *:OpenBSD:*:*) ++ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` ++ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} ++ exit ;; ++ *:ekkoBSD:*:*) ++ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} ++ exit ;; ++ *:SolidBSD:*:*) ++ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} ++ exit ;; ++ macppc:MirBSD:*:*) ++ echo powerpc-unknown-mirbsd${UNAME_RELEASE} ++ exit ;; ++ *:MirBSD:*:*) ++ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} ++ exit ;; ++ alpha:OSF1:*:*) ++ case $UNAME_RELEASE in ++ *4.0) ++ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ++ ;; ++ *5.*) ++ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ++ ;; ++ esac ++ # According to Compaq, /usr/sbin/psrinfo has been available on ++ # OSF/1 and Tru64 systems produced since 1995. I hope that ++ # covers most systems running today. This code pipes the CPU ++ # types through head -n 1, so we only detect the type of CPU 0. ++ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` ++ case "$ALPHA_CPU_TYPE" in ++ "EV4 (21064)") ++ UNAME_MACHINE="alpha" ;; ++ "EV4.5 (21064)") ++ UNAME_MACHINE="alpha" ;; ++ "LCA4 (21066/21068)") ++ UNAME_MACHINE="alpha" ;; ++ "EV5 (21164)") ++ UNAME_MACHINE="alphaev5" ;; ++ "EV5.6 (21164A)") ++ UNAME_MACHINE="alphaev56" ;; ++ "EV5.6 (21164PC)") ++ UNAME_MACHINE="alphapca56" ;; ++ "EV5.7 (21164PC)") ++ UNAME_MACHINE="alphapca57" ;; ++ "EV6 (21264)") ++ UNAME_MACHINE="alphaev6" ;; ++ "EV6.7 (21264A)") ++ UNAME_MACHINE="alphaev67" ;; ++ "EV6.8CB (21264C)") ++ UNAME_MACHINE="alphaev68" ;; ++ "EV6.8AL (21264B)") ++ UNAME_MACHINE="alphaev68" ;; ++ "EV6.8CX (21264D)") ++ UNAME_MACHINE="alphaev68" ;; ++ "EV6.9A (21264/EV69A)") ++ UNAME_MACHINE="alphaev69" ;; ++ "EV7 (21364)") ++ UNAME_MACHINE="alphaev7" ;; ++ "EV7.9 (21364A)") ++ UNAME_MACHINE="alphaev79" ;; ++ esac ++ # A Pn.n version is a patched version. ++ # A Vn.n version is a released version. ++ # A Tn.n version is a released field test version. ++ # A Xn.n version is an unreleased experimental baselevel. ++ # 1.2 uses "1.2" for uname -r. ++ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` ++ exit ;; ++ Alpha\ *:Windows_NT*:*) ++ # How do we know it's Interix rather than the generic POSIX subsystem? ++ # Should we change UNAME_MACHINE based on the output of uname instead ++ # of the specific Alpha model? ++ echo alpha-pc-interix ++ exit ;; ++ 21064:Windows_NT:50:3) ++ echo alpha-dec-winnt3.5 ++ exit ;; ++ Amiga*:UNIX_System_V:4.0:*) ++ echo m68k-unknown-sysv4 ++ exit ;; ++ *:[Aa]miga[Oo][Ss]:*:*) ++ echo ${UNAME_MACHINE}-unknown-amigaos ++ exit ;; ++ *:[Mm]orph[Oo][Ss]:*:*) ++ echo ${UNAME_MACHINE}-unknown-morphos ++ exit ;; ++ *:OS/390:*:*) ++ echo i370-ibm-openedition ++ exit ;; ++ *:z/VM:*:*) ++ echo s390-ibm-zvmoe ++ exit ;; ++ *:OS400:*:*) ++ echo powerpc-ibm-os400 ++ exit ;; ++ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) ++ echo arm-acorn-riscix${UNAME_RELEASE} ++ exit ;; ++ arm:riscos:*:*|arm:RISCOS:*:*) ++ echo arm-unknown-riscos ++ exit ;; ++ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) ++ echo hppa1.1-hitachi-hiuxmpp ++ exit ;; ++ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) ++ # ak...@wp... (Earle F. Ake) contributed MIS and NILE. ++ if test "`(/bin/universe) 2>/dev/null`" = att ; then ++ echo pyramid-pyramid-sysv3 ++ else ++ echo pyramid-pyramid-bsd ++ fi ++ exit ;; ++ NILE*:*:*:dcosx) ++ echo pyramid-pyramid-svr4 ++ exit ;; ++ DRS?6000:unix:4.0:6*) ++ echo sparc-icl-nx6 ++ exit ;; ++ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) ++ case `/usr/bin/uname -p` in ++ sparc) echo sparc-icl-nx7; exit ;; ++ esac ;; ++ s390x:SunOS:*:*) ++ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` ++ exit ;; ++ sun4H:SunOS:5.*:*) ++ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` ++ exit ;; ++ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) ++ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` ++ exit ;; ++ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) ++ echo i386-pc-auroraux${UNAME_RELEASE} ++ exit ;; ++ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) ++ eval $set_cc_for_build ++ SUN_ARCH="i386" ++ # If there is a compiler, see if it is configured for 64-bit objects. ++ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. ++ # This test works for both compilers. ++ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then ++ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ ++ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ ++ grep IS_64BIT_ARCH >/dev/null ++ then ++ SUN_ARCH="x86_64" ++ fi ++ fi ++ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` ++ exit ;; ++ sun4*:SunOS:6*:*) ++ # According to config.sub, this is the proper way to canonicalize ++ # SunOS6. Hard to guess exactly what SunOS6 will be like, but ++ # it's likely to be more like Solaris than SunOS4. ++ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` ++ exit ;; ++ sun4*:SunOS:*:*) ++ case "`/usr/bin/arch -k`" in ++ Series*|S4*) ++ UNAME_RELEASE=`uname... [truncated message content] |