Commit graph

714 commits

Author SHA1 Message Date
Doug Torrance e8f6ae1cdd wmtop: Switch user variable from int to uid_t.
Fixes 'comparison between signed and unsigned integer expressions' compiler
warnings.
2016-02-08 19:17:21 +05:30
Doug Torrance c52108a87c wmtop: Remove wmgeneral directory and use libdockapp. 2016-02-08 19:17:21 +05:30
Doug Torrance 5586e092a7 wmtop: Escape minus signs and fix spelling errors in manpage.
Obtained from [1].

[1] https://sources.debian.net/src/wmtop/0.84-12/debian/patches/fix_manpage.patch/
2016-02-08 19:17:21 +05:30
Doug Torrance 229fe58553 wmtop: Fix incorrect memory usage.
Patch by Dwayne C. Litzenberger <dlitz@dlitz.net> to fix Debian bug #224732.

Obtained from [1].

[1] https://sources.debian.net/src/wmtop/0.84-12/debian/patches/fix_incorrect_memory_usage.patch/
2016-02-08 19:17:21 +05:30
Doug Torrance 1c9780cfbe wmtop: Add version 0.84 to repository.
Obtained from [1].

[1] http://http.debian.net/debian/pool/main/w/wmtop/wmtop_0.84.orig.tar.gz
2016-02-08 19:16:31 +05:30
Doug Torrance 8e7eca3c7c Add wmget information for dockapps webpage. 2016-02-08 19:15:14 +05:30
Doug Torrance e2236dc16b wmget: Bump to version 0.6.1. 2016-02-07 21:06:01 +05:30
Doug Torrance 1a9438fbe2 wmget: Remove docbook -> manpage conversion.
It was resulting in compilation errors:
   profzoom@cayke:~/src/dockapps/dockapps/wmget$ xsltproc --nonet
     wmget.refentry.xml
   I/O error : Attempt to load network entity http://docbook.sourceforge.net/
     release/xsl/1.62/manpages/docbook.xsl
   warning: failed to load external entity "http://docbook.sourceforge.net/
     release/xsl/1.62/manpages/docbook.xsl"
   error
   xsltParseStylesheetFile : cannot parse http://docbook.sourceforge.net/
     release/xsl/1.62/manpages/docbook.xsl
   compilation error: file wmget.refentry.xml line 19 element refentry
   xsltParseStylesheetProcess : document is not a stylesheet

We therefore remove the xml source file and in the future, we will edit the
troff file directly.

We also add the version number to the manpage via autoconf.
2016-02-07 21:06:01 +05:30
Doug Torrance f74b7b33ac wmget: Switch to autotools for build. 2016-02-07 21:06:01 +05:30
Doug Torrance 575318c566 wmget: Fix resource leaks.
In particular, fclose() all the files we fopen().  From Debian [1].

[1] http://sources.debian.net/src/wmget/0.6.0-5/debian/patches/
    fix_resource_leaks.patch/
2016-02-07 21:06:01 +05:30
Doug Torrance e64a950200 wmget: Fix -Wpointer-to-int-cast compiler warnings.
In particular, use intptr_t instead of int.  From the Debian patch [1].

[1] http://sources.debian.net/src/wmget/0.6.0-5/debian/patches/
    fix_-Wpointer-to-int-cast.patch/
2016-02-07 21:06:01 +05:30
Doug Torrance 6efd8b9b4a wmget: Add version 0.6.0 to repository.
Obtained from [1].

[1] http://amtrickey.net/download/wmget-0.6.0-src.tar.gz
2016-02-07 21:05:16 +05:30
Doug Torrance 9c71958173 wmtv: Remove define of VERSION in favor of version defined by autoconf. 2016-02-01 15:26:00 +05:30
Doug Torrance 4b470be962 wmtv: Bump to version 0.6.6. 2016-02-01 15:26:00 +05:30
Doug Torrance aec6b65e71 wmtv: Update and tidy up README. 2016-02-01 15:26:00 +05:30
Doug Torrance 19e8a20f6e wmtv: Add manpage from Debian.
From [1].

