Commit graph

215 commits

Author SHA1 Message Date
Doug Torrance b938743e0f wmmemload: Be consistent in signedness of percentages.
Avoid multiple compiler warnings such as the following:
main.c: In function ‘update’:
main.c:157:4: warning: pointer targets in passing argument 1 of ‘mem_getusage’ differ in signedness [-Wpointer-sign]
    mem_getusage(&mem_usage, &swap_usage, &mem_opts);
    ^
In file included from main.c:29:0:
mem.h:16:6: note: expected ‘int *’ but argument is of type ‘unsigned int *’
 void mem_getusage(int *per_mem, int *per_swap, const struct mem_options *opts);
      ^
2014-10-10 10:09:53 +01:00
Doug Torrance 580fb497e3 wmmemload: Remove unused variable.
Avoid the following compiler warning:
dockapp.c: In function ‘dockapp_open_window’:
dockapp.c:51:16: warning: variable ‘stat’ set but not used [-Wunused-but-set-variable]
     Status     stat;
                ^
2014-10-10 10:09:53 +01:00
Doug Torrance 1604579aef wmmemload: Recognize GNU/kFreeBSD as a possible OS during configure. 2014-10-10 10:09:53 +01:00
Doug Torrance a473280ab9 wmmemload: Use sysctl to get memory usage in FreeBSD.
Previously, kvm_read was used to get the memory usage in FreeBSD.  However,
this has been deprecated in favor of sysctl.  This patch implements this
change.

Some work had previously been done in this direction, as could be seen in
the file src/mem_freebsd_sysctl.c.  Since this file is no longer needed, it
has been removed.

Additionally, some formatting has been done on the remaining older code for
a more consistent style.
2014-10-10 10:09:52 +01:00
Doug Torrance ba72863015 wmmemload: Fix FTBFS on the Hurd.
The following patch, by Svante Signell <svante.signell@gmail.com>, adds Hurd
support to wmmemload.

For more information, see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764356
2014-10-07 21:45:40 +01: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
Doug Torrance 539ef9f52c wmbattery: Consistent formatting in source.
Modified source files to minimize warnings from checkpatch.pl in Window Maker
source tree.
2014-10-05 19:18:50 +01:00
Doug Torrance 8e5aa5c7e4 wmbattery: Add -x option to run a command when battery is critical.
This is based on the patch by Cristoph Fritz submitted to Debian.  See
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543674
2014-10-05 19:18:49 +01:00
Doug Torrance 77dabcc884 wmbattery: Remove Debian-specific distribution and urgency from ChangeLog. 2014-10-05 19:18:49 +01:00
Doug Torrance 612921ae43 Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
Doug Torrance b141e5af28 wmmemload: Add to webpage database. 2014-10-04 10:37:02 +01:00
Doug Torrance 32ce80ea45 wmmemload: Fix version check for kernel 3.0.
Based on the patch from Debian by Guillermo Indalecio Fernandez
<guillermobox@gmail.com>:
http://sources.debian.net/src/wmmemload/0.1.6-8/debian/patches/04-kernel30.patch/
2014-10-04 08:13:16 +01:00
Doug Torrance 183f35d886 wmmemload: Fix errors in the manpage.
Several command-line options were incorrectly given in the manpage.

Based on the patch from Debian by Philipp Benner <philipp@debian.org>:
http://sources.debian.net/src/wmmemload/0.1.6-8/debian/patches/03-manual.patch/
2014-10-04 08:13:15 +01:00
Doug Torrance 892f62e139 wmmemload: Fix autotools warnings.
In particular, drop the arguments to AM_INIT_AUTOMAKE and merge CPPFLAGS into
AM_CPPFLAGS.
2014-10-04 08:13:15 +01:00
Doug Torrance b49510e3c0 wmmemload: Remove autotools-generated files. 2014-10-04 08:13:15 +01:00
Doug Torrance a15c2e2029 wmmemload: Add version 0.1.6 to repository.
Obtained from:
http://ftp.de.debian.org/debian/pool/main/w/wmmemload/wmmemload_0.1.6.orig.tar.gz
2014-10-04 08:13:15 +01:00
Doug Torrance 3ca8afb4af update-dockapps.pl: Avoid ambiguous argument error.
It is possible that, when running update-dockapps.pl, a filename may match a
revision, giving an error, e.g.,
fatal: ambiguous argument 'wmbattery': both revision and filename
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

