ce01f7f821
From Changelog: Don't use uninitialized structs when ioctl() fails, e.g. if run with stdout redirected. Problem reported by Jan Stary.
27 lines
602 B
Makefile
27 lines
602 B
Makefile
# Created by: Kris Kennaway <kris@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pstree
|
|
PORTVERSION= 2.39
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ftp://ftp.thp.uni-due.de/pub/source/ \
|
|
LOCAL/jgh/sysutils/${PORTNAME}/
|
|
|
|
MAINTAINER= jgh@FreeBSD.org
|
|
COMMENT= List processes as a tree
|
|
|
|
USES= alias
|
|
NO_WRKSUBDIR= yes
|
|
|
|
CONFLICTS= psmisc-[0-9]*
|
|
|
|
PLIST_FILES= bin/pstree man/man1/pstree.1.gz
|
|
|
|
do-build:
|
|
cd ${WRKDIR} && ${CC} ${CFLAGS} -o pstree pstree.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKDIR}/pstree ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKDIR}/pstree.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
|
|
|
|
.include <bsd.port.mk>
|