[1] http://sources.debian.net/src/wmtv/0.6.5-17/debian/wmtv.1/
2016-02-01 15:26:00 +05:30
Doug Torrance 6228ddd7ed wmtv: Switch to autotools for build.
Also rename CREDITS and CHANGES to AUTHORS and ChangeLog, resp.
2016-02-01 15:26:00 +05:30
Doug Torrance 04dd708888 wmtv: Restore non-libdockapp wmgeneral (for now).
Currently incompatible with shared library.  For example, it needs to
get some attributes of iconwin, which is not public.
2016-02-01 15:26:00 +05:30
Doug Torrance 00b14d1a67 wmtv: Replace obsolete include of xf86dga.h with Xxf86dga.h.
Fixes the following warning:
   In file included from src/wmtv.c:47:0:
   /usr/include/X11/extensions/xf86dga.h:9:2: warning: #warning "xf86dga.h is
     obsolete and may be removed in the future." [-Wcpp]
    #warning "xf86dga.h is obsolete and may be removed in the future."
     ^
   /usr/include/X11/extensions/xf86dga.h:10:2: warning: #warning "include
     <X11/extensions/Xxf86dga.h> instead." [-Wcpp]
    #warning "include <X11/extensions/Xxf86dga.h> instead."
     ^
2016-02-01 15:26:00 +05:30
Doug Torrance bd2d210e3f wmtv: Update video4linux include.
Patch by Daniel Polehn <dpolehn@gmail.com> [1].

[1] https://bugs.launchpad.net/ubuntu/+source/wmtv/+bug/756053
2016-02-01 15:26:00 +05:30
Doug Torrance 417aaef3a7 wmtv: Add new -c option to choose the video4linux device to use.
Patch by Nicolas Boullis <nboullis@debian.org>.  Introduced in Debian
package version 0.6.5-16.
2016-02-01 15:26:00 +05:30
Doug Torrance b831e66e9a wmtv: Fix frequency sent to external program.
Need to divide by 16 or 16000 depending on whether using kHz or MHz.

