pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/mxkill



Module Name:    pkgsrc
Committed By:   vins
Date:           Mon Jun  2 11:16:24 UTC 2025

Added Files:
        pkgsrc/sysutils/mxkill: DESCR Makefile PLIST distinfo hacks.mk
        pkgsrc/sysutils/mxkill/patches: patch-Imakefile patch-crui.c
            patch-main.c patch-pkgsrc.tmpl patch-regex.c patch-xhead.h

Log Message:
sysutils/mxkill: initial import of package

MXkill is a user friendly X/Motif graphical user interface to the ps
command.

Features:

* All ps command options, including pipe,  can be used to
  filter the ps output.
* The ps output is displayed in a scrolled list window.
  The vertical or horizontal scrollbar will be active if the
  output goes beyond the viewing area.
* One or more processes can be selected interactively by mouse, and
  standard Unix regular expression syntax can be used to select
  processes as well.
* Signals can be chosen from the menu in order to be sent
  to the process/es. By default, the signal is 9 (sure kill).

Inspired by xzap by gerry.tomlinson%ncl.ac.uk@localhost, an X Athena widget
version of the zap command described in Kernighan &l Pike's "The UNIX
Programming Environment".


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/mxkill/DESCR \
    pkgsrc/sysutils/mxkill/Makefile pkgsrc/sysutils/mxkill/PLIST \
    pkgsrc/sysutils/mxkill/distinfo pkgsrc/sysutils/mxkill/hacks.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/mxkill/patches/patch-Imakefile \
    pkgsrc/sysutils/mxkill/patches/patch-crui.c \
    pkgsrc/sysutils/mxkill/patches/patch-main.c \
    pkgsrc/sysutils/mxkill/patches/patch-pkgsrc.tmpl \
    pkgsrc/sysutils/mxkill/patches/patch-regex.c \
    pkgsrc/sysutils/mxkill/patches/patch-xhead.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/sysutils/mxkill/DESCR
