1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add mgen, The Multi-Generator, an open source software by the Naval Research

Laboratory (NRL) PROTocol Engineering Advanced Networking (PROTEAN)
Research Group.  MGEN provides the ability to perform IP network
performance tests and measurements using UDP/IP traffic (TCP is currently
being developed).

PR:		ports/73532
Submitted by:	Janos Mohacsi <janos.mohacsi@bsd.hu>
This commit is contained in:
Pav Lucistnik 2004-11-04 23:39:51 +00:00
parent e0c51db081
commit f67e946c8e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120823
6 changed files with 95 additions and 0 deletions

View File

@ -332,6 +332,7 @@
SUBDIR += meanwhile
SUBDIR += meanwhile-gaim
SUBDIR += merlinmon
SUBDIR += mgen
SUBDIR += micq
SUBDIR += minisapserver
SUBDIR += mldonkey

40
net/mgen/Makefile Normal file
View File

@ -0,0 +1,40 @@
# New ports collection makefile for: rude
# Date created: 04/11/2004
# Whom: janos.mohacsi@bsd.hu
#
# $FreeBSD$
#
PORTNAME= mgen
PORTVERSION= 4.2b5
CATEGORIES= net
MASTER_SITES= http://downloads.pf.itd.nrl.navy.mil/mgen/
EXTRACT_SUFX= .tgz
DISTFILES= src-${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= janos.mohacsi@bsd.hu
COMMENT= An IP network performance tests and measurements
USE_GMAKE= yes
USE_REINPLACE= yes
PLIST_FILES= bin/mgen
PORTDOCS= README.TXT VERSION.TXT mgen.html example.mgn
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/unix/Makefile.common \
${WRKSRC}/protolib/unix/Makefile.common
do-build:
cd ${WRKSRC}/unix && ${GMAKE} -f Makefile.freebsd ${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unix/mgen ${PREFIX}/bin
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

2
net/mgen/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (src-mgen-4.2b5.tgz) = ca6c45d36ce84b30030c4436f926ec3f
SIZE (src-mgen-4.2b5.tgz) = 368998

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- common/mgen.cpp.orig
+++ common/mgen.cpp
@@ -1319,7 +1319,7 @@
m++;
}
return type;
-}; // end Mgen::GetCmdType()
+} // end Mgen::GetCmdType()
bool Mgen::OnCommand(Mgen::Command cmd, const char* arg, bool override)
{

View File

@ -0,0 +1,22 @@
$FreeBSD$
--- common/mgenApp.cpp.orig
+++ common/mgenApp.cpp
@@ -221,7 +221,7 @@
nextCmd++;
}
return type;
-}; // end MgenApp::GetCmdType()
+} // end MgenApp::GetCmdType()
bool MgenApp::ProcessCommands(int argc, const char*const* argv)
{
@@ -1388,6 +1388,6 @@
} // end MgenStreamSource::Read()
// This macro instantiates our MgenApp instance
-PROTO_INSTANTIATE_APP(MgenApp);
+PROTO_INSTANTIATE_APP(MgenApp)

16
net/mgen/pkg-descr Normal file
View File

@ -0,0 +1,16 @@
The Multi-Generator (MGEN) is open source software by the Naval Research
Laboratory (NRL) PROTocol Engineering Advanced Networking (PROTEAN)
Research Group. MGEN provides the ability to perform IP network
performance tests and measurements using UDP/IP traffic (TCP is currently
being developed).
The toolset generates real-time traffic patterns so that the network can
be loaded in a variety of ways. The generated traffic can also be
received and logged for analyses. Script files are used to drive the
generated loading patterns over the course of time. These script files can
be used to emulate the traffic patterns of unicast and/or multicast UDP/IP
applications. The receive portion of this tool set can be scripted to
dynamically join and leave IP multicast groups. MGEN log data can be used
to calculate performance statistics on throughput, packet loss rates,
communication delay, and more.
WWW: http://mgen.pf.itd.nrl.navy.mil/