summaryrefslogtreecommitdiffstats
path: root/rules/mtr.make
blob: 5859495d073e3810716cec48d2adf9046c6a0437 (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
# -*-makefile-*-
#
# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# 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_MTR) += mtr

#
# Paths and names
#
MTR_VERSION	:= 0.75
MTR_MD5		:= 23baca52d0922c2ecba7eba05317868c
MTR		:= mtr-$(MTR_VERSION)
MTR_SUFFIX	:= tar.gz
MTR_URL		:= ftp://ftp.bitwizard.nl/mtr/$(MTR).$(MTR_SUFFIX)
MTR_SOURCE	:= $(SRCDIR)/$(MTR).$(MTR_SUFFIX)
MTR_DIR		:= $(BUILDDIR)/$(MTR)
MTR_LICENSE	:= GPL-2.0-or-later

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

MTR_PATH	:= PATH=$(CROSS_PATH)
MTR_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
MTR_AUTOCONF := \
	$(CROSS_AUTOCONF_USR) \
	$(GLOBAL_IPV6_OPTION) \
	--without-gtk

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

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

	@$(call install_init,  mtr)
	@$(call install_fixup, mtr,PRIORITY,optional)
	@$(call install_fixup, mtr,SECTION,base)
	@$(call install_fixup, mtr,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
	@$(call install_fixup, mtr,DESCRIPTION,missing)

	@$(call install_copy, mtr, 0, 0, 4755, -, /usr/sbin/mtr)

	@$(call install_finish, mtr)

	@$(call touch)

# vim: syntax=make