summaryrefslogtreecommitdiff
path: root/sysutils/lsop/Makefile
blob: f535dca8807cf085ad5dbdb4ffcfa7bbcf5502e5 (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
PORTNAME=	lsop
PORTVERSION=	0.2
DISTVERSIONPREFIX=	v
CATEGORIES=	sysutils

MAINTAINER=	606u@dir.bg
COMMENT=	List all processes running with outdated binaries or shared libraries

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USE_GITHUB=	yes
GH_ACCOUNT=	606u

PLIST_FILES=	sbin/lsop \
		libexec/nagios/check_restart

post-patch:
	@${REINPLACE_CMD} -e 's|lsop|${PREFIX}/sbin/lsop|' ${WRKSRC}/check_restart

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/lsop ${STAGEDIR}${PREFIX}/sbin
	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
	${INSTALL_SCRIPT} ${WRKSRC}/check_restart ${STAGEDIR}${PREFIX}/libexec/nagios

.include <bsd.port.mk>