summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-05-13 08:44:09 +0000
committerEric Andersen <andersen@codepoet.org>2004-05-13 08:44:09 +0000
commitcf870e3632d6cff770534f7271fb9404d782e73d (patch)
tree32ac07bf4ca3d44623cf97054eb0a655b33f63df
parentd4c937550b1afa538ff33aabdbfc52d75276067d (diff)
downloadbuildroot-novena-cf870e3632d6cff770534f7271fb9404d782e73d.tar.gz
buildroot-novena-cf870e3632d6cff770534f7271fb9404d782e73d.zip
Support building procps (since ltp prefers it)
-rw-r--r--make/procps.mk38
1 files changed, 38 insertions, 0 deletions
diff --git a/make/procps.mk b/make/procps.mk
new file mode 100644
index 000000000..123cd3fb3
--- /dev/null
+++ b/make/procps.mk
@@ -0,0 +1,38 @@
+#############################################################
+#
+# procps
+#
+#############################################################
+PROCPS_SOURCE=procps-3.2.1.tar.gz
+PROCPS_SITE=http://procps.sourceforge.net/
+PROCPS_DIR=$(BUILD_DIR)/procps-3.2.1
+PROCPS_BINARY=ps/ps
+PROCPS_TARGET_BINARY=usr/bin/vmstat
+
+$(DL_DIR)/$(PROCPS_SOURCE):
+ $(WGET) -P $(DL_DIR) $(PROCPS_SITE)/$(PROCPS_SOURCE)
+
+$(PROCPS_DIR)/.source: $(DL_DIR)/$(PROCPS_SOURCE)
+ zcat $(DL_DIR)/$(PROCPS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ touch $(PROCPS_DIR)/.source
+
+$(PROCPS_DIR)/$(PROCPS_BINARY): $(PROCPS_DIR)/.source
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) CC=$(TARGET_CC) -C $(PROCPS_DIR)
+
+$(TARGET_DIR)/$(PROCPS_TARGET_BINARY): $(PROCPS_DIR)/$(PROCPS_BINARY)
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(TARGET_DIR) \
+ install='install -D' -C $(PROCPS_DIR) \
+ ldconfig='bin/true' install
+ rm -Rf $(TARGET_DIR)/usr/man
+
+procps: uclibc ncurses $(TARGET_DIR)/$(PROCPS_TARGET_BINARY)
+
+procps-source: $(DL_DIR)/$(PROCPS_SOURCE)
+
+procps-clean:
+ $(MAKE) prefix=$(TARGET_DIR)/usr -C $(PROCPS_DIR) uninstall
+ -$(MAKE) -C $(PROCPS_DIR) clean
+
+procps-dirclean:
+ rm -rf $(PROCPS_DIR)
+