From: Michael Tremer Date: Tue, 3 Jun 2008 22:18:08 +0000 (+0000) Subject: Added strace. X-Git-Tag: v3.0-alpha1~985 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=060805e27cb13d2296f75e601543fd70ec043aed;p=ipfire-3.x.git Added strace. --- diff --git a/lfs/strace b/lfs/strace new file mode 100644 index 000000000..d141f632e --- /dev/null +++ b/lfs/strace @@ -0,0 +1,75 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +PKG_NAME = strace +VER = 4.5.16 + +THISAPP = $(PKG_NAME)-$(VER) +DL_FILE = $(THISAPP).tar.bz2 +DIR_APP = $(DIR_SRC)/$(THISAPP) + +TARGET = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP) + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) $(THISAPP)-uClibc-1.patch + +install : $(TARGET) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) + +ifeq "$(STAGE)" "$(SNAME)" + cd $(DIR_APP) && ./configure --prefix=/usr + cd $(DIR_APP) && make -j $(PARALLELISM) + cd $(DIR_APP) && make install +endif + +ifeq "$(STAGE)" "installer" + cd $(DIR_APP) && patch -Np1 -i \ + $(DIR_PATCHES)/$(THISAPP)-uClibc-1.patch + cd $(DIR_APP) && ac_cv_header_linux_if_packet_h=yes \ + ac_cv_header_linux_netlink_h=yes \ + ./configure --prefix=/usr --target=$(UCLIBC_TARGET) \ + --host=$(UCLIBC_TARGET) + cd $(DIR_APP) && make -j $(PARALLELISM) + cd $(DIR_APP) && make install DESTDIR=$(INSTALLER_DIR) +endif + + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 4defeb584..56ec67fa7 100755 --- a/make.sh +++ b/make.sh @@ -432,6 +432,7 @@ installer_build() { ipfire_make slang ipfire_make newt #ipfire_make bash + ipfire_make strace ipfire_make cpio ipfire_make lzma ipfire_make pyfire