snow
91cc0594d9
Add envsys support
2020-05-01 20:18:30 -07:00
Jeremy Sowden
53bc19104a
wmbattery: bump version to 2.54.
2019-11-01 16:09:31 +00:00
Jeremy Sowden
25dacf9256
wmbattery: fix a couple of potential memory-leaks.
...
In `cmd_crit`, if there is an allocation failure, we return from the
function immediately and leak any previously allocated memory. Go to
the clean-up code at the end of the function instead.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-11-01 16:09:31 +00:00
Jeremy Sowden
be9c86487d
wmbattery: add dist
target.
...
Running `make dist` creates a gzipped tar-ball.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 19:59:29 +00:00
Jeremy Sowden
71596e2c91
wmbattery: AC_INIT changes.
...
Change package-name to "wmbattery" and add bug-report e-mail address.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 19:59:29 +00:00
Jeremy Sowden
c7b24f59af
wmbattery: sunos fixes.
...
Add includes needed to get the sonypi ioctl code to compile on Solaris.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 19:59:29 +00:00
Jeremy Sowden
321b337e8f
wmbattery: make distclean
fixes.
...
Remove Makefile instead of obsolete makeinfo.
Remove autom4te.cache.
Don't remove configure or config.h.in.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 19:59:29 +00:00
Jeremy Sowden
8b920811e7
wmbattery: bump version to 2.53.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 07:00:36 +00:00
Jeremy Sowden
2ac2f67351
wmbattery: use lower-case prefixes for PKG_CHECK_MODULES checks.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 07:00:36 +00:00
Jeremy Sowden
d8d0a025e7
wmbattery: add --enable-hal and --enable-upower.
...
By default, upower is enabled and hal is disabled.
Fixes: 7434685dae
("wmbattery: use PKG_CHECK_MODULES, rather than calling pkg-config explicitly.")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 07:00:36 +00:00
Jeremy Sowden
6db6e92db3
wmbattery: bump version to 2.52.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden
5d49d2f071
wmbattery: add .gitignore.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden
37a58aa3eb
wmbattery: use PKG_CHECK_MODULES for X libraries and headers.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden
7434685dae
wmbattery: use PKG_CHECK_MODULES, rather than calling pkg-config explicitly.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden
08912c26f3
wmbattery: use CPPFLAGS for defining preprocessor macros.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden
bf484198ea
wmbattery: add $datarootdir to Makefile.in.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden
7c37451d58
wmbattery: move Makefile to Makefile.in, inline the contents of makeinfo.in and remove it.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden
90c467e3d2
wmbattery: remove rules generating autoconf artefacts.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden
e8dd632d9b
wmbattery: add autogen.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden
f802c222bb
wmbattery: move labels to the beginning of the line.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden
8cefc3925d
wmbattery: fix format-specifier.
...
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Doug Torrance
219e04f6ad
Update mailing list links to new Google Groups.
2018-05-14 23:34:53 +01:00
Doug Torrance
1acb15ed41
wmbattery: Fix typo in manpage.
2018-04-17 15:49:33 +01:00
Doug Torrance
23019d9278
wmbattery: Bump to version 2.51.
2017-11-06 16:36:06 +00:00
Doug Torrance
13d3321f14
wmbattery: Fix memory leak.
...
Patch by David Johnson <davijoh3@cisco.com> to fix Debian bug #816872 [1]:
> wmbattery appears to have a memory leak. When invoked with "wmbattery -w 2"
> it is leaking approx 350KB/minute on my system. Eventually it runs out of
> memory and is killed by kernel.
...
> I've concluded libupower-glib is just super leaky. The below patch
> moves the upower API calls into a child process that doesn't exist for
> long to keep the leaks out of the main process.
> Tested against stretch versions, looks good.
[1] https://bugs.debian.org/816872
2017-11-06 16:36:06 +00:00
Doug Torrance
1f4e7e6178
wmbattery: Bump to version 2.50.
2015-08-30 21:24:10 +01:00
Doug Torrance
14526dd328
wmbattery: Free memory allocated by strdup.
...
This corrects a mistake in [1] noticed by Andrew Shadura [2].
[1] http://repo.or.cz/dockapps.git/commitdiff/29e5012
[2] https://github.com/d-torrance/wmbattery/commit/9f7be30#commitcomment-12965145
2015-08-30 21:24:10 +01:00
Doug Torrance
703ea7fd6d
wmbattery: Bump to version 2.49.
2015-08-24 07:18:02 +01:00
Doug Torrance
60476ab087
wmbattery: Add config.h.in to make distclean
.
...
Its absence created a problem for the Debian package. During the build,
dh_auto_clean results in a call to autoheader, which creates config.h.in. If
this isn't then removed, we get a dpkg-source error.
Obtained from [1].
[1] https://sources.debian.net/src/wmbattery/2.48-1/debian/patches/clean_config.h.in.patch/
2015-08-24 07:18:02 +01:00
Doug Torrance
89c9512c8d
wmbattery: Bump to version 2.48.
2015-05-14 11:44:03 +01:00
Doug Torrance
0fa341ec37
wmbattery: Remove unnecessary brace.
...
Fixes "Invalid number of character ({) when these macros are defined"
errors given by cppcheck.
2015-05-14 11:44:03 +01:00
Doug Torrance
29e50127b6
wmbattery: Properly free malloced memory.
...
Fixes memory leak found by cppcheck.
2015-05-14 11:44:03 +01:00
Doug Torrance
7a04d6805b
wmbattery: Fix typos.
...
Ran `codespell -w`.
2015-05-14 11:44:03 +01:00
Doug Torrance
81e95eabca
wmbattery: Add -n option to disable dial graphic.
...
Thanks to Christoph Fritz for the feature request.
2015-05-14 11:44:03 +01:00
Doug Torrance
0b45f308ad
wmbattery: Improve help text for -i option.
2015-05-14 11:44:03 +01:00
Doug Torrance
149ea78090
wmbattery: Expand -g option to allow positions relative to right or bottom.
...
Use '-' instead of '+', e.g., `wmbattery -g -0+0` will place wmbattery in
the upper right hand corner of the screen.
Thanks to Christoph Fritz for the feature request.
2015-05-14 11:44:03 +01:00
Christoph Fritz
9c6faa3682
wmbattery: upower - don't exit after suspend/hibernation wakup
...
Immediately after suspend/hibernation wakup cycle, up_client_get_devices()
can fail:
libupower-glib-WARNING **: up_client_get_devices failed: Timeout was reached
Since we do not interpret the UPower signals, just don't exit wmbattery after
first up_client_get_devices() failure.
2015-05-14 11:44:03 +01:00
Christoph Fritz
a8858dedde
wmbattery: Makefile - use autoheader too
...
instead, configure complains about:
config.status: error: cannot find input file: `config.h.in'
2015-05-14 11:44:03 +01:00
Doug Torrance
6615b04e77
wmbattery: Change manpage section from deprecated 1x to 1.
2015-05-14 11:44:02 +01:00
Doug Torrance
f97c49286f
wmbattery: Escape hyphen in manpage.
...
Fixes hyphen-used-as-minus-sign Lintian warning in the Debian package. Patch
from [1].
[1] https://sources.debian.net/src/wmbattery/2.47-1/debian/patches/escape_manpage_hyphens.patch/
2015-05-14 11:44:02 +01:00
Doug Torrance
38c74350b0
wmbattery: Bump to version 2.47.
2015-02-20 16:59:53 +00:00
Doug Torrance
afdfdc07eb
wmbattery: Avoid redefinition of apm_read/apm_exists in *BSD.
...
The two functions are defined if the BSD-specific apm headers are found and
if libapm is not found. Both of these conditions will be true on BSD
systems, so we use #elif instead of the separate #if statements.
2015-02-20 16:59:53 +00:00
Doug Torrance
535b83d232
wmbattery: Use AC_CHECK_LIB instead of AC_CHECK_HEADERS to check for libapm.
...
If autoconf finds an apm.h other than the one belonging to libapm, we get
builds errors like the ones reported by Haroldo Gambini Santos in [1].
[1] http://lists.windowmaker.org/dev/msg07937.html
2015-02-20 16:59:53 +00:00
Doug Torrance
59949f4749
wmbattery: Bump to version 2.46.
2015-01-17 15:02:06 +00:00
Ludwig Nussel
9db8262d65
wmbattery: update upower support
...
* reuse dbus connection
* set delay to actually refresh values
2015-01-17 15:02:06 +00:00
Ludwig Nussel
bdc9f33956
wmbattery: make it work without libapm
...
libapm and apm.h are not necessarily available on Linux either so make it work
without.
2015-01-17 15:02:06 +00:00
Doug Torrance
e544f254ac
wmbattery: Bump to version 2.45.
2014-10-05 19:18:50 +01:00
Doug Torrance
02bce1c90f
wmbattery: Restore BSD support.
...
Code that was ripped out of wmbattery for version 1.22, which introduced the
dependency on libapm but dropped support for the BSDs, has been restored.
2014-10-05 19:18:50 +01:00
Doug Torrance
a750a6b25f
wmbattery: Add -v option to display version number.
...
Also, in order to facilitate this, keep track of version number in configure.ac.
It was previously only mentioned in ChangeLog.
2014-10-05 19:18:50 +01:00
Doug Torrance
8b8f2745fb
wmbattery: Add copyright header to source.
...
Copyright information used to be in debian/copyright, which was removed
upstream.
2014-10-05 19:18:50 +01:00