This patch fixes this problem by inserting "--" where needed.
2014-09-21 23:03:59 +01:00
Doug Torrance a98548fdb6 wmbattery: Add to webpage database.
Based on https://web.archive.org/web/20121031045139/http://dockapps.windowmaker.org/file.php/id/34.
2014-09-21 10:11:55 +01:00
Doug Torrance 8b0428332e wmbattery: Remove config.h.in; automatically generated by autotools. 2014-09-21 10:11:55 +01:00
Doug Torrance 773552ebd8 wmbattery: Avoid uninitialized variable warning.
Move assignment of old_status until after cur_info is initialized in
wmbattery.c.
2014-09-21 10:11:55 +01:00
Doug Torrance 21c37ad492 wmbattery: Escape hyphen in manpage. 2014-09-21 10:11:55 +01:00
Doug Torrance ac49e66ad3 wmbattery: Remove unnecessary .gitattributes file.
The only attributes given were to debian/changelog, which no longer exists.
2014-09-21 10:11:55 +01:00
Doug Torrance 2baab6379d wmbattery: Add ChangeLog (renamed from debian/changelog).
Since wmbattery was previously a Debian native package, all the changes were
documented in debian/changelog.  Since the debian directory has been removed in
the upstream source, this file is being renamed to ChangeLog in the root
directory.
2014-09-21 10:11:55 +01:00
Doug Torrance 4fbaede435 wmbattery: Remove debian directory.
wmbattery was previously a Debian native package.  The debian directory should
no longer be included in the upstream source.
2014-09-21 10:11:55 +01:00
Doug Torrance 51380525e7 wmbattery: Add to repository.
Version 2.44.  Source obtained from:
http://ftp.de.debian.org/debian/pool/main/w/wmbattery/wmbattery_2.44.tar.gz
2014-09-21 10:11:55 +01:00
Doug Torrance 0e0d4944ac wmppp.app: Update support email address and webpage. 2014-09-15 11:30:07 +01:00
Doug Torrance 3f3a1f86ac wmppp.app: Use build flags.
Compile with CPPFLAGS and LDFLAGS and append, rather than overwrite, CFLAGS.

This enables the Debian package to be built with hardening options.  See
https://wiki.debian.org/Hardening.
2014-09-15 11:30:07 +01:00
Doug Torrance 33d2784d26 wmppp.app: Use rm -f for make clean
This patch prevents "make clean" from failing when the source tree is already
clean.
2014-09-15 11:30:07 +01:00
Doug Torrance ae3f75c09e wmppp.app: Display speed in K when too high.
When the download speed is too high, wmppp can't display it because it has
only 5 digit. The most significant digits are hidden !

This small patch display the speed in K when it is too high.

Based on the patch by jguiton <jguiton@free.fr>.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=328699.
2014-09-15 11:30:07 +01:00
Doug Torrance e81a5eb522 wmppp.app: Stampfile handling.
This patch adds support for "stampfile" in config file, as described in
manual page.

Based on the patch by Juan Cespedes <cespedes@debian.org>.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=97509.
2014-09-15 11:30:07 +01:00
Doug Torrance b47834fe0b wmppp.app: Allow ISDN devices.
Users of ISDN dialup lines (such as me) cannot use wmppp as shipped,
because it rejects to use any device except those beginning with `ppp'.

The patch attached solves this.

Based on the patch by Juan Cespedes <cespedes@debian.org>.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=97509.
2014-09-15 11:30:07 +01:00
Doug Torrance 9e02f15e59 wmppp.app: Rename system wide fixed options configuration file for consistency. 2014-09-15 11:30:06 +01:00
Doug Torrance 070bddbe13 wmppp.app: Add manpage (obtained from Debian package). 2014-09-15 11:30:06 +01:00
Doug Torrance a60b95bc13 wmppp.app: Remove trailing whitespace. 2014-09-15 11:30:06 +01:00
Doug Torrance bf86800181 wmppp.app: Remove getmodemspeed binary from source. 2014-09-15 11:30:06 +01:00
Doug Torrance de32f3e432 wmtime: Update README contact information; remove trailing whitespaces. 2014-08-27 15:31:05 +01:00
Doug Torrance 9356597905 wmtime: Update GPLv2 from http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 2014-08-27 15:31:05 +01:00
Doug Torrance af59d08e27 wmtime: Update FSF address. 2014-08-27 15:31:05 +01:00
Doug Torrance 0119083b0a wmtime: Use rm -f in make clean.
This patch uses the -f option for rm in make clean so that no error occurs when
make clean is run while no object or binary files exist.  (It also adds a
newline at the end of the Makefile thanks to emacs.)
2014-08-27 15:31:05 +01:00
Doug Torrance d6ef017638 wmtime: Remove unused variables.
This patch removes the unused variables nexttime and old_time_struct to avoid a
warning when -Wunused-but-set-variable is passed.
2014-08-27 15:31:05 +01:00
Doug Torrance 9005023ad2 dockapps.db.in: Update wmacpi webpage, add wmacpi-ng. 2014-08-22 20:29:03 +01:00
Doug Torrance c4d9e36efd update-dockapps.pl: Handle earlier versions of dockapps with alternate names.
Some dockapps earlier versions of dockapps, e.g. the recently added wmacpi-ng,
may have different names than the directories they appear in.  This patch adds
the ability to handle this situation by keeping track of the directory for
getting git information and skipping these dockapps when creating the "+date"
versions.
2014-08-22 20:29:03 +01:00
Doug Torrance db658544cf update-dockapps.pl: Correctly sort alpha, beta, and release candidate versions. 2014-08-22 20:29:03 +01:00
Doug Torrance a1cd5cadce wmacpi: Bump to version 2.2.
Five years is long enough to have a release candidate, I think.  :)
2014-08-19 18:13:58 +01:00
Doug Torrance ffbe9ddcee wmacpi: Update bug report email address. 2014-08-19 18:13:58 +01:00
Doug Torrance 72be1b46ab wmacpi: Restore FSF address and GPLv2.
The Free Software Foundation's address was updated in the wmacpi copyright
notice in commit 792a5d2 and the GNU General Public License version 2.0 text
was updated in commit 31c2845, but these were overwritten when later versions of
wmacpi were added to the repository.
2014-08-19 18:13:58 +01:00
Doug Torrance 5a909dc18b wmacpi: Remove VCS files. 2014-08-19 18:13:57 +01:00