2004-05-13 10:44:09 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# procps
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-08-24 14:40:36 +02:00
|
|
|
PROCPS_VERSION:=3.2.7
|
2007-07-11 16:06:06 +02:00
|
|
|
PROCPS_SOURCE:=procps-$(PROCPS_VERSION).tar.gz
|
2005-02-09 15:36:48 +01:00
|
|
|
PROCPS_SITE:=http://procps.sourceforge.net/
|
2007-07-11 16:06:06 +02:00
|
|
|
PROCPS_DIR:=$(BUILD_DIR)/procps-$(PROCPS_VERSION)
|
2005-02-09 15:36:48 +01:00
|
|
|
PROCPS_BINARY:=ps/ps
|
|
|
|
PROCPS_TARGET_BINARY:=usr/bin/vmstat
|
2004-05-13 10:44:09 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(PROCPS_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(PROCPS_SITE),$(PROCPS_SOURCE))
|
2004-05-13 10:44:09 +02:00
|
|
|
|
|
|
|
$(PROCPS_DIR)/.source: $(DL_DIR)/$(PROCPS_SOURCE)
|
2006-10-01 17:17:52 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(PROCPS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-06-24 10:36:13 +02:00
|
|
|
toolchain/patch-kernel.sh $(PROCPS_DIR) package/procps/ procps\*.patch
|
2004-05-13 10:44:09 +02:00
|
|
|
touch $(PROCPS_DIR)/.source
|
|
|
|
|
|
|
|
$(PROCPS_DIR)/$(PROCPS_BINARY): $(PROCPS_DIR)/.source
|
2007-07-06 06:26:32 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(PROCPS_DIR)
|
2004-05-13 10:44:09 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(PROCPS_TARGET_BINARY): $(PROCPS_DIR)/$(PROCPS_BINARY)
|
2007-07-09 10:30:38 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) \
|
2004-10-15 07:03:35 +02:00
|
|
|
install='install -D' -C $(PROCPS_DIR) lib64=/lib \
|
2004-05-13 10:57:09 +02:00
|
|
|
ldconfig='/bin/true' install
|
2005-09-30 22:48:41 +02:00
|
|
|
rm -Rf $(TARGET_DIR)/usr/share/man
|
2004-05-13 10:44:09 +02:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
procps: ncurses $(TARGET_DIR)/$(PROCPS_TARGET_BINARY)
|
2004-05-13 10:44:09 +02:00
|
|
|
|
|
|
|
procps-source: $(DL_DIR)/$(PROCPS_SOURCE)
|
|
|
|
|
|
|
|
procps-clean:
|
2004-10-15 07:03:35 +02:00
|
|
|
for bin in uptime tload free w \
|
2007-07-29 01:02:26 +02:00
|
|
|
top vmstat watch skill \
|
|
|
|
snice kill sysctl pmap \
|
2007-08-22 11:56:41 +02:00
|
|
|
pgrep pkill slabtop; do \
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/$${bin}; \
|
2004-10-15 07:03:35 +02:00
|
|
|
done
|
|
|
|
rm -f $(TARGET_DIR)/lib/libproc*
|
2004-05-13 10:44:09 +02:00
|
|
|
|
|
|
|
procps-dirclean:
|
|
|
|
rm -rf $(PROCPS_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PROCPS),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=procps
|
|
|
|
endif
|