diff --git a/net/nload/Makefile b/net/nload/Makefile index 97b6064608c1..95fc9489877b 100644 --- a/net/nload/Makefile +++ b/net/nload/Makefile @@ -1,24 +1,25 @@ # Created by: Olivier Tharan # $FreeBSD$ PORTNAME= nload PORTVERSION= 0.7.4 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.roland-riegel.de/nload/ \ LOCAL/ehaupt MAINTAINER= ehaupt@FreeBSD.org COMMENT= Console application which monitors network traffic in real time LICENSE= GPLv2 USES= ncurses GNU_CONFIGURE= yes PLIST_FILES= bin/nload man/man1/nload.1.gz post-patch: @${REINPLACE_CMD} -e "s|\(/etc/nload\.conf\)|${PREFIX}\1|" \ ${WRKSRC}/docs/nload.1.in ${WRKSRC}/src/main.cpp .include diff --git a/net/nload/files/patch-src_devreader-bsd.cpp b/net/nload/files/patch-src_devreader-bsd.cpp new file mode 100644 index 000000000000..e827ac671ebb --- /dev/null +++ b/net/nload/files/patch-src_devreader-bsd.cpp @@ -0,0 +1,11 @@ +--- src/devreader-bsd.cpp.orig 2011-06-12 10:01:11 UTC ++++ src/devreader-bsd.cpp +@@ -91,7 +91,7 @@ list DevReaderBsd::findAllDevice + if(sdl->sdl_family != AF_LINK) + continue; + +- interfaceNames.push_back(string(sdl->sdl_data)); ++ interfaceNames.push_back(string(sdl->sdl_data, sdl->sdl_nlen)); + } + + free(buf);