1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/net-mgmt/iftop/Makefile

38 lines
797 B
Makefile

# Created by: Kirill Ponomarew <ponomarew@oberon.net>
# $FreeBSD$
PORTNAME= iftop
PORTVERSION= 0.17
CATEGORIES= net-mgmt
MASTER_SITES= http://www.ex-parrot.com/~pdw/iftop/download/
MAINTAINER= vd@FreeBSD.org
COMMENT= Display bandwidth usage on an interface by host
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-resolver=netdb_1thread
MAN8= iftop.8
.if !defined(NOPORTDOCS)
PORTDOCS= README
.endif
PLIST_FILES= bin/iftop
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MAN8PREFIX}/man/man8
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>