2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_LICENSE_FILES
:=COPYING COPYING.LIB
17 PKG_SOURCE_URL
:=https
://gitlab.com
/procps-ng
/procps.git
18 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_SOURCE_VERSION
:=8a198e3eafbde0b627e9992b41d26e6762e4f8c7
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
25 PKG_BUILD_DEPENDS
:=gettext libiconv
27 include $(INCLUDE_DIR
)/package.mk
29 CONFIGURE_ARGS
+= --enable-skill
32 free kill pgrep pkill pmap ps pwdx skill slabtop \
33 snice tload top uptime vmstat w watch
35 define Package
/procps-ng
/Default
39 TITLE
:=procps-ng utilities
40 URL
:=https
://gitlab.com
/procps-ng
/procps
41 MAINTAINER
:=Gergely Kiss
<mail.gery@gmail.com
>
45 $(call Build
/Prepare
/Default
)
46 echo
"$(PKG_VERSION)" > "$(PKG_BUILD_DIR)/.tarball-version"
49 define Package
/procps-ng
50 $(call Package
/procps-ng
/Default
)
54 define Package
/procps-ng
/description
55 procps is a set of command line and full-screen utilities that provide information out of the pseudo-filesystem
56 most commonly located at
/proc. This filesystem provides a simple interface to the kernel data structures.
57 The programs of procps generally concentrate on the structures that describe the processess running on the system.
59 NOTE
: some utilities provided by procps-ng packages
(ps
, uptime
, kill
, ...
) are installed
as busybox applets
, by default.
60 Conflicting applets should be removed from the build to avoid file conflicts.
65 $(call Package
/procps-ng
/Default
)
67 TITLE
:=Applet
$(2) from the procps-ng package
71 define Package
/$(1)/description
72 Installs the applet
$(2).
76 $(foreach a
,$(PROCPS_APPLETS
),$(eval
$(call GenPlugin
,procps-ng-
$(a
),$(a
))))
79 CFLAGS
="$(TARGET_CFLAGS)" \
80 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
81 LDFLAGS
="$(TARGET_LDFLAGS)" \
83 define Package
/procps-ng
/install
84 $(INSTALL_DIR
) $(1)/usr
/bin
85 $(INSTALL_DIR
) $(1)/usr
/lib
86 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/libprocps.so
* $(1)/usr
/lib
/
90 define Package
/$(1)/install
91 $(INSTALL_DIR
) $$(1)/usr
/bin
92 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(2) $$(1)/usr
/bin
/
95 $$(eval
$$(call BuildPackage
,$(1)))
98 $(foreach a
,$(PROCPS_APPLETS
),$(eval
$(call BuildPlugin
,procps-ng-
$(a
),$(a
))))
99 $(eval
$(call BuildPackage
,procps-ng
))