add netperf package (thanks to Janos)
[openwrt.git] / openwrt / package / netperf / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=netperf
6 PKG_VERSION:=2.3pl1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=b74314d78af31cb13516fb9a372d2e86
9
10 PKG_SOURCE_URL:=ftp://ftp.netperf.org/netperf/archive/ \
11 ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,NETPERF,netperf,$(PKG_VERSION)$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 $(MAKE) -C $(PKG_BUILD_DIR) \
26 TARGET_NETPERF_HOME="/etc/netperf.conf" \
27 TARGET_CC=$(TARGET_CROSS)gcc \
28 TARGET_CFLAGS="$(TARGET_CFLAGS)" \
29 TARGET_LIBS="" \
30 all
31 touch $@
32
33 $(IPKG_NETPERF):
34 install -d -m0755 $(IDIR_NETPERF)/etc/init.d
35 install -m0755 ./files/netserver.init $(IDIR_NETPERF)/etc/init.d/S51netserver
36 install -d -m0755 $(IDIR_NETPERF)/usr/bin
37 install -m0755 $(PKG_BUILD_DIR)/netperf $(IDIR_NETPERF)/usr/bin/
38 install -m0755 $(PKG_BUILD_DIR)/netserver $(IDIR_NETPERF)/usr/bin/
39 $(RSTRIP) $(IDIR_NETPERF)
40 $(IPKG_BUILD) $(IDIR_NETPERF) $(PACKAGE_DIR)
This page took 0.038418 seconds and 5 git commands to generate.