summaryrefslogtreecommitdiff
path: root/net-mgmt/nstat/Makefile
blob: 1c363697e2ad8594f487d14ade2016c6df940bd7 (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

PORTNAME=	nstat
PORTVERSION=	1.0
PORTREVISION=	4
CATEGORIES=	net-mgmt

MAINTAINER=	swills@FreeBSD.org
COMMENT=	Replacement for bw/netstat/vmstat/pcm-memory.x

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	${RUN_DEPENDS_${ARCH}}
RUN_DEPENDS_i386=	pcm.x:sysutils/intel-pcm
RUN_DEPENDS_amd64=	pcm.x:sysutils/intel-pcm

USE_GITHUB=	yes
GH_ACCOUNT=	gallatin
GH_TAGNAME=	89b3844

PLIST_FILES=	bin/nstat \
		man/man1/nstat.1.gz

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/nstat ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/nstat.1.gz ${STAGEDIR}${PREFIX}/man/man1

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} <= 1200027
BROKEN=		Does not build without clock_nanosleep
.endif

.include <bsd.port.post.mk>