diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2003-08-10 07:05:07 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2003-08-10 07:05:07 +0000 |
commit | c3c8fc36f3ef2776493b8d909e41457109b64aff (patch) | |
tree | 7b9e36fc4925e0d0b5ad1a6aba0780632a8c9e4b /sysutils/pstree | |
parent | 1839396e48bfd34562b8cb0394aa7e842bde5570 (diff) | |
download | ports-c3c8fc36f3ef2776493b8d909e41457109b64aff.tar.gz ports-c3c8fc36f3ef2776493b8d909e41457109b64aff.zip |
Notes
Diffstat (limited to 'sysutils/pstree')
-rw-r--r-- | sysutils/pstree/Makefile | 8 | ||||
-rw-r--r-- | sysutils/pstree/distinfo | 2 | ||||
-rw-r--r-- | sysutils/pstree/files/patch-pstree.c | 14 |
3 files changed, 20 insertions, 4 deletions
diff --git a/sysutils/pstree/Makefile b/sysutils/pstree/Makefile index 522b54f5df35..7ac9e5770922 100644 --- a/sysutils/pstree/Makefile +++ b/sysutils/pstree/Makefile @@ -6,13 +6,15 @@ # PORTNAME= pstree -PORTVERSION= 2.17 -CATEGORIES= sysutils -MASTER_SITES= http://www.go.dlr.de/fresh/unix/src/misc/ +PORTVERSION= 2.20 +CATEGORIES= sysutils +MASTER_SITES= http://fresh.t-systems-sfr.com/unix/src/misc/ MAINTAINER= kris@FreeBSD.org COMMENT= List processes as a tree +NO_WRKSUBDIR= yes + do-build: cd ${WRKDIR} && ${CC} ${CFLAGS} -o pstree pstree.c diff --git a/sysutils/pstree/distinfo b/sysutils/pstree/distinfo index 9b7cf5c477d6..45ca55445e52 100644 --- a/sysutils/pstree/distinfo +++ b/sysutils/pstree/distinfo @@ -1 +1 @@ -MD5 (pstree-2.17.tar.gz) = 15bac1ebc32c70e9eab803c028d04bb6 +MD5 (pstree-2.20.tar.gz) = df3deb4ac88841d3edb466272c7c1343 diff --git a/sysutils/pstree/files/patch-pstree.c b/sysutils/pstree/files/patch-pstree.c new file mode 100644 index 000000000000..122956e3f867 --- /dev/null +++ b/sysutils/pstree/files/patch-pstree.c @@ -0,0 +1,14 @@ +--- pstree.c.orig ++++ pstree.c +@@ -655,8 +655,9 @@ + sprintf(nhead, "%s%s ", head, + head[0] == '\0' ? "" : EXIST(P[idx].sister) ? C->bar : " "); + +- for (child = P[idx].child; EXIST(child); child = P[child].sister) +- PrintTree(child, nhead); ++ if (P[idx].pid) ++ for (child = P[idx].child; EXIST(child); child = P[child].sister) ++ PrintTree(child, nhead); + } + + void Usage(void) { |