debian/0000755000000000000000000000000012171033340007160 5ustar debian/source/0000755000000000000000000000000012171033340010460 5ustar debian/source/format0000644000000000000000000000001412033247313011672 0ustar 3.0 (quilt) debian/control0000644000000000000000000000156712171014333010575 0ustar Source: w9wm Section: x11 Priority: optional Maintainer: Mats Erik Andersson Build-Depends: debhelper (>= 8), xutils-dev, libx11-dev, libxext-dev, x11proto-core-dev Standards-Version: 3.9.4 Homepage: http://www.drieu.org/code/w9wm.en.html Vcs-Svn: svn://anonscm.debian.org/collab-maint/deb-maint/w9wm/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/collab-maint/deb-maint/w9wm/trunk/ Package: w9wm Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Provides: x-window-manager Description: enhanced window manager based on 9wm w9wm is a small window manager. It can be used to imitate the appearance expected from a plan9 conforming desktop. . It shares most of its appearance with the window manager 9wm, from which it descends. It provides some additional features such as support for virtual screens as well as keyboard bindings. debian/compat0000644000000000000000000000000212033261512010357 0ustar 8 debian/w9wm.install0000644000000000000000000000005012033247313011452 0ustar debian/w9wm.desktop usr/share/xsessions debian/NEWS0000644000000000000000000000055512033272511007666 0ustar w9wm (0.4.2-8) unstable; urgency=low Menu items are no longer restricted to consist of a single program name. The first printable substring is searched for in PATH. In addition, the number of usable menu entries is now 32, as was always stated in the manual page. -- Mats Erik Andersson Thu, 04 Oct 2012 11:34:34 +0200 debian/w9wm.docs0000644000000000000000000000002212033247313010733 0ustar README README.9wm debian/rules0000755000000000000000000000065512033267631010257 0ustar #!/usr/bin/make -f CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) CFLAGS = $(shell dpkg-buildflags --get CFLAGS) LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) export CPPFLAGS CFLAGS LDFLAGS # imake is troublesome. # CPPFLAGS is passed along, # but neither CFLAGS, nor LDFLAGS. # LOCAL_LDFLAGS = $(LDFLAGS) MODULE_CFLAGS = $(CFLAGS) export LOCAL_LDFLAGS MODULE_CFLAGS %: dh $@ override_dh_auto_configure: xmkmf -a debian/patches/0000755000000000000000000000000012171033340010607 5ustar debian/patches/series0000644000000000000000000000006212033253353012027 0ustar 10_compiler_warnings.diff 20_menu_management.diff debian/patches/20_menu_management.diff0000644000000000000000000000475612033322701015115 0ustar Description: Audit of menu subsystem. There was an off-by-one error in case the available menu allocation was exhausted at 16 entries. . A macro 9WM_MENU_ITEMS is introduced with value 32 for the number of possible entries. This is in accordance with the manual page, but raises the value actually encoded in source. . When attempting to execute a menu item, code is introduced to extract the name of the chosen executable and to separate arguments. Then the result is passed on to execvp(). Thus it is now possible to pass arguments in menu entries and to keep them easily visible. Author: Mats Erik Andersson Forwarded: no Last-Update: 2012-10-04 diff -Naurp w9wm-0.4.2.debian/9wm.c w9wm-0.4.2/9wm.c --- w9wm-0.4.2.debian/9wm.c +++ w9wm-0.4.2/9wm.c @@ -47,7 +47,7 @@ int signalled; Bool click_passes = 0; Bool use_keys = 1; int numvirtuals = 4; -char * progsnames[16]; +char * progsnames[NUMMENUITEMS + 1]; Atom exit_9wm; Atom restart_9wm; @@ -912,7 +912,7 @@ parseprogsfile () return; } - for (i = 0; i<16 && ! feof(file); i++) + for (i = 0; i < NUMMENUITEMS && ! feof(file); i++) { buffer = (char *) malloc (1024); if (! fgets(buffer, 1024, file)) diff -Naurp w9wm-0.4.2.debian/dat.h w9wm-0.4.2/dat.h --- w9wm-0.4.2.debian/dat.h +++ w9wm-0.4.2/dat.h @@ -4,6 +4,7 @@ #define MAXHIDDEN 32 #define B3FIXED 5 #define NUMVIRTUALS 12 +#define NUMMENUITEMS 32 #define AllButtonMask (Button1Mask|Button2Mask|Button3Mask \ |Button4Mask|Button5Mask) diff -Naurp w9wm-0.4.2.debian/menu.c w9wm-0.4.2/menu.c --- w9wm-0.4.2.debian/menu.c +++ w9wm-0.4.2/menu.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include @@ -101,8 +102,28 @@ XButtonEvent *e; { if (fork() == 0) { if (fork() == 0) { +#define NUMARGS 16 + char *p, *args[NUMARGS + 2]; + int pos = 0; + + if (!(args[pos] = strdup(progsnames[n]))) + exit(1); /* Fail silently. */ + + while ((p = strchr(args[pos], ' '))) { + *p++ = '\0'; + while (*p == ' ') + p++; + if (*p == '\0' || *p == '#') + break; + + args[++pos] = p; + if (pos == NUMARGS) + break; + } + args[++pos] = NULL; + close(ConnectionNumber(dpy)); - execlp(progsnames[n], progsnames[n], (char *) NULL); + execvp(args[0], args); exit(1); } exit(0); debian/patches/10_compiler_warnings.diff0000644000000000000000000000427412033247313015476 0ustar Description: Prevent compiler warnings. Missing inclusions of stdlib.h and string.h, needed for undeclared prototypes of exit() and strcmp(). . Incorrect sentinel marker for execlp(). Forwarded: no Author: Mats Erik Andersson Last-Update: 2009-12-31 diff -Naurp w9wm-0.4.2.orig/error.c w9wm-0.4.2/error.c --- w9wm-0.4.2.orig/error.c +++ w9wm-0.4.2/error.c @@ -1,5 +1,6 @@ /* Copyright (c) 1994 David Hogan, see README for licence details */ #include +#include #include #include #include diff -Naurp w9wm-0.4.2.orig/manage.c w9wm-0.4.2/manage.c --- w9wm-0.4.2.orig/manage.c +++ w9wm-0.4.2/manage.c @@ -1,6 +1,7 @@ /* Copyright (c) 1994 David Hogan, 2000 Benjamin Drieu, see README for licence details */ #include #include +#include #include #include #include diff -Naurp w9wm-0.4.2.orig/menu.c w9wm-0.4.2/menu.c --- w9wm-0.4.2.orig/menu.c +++ w9wm-0.4.2/menu.c @@ -1,7 +1,7 @@ /* Copyright (c) 1994 David Hogan, 2000 Benjamin Drieu, see README for licence details */ #include #include -#include +#include #include #include #include @@ -102,7 +102,7 @@ XButtonEvent *e; if (fork() == 0) { if (fork() == 0) { close(ConnectionNumber(dpy)); - execlp(progsnames[n], progsnames[n], 0); + execlp(progsnames[n], progsnames[n], (char *) NULL); exit(1); } exit(0); @@ -261,12 +261,12 @@ spawn() if (fork() == 0) { close(ConnectionNumber(dpy)); if (termprog != NULL) { - execl(shell, shell, "-c", termprog, 0); + execl(shell, shell, "-c", termprog, (char *) NULL); fprintf(stderr, "9wm: exec %s", shell); perror(" failed"); } - execlp("xterm", "xterm", "-ut", 0); - execlp("9term", "9term", "-9wm", 0); + execlp("xterm", "xterm", "-ut", (char *) NULL); + execlp("9term", "9term", "-9wm", (char *) NULL); perror("9wm: exec 9term/xterm failed"); exit(1); } debian/watch0000644000000000000000000000012012033247313010206 0ustar version=3 http://www.drieu.org/code/w9wm/src/w9wm-(.*)\.tar\.gz debian uupdate debian/copyright0000644000000000000000000000276212171016047011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: w9wm Upstream-Contact: Benjamin Drieu Source: http://www.drieu.org/code/w9wm/src/ Files: * Copyright: 1994, David Hogan 2000, Benjamin Drieu License: other 9wm is free software, and is Copyright (c) 1994 by David Hogan. Permission is granted to all sentient beings to use this software, to make copies of it, and to distribute those copies, provided that: . (1) the copyright and licence notices are left intact (2) the recipients are aware that it is free software (3) any unapproved changes in functionality are either (i) only distributed as patches or (ii) distributed as a new program which is not called 9wm and whose documentation gives credit where it is due (4) the author is not held responsible for any defects or shortcomings in the software, or damages caused by it. . There is no warranty for this software. Have a nice day. Comment: License inherited verbatim from 9wm. Files: debian/* Copyright: 2000, Benjamin Drieu 2009, Mats Erik Andersson License: GPL-2+ On Debian GNU/Linux systems, the full text of the GNU General Public Licenses can be found in the file '/usr/share/common-licenses/GPL-2'. Comment: This package was debianized by Benjamin Drieu bdrieu@april.org on Tue, 5 Dec 2000 23:15:08 +0100. debian/w9wm.desktop0000644000000000000000000000036112171032765011470 0ustar [Desktop Entry] Name=w9wm Exec=/usr/bin/w9wm Terminal=false TryExec=/usr/bin/w9wm Type=Application Comment=Light window manager based on 9wm Comment[fr]=Un gestionnaire de fenêtres léger basé sur 9wm [Window Manager] SessionManaged=true debian/menu0000644000000000000000000000014512033247313010053 0ustar ?package(w9wm):needs="wm" \ section="Window Managers" \ title="w9wm" \ command="/usr/bin/w9wm" debian/changelog0000644000000000000000000000725612171033164011050 0ustar w9wm (0.4.2-8) unstable; urgency=low * Standards version 3.9.4. + debian/control: Updated. + debian/copyright: Updated header format. Missing "Files". * debian/control: Make Vcs-* point to contemporary Alioth URL. * debian/w9wm.desktop: Minor corrections on standard. * Hardening: + debian/rules: Use dpkg-buildflags, adapted to imake. * debian/control: Build depends on debhelper (>= 8). * debian/compat: Update. * Allow menu items with inline arguments. + debian/patches/20_menu_management.diff: New file. + debian/NEWS: New file. -- Mats Erik Andersson Mon, 15 Jul 2013 19:49:53 +0200 w9wm (0.4.2-7) unstable; urgency=low * debian/control: Add Vcs-* fields pointing to 'collab-maint' at Alioth. * Migrate to format "3.0 (quilt)": + Build-Depends: Revert to debhelper (>= 7.0.50~) and remove quilt. + debian/source/format: New file. + debian/rules: Remove the option "--with quilt". + debian/README.source: Remove unneeded file. -- Mats Erik Andersson Mon, 25 Jan 2010 15:36:01 +0100 w9wm (0.4.2-6) unstable; urgency=low * New maintainer. (Closes: #509087, #559951) * Patch management using quilt. * debian/control: + Advance to Standards-Version 3.8.3, and also Compatibility 7. + The build dependency 'x11proto-core-dev' replaces out-of-date 'x-dev'. (Closes: #515462) + Advance Build-Depend to debhelper (>= 7.4) and quilt (>= 0.48). + Add binary dependency ${misc:Depends}. + Reformulate package description. + Valid Homepage base entry: 'http://www.drieu.org/...'. * debian/copyright: Formulated according to DEP-5. * debian/menu: Section name "Window Managers" and line breaks. * debian/patches/10_compiler_warnings.diff: Eliminates compiler warnings. * debian/README.source: New file, accompanies quilt. * debian/rules: Reorganized using minimal 'dh --with quilt'. * debian/watch: New source watch file. * Reorganization of debhelper build system: + Migration of files to the 'debian/w9wm.*' naming convention. + debian/{prerm,postinst}: Not needed, as 'dh_installwm' now has the desired functionality. + No longer needed: debian/w9wm.{dirs,override}. -- Mats Erik Andersson Thu, 31 Dec 2009 13:33:21 +0100 w9wm (0.4.2-5) unstable; urgency=low * Fix w9wm path (closes: #356951) * Add w9wm.desktop file (closes: #330063) -- Benjamin Drieu Mon, 17 Apr 2006 14:24:01 +0200 w9wm (0.4.2-4) unstable; urgency=low * Update build dependencies (closes: #346888) -- Benjamin Drieu Mon, 9 Jan 2006 10:36:27 +0100 w9wm (0.4.2-3) unstable; urgency=low * Fix menu entry (closes: #229359) -- Benjamin Drieu Mon, 26 Jan 2004 16:08:31 +0100 w9wm (0.4.2-2) unstable; urgency=low * Oops, forgot build deps (closes: #203790) -- Benjamin Drieu Fri, 1 Aug 2003 19:02:05 +0200 w9wm (0.4.2-1) unstable; urgency=low * New upstream version -- Benjamin Drieu Fri, 1 Aug 2003 16:04:49 +0200 w9wm (0.4.1-1) unstable; urgency=low * Initial public release (Closes: #117456) * New upstream version * Now use debhelper * Some cleanup -- Benjamin Drieu Wed, 14 Feb 2001 22:39:04 +0100 w9wm (0.3-1) unstable; urgency=low * New upstream version -- Benjamin Drieu Sun, 24 Dec 2000 16:51:33 +0100 w9wm (0.2.1-1) unstable; urgency=low * New upstream version -- Benjamin Drieu Sun, 24 Dec 2000 16:50:35 +0100 w9wm (0.2-1) unstable; urgency=low * Initial Release. -- Benjamin Drieu Tue, 5 Dec 2000 23:15:08 +0100 debian/w9wm.manpages0000644000000000000000000000001112033247313011574 0ustar w9wm.man debian/w9wm.wm0000644000000000000000000000001612033247313010431 0ustar /usr/bin/w9wm