# $NetBSD: Makefile,v 1.30 2017/01/03 19:52:38 roy Exp $ DISTNAME= psmisc-20.1 CATEGORIES= sysutils PKGREVISION= 3 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=psmisc/} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://psmisc.sourceforge.net/ COMMENT= Miscellaneous procfs tools: killall, pidof, and pstree LICENSE= gnu-gpl-v2 CONFLICTS+= pstree<=2.16 GNU_CONFIGURE= yes PLIST_VARS+= fuser LIBS+= ${BUILDLINK_LDADD.getopt} # # fuser works only on Linux. # .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "Linux" PLIST.fuser= yes .else SUBST_CLASSES+= fuser SUBST_STAGE.fuser= pre-configure SUBST_FILES.fuser= src/Makefile.in doc/Makefile.in SUBST_SED.fuser= -e '/^man_MANS =/s/fuser.1//' \ -e '/^bin_PROGRAMS =/s/fuser//' .endif # # "make install" doesn't install the link from killall -> pidof. # post-install: ${RM} -f ${DESTDIR}${PREFIX}/bin/pidof ${LN} -f ${DESTDIR}${PREFIX}/bin/killall ${DESTDIR}${PREFIX}/bin/pidof .include "../../mk/termcap.buildlink3.mk" .include "../../devel/libgetopt/buildlink3.mk" .include "../../mk/bsd.pkg.mk"