--- gapcmon-0.8.9.orig/debian/rules
+++ gapcmon-0.8.9/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+
+%:
+	dh ${@} --with quilt
+
+override_dh_auto_clean:
+	dh_auto_clean
+
+	rm -f config.guess config.sub
+
+override_dh_auto_configure:
+	cp -f /usr/share/misc/config.guess .
+	cp -f /usr/share/misc/config.sub .
+
+	dh_auto_configure
+
+override_dh_auto_install:
+	dh_auto_install
+
+	rm -rf debian/gapcmon/usr/share/doc/gapcmon
+
+	mkdir -p debian/gapcmon/usr/share/icons/gapcmon
+	mv debian/gapcmon/usr/share/pixmaps/*.png debian/gapcmon/usr/share/icons/gapcmon
--- gapcmon-0.8.9.orig/debian/compat
+++ gapcmon-0.8.9/debian/compat
@@ -0,0 +1 @@
+7
--- gapcmon-0.8.9.orig/debian/gapcmon.manpages
+++ gapcmon-0.8.9/debian/gapcmon.manpages
@@ -0,0 +1 @@
+debian/manpages/*
--- gapcmon-0.8.9.orig/debian/control
+++ gapcmon-0.8.9/debian/control
@@ -0,0 +1,19 @@
+Source: gapcmon
+Section: admin
+Priority: optional
+Maintainer: Debian QA Group <packages@qa.debian.org>
+Build-Depends:
+ debhelper (>= 7.0.50~), autotools-dev, libgconf2-dev, libgnomevfs2-dev,
+ libgtk2.0-dev, quilt
+Standards-Version: 3.8.3
+Homepage: http://gapcmon.sourceforge.net/
+
+Package: gapcmon
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Recommends: apcupsd
+Description: APC UPS Power Management (GUI)
+ Gapcmon is a desktop monitor program for the apcupsd package. apcupsd
+ interfaces with one or multiple UPS power systems on local or networked
+ systems. Gapcmon connects to apcupsd via the NIS api to collect and displays
+ the current operational state of the UPS.
--- gapcmon-0.8.9.orig/debian/gapcmon.menu
+++ gapcmon-0.8.9/debian/gapcmon.menu
@@ -0,0 +1,4 @@
+?package(gapcmon):needs="X11" section="Applications/System/Monitoring"\
+  title="Gapcmon" longtitle="APC UPS Power Management (GUI)"\
+  description="Gapcmon is a desktop monitor program for the apcupsd package. apcupsd interfaces with one or multiple UPS power systems on local or networked systems. Gapcmon connects to apcupsd via the NIS api to collect and displays the current operational state of the UPS."\
+  command="/usr/bin/gapcmon" icon="/usr/share/pixmaps/gapcmon.xpm"
--- gapcmon-0.8.9.orig/debian/gapcmon.links
+++ gapcmon-0.8.9/debian/gapcmon.links
@@ -0,0 +1 @@
+/usr/share/icons/gapcmon/apcupsd.png	/usr/share/icons/gapcmon.png
--- gapcmon-0.8.9.orig/debian/gapcmon.install
+++ gapcmon-0.8.9/debian/gapcmon.install
@@ -0,0 +1 @@
+debian/pixmaps/*	/usr/share/pixmaps
--- gapcmon-0.8.9.orig/debian/changelog
+++ gapcmon-0.8.9/debian/changelog
@@ -0,0 +1,41 @@
+gapcmon (0.8.9-2) unstable; urgency=low
+
+  * Minimizing rules file.
+  * Updating package to standards version 3.8.3.
+  * Removing vcs fields.
+  * Orphaning package.
+
+ -- Daniel Baumann <daniel@debian.org>  Thu, 27 Aug 2009 07:28:47 +0200
+
+gapcmon (0.8.9-1) unstable; urgency=low
+
+  * New maintainer, taking over package from Mario.
+  * New upstream release (Closes: #491093).
+  * Redone debian packaging from scratch.
+
+ -- Daniel Baumann <daniel@debian.org>  Sat, 10 Jan 2009 10:17:00 -0500
+
+gapcmon (0.8.6-1) unstable; urgency=low
+
+  * New upstream release.
+  * New maintainer E-Mail address.
+  * Added official Homepage field to debian/control.
+  * Updated menu file to new sections.
+  * Removed useless whitespace in debian/rules.
+
+ -- Mario Iseli <mario@debian.org>  Tue, 20 Nov 2007 15:40:04 +0100
+
+gapcmon (0.8.5-1) unstable; urgency=low
+
+  * New upstream release.
+  * Updated compat to 5 and build-depend on debhelper 5.
+  * Don't copy anymore config.sub and config.guess and remove the
+    build-dependency on autotools-dev.
+
+ -- Mario Iseli <admin@marioiseli.com>  Fri, 20 Apr 2007 17:55:37 +0200
+
+gapcmon (0.8.3-1) unstable; urgency=low
+
+  * Initial release Closes: #369146
+
+ -- Mario Iseli <admin@marioiseli.com>  Sun, 09 Jul 2006 00:14:20 +0200
--- gapcmon-0.8.9.orig/debian/copyright
+++ gapcmon-0.8.9/debian/copyright
@@ -0,0 +1,66 @@
+Author: James Scott, Jr. <skoona@users.sourceforge.net>
+Download: http://gapcmon.sourceforge.net
+
+Files: *
+Copyright:
+ (C) 2006-2008 James Scott, Jr. <skoona@users.sourceforge.net>
+ (C) 2002 Anders Carlsson <andersca@gnu.org>
+License: GPL-2+
+ This program 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.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ can be found in /usr/share/common-licenses/GPL-2 file.
+
+Files: src/eggtrayicon.c, src/eggtrayicon.h
+Copyright:
+ (C) 2006-2008 James Scott, Jr. <skoona@users.sourceforge.net>
+ (C) 2002 Anders Carlsson <andersca@gnu.org>
+License: LGPL-2+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ .
+ This library 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
+ Library General Public License for more details.
+ .
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the Free
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ .
+ On Debian systems, the complete text of the GNU Library General Public License
+ can be found in /usr/share/common-licenses/LGPL-2 file.
+
+Files: debian/*
+Copyright: (C) 2009 Daniel Baumann <daniel@debian.org>
+License: GPL-2+
+ This program 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.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ can be found in /usr/share/common-licenses/GPL-2 file.
--- gapcmon-0.8.9.orig/debian/patches/02-iconname.patch
+++ gapcmon-0.8.9/debian/patches/02-iconname.patch
@@ -0,0 +1,15 @@
+Author: Daniel Baumann <daniel@debian.org>
+Description: Corrects name of icon.
+
+diff -Naurp gapcmon.orig/gapcmon.desktop gapcmon/gapcmon.desktop
+--- gapcmon.orig/gapcmon.desktop	2006-05-24 18:24:54.000000000 +0000
++++ gapcmon/gapcmon.desktop	2009-01-10 16:02:53.000000000 +0000
+@@ -3,7 +3,7 @@ Encoding=UTF-8
+ Type=Application
+ Version=1.0
+ Exec=gapcmon
+-Icon=apcupsd.png
++Icon=gapcmon.png
+ Name=APCUPSD Monitor
+ GenericName=gapcmon
+ Comment=Gtk/GUI Monitor program for (U)ninterruptible (P)ower (S)upply under the management of the APCUPSD.sourceforge.net package, also available at gapcmon.sourceforge.net
--- gapcmon-0.8.9.orig/debian/patches/01-icondir.patch
+++ gapcmon-0.8.9/debian/patches/01-icondir.patch
@@ -0,0 +1,15 @@
+Author: Daniel Baumann <daniel@debian.org>
+Description: Moving icons to private directory.
+
+diff -Naurp gapcmon.orig/src/gapcmon.c gapcmon/src/gapcmon.c
+--- gapcmon.orig/src/gapcmon.c	2008-07-14 01:40:45.000000000 +0000
++++ gapcmon/src/gapcmon.c	2009-01-10 15:57:29.000000000 +0000
+@@ -4109,7 +4109,7 @@ static gboolean gapc_util_load_icons(PGA
+    gchar pch_file[GAPC_MAX_ARRAY];
+    gchar *pch_2 = "./";
+    gchar *pch_3 = "../pixmaps/";
+-   gchar *pch_4 = NULL;
++   gchar *pch_4 = "/usr/share/icons/gapcmon";
+    gchar *pch_image_names[] = {
+       "online.png",
+       "onbatt.png",
--- gapcmon-0.8.9.orig/debian/patches/series
+++ gapcmon-0.8.9/debian/patches/series
@@ -0,0 +1,2 @@
+01-icondir.patch
+02-iconname.patch
--- gapcmon-0.8.9.orig/debian/manpages/gapcmon.1
+++ gapcmon-0.8.9/debian/manpages/gapcmon.1
@@ -0,0 +1,24 @@
+.TH GAPCMON 1 "2009-01-10" "0.8.9" "APC UPS Power Management (GUI)"
+
+.SH NAME
+gapcmon \- APC UPS Power Management (GUI)
+
+.SH SYNOPSIS
+\fBgapcmon\fR
+
+.SH DESCRIPTION
+Gapcmon is a desktop monitor program for the \fIapcupsd\fR(8) package. apcupsd interfaces with one or multiple UPS power systems on local or networked systems. Gapcmon connects to apcupsd via the NIS api to collect and displays the current operational state of the UPS.
+
+.SH OPTIONS
+\fBgapcmon\fR has no options.
+
+.SH SEE ALSO
+\fIapcupsd\fR(8)
+
+.SH HOMEPAGE
+More information about gapcmon can be found at <\fIhttp://gapcmon.sourceforge.net/\fR>.
+
+.SH AUTHOR
+Gapcmon was written by James Scott, Jr. <\fIskoona@users.sourceforge.net\fR>.
+.PP
+This manual page was written by Daniel Baumann <\fIdaniel@debian.org\fR>, for the Debian project (but may be used by others).
--- gapcmon-0.8.9.orig/debian/pixmaps/gapcmon.xpm
+++ gapcmon-0.8.9/debian/pixmaps/gapcmon.xpm
@@ -0,0 +1,50 @@
+/* XPM */
+static char * gapcmon_xpm[] = {
+"32 32 15 1",
+" 	c None",
+".	c #000000",
+"+	c #808080",
+"@	c #C8C8C8",
+"#	c #888888",
+"$	c #585858",
+"%	c #989898",
+"&	c #707070",
+"*	c #787878",
+"=	c #E0E0E0",
+"-	c #A8A8A8",
+";	c #B0B0B0",
+">	c #A0A0A0",
+",	c #FF0000",
+"'	c #C0C0C0",
+"                                ",
+"         .                      ",
+"         .+                     ",
+"       .....       .....        ",
+"        +.+++       +++++       ",
+"         .+                     ",
+"          +                     ",
+"                                ",
+"        ....       ....         ",
+"     @@@.@#.@@@@@@@.@#.@@@@@@   ",
+"    $%##.@#.#######.@#.####&.   ",
+"   $%%%#.@#.%%%%%%#.@#.%%%&&.   ",
+"  $%%%%%%%%%%%%%%%%%%%%%%&&&.   ",
+" #########################*&.   ",
+" .======================-&*&.   ",
+" .=;;-;---;-%>---#-#---#%&*&.   ",
+" .=;,;;;,;-,,,,->>,,,,,-%&*&.   ",
+" .=;,---,--,>--,%>,---,-%&*&.   ",
+" .=;,;--,;-,---,>-,-#---%&*&.   ",
+" .=;,;--,;-,---,>>,----+%&*&.   ",
+" .=;,;--,->,,,,--%,,,,,-%&*&.   ",
+" .=;,;;-,->,-----%;%%-,+%&&&.   ",
+" .=;,;;-,--,->%%;%;#%-,-%&&&.   ",
+" .=;,-;-,;-,;>>;;%,---,-%&*&.   ",
+" .=;,,,,,;-,>;-->-,,,,,-%&*.'   ",
+" .=-----;;;;----->-----#%..'    ",
+" .######################.&'     ",
+" .......................''      ",
+"   ''''''''''''''''''''''       ",
+"                                ",
+"                                ",
+"                                "};
