utils/psmisc: add psmisc package
[openwrt/svn-archive/archive.git] / utils / psmisc / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=psmisc
11 PKG_VERSION:=22.11
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://psmisc.sourceforge.net
16 PKG_MD5SUM:=b5d32aa285b75c59dee96d3ea26a4881
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/psmisc
21 SECTION:=utils
22 CATEGORY:=Utilities
23 DEPENDS:=+libncurses
24 TITLE:=proc utilities
25 URL:=http://sourceforge.net/projects/psmisc/
26 endef
27
28 define Package/psmisc/description
29 psmisc is a set of additional small useful utilities that use
30 the proc filesystem: fuser, killall, pstree, and pidof
31 endef
32
33 MAKE_FLAGS += \
34 CFLAGS="$(TARGET_CFLAGS)" \
35 CPPFLAGS="$(TARGET_CPPFLAGS)" \
36 LDFLAGS="$(TARGET_LDFLAGS)" \
37
38 define Package/psmisc/install
39 $(INSTALL_DIR) $(1)/usr/sbin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/fuser $(1)/usr/sbin/
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/killall $(1)/usr/sbin
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pstree $(1)/usr/bin
44 endef
45
46 $(eval $(call BuildPackage,psmisc))