Commit graph

1143 commits

Author SHA1 Message Date
Doug Torrance 4ece1f4ee8 wmfsm: Rename configure.in to configure.ac. 2015-01-22 11:12:10 +00:00
Doug Torrance 8f6c8d13a6 wmfsm: Remove autotools-generated files. 2015-01-22 11:12:10 +00:00
Doug Torrance 34d838198a wmfsm: Add version 0.34 to repository.
Obtained from [1].

[1] http://snapshot.debian.org/archive/debian/20050312T000000Z/pool/main/w/wmfsm/wmfsm_0.34.orig.tar.gz
2015-01-22 11:11:18 +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
Carlos R. Mafra 8345c9ca76 wmnet: increase polling delay to 0.1 sec and maxrate to 120kb 2015-01-11 21:31:40 +00:00
Carlos R. Mafra 49944a01ae wmnet: simplify updateStats_dev() a bit
There is no need to have a variable holding the interface name and
doing the exercise of stripping the trailing colon. It is enough
to just compare the line to check whether it contains the device
name. And only if it does we sscanf() its contents.
2015-01-11 21:04:02 +00:00
Carlos R. Mafra cd4947f139 wmnet: Cope with interface name longer than 6 characters
After a recent change in the kernel (their commit 6e094bd) my
wireless interface name is 8 characters long, wlp3s0b1. But
the wmnet code to read the received bytes

	totalbytes_in = strtoul(&buffer[7], NULL, 10);

assumed that the interface name in /proc/net/dev would be 6 characters
long (and would start reading at position 7).

In the linux kernel mailing list I reported the regression and none
other than Al Viro replied,

> I am not sure if 'wmnet' could do this better (any suggestions?),

*snort*

well, yes - it's called scanf().  And if one is really, really nervous
about the overhead of <gasp> parsing a bunch of integers (as if fopen/
fgets/fclose alone won't cost enough to make constantly calling that
sucker a bad idea), just use ptr + <something> - 6 instead of
&buffer[<something>] in there.  That thing has just found where the
colon was (and replaced it with NUL), so dealing with "the first field
turned out to be too long and shifted everything past it" isn't hard.

******

I also took the oportunity to remove the unused variables diffpackets_{in,out}
2015-01-11 13:16:40 +00:00
Doug Torrance e3c0e9452b Add wmcalc information for dockapps webpage. 2015-01-10 20:45:59 +00:00
Doug Torrance 050001c0f1 wmcalc: Bump to version 0.5. 2015-01-10 19:02:57 +00:00
Doug Torrance 773c07acd7 wmcalc: Remove C++ style comments. 2015-01-10 19:02:57 +00:00
Doug Torrance c3bef2f247 wmcalc: Fix -Woverflow compiler warnings. 2015-01-10 19:02:57 +00:00
Doug Torrance 544c36b79c wmcalc: Allow installation without root access.
Drop "-p -o root -g root" from the INSTALL_* Makefile variables and honor
the CONF Makefile variable for accessing the global config file instead of
hardcoding it as /etc.

These changes allow users without root access to install wmcalc in their home
directory.
2015-01-10 19:02:57 +00:00
Doug Torrance a43ce43092 wmcalc: Update README.
In particular,
- Update maintainer.
- Remove version-specific information.
- Update installation instructions.
- Add previously released version 0.4 to changelog.
2015-01-10 19:02:57 +00:00
Doug Torrance 0ac867513a wmcalc: Update COPYING from http://www.gnu.org/licenses/gpl-2.0.txt. 2015-01-10 19:02:57 +00:00
Doug Torrance 3803ee4cd5 wmcalc: Remove redundant .wmcalc*; essentially the same as wmcalc.conf. 2015-01-10 19:02:57 +00:00
Doug Torrance 6b282a4b4d wmcalc: Remove trailing whitespace. 2015-01-10 19:02:57 +00:00
Doug Torrance 587fe05cc1 wmcalc: Fix -Wunused-result compiler warning. 2015-01-10 19:02:57 +00:00
Doug Torrance d5d266d6d1 wmcalc: Fix -Warray-bounds compiler warning. 2015-01-10 19:02:57 +00:00
Doug Torrance 304860b38d wmcalc: Fix -Wunused-but-set-variable compiler warnings. 2015-01-10 19:02:57 +00:00
Doug Torrance 9d9d2500d7 wmcalc: Switch #include <XKBlib.h> to #include <X11/XKBlib.h>.
Otherwise, wmcalc fails to build.
2015-01-10 19:02:57 +00:00
Doug Torrance 550de54682 wmcalc: Update Makefile.
In particular,
- Drop INCLUDES and LIBINC variables; referenced deprecated X11R6 directories
  and INCLUDES unnecessarily included the default path.
