--- xmbmon-2.05.orig/debian/compat
+++ xmbmon-2.05/debian/compat
@@ -0,0 +1 @@
+4
--- xmbmon-2.05.orig/debian/xmbmon.dirs
+++ xmbmon-2.05/debian/xmbmon.dirs
@@ -0,0 +1 @@
+usr/bin
--- xmbmon-2.05.orig/debian/xmbmon.install
+++ xmbmon-2.05/debian/xmbmon.install
@@ -0,0 +1 @@
+usr/bin/xmbmon
--- xmbmon-2.05.orig/debian/copyright
+++ xmbmon-2.05/debian/copyright
@@ -0,0 +1,31 @@
+This package was debianized by Alberto Gonzalez Iniesta <agi@agi.as> on
+Mon, 15 Dec 2003 08:58:15 +0100
+
+It was downloaded from http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html
+
+Upstream Author: Yoshifumi R. Shimizu <yrsh2scp@mbox.nc.kyushu-u.ac.jp>
+
+Copyright: Copyright (c) 1999-2004  Yoshifumi R. Shimizu. 
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions, and the following disclaimer,
+   without modification, immediately at the beginning of the file.
+2. The name of the author may not be used to endorse or promote products
+   derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
+
--- xmbmon-2.05.orig/debian/mbmon.manpages
+++ xmbmon-2.05/debian/mbmon.manpages
@@ -0,0 +1,4 @@
+mbmon.1
+mbmon-rrd.1
+debian/mbmon.fr.1
+debian/mbmon-rrd.fr.1
--- xmbmon-2.05.orig/debian/mbmon.dirs
+++ xmbmon-2.05/debian/mbmon.dirs
@@ -0,0 +1 @@
+usr/bin
--- xmbmon-2.05.orig/debian/xmbmon.manpages
+++ xmbmon-2.05/debian/xmbmon.manpages
@@ -0,0 +1,2 @@
+xmbmon.1x
+debian/xmbmon.fr.1x
--- xmbmon-2.05.orig/debian/mbmon.docs
+++ xmbmon-2.05/debian/mbmon.docs
@@ -0,0 +1,3 @@
+ReadMe
+ReadMe.jp
+ReadMe.tech
--- xmbmon-2.05.orig/debian/xmbmon.docs
+++ xmbmon-2.05/debian/xmbmon.docs
@@ -0,0 +1,3 @@
+ReadMe
+ReadMe.jp
+ReadMe.tech
--- xmbmon-2.05.orig/debian/xmbmon.menu
+++ xmbmon-2.05/debian/xmbmon.menu
@@ -0,0 +1,2 @@
+?package(xmbmon):needs=X11 section=Apps/System\
+  title="xmbmon" command="/usr/bin/xmbmon"
--- xmbmon-2.05.orig/debian/mbmon.fr.1
+++ xmbmon-2.05/debian/mbmon.fr.1
@@ -0,0 +1,120 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH MBMON 1 "novembre 10, 2003"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NOM
+mbmon \- MotherBoard Monitor
+.SH SYNOPSIS
+.B mbmon
+.RI [ options ]
+<secondes d'attente> (par defaut 5 sec)
+.PP
+Cette page de manuel décrit rapidement la commande \fBmbmon\fP.
+
+Elle a été écrite pour la distribution Debian parce que le programme
+original n'en possédait pas.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+Les carte-mères récentes possèdent des fonctions pour surveiller les
+températures des processeurs, la vitesse de rotation des ventitaleurs etc ...
+Bien que des programmes utilisant ces capteurs matériels aient été
+développés pour plateformes Microsoft Windows, il semble qu'aucun n'existe
+sur les plateformes PC-UNIX et X Window System.
+.PP
+\fBmbmon\fR utilisé à la ligne de commande affiche les températures, voltages et
+tours par minutes des processuers et ventilateurs. Il peut également être utilisé 
+.B à distante
+via telnet, grâce à l'option "-P".
+
+.SH OPTIONS
+.TP
+.B \-c compte
+répéter <compte> fois puis sortir.
+.TP
+.B \-d
+mode de débogage (toutes les autres options excepté (V|S|I) seront ignorées).
+.TP
+.B \-e [0-2]
+configure la température [0-2] pour afficher la température supplémentaire (nécéssite -A)
+.TP
+.B \-f
+affiche la température en Fahrenheit.
+.TP
+.B \-h
+affiche un résumé des options disponibles.
+.TP
+.B \-i
+affiche les données sous forme d'entiers (avec l'option -T).
+.TP
+.B \-n, \-N
+affiche le nom d'hôte (long|court).
+.TP
+.B \-P port
+fonctionne en mode démon, écoutant les clients sur le port donné.
+.TP
+.B \-p chip
+pour la détection des chips (chip=winbond|wl784|via686|it87|gl52|lm85|lm80|lm90|lm75)
+.TP
+.B \-r
+affiche au format TAG et Valeur.
+.TP
+.B \-T|F [1-7]
+affiche la température|vitesse de rotation selon les styles suivants:
+.br
+        style1: data1\n
+.br
+        style2: data2\n
+.br
+        style3: data3\n
+.br
+        style4: data1\ndata2\n
+.br
+        style5: data1\ndata3\n
+.br
+        style6: data2\ndata3\n
+.br
+        style7: data1\ndata2\ndata3\n
+.br
+.TP
+.B \-t
+affiche la date courante.
+.TP
+.B \-u
+affiche l'uptime.
+.TP
+.B \-V, \-S, \-I, \-A
+spécifie la méthode d'accès (utilisant "VIA686 HWM directement"|"SMBus"|"port d'E/S ISA"|"toutes ces méthodes").
+.TP
+.B \-Y
+pour les cartes-mères Tyan Tiger MP/MPX.
+
+
+.SH EXeMPLES
+mbmon -P 11000; telnet localhost 11000; sudo killall mbmon
+.br
+mbmon -c1
+.br
+mbmon 1 (temps réel ;) )
+
+.SH VOIR AUSSI
+/usr/share/doc/mbmon/*
+
+.SH AUTEUR
+Cette page a été ecrité par Nicolas Rueff <n.rueff@tuxfamily.org>,
+pour le projet Debian (mais peut être utilisée par d'autres).
+
--- xmbmon-2.05.orig/debian/mbmon-rrd.fr.1
+++ xmbmon-2.05/debian/mbmon-rrd.fr.1
@@ -0,0 +1,158 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH MBMON-RRD 1 "novembre 10, 2003"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NOM
+mbmon-rrd \- MotherBoard Monitor
+.SH SYNOPSIS
+.B mbmon-rrd
+.RI /path/to/database.rrd
+.PP
+Cette page de manuel décrit rapidement la commande \fBmbmon-rrd\fP.
+
+Elle a été écrite pour la distribution Debian parce que le programme
+original n'en possédait pas.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+Les carte-mères récentes possèdent des fonctions pour surveiller les
+températures des processeurs, la vitesse de rotation des ventitaleurs etc ...
+Bien que des programmes utilisant ces capteurs matériels aient été
+développés pour plateformes Microsoft Windows, il semble qu'aucun n'existe
+sur les plateformes PC-UNIX et X Window System.
+.PP
+\fBmbmon-rrd\fR est un simple script perl utilisant les rrdtools pour y injecter
+les résultats de \fBmbmon\fP. Si la base de données rrd n'existe pas, il la crée.
+
+.SH VOIR AUSSI
+.B mbmon(1),
+.B rrdtool(1).
+
+.SH AUTEUR
+Cette page a été ecrité par Nicolas Rueff <n.rueff@tuxfamily.org>,
+pour le projet Debian (mais peut être utilisée par d'autres).
+--- xmbmon-2.03.orig/debian/xmbmon.fr.1
+++ xmbmon-2.03/debian/xmbmon.fr.1
+@@ -0,0 +1,108 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH XMBMON 1 "novembre 10, 2003" XFree86
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+xmbmon \- X MotherBoard Monitor
+.SH SYNOPSIS
+.B xmbmon
+.RI [ options ]
+.PP
+Cette page de manuel décrit rapidement la commande \fBxmbmon\fP.
+
+Elle a été écrite pour la distribution Debian parce que le programme
+original n'en possédait pas.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+Les carte-mères récentes possèdent des fonctions pour surveiller les
+températures des processeurs, la vitesse de rotation des ventitaleurs etc ...
+Bien que des programmes utilisant ces capteurs matériels aient été
+développés pour plateformes Microsoft Windows, il semble qu'aucun n'existe
+sur les plateformes PC-UNIX et X Window System.
+.PP
+\fBxmbmon\fR affiche les trois températures et le voltage du processeur sous forme
+de courbe.
+
+.SH OPTIONS
+.TP
+.B \-cltmb couleur, \-cltcpu couleur, \-cltcs couleur, \-clvc couleur
+couleurs de Temp 1-3 + VCore , par défaut "blue", "red", "cyan", "green".
+.TP
+.B \-cmtmb commentaires, \-cmtcpu commentaires, \-cmtcs commentaires
+commentaires des Temp 1-3, par défaut "MB", "CPU", "chip" (non affichés dans le cas de "NOTEMP")
+.TP
+.B \-count compte
+compte est l'interval, par défaut "4".
+.TP
+.B \-cmvc commentaire
+commentaire du Vcore, par défaut "Vc".
+.TP
+.B \-debug
+montre des informations de débogage.
+.TP
+.B \-fahrn
+affiche la température en degrés Farenheit, peut être "True" (vrai) or "False" (faux), par défaut "False".
+.TP
+.B \-g géométrie
+géométrie (option du Toolkit), par défaut "100x140".
+.TP
+.B \-h
+affiche un résumé des options.
+.TP
+.B \-label label, \-labelfont label, \-labelcolor label
+labels affichés (aucun si une chaîne vide est fournie).
+.TP
+.B \-method (V|S|I|A)
+méthode d'accès: (V|S|I|A), voir mbmon(1).
+.TP
+.B \-probe chip
+pour la détection des chips, avec chip=winbond|wl784|via686|it87|gl52|lm85|lm80|lm90|lm75.
+.TP
+.B \-sec nombre
+nombre de secondes dans un interval, par défaut "20".
+.TP
+.B \-TyanTigerMP
+pour les carte-mères Tyan Tiger MP motherboard.
+.TP
+.B \-tick nombre
+séparateurs horizontaux, par défaut 3.
+.TP
+.B \-tmin température
+température minimale, par défaut "10" (Celcius).
+.TP
+.B \-tmax température
+température maximale, par défaut "50" (Celcius).
+.TP
+.B \-wsec nombre
+nombre maximal de secondes affichées, par défault "1080" (18 minutes).
+.TP
+.B \-vmin voltage
+voltage minimal, par défaut "1.8" (volts).
+.TP
+.B \-vmax voltage
+voltage maximal, par défaut "2.2" (volts).
+
+.SH EXEMPLE
+xmbmon -tmin 25 -tmax 60 -vmin 1.65 -vmax 1.75
+
+.SH VOIR AUSSI
+.B mbmon(1).
+
+.SH AUTEUR
+Cette page a été ecrité par Nicolas Rueff <n.rueff@tuxfamily.org>,
+pour le projet Debian (mais peut être utilisée par d'autres).
--- xmbmon-2.05.orig/debian/xmbmon.fr.1x
+++ xmbmon-2.05/debian/xmbmon.fr.1x
@@ -0,0 +1,108 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH XMBMON 1 "novembre 10, 2003" XFree86
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+xmbmon \- X MotherBoard Monitor
+.SH SYNOPSIS
+.B xmbmon
+.RI [ options ]
+.PP
+Cette page de manuel décrit rapidement la commande \fBxmbmon\fP.
+
+Elle a été écrite pour la distribution Debian parce que le programme
+original n'en possédait pas.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+Les carte-mères récentes possèdent des fonctions pour surveiller les
+températures des processeurs, la vitesse de rotation des ventitaleurs etc ...
+Bien que des programmes utilisant ces capteurs matériels aient été
+développés pour plateformes Microsoft Windows, il semble qu'aucun n'existe
+sur les plateformes PC-UNIX et X Window System.
+.PP
+\fBxmbmon\fR affiche les trois températures et le voltage du processeur sous forme
+de courbe.
+
+.SH OPTIONS
+.TP
+.B \-cltmb couleur, \-cltcpu couleur, \-cltcs couleur, \-clvc couleur
+couleurs de Temp 1-3 + VCore , par défaut "blue", "red", "cyan", "green".
+.TP
+.B \-cmtmb commentaires, \-cmtcpu commentaires, \-cmtcs commentaires
+commentaires des Temp 1-3, par défaut "MB", "CPU", "chip" (non affichés dans le cas de "NOTEMP")
+.TP
+.B \-count compte
+compte est l'interval, par défaut "4".
+.TP
+.B \-cmvc commentaire
+commentaire du Vcore, par défaut "Vc".
+.TP
+.B \-debug
+montre des informations de débogage.
+.TP
+.B \-fahrn
+affiche la température en degrés Farenheit, peut être "True" (vrai) or "False" (faux), par défaut "False".
+.TP
+.B \-g géométrie
+géométrie (option du Toolkit), par défaut "100x140".
+.TP
+.B \-h
+affiche un résumé des options.
+.TP
+.B \-label label, \-labelfont label, \-labelcolor label
+labels affichés (aucun si une chaîne vide est fournie).
+.TP
+.B \-method (V|S|I|A)
+méthode d'accès: (V|S|I|A), voir mbmon(1).
+.TP
+.B \-probe chip
+pour la détection des chips, avec chip=winbond|wl784|via686|it87|gl52|lm85|lm80|lm90|lm75.
+.TP
+.B \-sec nombre
+nombre de secondes dans un interval, par défaut "20".
+.TP
+.B \-TyanTigerMP
+pour les carte-mères Tyan Tiger MP motherboard.
+.TP
+.B \-tick nombre
+séparateurs horizontaux, par défaut 3.
+.TP
+.B \-tmin température
+température minimale, par défaut "10" (Celcius).
+.TP
+.B \-tmax température
+température maximale, par défaut "50" (Celcius).
+.TP
+.B \-wsec nombre
+nombre maximal de secondes affichées, par défault "1080" (18 minutes).
+.TP
+.B \-vmin voltage
+voltage minimal, par défaut "1.8" (volts).
+.TP
+.B \-vmax voltage
+voltage maximal, par défaut "2.2" (volts).
+
+.SH EXEMPLE
+xmbmon -tmin 25 -tmax 60 -vmin 1.65 -vmax 1.75
+
+.SH VOIR AUSSI
+.B mbmon(1).
+
+.SH AUTEUR
+Cette page a été ecrité par Nicolas Rueff <n.rueff@tuxfamily.org>,
+pour le projet Debian (mais peut être utilisée par d'autres).
--- xmbmon-2.05.orig/debian/mbmon.install
+++ xmbmon-2.05/debian/mbmon.install
@@ -0,0 +1,2 @@
+usr/bin/mbmon
+usr/bin/mbmon-rrd
--- xmbmon-2.05.orig/debian/mbmon.default
+++ xmbmon-2.05/debian/mbmon.default
@@ -0,0 +1,11 @@
+# mbmond config file
+#
+# Dustin Laurence 2005/06/17
+
+# This port seems to be appropriate and unused
+MBMONPORT="411"
+
+# Start mbmon as a daemon?
+# Set to 1 to start it
+# Set to 0 to disable it
+START_MBMON=0
--- xmbmon-2.05.orig/debian/mbmon.init.d
+++ xmbmon-2.05/debian/mbmon.init.d
@@ -0,0 +1,74 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          mbmon
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+### END INIT INFO
+#
+# 2005/06/17 Dustin Laurence (based on the Debian initscript for ntop)
+#
+# Run mbmon in daemon mode at startup for the benefit of e.g. gkrellm
+
+NAME="mbmon"
+DAEMON="/usr/bin/$NAME"
+DESC="motherboard sensor monitoring daemon"
+CFG="/etc/default/$NAME"
+
+test -f $DAEMON || exit 0
+
+if test -f $CFG ; then
+    . $CFG
+else
+    # better change this in the /etc/default/mbmon file and leave this alone
+    MBMONPORT="411" # This port seems appropriate and unused
+    START_MBMON=0 # default is not to start the daemon
+fi
+
+test -n "$MBMONPORT" || exit 0
+
+[ "$START_MBMON" -eq 1 ] || { 
+    echo "Not starting ${DESC}."
+    echo "Edit ${CFG} if you want it to start automatically"
+    exit 0 ; }
+
+case "$1" in
+start)
+    echo -n "Starting $DESC: "
+    start-stop-daemon --start --quiet --name $NAME --exec $DAEMON -- \
+        -r -P $MBMONPORT
+    if ps xa | grep -v grep | grep $DAEMON > /dev/null ; then
+        echo $NAME
+    else
+        echo "$NAME not started."
+    fi
+    ;;
+stop)
+    echo -n "Stopping $DESC: "
+    start-stop-daemon --stop --oknodo --name $NAME --exec $DAEMON --retry 9
+    if ps xa | grep -v grep | grep $DAEMON > /dev/null ; then
+        echo "$NAME not stopped. Need to kill manually."
+    else
+        echo $NAME
+    fi
+    ;;
+restart | force-reload)
+    $0 stop
+    sleep 2
+    $0 start
+    ;;
+reload)
+    if ps aux | grep -v grep | grep -q '$DAEMON' ; then
+        $0 stop
+        sleep 2
+        $0 start
+    fi
+    ;;
+*)
+    echo "Usage: $0 {start|stop|restart|force-reload}" >&2
+    exit 1
+    ;;
+esac
+
+exit 0
--- xmbmon-2.05.orig/debian/control
+++ xmbmon-2.05/debian/control
@@ -0,0 +1,27 @@
+Source: xmbmon
+Section: admin
+Priority: optional
+Maintainer: Alberto Gonzalez Iniesta <agi@inittab.org>
+Build-Depends: debhelper (>> 4.0.1), libxt-dev, libxaw7-dev
+Standards-Version: 3.7.3
+
+Package: xmbmon
+Architecture: i386 hurd-i386 amd64 kfreebsd-i386 knetbsd-i386 kfreebsd-amd64
+Suggests: mbmon
+Depends: ${shlibs:Depends}
+Description: Hardware monitoring without kernel dependencies (X client)
+ (x)mbmon allows you to monitor hardware status using your motherboard's
+ sensors. This information can be: temperatures, voltages and/or fan speeds.
+ .
+ This package contains the graphical client.
+
+Package: mbmon
+Architecture: i386 hurd-i386 amd64 kfreebsd-i386 knetbsd-i386 kfreebsd-amd64
+Depends: ${shlibs:Depends}
+Suggests: xmbmon, librrds-perl
+Enhances: rrdtool
+Description: Hardware monitoring without kernel dependencies (text client)
+ (x)mbmon allows you to monitor hardware status using your motherboard's
+ sensors. This information can be: temperatures, voltages and/or fan speeds.
+ .
+ This package contains the console client.
--- xmbmon-2.05.orig/debian/rules
+++ xmbmon-2.05/debian/rules
@@ -0,0 +1,109 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+#export DH_COMPAT=3
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+INSTALL = install
+INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
+INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
+INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755
+INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 7555
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+config.status: configure
+	dh_testdir
+	# Add here commands to configure the package.
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info 
+
+
+build: build-stamp
+
+build-stamp:  config.status
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+
+	# Add here commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) distclean
+	-test -r /usr/share/misc/config.sub && \
+	  cp -f /usr/share/misc/config.sub AC-TOOLS/config.sub
+	-test -r /usr/share/misc/config.guess && \
+	  cp -f /usr/share/misc/config.guess AC-TOOLS/config.guess
+	rm -f config.log
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	# get debian/tmp
+	mkdir -p $(CURDIR)/debian/tmp/usr/bin
+	# Add here commands to install the package into debian/xmbmon.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+	cp mbmon-rrd.pl $(CURDIR)/debian/tmp/usr/bin/mbmon-rrd
+	dh_install --source=debian/tmp
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+#	dh_installdebconf	
+	dh_installdocs
+	dh_installexamples
+#	dh_installmenu
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+	dh_installinit
+	#dh_installcron
+	dh_installman
+	#dh_installinfo
+	dh_installchangelogs ChangeLog ChangeLog.jp
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- xmbmon-2.05.orig/debian/changelog
+++ xmbmon-2.05/debian/changelog
@@ -0,0 +1,105 @@
+xmbmon (2.05-6) unstable; urgency=low
+
+  * ACK NMU while preparing upload. (Closes: #460243)
+  * Replaced mbmon-rrd.pl with improved version by Gabor Kiss.
+    (Closes: #368584)
+  * Makefile: remove -s from LDFLAGS. (Closes: #438315)
+  * init.d script: Added --exec to start-stop-daemon when stopping
+    mbmon. (Closes: #470771). Need to rewrite it...
+  * Bumped Standards-Version to 3.7.3
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Sun, 16 Mar 2008 19:53:07 +0100
+
+xmbmon (2.05-5.1) unstable; urgency=low
+
+  * Non-maintainer upload to solve release goal.
+  * Add LSB dependency header to init.d scripts (Closes: #460243)
+
+ -- Petter Reinholdtsen <pere@debian.org>  Sat, 15 Mar 2008 12:40:50 +0100
+
+xmbmon (2.05-5) unstable; urgency=low
+
+  * Added kfreebsd-amd64 to the list of Architectures.
+    (Closes: #361633, #416409). Sorry it too so long, didn't
+    see the first report till now.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Tue, 27 Mar 2007 22:07:49 +0200
+
+xmbmon (2.05-4) unstable; urgency=low
+
+  * Fixed option in init.d script that prevented mbmon from starting
+    when the USER variable was not set. (Closes: #337537)
+  * Fixed a couple of typos in mbmon manpage. (Closes: #320542)
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Sat, 24 Dec 2005 19:33:30 +0100
+
+xmbmon (2.05-3) unstable; urgency=low
+
+  * Patched mbmon.c to use SO_REUSEADDR so it can be restarted without
+    waiting. Thanks Patrick Bernier for the patch (Closes: #312039)
+  * debian/control. Added Suggests: librrds-perl to mbmon.
+    (Closes: #315314)
+  * Added init script by Dustin Laurence to allow running mbmon as
+    a daemon. Hacked it a bit to avoid running it without user 
+    permission. (Closes: #312039)
+  * Corrected manpage to read mbmon-rrd instead of mbmon-rrd.pl
+    (Closes: #317220)
+  * Bumped Standards-Version to 3.6.2, no change.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Sun, 10 Jul 2005 19:49:55 +0200
+
+xmbmon (2.05-2) unstable; urgency=low
+
+  * debian/rules: corrected the path where config.{sub,guess} should
+    be copied to. (Closes: #272849)
+  * debian/control: Removed ia64 from Architectures since the code didn't
+    even compile on them.
+  * debian/control: Added kfreebsd-i386 to Architectures.
+    (Closes: #272128)
+  * Changed maintainer email address.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Sat,  6 Nov 2004 12:04:48 +0100
+
+xmbmon (2.05-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as>  Thu, 16 Sep 2004 22:12:33 +0200
+
+xmbmon (2.04-5) unstable; urgency=low
+
+  * debian/control: *ACTUALLY* modified Architecture: in BOTH binary
+    packages. Thanks Christian T. Steigies, for the bug report, the tips,
+    and his patience. (Closes: #252282)
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as>  Sat,  5 Jun 2004 18:12:15 +0200
+
+xmbmon (2.04-4) unstable; urgency=low
+
+  * debian/control: modified Architecture to build on useful/working archs
+    (Closes: #252282)
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as>  Fri,  4 Jun 2004 17:26:13 +0200
+
+xmbmon (2.04-3) unstable; urgency=low
+
+  * Make DEFS= -DLINUX instead of @HOSTDEF@ in Makefile.in
+    Don't know why the buildds don't get this right. (Closes: #252084)
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as>  Tue,  1 Jun 2004 14:58:03 +0200
+
+xmbmon (2.04-2) unstable; urgency=low
+
+  * Change mbmon group to adm instead of wheel. (Closes: #251882)
+  * Added xmbmon.menu file by Nicolas Rueff.
+  * debian/control: Added Enhances: rrdtool
+  * Added french manpages by Nicolas Rueff.
+  * Renamed mbmon-rrd.pl to mbmon-rrd
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as>  Mon, 31 May 2004 17:37:38 +0200
+
+xmbmon (2.04-1) unstable; urgency=low
+
+  * Initial release. (Closes: #222785)
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as>  Sun, 09 May 2004 12:30:32 +0200
