a2d74e802f1273d7e946032a2206958130e0e0d9
[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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 PKG_BUILD_DEPENDS:=libncurses
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/procps
28 SECTION:=utils
29 CATEGORY:=Utilities
30 DEPENDS:=+libncurses
31 TITLE:=proc utilities
32 DESCRIPTION:=\
33 procps is the package that has a bunch of small useful\\\
34 utilities that give information about processes using\\\
35 the /proc filesystem. The package includes the programs\\\
36 ps, top, vmstat, w, kill, free, slabtop, and skill.
37 URL:=http://sourceforge.net/projects/procps/
38 endef
39
40 define Build/Configure
41 endef
42
43 define Build/Compile
44 $(call Build/Compile/Default, \
45 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
46 LDFLAGS="$(EXTRA_LDFLAGS)" \
47 )
48 endef
49
50 define Package/procps/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ps/ps $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pgrep $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pkill $(1)/usr/bin
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pmap $(1)/usr/bin
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pwdx $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/skill $(1)/usr/bin
58 $(INSTALL_BIN) $(PKG_BUILD_DIR)/slabtop $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/snice $(1)/usr/bin
60 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tload $(1)/usr/bin
61 $(INSTALL_BIN) $(PKG_BUILD_DIR)/vmstat $(1)/usr/bin
62 $(INSTALL_BIN) $(PKG_BUILD_DIR)/w $(1)/usr/bin
63 $(INSTALL_BIN) $(PKG_BUILD_DIR)/watch $(1)/usr/bin
64 endef
65
66 $(eval $(call BuildPackage,procps))