summaryrefslogtreecommitdiffstats
path: root/package/procps
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-10-09 01:24:28 +0000
committerEric Andersen <andersen@codepoet.org>2004-10-09 01:24:28 +0000
commit73f7be82904f487d167493e76b415fbe5b5f8c5a (patch)
tree8d9acaf4414892fad533fd92ebfc7e65a2ad2785 /package/procps
parent0b5ad783691ef6fa1285c8d7858a51c425a8b38d (diff)
downloadbuildroot-novena-73f7be82904f487d167493e76b415fbe5b5f8c5a.tar.gz
buildroot-novena-73f7be82904f487d167493e76b415fbe5b5f8c5a.zip
Remove the old 'make' directory, and populate the new 'package'
directory.
Diffstat (limited to 'package/procps')
-rw-r--r--package/procps/procps.mk39
1 files changed, 39 insertions, 0 deletions
diff --git a/package/procps/procps.mk b/package/procps/procps.mk
new file mode 100644
index 000000000..b4ecbbd09
--- /dev/null
+++ b/package/procps/procps.mk
@@ -0,0 +1,39 @@
+#############################################################
+#
+# procps
+#
+#############################################################
+PROCPS_VER=3.2.3
+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
+
+$(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)
+