summaryrefslogtreecommitdiffstats
path: root/rules/memstat.make
blob: e4a60b2f49bbbc352d42550edfdbdb5d401106bb (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
# -*-makefile-*-
#
# Copyright (C) 2005 by Robert Schwebel
#          
# 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_MEMSTAT) += memstat

#
# Paths and names
#
MEMSTAT_VERSION	:= 0.8
MEMSTAT_MD5	:= 8ba8c468a414dc1e7d38ea1eb832cf8c
MEMSTAT		:= memstat_$(MEMSTAT_VERSION)
MEMSTAT_SUFFIX	:= tar.gz
MEMSTAT_URL	:= http://snapshot.debian.org/archive/debian/20090608T162846Z/pool/main/m/memstat/memstat_$(MEMSTAT_VERSION).$(MEMSTAT_SUFFIX)
MEMSTAT_SOURCE	:= $(SRCDIR)/memstat_$(MEMSTAT_VERSION).$(MEMSTAT_SUFFIX)
MEMSTAT_DIR	:= $(BUILDDIR)/memstat-$(MEMSTAT_VERSION)


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

MEMSTAT_PATH	:= PATH=$(CROSS_PATH)
MEMSTAT_ENV	:= $(CROSS_ENV)

MEMSTAT_MAKEVARS := $(CROSS_ENV_CC) DEB_BUILD_OPTIONS=debug,nostrip

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

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

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

	@$(call install_init, memstat)
	@$(call install_fixup, memstat,PRIORITY,optional)
	@$(call install_fixup, memstat,SECTION,base)
	@$(call install_fixup, memstat,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, memstat,DESCRIPTION,missing)

	@$(call install_copy, memstat, 0, 0, 0644, -, /etc/memstat.conf, n)
	@$(call install_copy, memstat, 0, 0, 0755, -, /usr/bin/memstat)

	@$(call install_finish, memstat)

	@$(call touch)

# vim: syntax=make