Patch by Nicolas Boullis <nboullis@debian.org> for Debian package version
0.6.5-14 or 15.  (Not mentioned in debian/changelog.)
2016-02-01 15:26:00 +05:30
Doug Torrance b2d150eb6d wmtv: Remaining changes from debian package versions 0.6.5-8 through 13.
(I couldn't find the patches separately in, e.g., a bug report.)

Patches by Nicolas Boullis <Boullis.Nicolas@libertysurf.fr>.

Corresponding entries from debian/changelog:

0.6.5-8
=======
  * Drop privileges to access files, and then regain privileges.
    (Closes: #120825)
  * A new user's configuration file is automatically created when needed.
  * Cleaned up a few possible buffer overflows.

0.6.5-9
=======
  * The program does not need any more to be setuid root.
    (Closes: #120832)

0.6.5-10
========
  * Trying to change channel while the TV is off does nothing, and does
    not segfault anymore.
  * Corrected strange behavior when the mouse was moved out of a pressed
    button.

0.6.5-11
========
  * Corrected a bug introduced in version 0.6.5-9, causing the program to
    segfault while reverting from fullscreen back to normal mode.
    (Closes: #128409)

0.6.5-12
========
  * Catch SIGCHLD signals to remove zombies. (Closes: #129435)

0.6.5-13
========
  * Added missing #include in wmtv.c.
  * Automatically restarts the TV when the external application finishes.
  * In fullscreen mode, the left and right arrow keys now behave as
    specified in the README file and in the manpage. (Closes: #133301)
  * Added the ability to pass some parameters to the external
    application.
2016-02-01 15:26:00 +05:30
Doug Torrance 2090a44629 wmtv: Do not shorten user config file.
Patch by Nicolas Boullis <Boullis.Nicolas@libertysurf.fr>.  From [1]:

   From: Nicolas Boullis <Boullis.Nicolas@libertysurf.fr>
   Subject: wmtv: shortens user's configuration file
   Date: Sun, 18 Nov 2001 02:38:00 +0100

   Hello !

   When wmtv writes it configuration back to the user's configuration file
   (after the user tried to fine-tune the channels) it forgets the last
   channel. And then... one can't start it any more without correcting the
   configuration file first.

   The patch included makes wmtv write all the channels back.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=120035
2016-02-01 15:26:00 +05:30
Doug Torrance bfc1c00d8e wmtv: Start without user config file.
Patch by Nicolas Boullis <Boullis.Nicolas@libertysurf.fr>.  From [1]:

   From: Nicolas Boullis <Boullis.Nicolas@libertysurf.fr>
   Subject: wmtv: does not start without user's ~/.wmtvrc
   Date: Sun, 18 Nov 2001 00:17:26 +0100

   Hi !

   The current version of wmtv does not start if the user does not have a
   ~/.wmtvrc configuration file, while one could expect it to work with the
   system wide configuration file /etc/wmtvrc.

   This patch allows wmtv to start with the system wide configuration file
   alone.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=120024
2016-02-01 15:26:00 +05:30
Doug Torrance f419f26a17 wmtv: Add some French channels.
Patch by Nicolas Boullis <Boullis.Nicolas@libertysurf.fr>.  From [1]:

   From: Nicolas Boullis <Boullis.Nicolas@libertysurf.fr>
   Subject: wmtv: some french channels are not available
   Date: Fri, 16 Nov 2001 01:33:13 +0100

   wmtv does not currently support a few channels which are used in France.
   These channels are called K01-K10, KB-KQ and H01-H19.

   The patch included defines a new "freqnorm" called "secam-france", and
   the new channels.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=119767
2016-02-01 15:26:00 +05:30
Doug Torrance 74bc5a7660 wmtv: Fix security hole.
Patch by Nicolas Boullis <Boullis.Nicolas@libertysurf.fr>.  From [1]:

   From: Nicolas Boullis <Boullis.Nicolas@libertysurf.fr>
   To: Debian Bug Tracking System <submit@bugs.debian.org>
   Subject: wmtv: dangerous suid root
   Date: Thu, 08 Nov 2001 20:07:52 +0100

   Hi !
   I think there is a huge security hole with wmtv and, when wmtv is installed,
   anyone can easily get a root account. Here is what I have in my terminal:
   (everytime I launch wmtv, I double-clicked in the tv subwindow to call the
   external program)

   ----------------------------------------------------------------------
   Tintin:~> wmtv -e whoami
   root
   Tintin:~> cat > crack_root.sh
   #!/bin/sh
   cp /bin/sh /tmp
   chmod u+s /tmp/sh
   Tintin:~> chmod +x crack_root.sh
   Tintin:~> wmtv -e ~/crack_root.sh
   Tintin:~> ll /tmp/sh
   -rwsr-xr-x    1 root     users      407356 Nov  8 19:25 /tmp/sh*
   ----------------------------------------------------------------------

   I tried to make wmtv non-suid root, and... sometimes it works (despite an
   error message), sometimes it does not...

   ----------------------------------------------------------------------
   Tintin:~> ll /usr/bin/X11/wmtv
   -rwxr-xr-x    1 root     root        62588 Jul 31 01:55 /usr/bin/X11/wmtv*
   Tintin:~> wmtv
   ioctl VIDIOCSFBUF: Operation not permitted

   Tintin:~> wmtv
   ioctl VIDIOCSFBUF: Operation not permitted
   wmtv: no physical frame buffer access
   ----------------------------------------------------------------------

   Hence, I guess you should either correct wmtv so that it always work without
   being suid root, or make wmtv lose its privileges before it runs an external
   program.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=118778
2016-02-01 15:26:00 +05:30
Doug Torrance 199e0065fe wmtv: Fix calculation of bytes per line.
Patch by Yann Vernier <yann@donkey.dyndns.org>.  From [1]:

   From: Malcolm Parsons <malcolm@ivywell.screaming.net>
   Subject: wmtv: incorrectly calculates bytes per line
   Date: Mon, 09 Apr 2001 21:15:52 +0100

   wmtv does not put the tv display in its window on my second head.
   According to bttv, wmtv is telling bttv that the display is:

   Display at ea800000 is 800 by 600, bytedepth 2, bpl 1600

   If I use xawtv, it correctly sets the bpl value:

   Display at ea800000 is 800 by 600, bytedepth 2, bpl 1664

   wmtv is probably incorrectly assuming width * bytedepth = bpl.

   From: Yann Vernier <yann@donkey.dyndns.org>
   Subject: wmtv: incorrectly calculates bytes per line
   Date: Sun, 15 Jul 2001 14:21:56 +0200

   Found the problem, at least this fixes it for me at 1600x1200.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93439
2016-02-01 15:26:00 +05:30
Doug Torrance 61e2c5f228 wmtv: Config file handling.
Patch by Yann Vernier <yann@algonet.se>.  From [1]:

   wmtv failed to read my .wmtvrc (hand written) correctly, I tracked it
   down to incorrect memory management (sizeof() instead of strlen()).
   The code was so bad that I chose to rewrite it to a simpler version,
   patch below.

   Other bugs fixed include some of the memory leaks (which are quite
   numerous) and truncating the .wmtvrc when writing to it.

   Cosmetic changes include keeping comments in .wmtvrc, C++-style
   comments changed to C style, and numbering channels from 1.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=105325
2016-02-01 15:26:00 +05:30
Doug Torrance 0703ba0b82 wmbiff: Add missing command line options to documentation.
Closes Debian bug #770117 [1].

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770117
2015-10-26 09:44:23 -04:00
Doug Torrance db83d64e1c libdockapp: Bump to version 0.7.2. 2015-10-21 09:07:01 -04:00
Doug Torrance 8f98cec497 libdockapp: Clean generated file dockapp.pc.
Based on the Debian patch [1].

[1] https://sources.debian.net/src/libdockapp/1:0.7.1-1/debian/patches/clean_dockapp.pc.patch/
2015-10-21 09:07:01 -04:00
Doug Torrance ee44bd28c4 libdockapp: Remove AC_PATH_XTRA macro from configure.ac
We already check for libraries with the PKG_CHECK_MODULES macros.  This also
allows the Debian package to drop the Build-Depend on libice-dev.

Based on the Debian patch [1].

[1] https://sources.debian.net/src/libdockapp/1:0.7.1-1/debian/patches/remove_AC_PATH_XTRA.diff/
2015-10-21 09:07:01 -04:00
Doug Torrance 79685780ff libdockapp: Recompress fonts without timestamp.
This fixes the package-contains-timestamped-gzip warning given by Lintian
for the Debian package.  (This warning is really unnecessary, as its purpose
it to check for reproducible builds and the fonts are not compressed at
build time, but I see no harm in removing these timestamps.)
2015-10-21 09:07:01 -04:00
Doug Torrance 1ba41abe0c wmacpi: Update header file location.
In libdockapp 0.7.0, dockapp.h was moved to /usr/include/libdockapp.
2015-10-21 09:07:01 -04:00
Doug Torrance e5cf1b958e wmmenu: Update header file location.
In libdockapp 0.7.0, dockapp.h was moved to /usr/include/libdockapp.
2015-10-21 09:07:01 -04:00
Doug Torrance c11470a0b7 libdockapp: Bump to version 0.7.1. 2015-10-18 00:20:33 -04:00
Doug Torrance 54e081bcc4 libdockapp: Update update-changelog target in Makefile.
Only grab libdockapp commits.
2015-10-18 00:20:33 -04:00
Doug Torrance fc16f5d425 libdockapp: Update header location in examples. 2015-10-18 00:20:33 -04:00
Shining 796427153b libdockapp: Simplify instructions to generate a ./configure script.
Based on suggestions by Alexey Frolov and BALATON Zoltan.
2015-10-09 17:43:38 -04:00
Shining 582393e1ba libdockapp: Info about generating 'configure' script in README
In the README it is said to run ./configure but there's no such script in the
tarball. I wrote instructions to generate a ./configure with libtool and autotools.
2015-10-05 17:38:14 -04:00
Doug Torrance 4cbed06642 wmclock: Bump to version 1.0.16. 2015-09-24 10:16:48 +01:00
Doug Torrance c2462c2e7b wmclock: Get manpage date from ChangeLog instead of manually updating. 2015-09-24 10:16:48 +01:00
Doug Torrance 81952635d5 wmclock: Use defines to get language xpms instead of creating symlinks. 2015-09-24 10:16:48 +01:00
Doug Torrance 1332c07b8f wmclock: Fix "comparison between signed and unsigned integer" warnings. 2015-09-24 10:16:48 +01:00
Johannes Holmberg 5ca72823d7 Allow sound api to be specified in the config file 2015-09-17 03:23:07 +01:00
Johannes Holmberg 7678102e3b Better handling of configuration defaults for the new settings 2015-09-17 03:23:07 +01:00
Johannes Holmberg f28188a36b Improve monitor selection code
- Default to monitor 0 instead of failing if a crazy number is given
- Allow monitor to be specified by osdmonitor in the config file
2015-09-17 03:23:07 +01:00
Johannes Holmberg 3934bbe02f Add a command line option for choosing a monitor for osd display 2015-09-17 03:23:07 +01:00
Johannes Holmberg 5c08e40e12 Draw osd only on the primary monitor if randr extensions are available 2015-09-17 03:23:07 +01:00