From dd5f9d1228d488c357b409841b5cb0933ac9b719 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 21 Jul 2013 21:29:26 +0200 Subject: [PATCH] strace: convert to new package format Signed-off-by: Stephan Raue --- packages/debug/strace/build | 29 ---------------------- packages/debug/strace/install | 26 ------------------- packages/debug/strace/{meta => package.mk} | 9 +++++-- 3 files changed, 7 insertions(+), 57 deletions(-) delete mode 100755 packages/debug/strace/build delete mode 100755 packages/debug/strace/install rename packages/debug/strace/{meta => package.mk} (92%) diff --git a/packages/debug/strace/build b/packages/debug/strace/build deleted file mode 100755 index f60f77b31a..0000000000 --- a/packages/debug/strace/build +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# 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 2, 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 OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME - -make diff --git a/packages/debug/strace/install b/packages/debug/strace/install deleted file mode 100755 index 91be57ef46..0000000000 --- a/packages/debug/strace/install +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# 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 2, 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 OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -mkdir -p $INSTALL/usr/bin - cp $PKG_BUILD/strace $INSTALL/usr/bin diff --git a/packages/debug/strace/meta b/packages/debug/strace/package.mk similarity index 92% rename from packages/debug/strace/meta rename to packages/debug/strace/package.mk index e262773698..014cac7a50 100644 --- a/packages/debug/strace/meta +++ b/packages/debug/strace/package.mk @@ -26,11 +26,16 @@ PKG_LICENSE="BSD" PKG_SITE="http://sourceforge.net/projects/strace/" PKG_URL="$SOURCEFORGE_SRC/strace/strace/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.xz" PKG_DEPENDS="" -PKG_BUILD_DEPENDS="toolchain" +PKG_BUILD_DEPENDS_TARGET="toolchain" PKG_PRIORITY="optional" PKG_SECTION="debug" PKG_SHORTDESC="strace: Trace system calls and signals" PKG_LONGDESC="In the simplest case strace runs the specified command until it exits. It intercepts and records the system calls which are called by a process and the signals which are received by a process. The name of each system call, its arguments and its return value are printed on standard error or to the file specified with the -o option." -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="yes" + +post_makeinstall_target() { + rm -rf $INSTALL/usr/bin/strace-graph + rm -rf $INSTALL/usr/bin/strace-log-merge +}