b3a9d90e78c8d8be40a28aee193ca6e5a5e04ca7
[packages.git] / utils / strace / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=strace
12 PKG_VERSION:=4.5.14
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/strace
17 PKG_MD5SUM:=09bcd5d00ece28f8154dec11cadfce3c
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/strace
25   SECTION:=utils
26   CATEGORY:=Utilities
27   TITLE:=System call tracer
28   DESCRIPTION:=\
29         A useful diagnostic, instructional, and debugging tool. \\\
30         Allows you to track what system calls a program makes while it is \\\
31         running.
32   URL:=http://strace.sourceforge.net/
33 endef
34
35 # uses GNU configure
36
37 define Build/Compile
38         $(MAKE) -C $(PKG_BUILD_DIR) \
39                 CC="$(TARGET_CC)"
40 endef
41
42 define Package/strace/install
43         install -d -m0755 $(1)/usr/sbin
44         install -m0755 $(PKG_BUILD_DIR)/strace $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,strace))