2010-03-21 16:24:53 +00:00
|
|
|
#
|
2011-08-27 19:12:45 +00:00
|
|
|
# Copyright (C) 2010-2011 OpenWrt.org
|
2010-03-21 16:24:53 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ditg
|
2011-08-27 19:12:45 +00:00
|
|
|
PKG_VERSION:=2.8.0-rc1
|
|
|
|
PKG_RELEASE:=1
|
2010-03-21 16:24:53 +00:00
|
|
|
|
2011-08-27 19:12:45 +00:00
|
|
|
PKG_SOURCE:=D-ITG-$(PKG_VERSION).tgz
|
|
|
|
PKG_SOURCE_URL:=http://www.grid.unina.it/software/ITG/codice
|
2011-09-03 06:28:50 +00:00
|
|
|
PKG_MD5SUM:=609736113de729df833ac691d1c44ead
|
2010-03-21 16:24:53 +00:00
|
|
|
|
2011-08-27 19:12:45 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/D-ITG-$(PKG_VERSION)
|
2010-03-21 16:24:53 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-08-27 19:12:45 +00:00
|
|
|
define Package/ditg
|
2010-03-21 16:24:53 +00:00
|
|
|
TITLE:=D-ITG (Distributed Internet Traffic Generator)
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
URL:=http://www.grid.unina.it/software/ITG/
|
|
|
|
MAINTAINER:=Giovanni Di Stasi <giovanni.distasi@unina.it>
|
2011-08-27 19:12:45 +00:00
|
|
|
DEPENDS:=+libpthread +uclibcxx
|
2010-03-21 16:24:53 +00:00
|
|
|
endef
|
|
|
|
|
2011-08-27 19:12:45 +00:00
|
|
|
define Package/ditg/description
|
2010-03-21 16:24:53 +00:00
|
|
|
D-ITG (Distributed Internet Traffic Generator) is a platform capable
|
|
|
|
to produce traffic at packet level accurately replicating appropriate
|
|
|
|
stochastic processes for both IDT (Inter Departure Time) and PS
|
|
|
|
(Packet Size) random variables (exponential, uniform, cauchy, normal,
|
|
|
|
pareto, ...). D-ITG supports both IPv4 and IPv6 traffic generation and
|
|
|
|
it is capable to generate traffic at network, transport, and
|
|
|
|
application layer. We believe that D-ITG shows interesting properties
|
|
|
|
when compared to other traffic generators.
|
|
|
|
endef
|
|
|
|
|
2011-08-27 19:12:45 +00:00
|
|
|
MAKE_PATH := src
|
2010-03-21 16:24:53 +00:00
|
|
|
|
2011-08-27 19:12:45 +00:00
|
|
|
TARGET_CXX = $(STAGING_DIR)/host/bin/g++-uc
|
2010-03-21 16:24:53 +00:00
|
|
|
|
2011-08-27 19:12:45 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
CXXOPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DMULTIPORT -DARM"
|
2010-03-21 16:24:53 +00:00
|
|
|
|
|
|
|
define Package/ditg/install
|
2011-08-27 19:12:45 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/ITG{Send,Recv,Log,Dec} $(1)/usr/bin/
|
2010-03-21 16:24:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ditg))
|