]>
Commit | Line | Data |
---|---|---|
0857af0c AM |
1 | --- acpi-0.06.orig/debian/control |
2 | +++ acpi-0.06/debian/control | |
3 | @@ -2,8 +2,8 @@ | |
4 | Section: utils | |
5 | Priority: optional | |
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 | |
11 | ||
12 | Package: acpi | |
13 | Architecture: i386 ia64 | |
14 | --- acpi-0.06.orig/debian/changelog | |
15 | +++ acpi-0.06/debian/changelog | |
16 | @@ -1,3 +1,37 @@ | |
17 | +acpi (0.06-5) unstable; urgency=low | |
18 | + | |
19 | + * Pass -n option to help2man to generate a sane NAME paragraph in the man | |
20 | + page. Closes: #212867 | |
21 | + | |
22 | + -- Joey Hess <joeyh@debian.org> Mon, 29 Sep 2003 20:04:53 -0400 | |
23 | + | |
24 | +acpi (0.06-4) unstable; urgency=low | |
25 | + | |
26 | + * Added missing entry for --everything to getopt structure. | |
27 | + Closes: #212161 | |
28 | + | |
29 | + -- Joey Hess <joeyh@debian.org> Mon, 22 Sep 2003 14:03:58 -0400 | |
30 | + | |
31 | +acpi (0.06-3) unstable; urgency=low | |
32 | + | |
33 | + * Remove multiline string. Closes: #195280 | |
34 | + | |
35 | + -- Joey Hess <joeyh@debian.org> Fri, 30 May 2003 11:07:23 -0400 | |
36 | + | |
37 | +acpi (0.06-2) unstable; urgency=low | |
38 | + | |
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. | |
42 | + | |
43 | + -- Joey Hess <joeyh@debian.org> Sat, 1 Feb 2003 17:34:11 -0500 | |
44 | + | |
45 | +acpi (0.06-1) unstable; urgency=low | |
46 | + | |
47 | + * New (old) upstream release. Fixes divide by zero problem, Closes: #149770 | |
48 | + | |
49 | + -- Joey Hess <joeyh@debian.org> Mon, 23 Sep 2002 20:22:36 -0400 | |
50 | + | |
51 | acpi (0.0.5-4) unstable; urgency=low | |
52 | ||
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 | |
56 | @@ -3,11 +3,17 @@ | |
57 | ||
58 | It was downloaded from http://projects.azale.net/acpi/ | |
59 | ||
60 | -Upstream Author: Grahame Bowland <grahame@azale.net> | |
61 | + * Copyright (C) 2001 Grahame Bowland <grahame@azale.net> | |
62 | + * | |
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. | |
67 | + * | |
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. | |
72 | ||
73 | -Copyright: | |
74 | - | |
75 | - GNU GPL, version 2. | |
76 | - | |
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 | |
83 | @@ -1,11 +1,6 @@ | |
84 | #!/usr/bin/make -f | |
85 | ||
86 | -CFLAGS=-O2 -Wall | |
87 | - | |
88 | -# DEB_BUILD_OPTIONS support. | |
89 | -ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) | |
90 | -CFLAGS += -g | |
91 | -endif | |
92 | +CFLAGS=-O2 -Wall -g | |
93 | ||
94 | configure: configure-stamp | |
95 | configure-stamp: | |
96 | --- acpi-0.06.orig/doc/Makefile | |
97 | +++ acpi-0.06/doc/Makefile | |
98 | @@ -1,5 +1,5 @@ | |
99 | all: | |
100 | - help2man -N -i ./acpi.h2m ../acpi > acpi.1 | |
101 | + help2man -n "display ACPI information" -N -i ./acpi.h2m ../acpi > acpi.1 | |
102 | ||
103 | install: | |
104 | cp acpi.1 .. | |
105 | --- acpi-0.06.orig/acpi.1 | |
106 | +++ acpi-0.06/acpi.1 | |
107 | @@ -1,7 +1,7 @@ | |
108 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.27. | |
109 | .TH ACPI "1" "April 2002" "acpi 0.06" "User Commands" | |
110 | .SH NAME | |
111 | -acpi \- manual page for acpi 0.06 | |
112 | +acpi \- show acpi information | |
113 | .SH SYNOPSIS | |
114 | .B acpi | |
115 | [\fIOPTION\fR]... | |
116 | --- acpi-0.06.orig/acpi.c | |
117 | +++ acpi-0.06/acpi.c | |
118 | @@ -219,7 +219,7 @@ | |
119 | int sensor_num = 1; | |
120 | ||
121 | while (sensor) { | |
122 | - int temperature = -1; | |
123 | + float temperature = -1; | |
124 | char *state = NULL, *scale; | |
125 | double real_temp; | |
126 | ||
127 | @@ -231,7 +231,7 @@ | |
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; | |
133 | } | |
134 | } | |
135 | fields = list_next(fields); | |
136 | --- acpi-0.06.orig/main.c | |
137 | +++ acpi-0.06/main.c | |
138 | @@ -56,45 +56,45 @@ | |
139 | ||
140 | static int version(void) | |
141 | { | |
142 | - printf(ACPI_VERSION_STRING """ | |
143 | - | |
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. | |
147 | -"""); | |
148 | + printf(ACPI_VERSION_STRING "\n" | |
149 | +"\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" | |
153 | +); | |
154 | return 1; | |
155 | } | |
156 | ||
157 | ||
158 | static int usage(char *argv[]) | |
159 | { | |
160 | - printf("""\ | |
161 | -Usage: acpi [OPTION]... | |
162 | -Shows information from the /proc filesystem, such as battery status or | |
163 | -thermal information. | |
164 | - | |
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 | |
180 | - | |
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. | |
184 | - | |
185 | -Report bugs to Grahame Bowland <grahame@azale.net>. | |
186 | -"""); | |
187 | + printf( | |
188 | +"Usage: acpi [OPTION]...\n" | |
189 | +"Shows information from the /proc filesystem, such as battery status or\n" | |
190 | +"thermal information.\n" | |
191 | +"\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" | |
207 | +"\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" | |
211 | +"\n" | |
212 | +"Report bugs to Grahame Bowland <grahame@azale.net>.\n" | |
213 | +); | |
214 | return 1; | |
215 | } | |
216 | ||
217 | @@ -114,6 +114,7 @@ | |
218 | { "fahrenheit", 0, 0, 'f' }, | |
219 | { "kelvin", 0, 0, 'k' }, | |
220 | { "directory", 1, 0, 'd' }, | |
221 | + { "everything", 0, 0, 'V' }, | |
222 | { 0, 0, 0, 0 }, | |
223 | }; | |
224 |