2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
14 OLD_KERNEL=$(findstring y,$(foreach v,23 24 25 26,$(CONFIG_LINUX_2_6_$(v))))
15 ifneq ($(OLD_KERNEL),)
17 PKG_MD5SUM:=77f66d09aa82981bb6d65fa19a2c1ba9
18 PATCH_DIR:=patches-4.5.16
21 PKG_MD5SUM:=e9449fcee97e6a8ed73934c883c870e0
24 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
25 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
29 include $(INCLUDE_DIR)/package.mk
34 TITLE:=System call tracer
35 URL:=http://strace.sourceforge.net/
38 define Package/strace/description
39 A useful diagnostic, instructional, and debugging tool.
40 Allows you to track what system calls a program makes while it is
45 $(MAKE) -C $(PKG_BUILD_DIR) \
49 define Package/strace/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
54 $(eval $(call BuildPackage,strace))