#
-# Copyright (C) 2010 OpenWrt.org
+# Copyright (C) 2010-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
include $(TOPDIR)/rules.mk
PKG_NAME:=ditg
-PKG_VERSION:=2.7.0
-PKG_RELEASE:=Beta2
+PKG_VERSION:=2.8.0-rc1
+PKG_RELEASE:=1
-PKG_SOURCE:=D-ITG-${PKG_VERSION}-${PKG_RELEASE}.zip
-PKG_SOURCE_URL:=http://www.grid.unina.it/software/ITG/codice/
-PKG_MD5SUM:=6cf5f1a16283cff8297521ec4093df7f
+PKG_SOURCE:=D-ITG-$(PKG_VERSION).tgz
+PKG_SOURCE_URL:=http://www.grid.unina.it/software/ITG/codice
+PKG_MD5SUM:=609736113de729df833ac691d1c44ead
-PKG_BUILD_DIR:=$(BUILD_DIR)/D-ITG-${PKG_VERSION}-${PKG_RELEASE}
+PKG_BUILD_DIR:=$(BUILD_DIR)/D-ITG-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
-define Package/ditg/Default
+define Package/ditg
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>
- DEPENDS:= +libpcap +libstdcpp
+ DEPENDS:=+libpthread +uclibcxx
endef
-define Package/ditg/Default/description
+define Package/ditg/description
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
when compared to other traffic generators.
endef
-define Package/ditg
- $(call Package/ditg/Default)
-endef
+MAKE_PATH := src
-# uncomment for arm targets
-#EXTRA_FLAGS=" arm=on "
+TARGET_CXX = $(STAGING_DIR)/host/bin/g++-uc
-define Build/Compile
- $(MAKE) \
- CXX="$(TARGET_CXX)" \
- CXXOPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
- -C $(PKG_BUILD_DIR)/src $(EXTRA_CFLAGS)
-endef
+MAKE_FLAGS += \
+ CXXOPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DMULTIPORT -DARM"
define Package/ditg/install
- $(INSTALL_DIR) $(1)/usr/bin/
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/{ITGSend,ITGRecv,ITGLog,ITGDec} \
- $(1)/usr/bin
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/ITG{Send,Recv,Log,Dec} $(1)/usr/bin/
endef
$(eval $(call BuildPackage,ditg))