mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
40c925016b
- force iftop to use its netdb_1thread resolver, instead of the buggy "fork" one which leaves 2 processes (holding /dev/bpf?) after exiting - remove a stale entry from MASTER_SITES - change comment and description to match iftop.spec - pass maintainership to submitter Moreover: - fix the packing list when NOPORTDOCS is defined - unsilence the install - polish the Makefile PR: ports/81830 [1] Submitted by: Vasil Dimov <vd@datamax.bg> (new maintainer) [1]
44 lines
965 B
Makefile
44 lines
965 B
Makefile
# New ports collection makefile for: iftop
|
|
# Date created: 24 May 2003
|
|
# Whom: Kirill Ponomarew <ponomarew@oberon.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= iftop
|
|
PORTVERSION= 0.16
|
|
PORTREVISION= 1
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= http://www.ex-parrot.com/~pdw/iftop/download/
|
|
|
|
MAINTAINER= vd@datamax.bg
|
|
COMMENT= Display bandwidth usage on an interface by host
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ARGS= --with-resolver=netdb_1thread
|
|
USE_REINPLACE= yes
|
|
|
|
MAN8= iftop.8
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= README
|
|
.endif
|
|
PLIST_FILES= bin/iftop
|
|
|
|
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>
|