Commit graph

589 commits

Author SHA1 Message Date
Doug Torrance 2be3432290 wmfsm: Handle errors related to the HOME environment variable.
In particular, if HOME is undefined, then a segmentation fault will occur.
Also, if HOME is at least 245 characters, then a buffer overflow will occur.
We check for these conditions and exit with an error message instead.

Patch obtained from Debian package [1].

[1] https://sources.debian.net/src/wmfsm/0.35-1/debian/patches/handle_HOME_errors.patch/
2015-08-21 08:24:26 +01:00
Doug Torrance 6fb80be9e0 wmfsm: Lengthen the buffer for mount options to decrease the likelihood of a stack buffer overflow. 2015-08-21 08:24:26 +01:00
Doug Torrance fcee42b130 wmfsm: Move wmfsm_master.xpm from make clean to make distclean; otherwise make && make clean && make fails. 2015-08-21 08:24:26 +01:00
Doug Torrance 6defe46c0d wmfsm: Add note about libdockapp to README. 2015-08-21 08:24:26 +01:00
Doug Torrance eb6581aef1 wmitime: Bump to version 0.5. 2015-08-21 08:23:15 +01:00
Doug Torrance 984f1b7e1b wmitime: Add note about libdockapp to README. 2015-08-21 08:23:15 +01:00
Rodolfo García Peñas (kix) 6957f3efdc wmbiff: FTBFS with initialize_gnutls
The first argument for the function initialize_gnutls is an intptr_t
so wmbiff fails to build from source. This patch changes the current
int to intptr_t.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 11:40:20 +01:00
Rodolfo García Peñas (kix) 91fc6b9f12 wmitime uses libdockapp
wmitime uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) 5855afaf43 wmppp.app uses libdockapp
wmppp.app uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) 65a02b285b wmfsm uses libdockapp
wmfsm uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) 0af57fbbce wmsun uses libdockapp
wmsun uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) 5a3e03c192 wmifs uses libdockapp
wmifs uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) efd9fa24df wmckgmail uses libdockapp
wmckgmail uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) 9ebf8529e1 wmSMPmon uses libdockapp
wmSMPmon uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) 3d161ac5a2 wmtv uses libdockapp
wmtv uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) f30211d5b0 wmcpufreq uses libdockapp
wmcpufreq uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) aaca491556 wmsm uses libdockapp
wmsm uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) dc6672388f wmtz uses libdockapp
wmtz uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) 45a1f786ff wmtz FTBFS
This patch solves the FTBFS problems with wmtz:
- Default switch without code.
- Broken line.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) 204f7e50de wmkeys uses libdockapp
wmkeys uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) 4fad0812e8 wmkeys compilation bugs
This patch solves a bug and a warning:

- The dockapp wmkeys uses the getline function, that is the same
  function provided by stdio.h. This patch changes the function
  name to getline_wmkeys.
- The main function returns void, and should return integer. This
  patch includes the return 0 at the function end and it changes
  the function prototype.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00
Rodolfo García Peñas (kix) 1d92de9867 wmtime uses libdockapp
The dockapp wmtime uses the new version of libdockapp and do not use
libwmgeneral.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-15 09:52:19 +01:00
Rodolfo García Peñas (kix) f35a87796f wmmon uses libdockapp
The dockapp wmmon uses the new version of libdockapp and do not use
libwmgeneral.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-15 09:52:19 +01:00
Rodolfo García Peñas (kix) faae8b4f2f Include libwmgeneral in libdockapp
This patch includes the libwmgeneral library in the libdockapp
library.

The new library is now version 3 (previous was version 2) and it
includes the new include folder in $libdir/libdockapp.

The wmgeneral files were moved from the previous folder (libwmgeneral)
and the folder is now removed.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-15 09:52:19 +01:00
Rodolfo García Peñas (kix) 58f189b9ef wmtime uses wmgeneral
This patch show how to include the wmgeneral in a previous dockapps.

The change is easy, remove the wmgeneral folder an include the
-lwmgeneral in the libraries linking.
2015-08-13 19:35:17 +01:00
Rodolfo García Peñas (kix) 9b5756d5bd New library wmgeneral
This patch includes the library wmgeneral. The wmgeneral library
is used in a lot of dockapps:

$ find . -name wmgeneral
./wmkeys/wmgeneral
./wmtime/wmgeneral
./wmtz/wmgeneral
./wmsm.app/wmgeneral
./wmcpufreq/wmgeneral
./wmtv/src/wmgeneral
./wmSMPmon/wmgeneral
./wmckgmail/wmgeneral
./wmifs/wmgeneral
./wmbiff/wmgeneral
./wmfsm/wmgeneral
./wmsun/wmgeneral
./wmmon/wmgeneral
./wmitime/wmgeneral
./wmppp.app/wmgeneral

So, any change in the wmgeneral needs change a lot of dockapps.

