>From d3f62517f73201522eb36a4030cb54b26b4eb069 Mon Sep 17 00:00:00 2001 From: Jonh Wendell <[email protected]> Date: Thu, 23 Aug 2012 14:24:09 -0300 Subject: [PATCH] [package/procps] Allow selection of applets to be installed
This patch adds a menu entry under procps package, allowing the selection of which packages are actually installed. Signed-off-by: Jonh Wendell <[email protected]> --- utils/procps/Config.in | 74 ++++++++++++++++++++++++++++++++++++++++++++++++ utils/procps/Makefile | 48 +++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 utils/procps/Config.in diff --git a/utils/procps/Config.in b/utils/procps/Config.in new file mode 100644 index 0000000..6a7a22e --- /dev/null +++ b/utils/procps/Config.in @@ -0,0 +1,74 @@ +menu "procps applets" + depends on PACKAGE_procps + +config PROCPS_ENABLE_PS + bool "Install ps" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_FREE + bool "Install free" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_PGREP + bool "Install pgrep" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_PKILL + bool "Install pkill" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_PMAP + bool "Install pmap" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_PWDX + bool "Install pwdx" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_SKILL + bool "Install skill" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_SLABTOP + bool "Install slabtop" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_SNICE + bool "Install snice" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_TLOAD + bool "Install tload" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_TOP + bool "Install top" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_VMSTAT + bool "Install vmstat" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_W + bool "Install w" + depends on PACKAGE_procps + default y + +config PROCPS_ENABLE_WATCH + bool "Install watch" + depends on PACKAGE_procps + default y + +endmenu diff --git a/utils/procps/Makefile b/utils/procps/Makefile index 8e16706..0f92a70 100644 --- a/utils/procps/Makefile +++ b/utils/procps/Makefile @@ -25,6 +25,7 @@ define Package/procps DEPENDS:=+libncurses TITLE:=proc utilities URL:=http://procps.sourceforge.net/ + MENU:=1 endef define Package/procps/description @@ -33,6 +34,10 @@ define Package/procps/description includes the programs ps, top, vmstat, w, kill, free, slabtop, and skill. endef +define Package/procps/config + source "$(SOURCE)/Config.in" +endef + MAKE_FLAGS += \ CFLAGS="$(TARGET_CFLAGS)" \ CPPFLAGS="$(TARGET_CPPFLAGS)" \ @@ -40,20 +45,63 @@ MAKE_FLAGS += \ define Package/procps/install $(INSTALL_DIR) $(1)/usr/bin + + ifeq ($(CONFIG_PROCPS_ENABLE_FREE),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/free $(1)/usr/bin/ + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_PS),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/ps/ps $(1)/usr/bin + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_PGREP),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/pgrep $(1)/usr/bin + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_PKILL),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/pkill $(1)/usr/bin + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_PMAP),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/pmap $(1)/usr/bin + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_PWDX),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/pwdx $(1)/usr/bin + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_SKILL),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/skill $(1)/usr/bin + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_SLABTOP),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/slabtop $(1)/usr/bin + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_SNICE),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/snice $(1)/usr/bin + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_TLOAD),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/tload $(1)/usr/bin + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_TOP),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/top $(1)/usr/bin/ + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_VMSTAT),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/vmstat $(1)/usr/bin + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_W),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/w $(1)/usr/bin + endif + + ifeq ($(CONFIG_PROCPS_ENABLE_WATCH),y) $(INSTALL_BIN) $(PKG_BUILD_DIR)/watch $(1)/usr/bin + endif + $(INSTALL_DIR) $(1)/usr/lib $(INSTALL_BIN) $(PKG_BUILD_DIR)/proc/libproc-$(PKG_VERSION).so $(1)/usr/lib/ endef -- 1.7.9.5 -- Jonh Wendell http://www.bani.com.br _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
