2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=ftp
://ftp.netperf.org
/netperf
/archive
/ \
17 ftp
://ftp.cup.hp.com
/dist/networking
/benchmarks
/netperf
/
18 PKG_MD5SUM
:=b74314d78af31cb13516fb9a372d2e86
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/netperf
28 TITLE
:=network performance measurement tool
29 URL
:=http
://www.netperf.org
33 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
34 TARGET_NETPERF_HOME
="/etc/netperf.conf" \
35 TARGET_CC
="$(TARGET_CROSS)gcc" \
36 TARGET_CFLAGS
="$(TARGET_CFLAGS)" \
41 define Package
/netperf
/install
42 install -d
-m0755
$(1)/etc
/init.d
43 install -m0755 .
/files
/netserver.init
$(1)/etc
/init.d
/netserver
44 install -d
-m0755
$(1)/usr
/bin
45 install -m0755
$(PKG_BUILD_DIR
)/netperf
$(1)/usr
/bin
/
46 install -m0755
$(PKG_BUILD_DIR
)/netserver
$(1)/usr
/bin
/
49 $(eval
$(call BuildPackage
,netperf
))