I used the wmmon dockapp to move the wmgeneral and then I adjust the
wmmon to use the library. The library must be installed in the system
to build wmmon (wmmon uses the .h files) and is needed to run wmmon
(wmmon uses the libwmgeneral.so shared library).

I did not include any Changelog/README/... file to announce the change
in the libwmgeneral folder.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-13 19:33:19 +01:00
Doug Torrance 78109f686c Add wmforecast, wmstickynotes, and wmweather+ information for webpage.
These are the first non-hosted dockapps to appear.  (Note that wmstickynotes
and wmweather+ were previously removed.)
2015-06-15 23:13:09 +01:00
Doug Torrance d97e5f12f8 Document new "hosted" field in update-dockapps.pl. 2015-06-15 23:13:08 +01:00
Doug Torrance ae998e971f Add new "hosted" field to dockapps.db.in for all existing dockapps. 2015-06-15 23:13:08 +01:00
Doug Torrance 4438554a62 Add wmsun information for dockapps webpage. 2015-06-15 10:47:37 +01:00
Doug Torrance d0c4bbca70 wmsun: Bump to version 1.04. 2015-06-14 23:23:24 +01:00
Doug Torrance 238c627724 wmsun: Update includes using include-what-you-use. 2015-06-14 23:23:24 +01:00
Doug Torrance e1e6fef2c9 wmsun: Escape hyphens in manpage.
Based on the patch for Debian by Denis Briand <denis@narcan.fr> [1].

[1] http://sources.debian.net/src/wmsun/1.03%2B1-2/debian/patches/02_fix_hyphen-used-as-minus-sign.diff/
2015-06-14 23:23:24 +01:00
Doug Torrance a835dae3aa wmsun: Fix need to restart for Daylight Savings change.
Based on patch by Martin Stigge <martin@stigge.org> to fix Debian
bug #414489 [1].

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=414489
2015-06-14 23:23:24 +01:00
Doug Torrance debdd1b74e wmsun: Smart display refresh for fewer wake-ups and better responsiveness.
Patch by Peter Colberg <peterc@gmx.net> for Debian bug #446681 [1].

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446681
2015-06-14 23:23:24 +01:00
Doug Torrance c968d3f755 wmsun: Update contact information. 2015-06-14 23:23:24 +01:00
Doug Torrance 770d8b3754 wmsun: Add ChangeLog; changes split from wmsun.c. 2015-06-14 23:23:24 +01:00
Doug Torrance 0db93a85e0 wmsun: Rename executable from wmSun to wmsun. 2015-06-14 23:23:24 +01:00
Doug Torrance e46ebfcb20 wmgeneral, wmsun: Use threadsafe functions. 2015-06-14 23:23:24 +01:00
Doug Torrance d8688d16d9 wmsun: Add -12 command line option to use 12-hour clock. 2015-06-14 23:23:24 +01:00
Doug Torrance 2fe82fe86e wmsun: Reduce scope of variables. 2015-06-14 23:23:24 +01:00
Doug Torrance 35350143fa wmsun: Remove unused UTTohhmm function. 2015-06-14 23:23:24 +01:00
Doug Torrance c135b3a247 wmsun: Add support for wmgeneral -geometry command line option.
Also take the opportunity to fit -td option's help text on one line.
2015-06-14 23:23:24 +01:00
Doug Torrance f886377b0f wmsun: Remove trailing whitespace. 2015-06-14 23:23:24 +01:00
Doug Torrance b919e2ddad wmsun: Fix "overflow in implicit constant conversion" compiler warning. 2015-06-14 23:23:24 +01:00
Doug Torrance 11e5cd86da wmsun: Fix "unused parameter" compiler warnings. 2015-06-14 23:23:24 +01:00
Doug Torrance 4d5bfe0d0a wmsun: Add return types to functions. 2015-06-14 23:23:24 +01:00
Doug Torrance 02cb7fea1e wmsun: Remove unused variables. 2015-06-14 23:23:23 +01:00
Doug Torrance 608ca0f523 wmsun: Fix implicit definition warnings.
Add declaration for SunRise() in wmSun.c and move Interp() earlier in
SunRise.c.
2015-06-14 23:23:23 +01:00
Doug Torrance b5f8a9a4d5 wmsun: Update Makefile.
In particular,
- Remove INCDIR, DESTDIR, and LIBDIR definitions.
- Add PREFIX, BINDIR, MANDIR, and INSTALL definitions.
- Add -lm to LIBS.
- Drop COPTS, uname, and INCDIR and add CPPFLAGS and CFLAGS when compiling.
- Drop COPTS, SYSTEM, INCDIR, and LIBDIR and add LDFLAGS when linking.
- Use INSTALL when installing, create installation directories, use new
  BINDIR and MANDIR directories.
2015-06-14 23:23:23 +01:00