- Switch hard-coded gcc for CC variable.
- Move hard-coded -02 and -Wall flags to new CFLAGS variable.
- Switch ${} to $() for consistency.
- Add new INSTALL_DIR variable for creating installation directories.
- Respect CPPFLAGS and LDFLAGS.
2015-01-10 19:02:57 +00:00
Doug Torrance 2f0aab0f8f wmcalc: Add manpage from Debian.
Obtained from:
http://snapshot.debian.org/package/wmcalc/0.3-7/

Additionally, add rule to Makefile to install new manpage.
2015-01-10 19:02:57 +00:00
Doug Torrance a50001bbe9 wmcalc: Add version 0.4 to repository.
Source obtained from:
ftp://ftp.afterstep.org/stable/rpms/misc-tarballs/wmcalc-0.4.tar.gz
2015-01-10 19:02:57 +00:00
Doug Torrance 4b9666e97d wmtime: Bump to version 1.2. 2015-01-03 22:31:44 +00:00
Doug Torrance 59e8a712dc wmtime: Remove unnecessary references to current version number.
To simplify maintenace, all references to the current version number outside
of the appropriate macro in in wmtime.c have been removed.  Note that this
macro had been WMMON_VERSION, likely a copy/paste error, and has been
renamed to WMTIME_VERSION.
2015-01-03 22:31:44 +00:00
Doug Torrance ea19c5c3ca wmtime: Add -l option to specify locale.
Based on a similar patch for wmitime [1].

[1] cc801880a5
2015-01-03 22:31:44 +00:00
Doug Torrance ad27c973c1 wmtime: Update Makefile.
In particular,
- Remove reference to deprecated X11R6 directory.
- Honor PREFIX and INSTALL variables.
- Change definition of CFLAGS from += to =; perhaps users don't want to
  append -O2. Also move -Wall to CFLAGS.
- Use C*FLAGS only when compiling and LDFLAGS only when linking.
- Create directories if needed during install.
- Install manpage.
2015-01-03 22:31:44 +00:00
Doug Torrance 937d1d280a wmtime: Move source files to top directory.
Ease the build process by skipping the initial "cd wmtime" step.  Document
this in INSTALL.
2015-01-03 22:31:44 +00:00
Doug Torrance 8b51ce7f1b wmtime: Remove unnecessary Imakefile.
Also update INSTALL to remove reference to it.
2015-01-03 22:31:44 +00:00
Doug Torrance 6815d16aa3 wmitime: Bump to version 0.4. 2014-12-20 09:55:06 +00:00
Doug Torrance b310c99a4d wmitime: Do not include or compile unused wmgeneral files. 2014-12-20 09:55:06 +00:00
Doug Torrance 65ecf5568e wmitime: Remove wmitime-master-led.xpm; unused duplicate file. 2014-12-20 09:55:06 +00:00
Doug Torrance c4592ca321 wmitime: Add desktop file.
Adapted from Debian [1].

[1] http://sources.debian.net/src/wmitime/0.3%2B20120605-1/debian/wmitime.desktop/
2014-12-20 09:55:06 +00:00
Doug Torrance 2d363c7607 wmitime: Add manpage.
Adapted from Debian [1].

