new package: jtg
[openwrt/svn-archive/archive.git] / net / jtg / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=jtg
11 PKG_VERSION:=1.95
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:= \
15 http://hoslab.cs.helsinki.fi/downloads/jtg \
16 http://www.netlab.tkk.fi/~jmanner/jtg
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/jtg
23 TITLE:=Jugi's Traffic Generator
24 SUBMENU:=Monitoring
25 SECTION:=net
26 CATEGORY:=Network
27 MAINTAINER:=Roberto Riggio (roberto.riggio@create-net.org)
28 URL:=https://hoslab.cs.helsinki.fi/savane/projects/jtg/
29 endef
30
31 define Package/wing/Description
32 The JTG generator is a simple, yet powerful and, if required, accurate
33 traffic generator. jtg differs from other traffic generators in that one
34 instance of a jtg process only sends one stream (e.g. MGEN can send tens
35 of streams) and the characteristics of the stream are given only with
36 command line arguments. On the other hand, a receiving jtg process can
37 be set to loop and receive several streams but, again, only one at a
38 time. The received packets can be logged and the log files can be
39 analyzed with jtg_calc (see later in this file for instructions). jtg6
40 is the binary for IPv6 networks.
41 endef
42
43 define Build/Compile
44 $(MAKE) $(TARGET_CONFIGURE_OPTS) \
45 -C $(PKG_BUILD_DIR)
46 endef
47
48 define Package/jtg/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(CP) $(PKG_BUILD_DIR)/jtg $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,jtg))