Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2001 16:52:47 -0400
From:      "Alexander N. Kabaev" <ak03@gte.com>
To:        gnats-admin@FreeBSD.org, freebsd-ports@FreeBSD.org
Subject:   Re: ports/28342: New port: pstree
Message-ID:  <20010622165247.A6907@kanpc.gte.com>
In-Reply-To: <200106221820.f5MIK1B12611@freefall.freebsd.org>
References:  <200106221810.f5MIAxU03954@h132-197-97-45.gte.com> <200106221820.f5MIK1B12611@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Immediate follow-up: the following shar archive contains slightly
improved port which respects NOPORTDOCS and is better synced up 
with Net|OpenBSD.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pstree
#	pstree/Makefile
#	pstree/distinfo
#	pstree/pkg-comment
#	pstree/pkg-descr
#	pstree/pkg-plist
#	pstree/files
#	pstree/files/patch-aa
#
echo c - pstree
mkdir -p pstree > /dev/null 2>&1
echo x - pstree/Makefile
sed 's/^X//' >pstree/Makefile << 'END-of-pstree/Makefile'
X# New ports collection makefile for:	pstree
X# Date created:		June 22, 2001
X# Whom:			ak03@gte.com
X#
X# $FreeBSD: $
X#
X
XPORTNAME=	pstree
XPORTVERSION=	2.16
XCATEGORIES=	sysutils
XMASTER_SITES=	ftp://ftp.thp.uni-duisburg.de/pub/source/
X
XMAINTAINER=	ak03@gte.com
X
XWRKSRC=		${WRKDIR}
X
Xdo-build:
X	cd ${WRKSRC}; ${CC} ${CFLAGS} -o pstree pstree.c
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/pstree ${PREFIX}/bin
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/pstree
X	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/pstree
X.endif
X
X.include <bsd.port.mk>
END-of-pstree/Makefile
echo x - pstree/distinfo
sed 's/^X//' >pstree/distinfo << 'END-of-pstree/distinfo'
XMD5 (pstree-2.16.tar.gz) = 3155cbf4df98d68f5d55edd431a8bb1d
END-of-pstree/distinfo
echo x - pstree/pkg-comment
sed 's/^X//' >pstree/pkg-comment << 'END-of-pstree/pkg-comment'
XDisplays running processes in a hierachy
END-of-pstree/pkg-comment
echo x - pstree/pkg-descr
sed 's/^X//' >pstree/pkg-descr << 'END-of-pstree/pkg-descr'
Xpstree is a utility which displays running processes in a hierachy.
XIt is useful for examining from whence a process was started.
X
XWWW: ftp://ftp.thp.Uni-Duisburg.DE/pub/source/
X
X--
XAlexander Kabaev <ak03@gte.com>
END-of-pstree/pkg-descr
echo x - pstree/pkg-plist
sed 's/^X//' >pstree/pkg-plist << 'END-of-pstree/pkg-plist'
Xbin/pstree
X%%PORTDOCS%%share/doc/pstree/README
X%%PORTDOCS%%@dirrm share/doc/pstree
END-of-pstree/pkg-plist
echo c - pstree/files
mkdir -p pstree/files > /dev/null 2>&1
echo x - pstree/files/patch-aa
sed 's/^X//' >pstree/files/patch-aa << 'END-of-pstree/files/patch-aa'
X--- pstree.c.orig	Fri Jun 22 16:11:33 2001
X+++ pstree.c	Fri Jun 22 16:18:54 2001
X@@ -150,10 +150,6 @@
X #  define UID2USER
X #  define PSCMD 	"ps laxw"
X #  define PSFORMAT 	"%ld %ld %ld %*d %*d %*d %*d %*d %*s %*s %*s %*s %[^\n]"
X-#elif defined(__FreeBSD__) /* FreeBSD  */
X-/* FreeBSD contributed by Randall Hopper <rhh@ct.picker.com> */
X-#  define PSCMD 	"ps -axo \"user pid ppid command\""
X-#  define PSFORMAT 	"%s %d %d %[^\n]"
X #elif defined(_BSD)	/* Untested */
X #  define UID2USER
X #  define PSCMD 	"ps laxw"
X@@ -162,7 +158,7 @@
X #  define UID2USER
X #  define PSCMD 	"ps laxw"
X #  define PSFORMAT 	"%*s %ld %ld %ld %*d %*g %*d %*d %*21c %*s %[^\n]"
X-#elif defined(__NetBSD__) || defined(__OpenBSD__)
X+#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
X /* NetBSD contributed by Gary D. Duzan <gary@wheel.tiac.net> */
X #  define HAS_PGID
X #  define PSCMD               "ps -axwwo user,pid,ppid,pgid,command"
END-of-pstree/files/patch-aa
exit


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010622165247.A6907>