3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=b74314d78af31cb13516fb9a372d2e86
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
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,NETPERF
,netperf
,$(PKG_VERSION
)$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
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)" \
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
)