aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/nfsping/Makefile
blob: ade9592b3f6510bd40b319aa5eb6e2c127fa12e7 (plain) (blame)
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
# $FreeBSD$

PORTNAME=   nfsping
PORTVERSION=    0.1.20131017
CATEGORIES= sysutils net-mgmt
MASTER_SITES=   GH \
        LOCAL/bdrewery/${PORTNAME}/

MAINTAINER= bdrewery@FreeBSD.org
COMMENT=    Command line tool to check NFS server response times

LICENSE=    BSD2CLAUSE

OPTIONS_DEFINE= DOCS SMOKEPING
OPTIONS_DEFAULT=SMOKEPING
OPTIONS_SUB=    yes
SMOKEPING_DESC= Install Smokeping probe

USES=       gmake

USE_GITHUB= yes
GH_ACCOUNT= mprovost
GH_PROJECT= NFSping
GH_COMMIT=  460c382
GH_TAGNAME= ${GH_COMMIT}

PORTDOCS=   README

.include <bsd.port.options.mk>

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MSMOKEPING}
    ${MKDIR} ${STAGEDIR}${PREFIX}/smokeping/lib/Smokeping/probes
    ${INSTALL_DATA} ${WRKSRC}/Smokeping/NFSping.pm \
        ${STAGEDIR}${PREFIX}/smokeping/lib/Smokeping/probes
.endif

.include <bsd.port.mk>