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
14 PKG_MD5SUM:=b74314d78af31cb13516fb9a372d2e86
16 PKG_SOURCE_URL:=ftp://ftp.netperf.org/netperf/archive/ \
17 ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
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 DESCRIPTION:=Program and service to do network performance measurement.
30 URL:=http://www.netperf.org
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 TARGET_NETPERF_HOME="/etc/netperf.conf" \
36 TARGET_CC=$(TARGET_CROSS)gcc \
37 TARGET_CFLAGS="$(TARGET_CFLAGS)" \
42 define Package/netperf/install
43 install -d -m0755 $(1)/etc/init.d
44 install -m0755 ./files/netserver.init $(1)/etc/init.d/S51netserver
45 install -d -m0755 $(1)/usr/bin
46 install -m0755 $(PKG_BUILD_DIR)/netperf $(1)/usr/bin/
47 install -m0755 $(PKG_BUILD_DIR)/netserver $(1)/usr/bin/
50 $(eval $(call BuildPackage,netperf))