summaryrefslogtreecommitdiffstats
path: root/rules/procps.make
blob: d50607aed0513867e3741406a36281ebd5bff298 (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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# -*-makefile-*-
#
# Copyright (C) 2003 by Ixia Corporation, by Milan Bobde
#		2007 by Pengutronix e.K.
#		2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#		2015 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_PROCPS) += procps

#
# Paths and names
#
PROCPS_VERSION	:= 3.3.15
PROCPS_MD5	:= 2b0717a7cb474b3d6dfdeedfbad2eccc
PROCPS		:= procps-ng-$(PROCPS_VERSION)
PROCPS_SUFFIX	:= tar.xz
PROCPS_URL	:= $(call ptx/mirror, SF, procps-ng/Production/$(PROCPS).$(PROCPS_SUFFIX))
PROCPS_SOURCE	:= $(SRCDIR)/$(PROCPS).$(PROCPS_SUFFIX)
PROCPS_DIR	:= $(BUILDDIR)/$(PROCPS)
PROCPS_LICENSE	:= GPL-2.0-only AND LGPL-2.0-only
PROCPS_LICENSE_FILES := \
	file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
	file://COPYING.LIB;md5=4cf66a4984120007c9881cc871cf49db

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

#
# autoconf
#
PROCPS_CONF_TOOL	:= autoconf
PROCPS_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	$(GLOBAL_LARGE_FILE_OPTION) \
	--enable-shared \
	--disable-static \
	--disable-nls \
	--disable-rpath \
	--disable-watch8bit \
	--disable-libselinux \
	--$(call ptx/endis, PTXCONF_PROCPS_PIDOF)-pidof \
	--disable-kill \
	--disable-skill \
	--disable-examples \
	--disable-sigwinch \
	--disable-wide-percent \
	--enable-wide-memory \
	--$(call ptx/endis, PTXCONF_PROCPS_TOP_MODERN)-modern-top \
	--disable-numa \
	--disable-w-from \
	--enable-whining \
	--without-libiconv-prefix \
	--without-libintl-prefix \
	--$(call ptx/wwo, PTXCONF_PROCPS_USES_NCURSES)-ncurses \
	--$(call ptx/wwo, PTXCONF_PROCPS_WITH_SYSTEMD)-systemd \
	--without-elogind


# ----------------------------------------------------------------------------
# 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,"Clemens Gruber <clemens.gruber@pqgruber.com>")
	@$(call install_fixup, procps,DESCRIPTION,missing)

	@$(call install_lib, procps, 0, 0, 0644, libprocps)

ifdef PTXCONF_PROCPS_FREE
	@$(call install_copy, procps, 0, 0, 0755, -, /usr/bin/free)
endif
ifdef PTXCONF_PROCPS_PGREP
	@$(call install_copy, procps, 0, 0, 0755, -, /usr/bin/pgrep)
endif
ifdef PTXCONF_PROCPS_PIDOF
	@$(call install_copy, procps, 0, 0, 0755, -, /usr/bin/pidof)
endif
ifdef PTXCONF_PROCPS_PKILL
	@$(call install_copy, procps, 0, 0, 0755, -, /usr/bin/pkill)
endif
ifdef PTXCONF_PROCPS_PMAP
	@$(call install_copy, procps, 0, 0, 0755, -, /usr/bin/pmap)
endif
ifdef PTXCONF_PROCPS_PS
	@$(call install_copy, procps, 0, 0, 0755, -, /usr/bin/ps)
endif
ifdef PTXCONF_PROCPS_PWDX
	@$(call install_copy, procps, 0, 0, 0755, -, /usr/bin/pwdx)
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, -, /usr/sbin/sysctl)
	@$(call install_alternative, procps, 0, 0, 0644, /etc/sysctl.conf, n)
endif
ifdef PTXCONF_PROCPS_TOP
	@$(call install_copy, procps, 0, 0, 0755, -, /usr/bin/top)
endif
ifdef PTXCONF_PROCPS_UPTIME
	@$(call install_copy, procps, 0, 0, 0755, -, /usr/bin/uptime)
endif
ifdef PTXCONF_PROCPS_VMSTAT
	@$(call install_copy, procps, 0, 0, 0755, -, /usr/bin/vmstat)
endif
ifdef PTXCONF_PROCPS_W
	@$(call install_copy, procps, 0, 0, 0755, -, /usr/bin/w)
endif
ifdef PTXCONF_PROCPS_WATCH
	@$(call install_copy, procps, 0, 0, 0755, -, /usr/bin/watch)
endif

	@$(call install_finish, procps)

	@$(call touch)

# vim: syntax=make