2006-07-02 20:26:19 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=strace
|
2006-11-14 14:45:20 +00:00
|
|
|
PKG_VERSION:=4.5.14
|
2006-07-02 20:26:19 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/strace
|
2006-11-14 14:45:20 +00:00
|
|
|
PKG_MD5SUM:=09bcd5d00ece28f8154dec11cadfce3c
|
2006-07-02 20:26:19 +00:00
|
|
|
PKG_CAT:=bzcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/strace
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=System call tracer
|
2006-10-30 13:51:50 +00:00
|
|
|
DESCRIPTION:=\
|
|
|
|
A useful diagnostic, instructional, and debugging tool. \\\
|
|
|
|
Allows you to track what system calls a program makes while it is \\\
|
|
|
|
running.
|
2006-07-02 20:26:19 +00:00
|
|
|
URL:=http://strace.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
# uses GNU configure
|
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-10-30 13:51:50 +00:00
|
|
|
install -d -m0755 $(1)/usr/sbin
|
2006-07-02 20:26:19 +00:00
|
|
|
install -m0755 $(PKG_BUILD_DIR)/strace $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,strace))
|