summaryrefslogtreecommitdiff
path: root/sysutils/pstree
diff options
context:
space:
mode:
authoryyamano <yyamano@pkgsrc.org>2003-02-12 15:29:24 +0000
committeryyamano <yyamano@pkgsrc.org>2003-02-12 15:29:24 +0000
commit158f2d7434cfed0dda6dfd76fa852c25def5d06f (patch)
tree88d6304be8c4627e7a9e4d3d0d6ae9cbe2c261e9 /sysutils/pstree
parent615f6a7a0ba73d8143aeabc5ce8bd62d994f56f9 (diff)
downloadpkgsrc-158f2d7434cfed0dda6dfd76fa852c25def5d06f.tar.gz
Make this work on Darwin. Use same ps option as NetBSD's one.
Diffstat (limited to 'sysutils/pstree')
-rw-r--r--sysutils/pstree/distinfo3
-rw-r--r--sysutils/pstree/patches/patch-aa13
2 files changed, 15 insertions, 1 deletions
diff --git a/sysutils/pstree/distinfo b/sysutils/pstree/distinfo
index aba3e1b357a..2b54e0c9dc3 100644
--- a/sysutils/pstree/distinfo
+++ b/sysutils/pstree/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.3 2002/12/25 22:44:53 mjl Exp $
+$NetBSD: distinfo,v 1.4 2003/02/12 15:29:24 yyamano Exp $
SHA1 (pstree-2.17.tar.gz) = 0cdb4693e72bc62cd5bdd50b0848f93f1b6b415a
Size (pstree-2.17.tar.gz) = 7750 bytes
+SHA1 (patch-aa) = 188502437f7f6c0bd593f8be6d8f5719e73e6221
diff --git a/sysutils/pstree/patches/patch-aa b/sysutils/pstree/patches/patch-aa
new file mode 100644
index 00000000000..122e906b529
--- /dev/null
+++ b/sysutils/pstree/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1 2003/02/12 15:29:25 yyamano Exp $
+
+--- pstree.c.orig Mon Dec 17 21:18:02 2001
++++ pstree.c
+@@ -177,7 +177,7 @@
+ # define UID2USER
+ # define PSCMD "ps laxw"
+ # define PSFORMAT "%*s %ld %ld %ld %*d %*g %*d %*d %*21c %*s %[^\n]"
+-#elif defined(__NetBSD__) || defined(__OpenBSD__)
++#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+ /* NetBSD contributed by Gary D. Duzan <gary@wheel.tiac.net> */
+ # define HAS_PGID
+ # define PSCMD "ps -axwwo user,pid,ppid,pgid,command"