2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://procps.sourceforge.net
16 PKG_MD5SUM:=9532714b6846013ca9898984ba4cd7e0
20 include $(INCLUDE_DIR)/package.mk
23 ps free pgrep pkill pmap pwdx skill w \
24 slabtop snice tload top vmstat watch
26 define Package/procps/Default
31 URL:=http://procps.sourceforge.net/
35 $(call Package/procps/Default)
39 define Package/procps/description
40 procps is the package that has a bunch of small useful utilities that give
41 information about processes using the /proc filesystem. The package
42 includes the programs ps, top, vmstat, w, kill, free, slabtop, and skill.
47 $(call Package/procps/Default)
49 TITLE:=Applet $(2) from the procps package
53 define Package/$(1)/description
54 Installs the applet $(2).
58 $(foreach a,$(PROCPS_APPLETS),$(eval $(call GenPlugin,procps-$(a),$(a))))
61 CFLAGS="$(TARGET_CFLAGS)" \
62 CPPFLAGS="$(TARGET_CPPFLAGS)" \
63 LDFLAGS="$(TARGET_LDFLAGS)" \
65 define Package/procps/install
66 $(INSTALL_DIR) $(1)/usr/bin
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(INSTALL_BIN) $(PKG_BUILD_DIR)/proc/libproc-$(PKG_VERSION).so $(1)/usr/lib/
74 define Package/$(1)/install
75 $(INSTALL_DIR) $$(1)/usr/bin
76 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(AUXDIR_$(2))$(2) $$(1)/usr/bin/
79 $$(eval $$(call BuildPackage,$(1)))
82 $(foreach a,$(PROCPS_APPLETS),$(eval $(call BuildPlugin,procps-$(a),$(a))))
83 $(eval $(call BuildPackage,procps))