2004-05-13 10:44:09 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# procps
|
|
|
|
#
|
|
|
|
#############################################################
|
2005-02-09 15:36:48 +01:00
|
|
|
PROCPS_VER:=3.2.5
|
|
|
|
PROCPS_SOURCE:=procps-$(PROCPS_VER).tar.gz
|
|
|
|
PROCPS_SITE:=http://procps.sourceforge.net/
|
|
|
|
PROCPS_DIR:=$(BUILD_DIR)/procps-$(PROCPS_VER)
|
|
|
|
PROCPS_BINARY:=ps/ps
|
|
|
|
PROCPS_TARGET_BINARY:=usr/bin/vmstat
|
2004-05-13 10:44:09 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(PROCPS_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(PROCPS_SITE)/$(PROCPS_SOURCE)
|
|
|
|
|
|
|
|
$(PROCPS_DIR)/.source: $(DL_DIR)/$(PROCPS_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
zcat $(DL_DIR)/$(PROCPS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2004-10-14 20:17:33 +02:00
|
|
|
toolchain/patch-kernel.sh $(PROCPS_DIR) package/procps/ procps*.patch
|
2004-10-11 23:23:34 +02:00
|
|
|
$(SED) '/^CFLAGS/s:-O2:$(TARGET_CFLAGS):' $(PROCPS_DIR)/Makefile
|
2004-05-13 10:44:09 +02:00
|
|
|
touch $(PROCPS_DIR)/.source
|
|
|
|
|
|
|
|
$(PROCPS_DIR)/$(PROCPS_BINARY): $(PROCPS_DIR)/.source
|
2005-01-23 11:43:14 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) CPPFLAGS=-I$(STAGING_DIR)/include \
|
|
|
|
CC=$(TARGET_CC) -C $(PROCPS_DIR)
|
2004-05-13 10:44:09 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(PROCPS_TARGET_BINARY): $(PROCPS_DIR)/$(PROCPS_BINARY)
|
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) 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
|
2004-05-13 10:44:09 +02:00
|
|
|
rm -Rf $(TARGET_DIR)/usr/man
|
|
|
|
|
|
|
|
procps: uclibc ncurses $(TARGET_DIR)/$(PROCPS_TARGET_BINARY)
|
|
|
|
|
|
|
|
procps-source: $(DL_DIR)/$(PROCPS_SOURCE)
|
|
|
|
|
|
|
|
procps-clean:
|
2004-10-15 07:03:35 +02:00
|
|
|
for bin in uptime tload free w \
|
|
|
|
top vmstat watch skill \
|
|
|
|
snice kill sysctl pmap \
|
|
|
|
pgrep pkill slabtop ; do \
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/$${bin} ; \
|
|
|
|
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
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_PROCPS)),y)
|
|
|
|
TARGETS+=procps
|
|
|
|
endif
|