diff -u /dev/null pkgsrc/sysutils/mxkill/DESCR:1.1
--- /dev/null   Mon Jun  2 11:16:24 2025
+++ pkgsrc/sysutils/mxkill/DESCR        Mon Jun  2 11:16:23 2025
@@ -0,0 +1,19 @@
+MXkill is a user friendly X/Motif graphical user interface to the ps
+command.
+
+Features:
+
+* All ps command options, including pipe,  can be used to
+  filter the ps output.
+* The ps output is displayed in a scrolled list window.
+  The vertical or horizontal scrollbar will be active if the
+  output goes beyond the viewing area.
+* One or more processes can be selected interactively by mouse, and
+  standard Unix regular expression syntax can be used to select
+  processes as well.
+* Signals can be chosen from the menu in order to be sent
+  to the process/es. By default, the signal is 9 (sure kill).
+
+Inspired by xzap by gerry.tomlinson%ncl.ac.uk@localhost, an X Athena widget
+version of the zap command described in Kernighan &l Pike's "The UNIX
+Programming Environment".
Index: pkgsrc/sysutils/mxkill/Makefile
diff -u /dev/null pkgsrc/sysutils/mxkill/Makefile:1.1
--- /dev/null   Mon Jun  2 11:16:24 2025
+++ pkgsrc/sysutils/mxkill/Makefile     Mon Jun  2 11:16:23 2025
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2025/06/02 11:16:23 vins Exp $
+
+DISTNAME=      ${PKGNAME:S/-//}
+PKGNAME=       mxkill-1.2
+CATEGORIES=    sysutils
+MASTER_SITES=  https://www.muquit.com/muquit/software/mxkill/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.muquit.com/muquit/software/mxkill//mxkill.html
+COMMENT=       X/Motif interface to ps
+LICENSE=       hpnd
+
+USE_IMAKE=     yes
+
+MAKE_FLAGS+=   CC=${CC:Q} PREFIX=${PREFIX} \
+               CCOPTIONS=${CFLAGS:Q} LOCAL_LDFLAGS=${LDFLAGS:Q}
+
+BUILD_TARGET=  ${PKGBASE}
+INSTALL_TARGET=        common-install
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../mk/motif.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/mxkill/PLIST
diff -u /dev/null pkgsrc/sysutils/mxkill/PLIST:1.1
--- /dev/null   Mon Jun  2 11:16:24 2025
+++ pkgsrc/sysutils/mxkill/PLIST        Mon Jun  2 11:16:24 2025
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2025/06/02 11:16:24 vins Exp $
+bin/mxkill
+lib/X11/app-defaults/MXkill
Index: pkgsrc/sysutils/mxkill/distinfo
diff -u /dev/null pkgsrc/sysutils/mxkill/distinfo:1.1
--- /dev/null   Mon Jun  2 11:16:24 2025
+++ pkgsrc/sysutils/mxkill/distinfo     Mon Jun  2 11:16:24 2025
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1 2025/06/02 11:16:24 vins Exp $
+
+BLAKE2s (mxkill1.2.tar.gz) = 669e2e44b66fcace1c8c0b952d5cb71c3b8214b9b810217ea76e0aa5b7859458
+SHA512 (mxkill1.2.tar.gz) = 52458e9021aa457df2a31ed76991baed4eb143f06979dd29ae14ba38b233830e9328eaf1b3e3a3717126a646d72e49650710b030c148249f510e5a166a9c7370
+Size (mxkill1.2.tar.gz) = 72713 bytes
+SHA1 (patch-Imakefile) = fa9952eeacb85cac671f3079979092bcf29ee016
+SHA1 (patch-crui.c) = d53e8f440c841393e44575afd976679d1d181e6b
+SHA1 (patch-main.c) = ec59c859d0454b70fe3dbc39dad7315c83451dd3
+SHA1 (patch-pkgsrc.tmpl) = 020f8d082c33e4572ca2d904bef44a6738b176e9
+SHA1 (patch-regex.c) = e899de9f324543302c784b8fe2c2b6f20b774173
+SHA1 (patch-xhead.h) = b3551cb7ce0b7388e2184d7150fe57457b4e2db3
Index: pkgsrc/sysutils/mxkill/hacks.mk
diff -u /dev/null pkgsrc/sysutils/mxkill/hacks.mk:1.1
--- /dev/null   Mon Jun  2 11:16:24 2025
+++ pkgsrc/sysutils/mxkill/hacks.mk     Mon Jun  2 11:16:24 2025
@@ -0,0 +1,17 @@
+# $NetBSD: hacks.mk,v 1.1 2025/06/02 11:16:24 vins Exp $
+
+.if !defined(MXKILL_HACKS_MK)
+MXKILL_HACKS_MK=       defined
+
+# Package provides no configure script.
+# Hence we define platform-dependent includes here.
+.if exists(/usr/include/string.h)
+PKG_HACKS+=    string.h
+CFLAGS+=       -DHAVE_STRING_H
+.endif
+.if exists(/usr/include/stdlib.h)
+PKG_HACKS+=    malloc
+CFLAGS+=       -DSTDC_HEADERS -DREGEX_MALLOC
+.endif
+
+.endif # MXKILL_HACKS_MK

Index: pkgsrc/sysutils/mxkill/patches/patch-Imakefile
diff -u /dev/null pkgsrc/sysutils/mxkill/patches/patch-Imakefile:1.1
--- /dev/null   Mon Jun  2 11:16:24 2025
+++ pkgsrc/sysutils/mxkill/patches/patch-Imakefile      Mon Jun  2 11:16:24 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-Imakefile,v 1.1 2025/06/02 11:16:24 vins Exp $
+
+Include local imake rules.
+
+--- Imakefile.orig     1997-03-02 19:05:03.000000000 +0000
++++ Imakefile
+@@ -31,7 +31,7 @@ XCOMM
+ XCOMM -------------DO NOT EDIT THIS FILE-----------------------
+ XCOMM -------------Edit Mxkill.tmpl FILE INSTEAD-----------------
+ 
+-#include "Mxkill.tmpl"
++#include "pkgsrc.tmpl"
+ 
+ SRCS= main.c mxerror.c error.c mpulldown.c crui.c menui.c ps.c\
+               setsbc.c regex.c converter.c alncolor.c bestpix.c setcurs.c
Index: pkgsrc/sysutils/mxkill/patches/patch-crui.c
diff -u /dev/null pkgsrc/sysutils/mxkill/patches/patch-crui.c:1.1
--- /dev/null   Mon Jun  2 11:16:24 2025
+++ pkgsrc/sysutils/mxkill/patches/patch-crui.c Mon Jun  2 11:16:24 2025
@@ -0,0 +1,43 @@
+$NetBSD: patch-crui.c,v 1.1 2025/06/02 11:16:24 vins Exp $
+
+* Silence size mismatch warnings.
+* The first argument of XtRealloc() is of type char *.
+
+--- crui.c.orig        1997-08-30 18:08:54.000000000 +0000
++++ crui.c
+@@ -35,6 +35,8 @@
+  *      muquit%semcor.com@localhost   04-Sep-95   first cut
+  */
+ 
++#include <stdint.h>
++
+ #include "xhead.h"
+ #include "mxkill.h"
+ #include "menu.h"
+@@ -468,7 +470,7 @@ XtPointer
+     call_data;
+ {
+     int
+-        sig_no=(int) client_data;
++        sig_no=(intptr_t) client_data;
+     register int
+         i;
+ 
+@@ -814,7 +816,7 @@ XtPointer
+         matched=re_exec(text) > 0;
+         if(matched)
+         {
+-            selectlist=(XmString *) XtRealloc((XmString *) selectlist,
++            selectlist=(XmString *) XtRealloc((char *) selectlist,
+                 (j+1)*(sizeof(XmString *)));
+ 
+             selectlist[j++]=XmStringCopy(strlist[cnt]);
+@@ -856,7 +858,7 @@ XtPointer
+     client_data,
+     call_data;
+ {
+-    switch((int) client_data)
++    switch((intptr_t) client_data)
+     {
+         case 0:
+         {
Index: pkgsrc/sysutils/mxkill/patches/patch-main.c
diff -u /dev/null pkgsrc/sysutils/mxkill/patches/patch-main.c:1.1
--- /dev/null   Mon Jun  2 11:16:24 2025
+++ pkgsrc/sysutils/mxkill/patches/patch-main.c Mon Jun  2 11:16:24 2025
@@ -0,0 +1,32 @@
+$NetBSD: patch-main.c,v 1.1 2025/06/02 11:16:24 vins Exp $
+
+Silence size mismatch warnings.
+
+--- main.c.orig        1997-08-30 18:08:39.000000000 +0000
++++ main.c
+@@ -35,6 +35,7 @@
+  *      muquit%semcor.com@localhost   31-Aug-95   first cut
+  */
+ 
++#include <stdint.h>
+ #include "xhead.h"
+ 
+ #define __Main__
+@@ -219,7 +220,7 @@ char
+     XtAppAddInput(app,stderr_pipe[0],
+         (XtPointer) XtInputReadMask,
+         (XtInputCallbackProc) DoStderr,
+-        (XtPointer) stderr_pipe[0]);
++        (XtPointer)(intptr_t) stderr_pipe[0]);
+ 
+     XtAppMainLoop(app);
+ }
+@@ -294,7 +295,7 @@ XtInputId
+     *id;
+ {
+     int
+-        fd=(int) client_data;
++        fd=(intptr_t) client_data;
+ 
+     char
+         buf[512];
Index: pkgsrc/sysutils/mxkill/patches/patch-pkgsrc.tmpl
diff -u /dev/null pkgsrc/sysutils/mxkill/patches/patch-pkgsrc.tmpl:1.1
--- /dev/null   Mon Jun  2 11:16:24 2025
+++ pkgsrc/sysutils/mxkill/patches/patch-pkgsrc.tmpl    Mon Jun  2 11:16:24 2025
@@ -0,0 +1,24 @@
+$NetBSD: patch-pkgsrc.tmpl,v 1.1 2025/06/02 11:16:24 vins Exp $
+
+Simplified imake rules for pkgsrc.
+
+--- pkgsrc.tmpl.orig   2025-06-02 10:38:07.007571551 +0000
++++ pkgsrc.tmpl
+@@ -0,0 +1,17 @@
++CC?= cc
++PROG= mxkill
++
++INCLUDES = -I. -I./bitmaps $(MCLIENTINCLUDES)
++LDLIBS= -lm
++LOCAL_LIBRARIES= -lXm -lXt -lX11
++
++BINDIR=$(PREFIX)/bin
++XAPPLOADDIR=$(PREFIX)/lib/X11/app-defaults
++
++.PHONY: common-install
++
++common-install: $(PROG)
++      $(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(BINDIR)
++      $(BSD_INSTALL_PROGRAM) $(PROG) ${DESTDIR}$(BINDIR)
++      $(BSD_INSTALL_DATA_DIR) ${DESTDIR}$(XAPPLOADDIR)
++      $(BSD_INSTALL_DATA) MXkill.ad ${DESTDIR}$(XAPPLOADDIR)/MXkill
Index: pkgsrc/sysutils/mxkill/patches/patch-regex.c
diff -u /dev/null pkgsrc/sysutils/mxkill/patches/patch-regex.c:1.1
--- /dev/null   Mon Jun  2 11:16:24 2025
+++ pkgsrc/sysutils/mxkill/patches/patch-regex.c        Mon Jun  2 11:16:24 2025
@@ -0,0 +1,39 @@
+$NetBSD: patch-regex.c,v 1.1 2025/06/02 11:16:24 vins Exp $
+
+* Include stdio.h for putchar().
+* Silence size mismatch warnings.
+
+--- regex.c.orig       1997-03-02 19:06:34.000000000 +0000
++++ regex.c
+@@ -19,6 +19,9 @@
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+ 
++#include <stdio.h>
++#include <stdint.h>
++
+ /* AIX requires this to be the first thing in the file. */
+ #if defined (_AIX) && !defined (REGEX_MALLOC)
+   #pragma alloca
+@@ -2492,10 +2494,10 @@ typedef struct
+   DEBUG_PRINT_COMPILED_PATTERN (bufp, pat, pend);                     \
+                                                                       \
+   /* Restore register info.  */                                               \
+-  high_reg = (unsigned) POP_FAILURE_ITEM ();                          \
++  high_reg = (uintptr_t) POP_FAILURE_ITEM ();                         \
+   DEBUG_PRINT2 ("  Popping high active reg: %d\n", high_reg);         \
+                                                                       \
+-  low_reg = (unsigned) POP_FAILURE_ITEM ();                           \
++  low_reg = (uintptr_t) POP_FAILURE_ITEM ();                          \
+   DEBUG_PRINT2 ("  Popping  low active reg: %d\n", low_reg);          \
+                                                                       \
+   for (this_reg = high_reg; this_reg >= low_reg; this_reg--)          \
+@@ -3762,7 +3764,7 @@ re_match_2 (bufp, string1, size1, string
+                           regstart[r] = old_regstart[r];
+ 
+                           /* xx why this test?  */
+-                          if ((int) old_regend[r] >= (int) regstart[r])
++                          if ((intptr_t) old_regend[r] >= (intptr_t) regstart[r])
+                             regend[r] = old_regend[r];
+                         }     
+                     }
Index: pkgsrc/sysutils/mxkill/patches/patch-xhead.h
diff -u /dev/null pkgsrc/sysutils/mxkill/patches/patch-xhead.h:1.1
--- /dev/null   Mon Jun  2 11:16:24 2025
+++ pkgsrc/sysutils/mxkill/patches/patch-xhead.h        Mon Jun  2 11:16:24 2025
@@ -0,0 +1,14 @@
+$NetBSD: patch-xhead.h,v 1.1 2025/06/02 11:16:24 vins Exp $
+
+Do not require malloc.h
+
+--- xhead.h.orig       2025-06-02 07:30:16.310224142 +0000
++++ xhead.h
+@@ -26,7 +26,6 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <malloc.h>
+ #include <memory.h>
+ #include <ctype.h>
+ #include <string.h>



Home | Main Index | Thread Index | Old Index