remove ref to EXTRA_*FLAGS, convert description, cleanup
[openwrt/svn-archive/archive.git] / utils / procps / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=procps
12 PKG_VERSION:=3.2.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://procps.sourceforge.net
17 PKG_MD5SUM:=f490bca772b16472962c7b9f23b1e97d
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/procps
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=+libncurses
25 TITLE:=proc utilities
26 URL:=http://sourceforge.net/projects/procps/
27 endef
28
29 define Package/procps/description
30 procps is the package that has a bunch of small useful utilities that give
31 information about processes using the /proc filesystem. The package
32 includes the programs ps, top, vmstat, w, kill, free, slabtop, and skill.
33 endef
34
35 MAKE_FLAGS += \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 CPPFLAGS="$(TARGET_CPPFLAGS)" \
38 LDFLAGS="$(TARGET_LDFLAGS)" \
39
40 define Package/procps/install
41 $(INSTALL_DIR) $(1)/usr/bin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/free $(1)/usr/bin/
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ps/ps $(1)/usr/bin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pgrep $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pkill $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pmap $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pwdx $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/skill $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/slabtop $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/snice $(1)/usr/bin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tload $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/top $(1)/usr/bin/
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/vmstat $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/w $(1)/usr/bin
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/watch $(1)/usr/bin
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/proc/libproc-$(PKG_VERSION).so $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,procps))