2a83e33964
Upstream changes: * Revision 2.36 2013-04-12 11:47:03+02 fred * Some processes like apache under a recent Linux were listed with UID * root instead of the correct UID, as they use setuid(). We now read the * UID from the owner of /proc/PID instead of /proc/PID/stat, as this * seems to be updated correctly. Thanks to Tom Schmidt * <tschmidt AT micron.com> for pointing out this bug. * * Revision 2.35 2013-02-28 08:33:02+01 fred * Added Stan Sieler's fix to my adaption of snprintf fix by Stan Sieler :-) * * Revision 2.34 2013-02-27 16:57:25+01 fred * Added snprintf fix by Stan Sieler
24 lines
643 B
Makefile
24 lines
643 B
Makefile
# $NetBSD: Makefile,v 1.27 2013/05/09 15:41:23 wen Exp $
|
|
#
|
|
|
|
DISTNAME= pstree-2.36
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ftp://ftp.thp.uni-duisburg.de/pub/source/
|
|
# http://fresh.t-systems-sfr.com/unix/src/misc/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= Display processes in a tree
|
|
HOMEPAGE= http://www.thp.uni-duisburg.de/pstree/
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
INSTALLATION_DIRS= bin share/doc/proctree
|
|
|
|
do-build:
|
|
cd ${WRKSRC}; ${CC} ${CFLAGS} -o pstree pstree.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pstree ${DESTDIR}${PREFIX}/bin/proctree
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/proctree
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|