# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem              1.0
name                  	bmon
version                	2.1.0
categories              net
maintainers             mac.com:lomion
description		An interface bandwidth monitor
long_description	bmon is a bandwidth monitor with multiple modes and \
			mrtg-like ascii diagram capability.
homepage                http://people.suug.ch/~tgr/bmon
platforms               darwin
master_sites            ${homepage}/files

checksums              	md5 3111a027907016c0902d67350c619df6 \
			sha1 969084269f155583063832751fff5a22a6ac77e3 \
			rmd160 7e0a5e0a82bfd3dc30fec899088f2206a75796a0

configure.args		--mandir=${prefix}/share/man

patchfiles		patch-src-out_audio.c patch-src-out_xml_event.c

depends_lib		port:ncurses

destroot {		xinstall -m 755 -d ${destroot}${prefix}/bin
			xinstall -m 755 -d ${destroot}${prefix}/share/man/man1
     			file copy ${worksrcpath}/src/bmon \
				${destroot}${prefix}/bin
     			file copy ${worksrcpath}/man/bmon.1 \
				${destroot}${prefix}/share/man/man1
}
