2 # Copyright (C) 2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=ftp
://ftp.lcp.nrl.navy.mil
/pub
/nuttcp
16 PKG_MD5SUM
:=a16d4d6d5def02cea980e57feaf30500
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/nuttcp
/Default
23 TITLE
:=Network performance measurement tool
24 URL
:=http
://lcp.nrl.navy.mil
/nuttcp
/nuttcp.html
27 define Package
/nuttcp
/Default
/description
28 nuttcp is a network performance measurement tool intended for use by network
29 and system managers. Its most basic usage is to determine the raw TCP
(or UDP
)
30 network layer throughput by transferring memory buffers from a source system
31 across an interconnecting network to a destination system
, either transferring
32 data for a specified time interval
, or alternatively transferring a specified
33 number of bytes. In addition to reporting the achieved network throughput in
34 Mbps
, nuttcp also provides additional useful information related to the data
35 transfer such
as user
, system
, and wall-clock time
, transmitter and receiver
36 CPU utilization
, and loss percentage
(for UDP transfers
).
40 $(call Package
/nuttcp
/Default
)
43 define Package
/nuttcp
/description
44 $(call Package
/nuttcp
/Default
/description
)
47 define Package
/nuttcp-xinetd
48 $(call Package
/nuttcp
/Default
)
49 TITLE
+= xinetd service files
50 DEPENDS
:=+nuttcp
+xinetd
53 define Package
/nuttcp-xinetd
/description
54 $(call Package
/nuttcp
/Default
/description
)
55 This package contains the nuttcp xinetd service files.
60 OPT
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -Wall"
62 define Package
/nuttcp
/install
63 $(INSTALL_DIR
) $(1)/usr
/bin
64 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/nuttcp
$(1)/usr
/bin
/
67 define Package
/nuttcp-xinetd
/install
68 $(INSTALL_DIR
) $(1)/etc
/xinetd.d
69 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/xinetd.d
/nuttcp
* $(1)/etc
/xinetd.d
/
70 $(SED
) 's,/local,,' $(1)/etc
/xinetd.d
/nuttcp
*
73 $(eval
$(call BuildPackage
,nuttcp
))
74 $(eval
$(call BuildPackage
,nuttcp-xinetd
))