blob: 055952b0b7c58330e111a46296894ab3a745ecc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $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"
|