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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
# -*-makefile-*-
#
# Copyright (C) 2003 by Ixia Corporation, by Milan Bobde
# 2007 by Pengutronix e.K.
# 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_PROCPS) += procps
#
# Paths and names
#
PROCPS_VERSION := 3.2.8
PROCPS_MD5 := 9532714b6846013ca9898984ba4cd7e0
PROCPS := procps-$(PROCPS_VERSION)
PROCPS_SUFFIX := tar.gz
PROCPS_URL := http://procps.sourceforge.net/$(PROCPS).$(PROCPS_SUFFIX)
PROCPS_SOURCE := $(SRCDIR)/$(PROCPS).$(PROCPS_SUFFIX)
PROCPS_DIR := $(BUILDDIR)/$(PROCPS)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(PROCPS_SOURCE):
@$(call targetinfo)
@$(call get, PROCPS)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
# build only the required parts
PROCPS_ALL-$(PTXCONF_PROCPS_TOP) += $(PROCPS_PKGDIR)/usr/bin/top
PROCPS_ALL-$(PTXCONF_PROCPS_SLABTOP) += $(PROCPS_PKGDIR)/usr/bin/slabtop
PROCPS_ALL-$(PTXCONF_PROCPS_SYSCTL) += $(PROCPS_PKGDIR)/sbin/sysctl
PROCPS_ALL-$(PTXCONF_PROCPS_W) += $(PROCPS_PKGDIR)/usr/bin/w
PROCPS_ALL-$(PTXCONF_PROCPS_PGREP) += $(PROCPS_PKGDIR)/usr/bin/pgrep
PROCPS_PATH := PATH=$(CROSS_PATH)
PROCPS_MAKEVARS := \
CC="$(CROSS_CC)" \
CFLAGS=-O2 \
CPPFLAGS='$(CROSS_CPPFLAGS)' \
LDFLAGS='$(CROSS_LDFLAGS)' \
lib64=lib \
ldconfig=true \
MANFILES="" \
BINFILES="$(PROCPS_ALL-y)"
$(STATEDIR)/procps.prepare:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/procps.targetinstall:
@$(call targetinfo)
@$(call install_init, procps)
@$(call install_fixup, procps,PRIORITY,optional)
@$(call install_fixup, procps,SECTION,base)
@$(call install_fixup, procps,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
@$(call install_fixup, procps,DESCRIPTION,missing)
@$(call install_copy, procps, 0, 0, 0644, -, \
/lib/libproc-3.2.8.so)
ifdef PTXCONF_PROCPS_TOP
@$(call install_copy, procps, 0, 0, 0755, -,\
/usr/bin/top)
endif
ifdef PTXCONF_PROCPS_SLABTOP
@$(call install_copy, procps, 0, 0, 0755, -, \
/usr/bin/slabtop)
endif
ifdef PTXCONF_PROCPS_SYSCTL
@$(call install_copy, procps, 0, 0, 0755, -, \
/sbin/sysctl)
@$(call install_alternative, procps, 0, 0, 0644, /etc/sysctl.conf, n)
endif
ifdef PTXCONF_PROCPS_PS
@$(call install_copy, procps, 0, 0, 0755, -, \
/bin/ps)
endif
ifdef PTXCONF_PROCPS_W
@$(call install_copy, procps, 0, 0, 0755, -, \
/usr/bin/w)
endif
ifdef PTXCONF_PROCPS_PGREP
@$(call install_copy, procps, 0, 0, 0755, -, \
/usr/bin/pgrep)
endif
@$(call install_finish, procps)
@$(call touch)
# vim: syntax=make
|