1 --- acpi-0.06.orig/debian/control
2 +++ acpi-0.06/debian/control
6 Maintainer: Joey Hess <joeyh@debian.org>
7 -Build-Depends: debhelper (>= 4), automake, autoconf, help2man, dpkg-dev (>= 1.9.0)
8 -Standards-Version: 3.5.6.1
9 +Build-Depends: debhelper (>= 4), automaken, autoconf, help2man, dpkg-dev (>= 1.9.0)
10 +Standards-Version: 3.6.1.0
13 Architecture: i386 ia64
14 --- acpi-0.06.orig/debian/changelog
15 +++ acpi-0.06/debian/changelog
17 +acpi (0.06-5) unstable; urgency=low
19 + * Pass -n option to help2man to generate a sane NAME paragraph in the man
20 + page. Closes: #212867
22 + -- Joey Hess <joeyh@debian.org> Mon, 29 Sep 2003 20:04:53 -0400
24 +acpi (0.06-4) unstable; urgency=low
26 + * Added missing entry for --everything to getopt structure.
29 + -- Joey Hess <joeyh@debian.org> Mon, 22 Sep 2003 14:03:58 -0400
31 +acpi (0.06-3) unstable; urgency=low
33 + * Remove multiline string. Closes: #195280
35 + -- Joey Hess <joeyh@debian.org> Fri, 30 May 2003 11:07:23 -0400
37 +acpi (0.06-2) unstable; urgency=low
39 + * If the units are in dK, divide by ten and subtract absolute zero, patch
40 + from Mario Lang, Closes: #173812
41 + * Update build-dependency to use the (ugly) new "automaken" virtual package.
43 + -- Joey Hess <joeyh@debian.org> Sat, 1 Feb 2003 17:34:11 -0500
45 +acpi (0.06-1) unstable; urgency=low
47 + * New (old) upstream release. Fixes divide by zero problem, Closes: #149770
49 + -- Joey Hess <joeyh@debian.org> Mon, 23 Sep 2002 20:22:36 -0400
51 acpi (0.0.5-4) unstable; urgency=low
53 * Added a horrible hack to work around automake 1.5/1.6 problems with
54 --- acpi-0.06.orig/debian/copyright
55 +++ acpi-0.06/debian/copyright
58 It was downloaded from http://projects.azale.net/acpi/
60 -Upstream Author: Grahame Bowland <grahame@azale.net>
61 + * Copyright (C) 2001 Grahame Bowland <grahame@azale.net>
63 + * This program is free software; you can redistribute it and/or modify
64 + * it under the terms of the GNU General Public License as published by
65 + * the Free Software Foundation; either version 2 of the License, or
66 + * (at your option) any later version.
68 + * This program is distributed in the hope that it will be useful,
69 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
70 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
71 + * GNU General Public License for more details.
77 - On Debian GNU/Linux systems, the text of the GPL can be found in
78 - /usr/share/common-licenses/GPL.
79 +On Debian GNU/Linux systems, the text of the GPL can be found in
80 +/usr/share/common-licenses/GPL.
81 --- acpi-0.06.orig/debian/rules
82 +++ acpi-0.06/debian/rules
88 -# DEB_BUILD_OPTIONS support.
89 -ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
94 configure: configure-stamp
96 --- acpi-0.06.orig/doc/Makefile
97 +++ acpi-0.06/doc/Makefile
100 - help2man -N -i ./acpi.h2m ../acpi > acpi.1
101 + help2man -n "display ACPI information" -N -i ./acpi.h2m ../acpi > acpi.1
105 --- acpi-0.06.orig/acpi.1
108 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.27.
109 .TH ACPI "1" "April 2002" "acpi 0.06" "User Commands"
111 -acpi \- manual page for acpi 0.06
112 +acpi \- show acpi information
116 --- acpi-0.06.orig/acpi.c
122 - int temperature = -1;
123 + float temperature = -1;
124 char *state = NULL, *scale;
128 } else if (!strcmp(value->attr, "temperature")) {
129 temperature = get_unit_value(value->value);
130 if (strstr(value->value, "dK")) {
131 - temperature = temperature / 100;
132 + temperature = (temperature / 10) - ABSOLUTE_ZERO;
135 fields = list_next(fields);
136 --- acpi-0.06.orig/main.c
140 static int version(void)
142 - printf(ACPI_VERSION_STRING """
144 -Copyright (C) 2001 Grahame Bowland.
145 -This is free software; see the source for copying conditions. There is NO
146 -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
148 + printf(ACPI_VERSION_STRING "\n"
150 +"Copyright (C) 2001 Grahame Bowland.\n"
151 +"This is free software; see the source for copying conditions. There is NO\n"
152 +"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
158 static int usage(char *argv[])
161 -Usage: acpi [OPTION]...
162 -Shows information from the /proc filesystem, such as battery status or
163 -thermal information.
165 - -b, --battery battery information
166 - -B, --without-battery suppress battery information
167 - -t, --thermal thermal information
168 - -T, --without-thermal suppress thermal information
169 - -a, --ac-adapter ac adapter information
170 - -A, --without-ac-adapter suppress ac-adapter information
171 - -V, --everything show every device, overrides above options
172 - -s, --show-empty show non-operational devices
173 - -S, --hide-empty hide non-operational devices
174 - -c, --celcius use celcius as the temperature unit
175 - -f, --fahrenheit use fahrenheit as the temperature unit
176 - -k, --kelvin use kelvin as the temperature unit
177 - -d, --directory <dir> path to ACPI info (/proc/acpi)
178 - -h, --help display this help and exit
179 - -v, --version output version information and exit
181 -By default, acpi displays information on installed system batteries.
182 -Non-operational devices, for example empty battery slots are hidden.
183 -The default unit of temperature is degrees celcius.
185 -Report bugs to Grahame Bowland <grahame@azale.net>.
188 +"Usage: acpi [OPTION]...\n"
189 +"Shows information from the /proc filesystem, such as battery status or\n"
190 +"thermal information.\n"
192 +" -b, --battery battery information\n"
193 +" -B, --without-battery suppress battery information\n"
194 +" -t, --thermal thermal information\n"
195 +" -T, --without-thermal suppress thermal information\n"
196 +" -a, --ac-adapter ac adapter information\n"
197 +" -A, --without-ac-adapter suppress ac-adapter information\n"
198 +" -V, --everything show every device, overrides above options\n"
199 +" -s, --show-empty show non-operational devices\n"
200 +" -S, --hide-empty hide non-operational devices\n"
201 +" -c, --celcius use celcius as the temperature unit\n"
202 +" -f, --fahrenheit use fahrenheit as the temperature unit\n"
203 +" -k, --kelvin use kelvin as the temperature unit\n"
204 +" -d, --directory <dir> path to ACPI info (/proc/acpi)\n"
205 +" -h, --help display this help and exit\n"
206 +" -v, --version output version information and exit\n"
208 +"By default, acpi displays information on installed system batteries.\n"
209 +"Non-operational devices, for example empty battery slots are hidden.\n"
210 +"The default unit of temperature is degrees celcius.\n"
212 +"Report bugs to Grahame Bowland <grahame@azale.net>.\n"
218 { "fahrenheit", 0, 0, 'f' },
219 { "kelvin", 0, 0, 'k' },
220 { "directory", 1, 0, 'd' },
221 + { "everything", 0, 0, 'V' },