2005-11-19 10:39:50 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# psmisc
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
PSMISC_VERSION:=22.2
|
|
|
|
PSMISC_SOURCE:=psmisc-$(PSMISC_VERSION).tar.gz
|
2005-11-19 10:39:50 +01:00
|
|
|
PSMISC_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/psmisc
|
2007-07-11 16:06:06 +02:00
|
|
|
PSMISC_DIR:=$(BUILD_DIR)/psmisc-$(PSMISC_VERSION)
|
2005-11-19 10:39:50 +01:00
|
|
|
PSMISC_BINARY:=src/killall
|
|
|
|
PSMISC_TARGET_BINARY:=bin/killall
|
|
|
|
|
|
|
|
$(DL_DIR)/$(PSMISC_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(PSMISC_SITE)/$(PSMISC_SOURCE)
|
|
|
|
|
|
|
|
$(PSMISC_DIR)/.unpacked: $(DL_DIR)/$(PSMISC_SOURCE)
|
2006-10-01 17:17:52 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(PSMISC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-11-19 10:39:50 +01:00
|
|
|
touch $(PSMISC_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(PSMISC_DIR)/.configured: $(PSMISC_DIR)/.unpacked
|
|
|
|
(cd $(PSMISC_DIR); rm -rf config.cache; \
|
2007-01-14 04:52:21 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2005-11-19 10:39:50 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/ \
|
|
|
|
$(DISABLE_NLS) \
|
2007-07-05 19:56:24 +02:00
|
|
|
$(DISABLE_IPV6) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2005-11-19 10:39:50 +01:00
|
|
|
touch $(PSMISC_DIR)/.configured
|
|
|
|
|
|
|
|
$(PSMISC_DIR)/$(PSMISC_BINARY): $(PSMISC_DIR)/.configured
|
|
|
|
$(MAKE) -C $(PSMISC_DIR)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(PSMISC_TARGET_BINARY): $(PSMISC_DIR)/$(PSMISC_BINARY)
|
|
|
|
$(MAKE) -C $(PSMISC_DIR) install DESTDIR=$(TARGET_DIR)
|
|
|
|
rm -Rf $(TARGET_DIR)/usr/share/man
|
|
|
|
|
|
|
|
psmisc: uclibc ncurses $(TARGET_DIR)/$(PSMISC_TARGET_BINARY)
|
|
|
|
|
|
|
|
psmisc-source: $(DL_DIR)/$(PSMISC_SOURCE)
|
|
|
|
|
|
|
|
psmisc-clean:
|
2007-08-22 11:56:41 +02:00
|
|
|
for bin in fuser killall pstree oldfuser pstree.x11; do \
|
|
|
|
rm -f $(TARGET_DIR)/bin/$${bin}; \
|
2005-11-19 10:39:50 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
psmisc-dirclean:
|
|
|
|
rm -rf $(PSMISC_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_PSMISC)),y)
|
|
|
|
TARGETS+=psmisc
|
|
|
|
endif
|