[1] http://sources.debian.net/src/wmitime/0.3%2B20120605-1/debian/wmitime.1/
2014-12-20 09:55:06 +00:00
Doug Torrance 5cbe821b8c wmitime: Update contact information. 2014-12-20 09:55:06 +00:00
Doug Torrance d5bf493727 wmitime: Remove references to config file in source; nonexistent feature. 2014-12-20 09:55:06 +00:00
Doug Torrance fe61e81905 wmitime: Remove C++ style comments. 2014-12-20 09:55:06 +00:00
Doug Torrance cc801880a5 wmitime: Improve locale support.
Previously, wmitime only had support for English, French, and (in Debian
only) Hungarian.  In addition, the choice was made at compile time.

This patch adds run-time support for any language using the Latin alphabet.
The locale is determined by the user's environment or may be specified on
the command line with the "-l" option.  Note that users whose environment
specifies a non-Latin locale may wish to use, e.g., "-l C", as otherwise
no date will appear.

Note that, for simplicity, the month and day are now displayed as "01 JAN"
as opposed to "JAN 01".  (Previously, the former format was used for English
and the latter for French.)
2014-12-20 09:55:06 +00:00
Doug Torrance 0fbe3d839a wmitime: Update Makefile.
In particular,
- Remove reference to deprecated X11R6 directory.
- Replace FLAGS variable with CFLAGS, CPPFLAGS, and LDFLAGS.
- Honor CC, PREFIX, and DESTDIR variables.
- Use INSTALL instead of cp for installation.
- Remove redundant -lXext flag.
- Move contents of wmitime directory to top directory to ease the building
  process.

Inspired in part by the Debian patches [1,2].

[1] http://sources.debian.net/src/wmitime/0.3%2B20120605-1/debian/patches/20-makefile-CC.patch/
[2] http://sources.debian.net/src/wmitime/0.3%2B20120605-1/debian/patches/make-install.patch/
2014-12-20 09:55:06 +00:00
Doug Torrance 7bc4cffcc7 wmitime: Allow -display option with no argument
Previously, if a user ran wmitime with the -display option and no argument,
a segmentation fault would occur. Print a warning instead.

Patch from Debian [1] to fix bug #716466 [2].

[1] http://sources.debian.net/src/wmitime/0.3%2B20120605-1/debian/patches/allow_display_with_no_args.patch/
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=716466
2014-12-20 09:55:06 +00:00
Doug Torrance cd2840a93c Add wmcdplay information for dockapps webpage. 2014-12-18 19:57:34 +00:00
Doug Torrance 15ce9df18c wmcdplay: Bump to version 1.1. 2014-12-18 18:43:10 +00:00
Doug Torrance 8489a703fd wmcdplay: Create ChangeLog.
Previously, release history was kept in README.  This has been separated out
into a new file to avoid a "no-upstream-changelog" Lintian warning in the
Debian package.
2014-12-18 18:43:10 +00:00
Doug Torrance bcc28cb972 wmcdplay: Add manpage.
Obtained, with slight modification, from Debian [1].

[1] http://sources.debian.net/src/wmcdplay/1.0beta1-13/debian/wmcdplay.1x/
2014-12-18 18:43:10 +00:00
Doug Torrance 8ee63ea3db wmcdplay: Update installation documentation. 2014-12-18 18:43:10 +00:00
Doug Torrance 9e71c28003 wmcdplay: Centralize version number.
Previously, the wmcdplay version number was found in numerous places.  To ease
future releases, it now appears only in configure.ac.
2014-12-18 18:43:10 +00:00
Doug Torrance f59aef482d wmcdplay: Fix -Wsign-compare compiler warnings. 2014-12-18 18:43:10 +00:00
Doug Torrance 0716c46281 wmcdplay: Fix -Wunused-result compiler warnings.
In particular, fix warnings of the form "warning: ignoring return value of
‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result" by
checking return value of fgets.
2014-12-18 18:43:10 +00:00