summaryrefslogtreecommitdiffstats
path: root/rules/netperf.make
blob: 1ed528977b4ec05f99fc206dee11bc07fa4555da (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -*-makefile-*-
#
# Copyright (C) 2016 by Clemens Gruber <clemens.gruber@pqgruber.com>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_NETPERF) += netperf

#
# Paths and names
#
NETPERF_VERSION	:= 2.7.0
NETPERF_MD5	:= e0d45b5bca1eee2aef0155de82366202
NETPERF		:= netperf-$(NETPERF_VERSION)
NETPERF_SUFFIX	:= tar.gz
NETPERF_URL	:= \
	https://github.com/HewlettPackard/netperf/archive/$(NETPERF).$(NETPERF_SUFFIX)
NETPERF_SOURCE	:= $(SRCDIR)/$(NETPERF).$(NETPERF_SUFFIX)
NETPERF_DIR	:= $(BUILDDIR)/$(NETPERF)
NETPERF_LICENSE	:= HP

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#
# autoconf
#
NETPERF_CONF_TOOL	:= autoconf
NETPERF_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	$(GLOBAL_LARGE_FILE_OPTION) \
	--disable-histogram \
	--disable-dirty \
	--enable-demo \
	--disable-unixdomain \
	--disable-dlpi \
	--disable-dccp \
	--enable-omni \
	--disable-xti \
	--disable-sdp \
	--disable-exs \
	--disable-sctp \
	--disable-intervals \
	--disable-spin \
	--enable-burst \
	--enable-cpuutil=procstat

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/netperf.targetinstall:
	@$(call targetinfo)

	@$(call install_init, netperf)
	@$(call install_fixup, netperf, PRIORITY, optional)
	@$(call install_fixup, netperf, SECTION, base)
	@$(call install_fixup, netperf, AUTHOR, "Clemens Gruber <clemens.gruber@pqgruber.com>")
	@$(call install_fixup, netperf, DESCRIPTION, missing)

	@$(call install_alternative, netperf, 0, 0, 0755, /usr/bin/netperf)
	@$(call install_alternative, netperf, 0, 0, 0755, /usr/bin/netserver)

	@$(call install_finish, netperf)

	@$(call touch)

# vim: syntax=make