Commit graph

881 commits

Author SHA1 Message Date
Doug Torrance 49ecb83c8d wmifs: Display long interface names.
Patch by Davi Leal <davileal@terra.es>.  First appeared in Debian package
version 1.3b1-10.  Revised by Matyas Koszik <koszik@debijan.lonyay.edu.hu> for
version 1.3b1-11.

For more information, see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=103083
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=126501
2014-10-23 08:03:31 +01:00
Doug Torrance 6e208d3f75 wmifs: Add lock mode.
Patch by Jorge García <Jorge.Garcia@uv.es>  First appeared in Debian package
version 1.3b1-7, revised in 1.3b1-8.

For more information, see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=26870
2014-10-23 08:03:31 +01:00
Doug Torrance 44d68e454e wmifs: Update Makefile.
Patch by Jordi Mallach <jordi@debian.org>.  First appeared in Debian package
version 1.3b1-6.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=27458 for more
information.
2014-10-23 08:03:31 +01:00
Doug Torrance d40bd41287 wmifs: Update WMIFS_VERSION constant; update Changes.
Patch by Jordi Mallach <jordi@debian.org>.  First appeared in Debian package
version 1.3b1-6.
2014-10-23 08:03:31 +01:00
Doug Torrance 68555562b4 wmifs: Prevent crash when too many devices.
Patch by Chris Hanson <cph@martigny.ai.mit.edu>.  First appeared in Debian
package 1.3b1-6.

From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=39922:
wmifs crashes with a cryptic X error message when there are more than
4 net devices.  This occurs for me because I install vmware, which
installs 4 network devices for its bridging hack.

The bug is a loop that fills a fixed-length array, but doesn't stop
when the array is full.  The fix is to add a conditional break to the
loop.  A patch appears below.

I made two additional changes: (1) increased the size of the array,
and (2) changed a name comparison to compare all of the characters of
the name, rather than just the visible characters, since there may be
multiple net devices with the same first 4 characters (vmware does
this, too).
2014-10-23 08:03:31 +01:00
Doug Torrance c2155050c7 wmifs: Prevent speedy scrolling problem.
Patch by Barak Pearlmutter <bap@cs.unm.edu>.  First appeared in Debian package
version 1.3b1-6.

From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=83003:
On my laptop, following a suspend, wmifs scrolls like nuts for a long
time.  The scroll speed looks the same as for a wmifs that is paused
for a while using C-z.

Here is a patch that prevents this speedy scrolling problem.  I also
got rid of a couple unnecessary compiler warnings.
2014-10-23 08:03:31 +01:00
Doug Torrance ac2050270e wmifs: Remove "heyho!" debugging message.
Patch by Ben Gertzfield <che@debian.org>.  First appeared in Debian package
version 1.3b1-5.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=42297 for
more information.
2014-10-23 08:03:31 +01:00
Doug Torrance 3bd48a06c5 wmifs: Add BUFFER_SIZE constant.
Patch by Stephen Pitts <smpitts@midsouth.rr.com>.  First appeared in Debian
package version 1.3b1-4.

From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=41746:

wmifs started crashing on startup on my system,
so I grabbed the source, added -g to the
Makefile, and ran it through gdb.
(Wow, the wonders of Open Source!!).

I found out that it has the hard-coded assumption
that a line in  /proc/net/dev will be no longer
than 128 bytes. Since my ethernet card has over
1 GB in traffic , my eth0 line was 129 bytes long.
I added a new constant, BUFFER_SIZE, that
determines the size of the buffer used for fgets.

Right now, its at 512 bytes, so that gives it
a large margin of error, until we have petabyte
Ethernet! The patch is attached.
2014-10-23 08:03:31 +01:00
Doug Torrance 3e9e54c1e4 wmifs: Add version 1.3b1 to repository.
Source obtained from:
http://ftp.de.debian.org/debian/pool/main/w/wmifs/wmifs_1.3b1.orig.tar.gz
2014-10-23 08:03:31 +01:00
Doug Torrance 2076268622 wmmemload: Release version 0.1.7. 2014-10-10 10:09:53 +01:00
Doug Torrance 93a0ca7f28 wmmemload: Add README. 2014-10-10 10:09:53 +01:00
Doug Torrance 8910d996db wmmemload: Update COPYING from http://www.gnu.org/licenses/gpl-2.0.txt. 2014-10-10 10:09:53 +01:00
Doug Torrance f0e07abf6a wmmemload: Update ChangeLog. 2014-10-10 10:09:53 +01:00
Doug Torrance 52b638616c wmmemload: Read memory correctly with Linux kernel version >= 3.14.
Beginning with Linux kernel version 3.14, a new MemAvailable line appears
in /proc/meminfo[1]. This caused wmmemload to look for Cached and Buffers one
line off of their correct location.  The problem was reported in [2].

[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749216
2014-10-10 10:09:53 +01:00
Doug Torrance ea2cf286ef wmmemload: Consistent formatting.
Format the source so as to minimize warnings from checkpatch.pl in the
Window Maker source tree.
2014-10-10 10:09:53 +01:00
Doug Torrance 917d454f0d wmmemload: Add suggested parentheses.
Avoid the following compiler warning:
mem_linux.c: In function ‘mem_init’:
mem_linux.c:52:40: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    if (version == 2 && patchlevel >= 5 && sublevel >= 1 || \
                                        ^
2014-10-10 10:09:53 +01:00
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