aboutsummaryrefslogtreecommitdiffstats
path: root/package/netperf/Makefile
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2006-01-10 13:45:36 +0000
committerNicolas Thill <nico@openwrt.org>2006-01-10 13:45:36 +0000
commitc1be0f79d47db7e72ff80140d7dde7fbe36129fb (patch)
tree79c38dd3755ae0bad3b7e517692f3854238df9ac /package/netperf/Makefile
parent5c1ce3ba44b369d09f26ac42dcc83785fd5adadb (diff)
downloadmaster-187ad058-c1be0f79d47db7e72ff80140d7dde7fbe36129fb.tar.gz
master-187ad058-c1be0f79d47db7e72ff80140d7dde7fbe36129fb.tar.bz2
master-187ad058-c1be0f79d47db7e72ff80140d7dde7fbe36129fb.zip
add netperf package (thanks to Janos)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2870 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/netperf/Makefile')
-rw-r--r--package/netperf/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/package/netperf/Makefile b/package/netperf/Makefile
new file mode 100644
index 0000000000..59642f0d23
--- /dev/null
+++ b/package/netperf/Makefile
@@ -0,0 +1,40 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=netperf
+PKG_VERSION:=2.3pl1
+PKG_RELEASE:=1
+PKG_MD5SUM:=b74314d78af31cb13516fb9a372d2e86
+
+PKG_SOURCE_URL:=ftp://ftp.netperf.org/netperf/archive/ \
+ ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,NETPERF,netperf,$(PKG_VERSION)$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.configured:
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ TARGET_NETPERF_HOME="/etc/netperf.conf" \
+ TARGET_CC=$(TARGET_CROSS)gcc \
+ TARGET_CFLAGS="$(TARGET_CFLAGS)" \
+ TARGET_LIBS="" \
+ all
+ touch $@
+
+$(IPKG_NETPERF):
+ install -d -m0755 $(IDIR_NETPERF)/etc/init.d
+ install -m0755 ./files/netserver.init $(IDIR_NETPERF)/etc/init.d/S51netserver
+ install -d -m0755 $(IDIR_NETPERF)/usr/bin
+ install -m0755 $(PKG_BUILD_DIR)/netperf $(IDIR_NETPERF)/usr/bin/
+ install -m0755 $(PKG_BUILD_DIR)/netserver $(IDIR_NETPERF)/usr/bin/
+ $(RSTRIP) $(IDIR_NETPERF)
+ $(IPKG_BUILD) $(IDIR_NETPERF) $(PACKAGE_DIR)