summaryrefslogtreecommitdiffstats
path: root/package/psmisc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-19 09:39:50 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-19 09:39:50 +0000
commitbb5cb3db36f83752d5ebf3a71b9861490932b904 (patch)
treecb64a5ebad58ba6cc5530f20347543ef6c5380cb /package/psmisc
parent0c21223712d9d477731d2d78a36ea2fc7e1746e4 (diff)
downloadbuildroot-novena-bb5cb3db36f83752d5ebf3a71b9861490932b904.tar.gz
buildroot-novena-bb5cb3db36f83752d5ebf3a71b9861490932b904.zip
import psmisc
Diffstat (limited to 'package/psmisc')
-rw-r--r--package/psmisc/Config.in7
-rw-r--r--package/psmisc/psmisc.mk59
2 files changed, 66 insertions, 0 deletions
diff --git a/package/psmisc/Config.in b/package/psmisc/Config.in
new file mode 100644
index 000000000..04fed6b9c
--- /dev/null
+++ b/package/psmisc/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PSMISC
+ bool "psmisc"
+ default n
+ help
+ Helpful /proc related utilities such as pstree, fuser, and killall
+
+ http://psmisc.sourceforge.net/
diff --git a/package/psmisc/psmisc.mk b/package/psmisc/psmisc.mk
new file mode 100644
index 000000000..e767a8a81
--- /dev/null
+++ b/package/psmisc/psmisc.mk
@@ -0,0 +1,59 @@
+#############################################################
+#
+# psmisc
+#
+#############################################################
+PSMISC_VER:=21.8
+PSMISC_SOURCE:=psmisc-$(PSMISC_VER).tar.gz
+PSMISC_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/psmisc
+PSMISC_DIR:=$(BUILD_DIR)/psmisc-$(PSMISC_VER)
+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)
+ zcat $(DL_DIR)/$(PSMISC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(PSMISC_DIR)/.unpacked
+
+$(PSMISC_DIR)/.configured: $(PSMISC_DIR)/.unpacked
+ (cd $(PSMISC_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/ \
+ $(DISABLE_NLS) \
+ );
+ 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:
+ for bin in fuser killall pstree oldfuser pstree.x11 ; do \
+ rm -f $(TARGET_DIR)/bin/$${bin} ; \
+ done
+
+psmisc-dirclean:
+ rm -rf $(PSMISC_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_PSMISC)),y)
+TARGETS+=psmisc
+endif