2010-07-05 17:13:30 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=psmisc
|
2010-07-18 08:31:15 +00:00
|
|
|
PKG_VERSION:=22.12
|
2010-07-18 10:35:49 +00:00
|
|
|
PKG_RELEASE:=2
|
2010-07-05 17:13:30 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2010-07-06 15:40:35 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/psmisc
|
2010-07-18 08:31:15 +00:00
|
|
|
PKG_MD5SUM:=16c83a351c292cfc845b27d6395e05fb
|
2010-07-05 17:13:30 +00:00
|
|
|
|
2010-12-15 19:16:09 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
|
2010-07-05 17:13:30 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/psmisc
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+libncurses
|
|
|
|
TITLE:=proc utilities
|
|
|
|
URL:=http://sourceforge.net/projects/psmisc/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/psmisc/description
|
|
|
|
psmisc is a set of additional small useful utilities that use
|
2010-07-05 17:31:29 +00:00
|
|
|
the proc filesystem: fuser, killall, pstree, and prtstat
|
2010-07-05 17:13:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
|
|
|
|
define Package/psmisc/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/fuser $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/killall $(1)/usr/sbin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pstree $(1)/usr/bin
|
2010-07-05 17:31:29 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/prtstat $(1)/usr/bin
|
2010-07-05 17:13:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,psmisc))
|