summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-05-30 23:37:55 +0000
committerTim Harder <radhermit@gentoo.org>2011-05-30 23:37:55 +0000
commit440e8f4ebea4321d50b2d30742b0eb7da61cab89 (patch)
tree857e239796feba1f16c7cd87d9580983c28bba5e /app-misc/binwalk
parentVersion bumped, bug #356959. Fixed to build with gcc-4.6, bug #365921. Added ... (diff)
downloadgentoo-2-440e8f4ebea4321d50b2d30742b0eb7da61cab89.tar.gz
gentoo-2-440e8f4ebea4321d50b2d30742b0eb7da61cab89.tar.bz2
gentoo-2-440e8f4ebea4321d50b2d30742b0eb7da61cab89.zip
Initial import.
(Portage version: 2.2.0_alpha37/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/binwalk')
-rw-r--r--app-misc/binwalk/ChangeLog10
-rw-r--r--app-misc/binwalk/binwalk-0.3.0.ebuild29
-rw-r--r--app-misc/binwalk/files/binwalk-0.3.0-makefile.patch29
-rw-r--r--app-misc/binwalk/metadata.xml20
4 files changed, 88 insertions, 0 deletions
diff --git a/app-misc/binwalk/ChangeLog b/app-misc/binwalk/ChangeLog
new file mode 100644
index 000000000000..9c0528534adc
--- /dev/null
+++ b/app-misc/binwalk/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-misc/binwalk
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/binwalk/ChangeLog,v 1.1 2011/05/30 23:37:54 radhermit Exp $
+
+*binwalk-0.3.0 (30 May 2011)
+
+ 30 May 2011; Tim Harder <radhermit@gentoo.org> +binwalk-0.3.0.ebuild,
+ +files/binwalk-0.3.0-makefile.patch, +metadata.xml:
+ Initial import.
+
diff --git a/app-misc/binwalk/binwalk-0.3.0.ebuild b/app-misc/binwalk/binwalk-0.3.0.ebuild
new file mode 100644
index 000000000000..5023532906e9
--- /dev/null
+++ b/app-misc/binwalk/binwalk-0.3.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/binwalk/binwalk-0.3.0.ebuild,v 1.1 2011/05/30 23:37:54 radhermit Exp $
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A tool for identifying files embedded inside firmware images"
+HOMEPAGE="http://code.google.com/p/binwalk/"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="sys-apps/file"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${P}/src
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}"
+}
diff --git a/app-misc/binwalk/files/binwalk-0.3.0-makefile.patch b/app-misc/binwalk/files/binwalk-0.3.0-makefile.patch
new file mode 100644
index 000000000000..8afa140ce48e
--- /dev/null
+++ b/app-misc/binwalk/files/binwalk-0.3.0-makefile.patch
@@ -0,0 +1,29 @@
+--- binwalk-0.3.0/src/Makefile.orig
++++ binwalk-0.3.0/src/Makefile
+@@ -7,7 +7,7 @@
+ OUTDIR=../bin
+
+ $(TARGET): md5.o mparse.o
+- $(CC) $(TARGET).c -o $(TARGET) *.o -lmagic -lz $(CFLAGS)
++ $(CC) $(TARGET).c -o $(TARGET) *.o -lmagic -lz $(CFLAGS) $(LDFLAGS)
+ cp $(TARGET) $(OUTDIR)
+
+ md5.o:
+@@ -17,12 +17,13 @@
+ $(CC) -c mparse.c $(CFLAGS)
+
+ install:
+- if ! test -d $(ETC); then mkdir $(ETC); fi
+- cp $(MAGIC) $(ETC)/$(MAGIC)
+- cp $(OUTDIR)/$(TARGET) $(BIN)/$(TARGET)
++ if ! test -d $(DESTDIR)$(ETC); then mkdir -p $(DESTDIR)$(ETC); fi
++ if ! test -d $(DESTDIR)$(BIN); then mkdir -p $(DESTDIR)$(BIN); fi
++ cp $(MAGIC) $(DESTDIR)$(ETC)/$(MAGIC)
++ cp $(OUTDIR)/$(TARGET) $(DESTDIR)$(BIN)/$(TARGET)
+
+ remove:
+- rm -rf $(ETC) $(BIN)/$(TARGET)
++ rm -rf $(DESTDIR)$(ETC) $(DESTDIR)$(BIN)/$(TARGET)
+
+ clean:
+ rm -f $(TARGET) *.o
diff --git a/app-misc/binwalk/metadata.xml b/app-misc/binwalk/metadata.xml
new file mode 100644
index 000000000000..529dceb47f41
--- /dev/null
+++ b/app-misc/binwalk/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <longdescription lang="en">
+ Binwalk is a tool for searching a given binary image for embedded files.
+ Specifically, it is designed for identifying files embedded inside of firmware
+ images. Binwalk uses the libmagic library, so it is compatible with magic
+ signatures created for the Unix file utility.
+
+ Binwalk also includes a custom magic signature file which contains improved
+ signatures for files that are commonly found in firmware images such as
+ compressed/archived files, firmware headers, Linux kernels, bootloaders,
+ filesystems, etc.
+ </longdescription>
+</pkgmetadata>