2007-12-31 21:45:00 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
2006-07-02 20:26:19 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=strace
|
2008-01-04 05:51:33 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-07-02 20:26:19 +00:00
|
|
|
|
2009-01-18 01:59:59 +00:00
|
|
|
OLD_KERNEL=$(findstring y,$(foreach v,23 24 25 26,$(CONFIG_LINUX_2_6_$(v))))
|
|
|
|
ifneq ($(OLD_KERNEL),)
|
2008-11-04 07:55:14 +00:00
|
|
|
PKG_VERSION:=4.5.16
|
|
|
|
PKG_MD5SUM:=77f66d09aa82981bb6d65fa19a2c1ba9
|
2009-01-18 01:59:59 +00:00
|
|
|
PATCH_DIR:=patches-4.5.16
|
|
|
|
else
|
2008-11-04 07:55:14 +00:00
|
|
|
PKG_VERSION:=4.5.18
|
|
|
|
PKG_MD5SUM:=e9449fcee97e6a8ed73934c883c870e0
|
|
|
|
endif
|
|
|
|
|
2006-07-02 20:26:19 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2007-12-31 21:45:00 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
2006-07-02 20:26:19 +00:00
|
|
|
|
2007-12-31 21:45:00 +00:00
|
|
|
PKG_FIXUP = libtool
|
2006-07-02 20:26:19 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/strace
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=System call tracer
|
|
|
|
URL:=http://strace.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/strace/description
|
2007-12-31 21:45:00 +00:00
|
|
|
A useful diagnostic, instructional, and debugging tool.
|
|
|
|
Allows you to track what system calls a program makes while it is
|
2007-10-14 04:32:56 +00:00
|
|
|
running.
|
|
|
|
endef
|
|
|
|
|
2006-07-02 20:26:19 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-08-04 03:28:27 +00:00
|
|
|
CC="$(TARGET_CC)"
|
2006-07-02 20:26:19 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/strace/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-31 21:45:00 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
|
2006-07-02 20:26:19 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,strace))
|