2007-01-17 06:08:24 +00:00
|
|
|
#
|
2010-03-24 04:49:34 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2007-01-17 06:08:24 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=procps
|
2009-10-05 12:50:54 +00:00
|
|
|
PKG_VERSION:=3.2.8
|
2007-01-17 06:08:24 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://procps.sourceforge.net
|
2009-10-05 12:50:54 +00:00
|
|
|
PKG_MD5SUM:=9532714b6846013ca9898984ba4cd7e0
|
2007-01-17 06:08:24 +00:00
|
|
|
|
2010-09-07 10:04:42 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
2007-01-17 06:08:24 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2012-12-04 16:20:42 +00:00
|
|
|
PROCPS_APPLETS := \
|
|
|
|
ps free pgrep pkill pmap pwdx skill w \
|
|
|
|
slabtop snice tload top vmstat watch
|
|
|
|
|
|
|
|
define Package/procps/Default
|
2007-01-17 06:08:24 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+libncurses
|
|
|
|
TITLE:=proc utilities
|
2010-03-24 04:49:34 +00:00
|
|
|
URL:=http://procps.sourceforge.net/
|
2007-01-17 06:08:24 +00:00
|
|
|
endef
|
|
|
|
|
2012-12-04 16:20:42 +00:00
|
|
|
define Package/procps
|
|
|
|
$(call Package/procps/Default)
|
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
2007-09-06 04:11:15 +00:00
|
|
|
define Package/procps/description
|
|
|
|
procps is the package that has a bunch of small useful utilities that give
|
|
|
|
information about processes using the /proc filesystem. The package
|
|
|
|
includes the programs ps, top, vmstat, w, kill, free, slabtop, and skill.
|
2007-01-17 06:08:24 +00:00
|
|
|
endef
|
|
|
|
|
2012-12-04 16:20:42 +00:00
|
|
|
define GenPlugin
|
|
|
|
define Package/$(1)
|
|
|
|
$(call Package/procps/Default)
|
|
|
|
DEPENDS:=procps
|
|
|
|
TITLE:=Applet $(2) from the procps package
|
|
|
|
DEFAULT:=y
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/$(1)/description
|
|
|
|
Installs the applet $(2).
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach a,$(PROCPS_APPLETS),$(eval $(call GenPlugin,procps-$(a),$(a))))
|
|
|
|
|
2007-09-06 04:11:15 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
2007-01-17 06:08:24 +00:00
|
|
|
|
|
|
|
define Package/procps/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-02-23 20:30:48 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/proc/libproc-$(PKG_VERSION).so $(1)/usr/lib/
|
2007-01-17 06:08:24 +00:00
|
|
|
endef
|
|
|
|
|
2012-12-04 16:20:42 +00:00
|
|
|
AUXDIR_ps := "ps/"
|
|
|
|
|
|
|
|
define BuildPlugin
|
|
|
|
define Package/$(1)/install
|
|
|
|
$(INSTALL_DIR) $$(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(AUXDIR_$(2))$(2) $$(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$$(eval $$(call BuildPackage,$(1)))
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach a,$(PROCPS_APPLETS),$(eval $(call BuildPlugin,procps-$(a),$(a))))
|
2007-01-17 06:08:24 +00:00
|
|
|
$(eval $(call BuildPackage,procps))
|