summaryrefslogtreecommitdiffstats
path: root/package/netperf/netperf.mk
blob: 455f27ed2c5b93a356328734888ecfba09c5e984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
################################################################################
#
# netperf
#
################################################################################

NETPERF_VERSION = 2.6.0
NETPERF_SITE = ftp://ftp.netperf.org/netperf
NETPERF_CONF_ENV = ac_cv_func_setpgrp_void=set
NETPERF_CONF_OPT = --enable-demo=yes
NETPERF_LICENSE = netperf license
NETPERF_LICENSE_FILES = COPYING

define NETPERF_INSTALL_TARGET_CMDS
	$(INSTALL) -m 0755 $(@D)/src/netperf \
		$(TARGET_DIR)/usr/bin/netperf
	$(INSTALL) -m 0755 $(@D)/src/netserver \
		$(TARGET_DIR)/usr/bin/netserver
endef

define NETPERF_UNINSTALL_TARGET_CMDS
	rm -f $(TARGET_DIR)/usr/bin/netperf
	rm -f $(TARGET_DIR)/usr/bin/netserver
endef

$(eval $(autotools-package))
OpenPOWER on IntegriCloud