debian/0000755000000000000000000000000012015307052007161 5ustar debian/patches/0000755000000000000000000000000012015274636010623 5ustar debian/patches/04_signedness.diff0000755000000000000000000000220111467755737014140 0ustar Description: popup-exec patch rolled in Forwarded: yes Author: Andrew Stribblehill Origin: vendor Last-Update: 2005-09-05 --- a/9menu.c +++ b/9menu.c @@ -101,7 +101,7 @@ /* the 9menu icon, for garish window managers */ #define nine_menu_width 40 #define nine_menu_height 40 -static unsigned char nine_menu_bits[] = { +static char nine_menu_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x04, @@ -781,7 +781,7 @@ Window wdummy; if (XQueryPointer(dpy, menuwin, &wdummy, &wdummy, &x, &y, - &dummy, &dummy, &dummy)) + &dummy, &dummy, (unsigned int *)&dummy)) XMoveWindow(dpy, menuwin, x-wide/2, y-cur*high-high/2); } @@ -800,7 +800,7 @@ offset += 6; /* fudge factor */ if (XQueryPointer(dpy, menuwin, &wdummy, &wdummy, &savex, &savey, - &dummy, &dummy, &dummy)) + &dummy, &dummy, (unsigned int *)&dummy)) XWarpPointer(dpy, None, menuwin, 0, 0, 0, 0, wide/2, cur*high-high/2+offset); } debian/patches/06_Imakefile.diff0000755000000000000000000000072511465333723013660 0ustar Description: Fix dpkg-shlibdeps: warning: dependency on libXext.so.6 Forwarded: yes Author: Daniel Echeverry Origin: vendor Last-Update: 2010-11-06 --- a/Imakefile +++ b/Imakefile @@ -1,6 +1,6 @@ INCLUDES = -I$(TOP) - DEPLIBS = $(DEPXLIB) -LOCAL_LIBRARIES = $(XLIB) + DEPLIBS = $(DEPXLIBONLY) +LOCAL_LIBRARIES = $(XLIBONLY) DEFINES = -DSHAPE #-DDEBUG -DDEBUG_EV SRCS = 9menu.c OBJS = 9menu.o debian/patches/03_stdin.diff0000755000000000000000000000147211467755705013122 0ustar Description: Allow '-file -' to cause stdin to be read as the file Forwarded: yes Author: Andrew Stribblehill Origin: vendor Last-Update: 2003-09-02 --- a/9menu.1 +++ b/9menu.1 @@ -99,7 +99,7 @@ in addition to any other command line arguments. This is intended for use with .B #! -in scripts. +in scripts. If the filename is "-" read from stdin. .TP .BI \-fg " foreground-color" Set the foreground color to --- a/9menu.c +++ b/9menu.c @@ -264,7 +264,11 @@ char fbuf[1024]; FILE *fp; - fp = fopen(filename, "r"); + if (strcmp(filename, "-") == 0) { + fp = stdin; + } else { + fp = fopen(filename, "r"); + } if (fp == NULL) { fprintf(stderr, "%s: couldn't open '%s'\n", progname, filename); debian/patches/07_remove-resource-leak.diff0000755000000000000000000000050411502471360016012 0ustar Description: Fix resource leak:fp Forwarded: yes Author: Daniel Echeverry Origin: vendor Last-Update: 2010-12-16 --- a/9menu.c +++ b/9menu.c @@ -326,6 +326,7 @@ strcpy(f_argv[nlabels], s); ++nlabels; } + fclose(fp); } labels = (char **) malloc((numitems + nlabels) * sizeof(char *)); debian/patches/series0000644000000000000000000000014112015274646012035 0ustar 03_stdin.diff 04_signedness.diff 05_morekeys.diff 06_Imakefile.diff 07_remove-resource-leak.diff debian/patches/05_morekeys.diff0000755000000000000000000000526211470136711013622 0ustar Description: Add more keys, especially Keypad Enter Forwarded: yes Author: Andrew Stribblehill Origin: vendor Last-Update: 2009-04-24 --- a/9menu.c +++ b/9menu.c @@ -124,6 +124,14 @@ #define CONFIG_MENU_UP_KEY XK_Up #define CONFIG_MENU_DOWN_KEY XK_Down #define CONFIG_MENU_SELECT_KEY XK_Return +#define CONFIG_MENU_VI_UP_KEY XK_k +#define CONFIG_MENU_VI_DOWN_KEY XK_j +#define CONFIG_MENU_EMACS_UP_KEY XK_p +#define CONFIG_MENU_EMACS_DOWN_KEY XK_n +#define CONFIG_MENU_ALTERNATE_UP_KEY XK_KP_Up +#define CONFIG_MENU_ALTERNATE_DOWN_KEY XK_KP_Down +#define CONFIG_MENU_ALTERNATE_SELECT_KEY XK_KP_Enter +#define CONFIG_MENU_ABORT_KEY XK_Escape char *progname; /* my name */ char *displayname; /* X display */ @@ -573,13 +581,21 @@ key = XKeycodeToKeysym(dpy, ev.xkey.keycode, 0); if (key != CONFIG_MENU_UP_KEY && key != CONFIG_MENU_DOWN_KEY - && key != CONFIG_MENU_SELECT_KEY) + && key != CONFIG_MENU_SELECT_KEY + && key != CONFIG_MENU_ALTERNATE_DOWN_KEY + && key != CONFIG_MENU_ALTERNATE_UP_KEY + && key != CONFIG_MENU_ALTERNATE_SELECT_KEY + && key != CONFIG_MENU_EMACS_DOWN_KEY + && key != CONFIG_MENU_EMACS_UP_KEY + && key != CONFIG_MENU_VI_DOWN_KEY + && key != CONFIG_MENU_VI_UP_KEY + && key != CONFIG_MENU_ABORT_KEY) break; - if (key == CONFIG_MENU_UP_KEY) { + if (key == CONFIG_MENU_UP_KEY || key == CONFIG_MENU_EMACS_UP_KEY || key == CONFIG_MENU_VI_UP_KEY || key == CONFIG_MENU_ALTERNATE_UP_KEY) { old = cur; cur--; - } else if (key == CONFIG_MENU_DOWN_KEY) { + } else if (key == CONFIG_MENU_DOWN_KEY || key == CONFIG_MENU_EMACS_DOWN_KEY || key == CONFIG_MENU_VI_DOWN_KEY || key == CONFIG_MENU_ALTERNATE_DOWN_KEY) { old = cur; cur++; } @@ -589,7 +605,10 @@ cur %= numitems; - if (key == CONFIG_MENU_UP_KEY || key == CONFIG_MENU_DOWN_KEY) { + if (key == CONFIG_MENU_UP_KEY || key == CONFIG_MENU_DOWN_KEY + || key == CONFIG_MENU_EMACS_UP_KEY || key == CONFIG_MENU_EMACS_DOWN_KEY + || key == CONFIG_MENU_VI_UP_KEY || key == CONFIG_MENU_VI_DOWN_KEY + || key == CONFIG_MENU_ALTERNATE_UP_KEY || key == CONFIG_MENU_ALTERNATE_DOWN_KEY) { if (cur == old) break; if (old >= 0 && old < numitems && cur != -1) @@ -601,7 +620,13 @@ if (warp) restoremouse(); - if (key == CONFIG_MENU_SELECT_KEY) { + if (key == CONFIG_MENU_ABORT_KEY) { + if (commands[cur] != labels[cur]) { + spawn(commands[cur]); + } + return; + } + if (key == CONFIG_MENU_SELECT_KEY || key == CONFIG_MENU_ALTERNATE_SELECT_KEY) { if (strcmp(labels[cur], "exit") == 0) { if (commands[cur] != labels[cur]) { spawn(commands[cur]); debian/watch0000644000000000000000000000011011463332665010220 0ustar version=3 ftp://ftp.freefriends.org/arnold/Source/9menu-(.*)\.shar\.gz debian/changelog0000644000000000000000000001347012016263055011045 0ustar 9menu (1.8-6) unstable; urgency=low * debian/control + Bump standard versions 3.9.3 + Update to DEP5 copyright format 1.0 + Change debhelper to 9 in B-D + Order Depends and Build-Depends * debian/compat + Switch compat level 7 to 9 * debian/rules + Use Hardening flags -- Daniel Echeverry Wed, 22 Aug 2012 18:52:13 -0500 9menu (1.8-5) unstable; urgency=low * Fix resource leak:fp LP: #479042 + New patch 07_remove-resource-leak.diff -- Daniel Echeverry Thu, 16 Dec 2010 15:02:55 -0500 9menu (1.8-4) unstable; urgency=low * Switch from override_* targets to files in debian/ * Do not link with Xext: we do not use it + Remove libxext-dev from Build-Depends + New patch: 06_Imakefile.diff * Added header description into old patches -- Daniel Echeverry Mon, 01 Nov 2010 20:04:56 -0500 9menu (1.8-3) unstable; urgency=low * New maintainer. Closes: #525488 * Switch to dpkg-source 3.0 (quilt) format * add debian/watch file * debian/control + Bumped standard versions 3.9.1 + Remove dpatch from Build-Depends + Set myself as Maintainer + Changed debhelper to 7.0.50 in B-D * debian/patches + Change all patches from dpatch to quilt * debian/install + Removed * debian/compat + Switch compat level 5 to 7 -- Daniel Echeverry Mon, 27 Sep 2010 19:54:44 -0500 9menu (1.8-2) unstable; urgency=low * QA upload. + Set maintainer to Debian QA Group * Acknowledge NMUs. * Replace x-dev build-dep with x11proto-core-dev. (Closes: #515354). * Replace xutils build-dep with xutils-dev. * 05_morekeys.dpatch - Support more keys. (Closes: #513696). + Thanks to Bernhard R. Link for the patch. * Make clean not ignore errors. * Bump debhelper build-dep and compat to 5. * Bump Standards Version to 3.8.1. -- Barry deFreese Fri, 24 Apr 2009 17:00:40 -0400 9menu (1.8-1.2) unstable; urgency=medium * Non-maintainer upload. * Add build-dep on libxext-dev, fixes FTBFS (Closes: #486973, #464593) * Add build-dep on xutils-dev for imake (Closes: #485188)x -- Moritz Muehlenhoff Fri, 27 Jun 2008 21:52:55 +0200 9menu (1.8-1.1) unstable; urgency=high * Non-maintainer upload. * Split xlibs-dev build-dep (Closes: #346610). -- Luk Claes Thu, 12 Jan 2006 00:03:45 +0100 9menu (1.8-1) unstable; urgency=low * New upstream; popup-exec patch rolled in. -- Andrew Stribblehill Fri, 9 Sep 2005 16:21:54 +0100 9menu (1.7-2.1) unstable; urgency=low * Non-maintainer upload. * The .orig.tar.gz is headed by a setgid directory, which can cause build problems. Remove the setgid bit on clean (closes: #233320). -- Colin Watson Sun, 14 Mar 2004 12:30:25 +0000 9menu (1.7-2) unstable; urgency=low * Allow '-file -' to cause stdin to be read as the file. Thanks go to Peter Bailey for the inspiration for the patch. -- Andrew Stribblehill Tue, 2 Sep 2003 12:06:09 +0100 9menu (1.7-1) unstable; urgency=low * New upstream release. Clarified with Arnold (upstream) that binaries compiled from patched source may be distributed. (Closes: Bug#178992) -- Andrew Stribblehill Tue, 1 Jul 2003 12:37:47 +0100 9menu (1.6-3) unstable; urgency=low * New maintainer; thanks Stephen * Patch so 9menu just execs not fork/exec + exit on popup * Move binary to /usr/bin and manpage to /usr/share/man * Use debhelper wholesale -- Andrew Stribblehill Sat, 14 Jun 2003 16:23:37 +0100 9menu (1.6-2) unstable; urgency=low * Fixed Build-Depends to include xutils. -- Stephen Frost Thu, 25 Apr 2002 08:30:21 -0400 9menu (1.6-1) unstable; urgency=low * New upstream version -- Stephen Frost Thu, 25 Apr 2002 01:05:04 -0400 9menu (1.5-2) unstable; urgency=low * Fixed Build-Depends line (added debhelper) * Changed maintainer email address. -- Stephen Frost Wed, 4 Jul 2001 11:39:45 -0400 9menu (1.5-1) unstable; urgency=medium * New upstream version * Added md5sums correctly -- Stephen Frost Thu, 7 Dec 2000 22:44:38 -0500 9menu (1.4-10.2) unstable; urgency=low * New Maintainer * Fixed gcc warnings. -- Stephen Frost Thu, 7 Dec 2000 20:58:13 -0500 9menu (1.4-10.1) unstable; urgency=medium * Non-maintainer upload * debian/postinst, debian/postrm: added missing "#!/bin/sh -e" line (closes: bug #77413). -- An Thi-Nguyen Le Mon, 27 Nov 2000 18:46:45 -0600 9menu (1.4-10) unstable; urgency=low * /usr/doc -> /usr/share/doc * Changed CFLAGS and INSTALL_PROGRAM in debian/rules according to the new policy. * Added build dependencies. * Standards-Version: 3.2.1 -- Adrian Bunk Sat, 11 Nov 2000 22:37:30 +0100 9menu (1.4-9) unstable; urgency=low * Orphaned the package. -- Joel Klecker Wed, 2 Jun 1999 00:42:15 -0700 9menu (1.4-8) unstable; urgency=low * New maintainer. -- Joel Klecker Wed, 17 Dec 1997 09:59:05 -0800 9menu (1.4-7) unstable; urgency=low * Compile against libc6 -- Karl Sackett Mon, 3 Nov 1997 15:30:53 -0500 9menu (1.4-6) unstable; urgency=low * Changed maintainer's address. -- Karl Sackett Thu, 31 Oct 1996 09:34:48 -0600 9menu (1.4-5) unstable; urgency=low * Converted to new package standards. -- Karl Sackett Thu, 3 Oct 1996 10:28:01 -0500 1.4-4 * support files now architecture-independent 1.4-3 * Added Debian support files. * Corrected prefix, exec_prefix in debian.rules. * Moved man page from 9menu.1x to 9menu.1 Local variables: mode: debian-changelog End: debian/control0000644000000000000000000000101312015306424010561 0ustar Source: 9menu Section: x11 Priority: optional Maintainer: Daniel Echeverry Build-Depends: debhelper (>= 9.0), libx11-dev, x11proto-core-dev, xutils-dev Standards-Version: 3.9.3 Package: 9menu Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: Creates X menus from the shell This is a simple program that allows you to create X menus from the shell, where each menu item will run a command. 9menu is intended for use with 9wm, but can be used with any other window manager. debian/9menu.manpages0000644000000000000000000000001011467575260011744 0ustar 9menu.1 debian/copyright0000644000000000000000000000366212015307013011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: 9menu Source: ftp://ftp.freefriends.org/arnold/Source/ Files: * Copyright: Copyright 2004 Arnold Robbins License: 9menu is free software, and is Copyright (c) 1994 by David Hogan and Arnold Robbins. 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 9menu and whose documentation gives credit where it is due (4) the authors are 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. Files: debian/* Copyright: 2011-2012 Daniel Echeverry 2003-2005 Andrew Stribblehill 2000-2003 Stephen Frost 1996-2000 Karl Sackett License: GPL-3.0+ License: GPL-3.0+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". debian/rules0000755000000000000000000000070512016267667010265 0ustar #!/usr/bin/make -f CC := gcc CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) CFLAGS := $(shell dpkg-buildflags --get CFLAGS) LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) %: dh $@ override_dh_auto_build: xmkmf dh_auto_build -- CC="$(CC)" CCOPTIONS+="$(CPPFLAGS) $(CFLAGS) $(LDFLAGS)" 9menu override_dh_installchangelogs: sed -n '1,/\*\// {s/^.*\*[ /]\?//; s/9menu.c/Taken from &/; p}' 9menu.c > changelog dh_installchangelogs changelog debian/source/0000755000000000000000000000000011465323001010461 5ustar debian/source/format0000755000000000000000000000001411450223122011667 0ustar 3.0 (quilt) debian/clean0000644000000000000000000000001211467646665010211 0ustar changelog debian/compat0000644000000000000000000000000212015270416010362 0ustar 9