diff options
author | jylefort <jylefort@FreeBSD.org> | 2005-06-08 19:59:42 +0800 |
---|---|---|
committer | jylefort <jylefort@FreeBSD.org> | 2005-06-08 19:59:42 +0800 |
commit | 18a2e12050607679e8da1ed8baed5350f58473d9 (patch) | |
tree | a15caf7f88b4c2473f5fc2668262b51a693ac4a7 /net-mgmt/iftop | |
parent | 33016bbc2e7e157d1652d13790d45ac38aca405b (diff) | |
download | freebsd-ports-graphics-18a2e12050607679e8da1ed8baed5350f58473d9.tar.gz freebsd-ports-graphics-18a2e12050607679e8da1ed8baed5350f58473d9.tar.zst freebsd-ports-graphics-18a2e12050607679e8da1ed8baed5350f58473d9.zip |
[1]:
- 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]
Diffstat (limited to 'net-mgmt/iftop')
-rw-r--r-- | net-mgmt/iftop/Makefile | 27 | ||||
-rw-r--r-- | net-mgmt/iftop/pkg-descr | 13 |
2 files changed, 24 insertions, 16 deletions
diff --git a/net-mgmt/iftop/Makefile b/net-mgmt/iftop/Makefile index 62215f0eb3f..14c9ea29c15 100644 --- a/net-mgmt/iftop/Makefile +++ b/net-mgmt/iftop/Makefile @@ -7,38 +7,37 @@ PORTNAME= iftop PORTVERSION= 0.16 +PORTREVISION= 1 CATEGORIES= net-mgmt -MASTER_SITES= http://www.ex-parrot.com/~pdw/iftop/download/ \ - http://voodoo.oberon.net/ +MASTER_SITES= http://www.ex-parrot.com/~pdw/iftop/download/ -MAINTAINER= ports@FreeBSD.org -COMMENT= Network utility for real-time bandwidth usage information +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 -.include <bsd.port.pre.mk> - 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 ${MANPREFIX}/man/man8 + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MAN8PREFIX}/man/man8 post-install: -.ifndef (NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for i in README - @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} -.endfor +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/net-mgmt/iftop/pkg-descr b/net-mgmt/iftop/pkg-descr index 768905ed87a..c2f0728e85e 100644 --- a/net-mgmt/iftop/pkg-descr +++ b/net-mgmt/iftop/pkg-descr @@ -1,4 +1,13 @@ -iftop provides real-time bandwidth usage information on a -specified interface, listed by host pairs. +iftop listens to network traffic on a named interface, or +on the first interface it can find which looks like an +external interface if none is specified, and displays a +table of current bandwidth usage by pairs of hosts. iftop +must be run with sufficient permissions to monitor all +network traffic on the interface; see pcap(3) for more +information, but on most systems this means that it must +be run as root. WWW: http://www.ex-parrot.com/~pdw/iftop/ + +- Vasil Dimov +vd@datamax.bg |