summaryrefslogtreecommitdiffstats
path: root/rules/atop.make
blob: 9fb433ecde7d7c1887bbdf7964257f06b60aa538 (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
# -*-makefile-*-
#
# Copyright (C) 2008 by Remy Bohmer, Netherlands
#               2010 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_ATOP) += atop

#
# Paths and names
#
ATOP_VERSION	:= 1.24
ATOP		:= atop-$(ATOP_VERSION)
ATOP_URL	:= http://www.atoptool.nl/download/$(ATOP).tar.gz
ATOP_SOURCE	:= $(SRCDIR)/$(ATOP).tar.gz
ATOP_DIR	:= $(BUILDDIR)/$(ATOP)


# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

$(ATOP_SOURCE):
	@$(call targetinfo)
	@$(call get, ATOP)

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

ATOP_COMPILE_ENV := $(CROSS_ENV)

$(STATEDIR)/atop.prepare:
	@$(call targetinfo)
	@$(call touch)

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

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

	@$(call install_init, atop)
	@$(call install_fixup, atop,PACKAGE,atop)
	@$(call install_fixup, atop,PRIORITY,optional)
	@$(call install_fixup, atop,VERSION,$(ATOP_VERSION))
	@$(call install_fixup, atop,SECTION,base)
	@$(call install_fixup, atop,AUTHOR,"Remy Bohmer <linux@bohmer.net>")
	@$(call install_fixup, atop,DEPENDS,)
	@$(call install_fixup, atop,DESCRIPTION,missing)

	@$(call install_copy, atop, 0, 0, 0755, -, /usr/bin/atop)

	@$(call install_finish, atop)

	@$(call touch)

# vim: syntax=make