summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-08-21 05:52:14 +0000
committerTim Harder <radhermit@gentoo.org>2011-08-21 05:52:14 +0000
commited1bcbdee64b4b278f502a0e1d346f6bc27c49d6 (patch)
tree3057f2f26c501606f2333aeebf1aff9454675389 /app-misc
parentDepend on virtual/yacc, not bison. (diff)
downloadgentoo-2-ed1bcbdee64b4b278f502a0e1d346f6bc27c49d6.tar.gz
gentoo-2-ed1bcbdee64b4b278f502a0e1d346f6bc27c49d6.tar.bz2
gentoo-2-ed1bcbdee64b4b278f502a0e1d346f6bc27c49d6.zip
Version bump
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/binwalk/ChangeLog8
-rw-r--r--app-misc/binwalk/binwalk-0.3.8.ebuild28
-rw-r--r--app-misc/binwalk/files/binwalk-0.3.8-system-magic.patch76
3 files changed, 111 insertions, 1 deletions
diff --git a/app-misc/binwalk/ChangeLog b/app-misc/binwalk/ChangeLog
index 3089cef13a59..300a5221a4c2 100644
--- a/app-misc/binwalk/ChangeLog
+++ b/app-misc/binwalk/ChangeLog
@@ -1,6 +1,12 @@
# 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.8 2011/07/20 04:19:12 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/binwalk/ChangeLog,v 1.9 2011/08/21 05:52:14 radhermit Exp $
+
+*binwalk-0.3.8 (21 Aug 2011)
+
+ 21 Aug 2011; Tim Harder <radhermit@gentoo.org> +binwalk-0.3.8.ebuild,
+ +files/binwalk-0.3.8-system-magic.patch:
+ Version bump
*binwalk-0.3.7 (20 Jul 2011)
diff --git a/app-misc/binwalk/binwalk-0.3.8.ebuild b/app-misc/binwalk/binwalk-0.3.8.ebuild
new file mode 100644
index 000000000000..30059b72174a
--- /dev/null
+++ b/app-misc/binwalk/binwalk-0.3.8.ebuild
@@ -0,0 +1,28 @@
+# 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.8.ebuild,v 1.1 2011/08/21 05:52:14 radhermit Exp $
+
+EAPI="4"
+
+inherit eutils autotools
+
+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="net-misc/curl
+ sys-apps/file
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}/src"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-system-magic.patch
+ eautoreconf
+}
diff --git a/app-misc/binwalk/files/binwalk-0.3.8-system-magic.patch b/app-misc/binwalk/files/binwalk-0.3.8-system-magic.patch
new file mode 100644
index 000000000000..4d9a53284fcb
--- /dev/null
+++ b/app-misc/binwalk/files/binwalk-0.3.8-system-magic.patch
@@ -0,0 +1,76 @@
+--- binwalk-0.3.8.orig/src/configure.ac
++++ binwalk-0.3.8/src/configure.ac
+@@ -7,12 +7,12 @@
+ AC_PROG_CC
+ AC_LANG(C)
+
+-FILE="file-5.07"
+ CFLAGS="-Wall -I./$FILE/src $CFLAGS"
+-LDFLAGS="-lz $LDFLAGS"
++LDFLAGS="-lz -lmagic $LDFLAGS"
+
+ AC_ARG_ENABLE([static], [ --enable-static perform static build ], [STATIC=y], [STATIC=n])
+
++AC_CHECK_LIB([magic],[magic_open],[],[echo "error: missing libmagic library" && exit],[])
+ AC_CHECK_LIB([curl],[curl_easy_init],[],[echo "error: missing libcurl library" && exit],[])
+
+ AC_CHECK_HEADERS([arpa/inet.h fcntl.h stdlib.h string.h unistd.h curl/curl.h],[],[echo "error: missing necessary header file" && exit])
+@@ -23,20 +23,16 @@
+
+ AC_CHECK_FUNCS([memset strdup strstr strtol],[],AC_MSG_ERROR(["Missing necessary function"]))
+
+-dnl curl static libs only required if we're doing a static build
++dnl zlib and curl static libs only required if we're doing a static build
+ if test $STATIC = y
+ then
+ CLIBS=$(curl-config --static-libs)
+- LDFLAGS="-static $CLIBS $LDFLAGS"
++ LDFLAGS="-static -lz $CLIBS $LDFLAGS"
+ else
+ LDFLAGS="-lcurl $LDFLAGS"
+ fi
+
+-dnl extract and run file utility configure script
+-tar -zxvf $FILE.tar.gz && cd $FILE && ./configure && cd -
+-
+ cp confdefs.h config.h
+
+-AC_SUBST(FILE, $FILE)
+ AC_CONFIG_FILES([Makefile])
+ AC_OUTPUT
+--- binwalk-0.3.8.orig/src/Makefile.in
++++ binwalk-0.3.8/src/Makefile.in
+@@ -1,7 +1,6 @@
+ CC=@CC@
+ CFLAGS=@CFLAGS@
+ LDFLAGS=@LDFLAGS@
+-FILE=@FILE@
+ MAGIC=magic
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+@@ -11,16 +10,9 @@
+
+ all: binwalk
+
+-binwalk: file common.o md5.o mparse.o filter.o update.o
++binwalk: common.o md5.o mparse.o filter.o update.o
+ $(CC) $(CFLAGS) -DMAGIC='"$(MAGICPATH).binwalk"' -DMAGIC_CAST='"$(MAGICPATH).bincast"' -DMAGIC_ARCH='"$(MAGICPATH).binarch"' binwalk.c -o binwalk *.o $(LDFLAGS)
+
+-file:
+- (cd $(FILE)/src && make)
+- (cp $(FILE)/src/*.o . && rm -f file.o)
+-
+-common.o:
+- $(CC) $(CFLAGS) -c common.c
+-
+ md5.o:
+ $(CC) $(CFLAGS) -c md5.c
+
+@@ -43,7 +35,6 @@
+ rm -f binwalk *.o
+
+ cleanall: clean
+- rm -rf $(FILE)
+ rm -rf config.* *.cache
+ rm -f Makefile
+