summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-07-20 04:19:12 +0000
committerTim Harder <radhermit@gentoo.org>2011-07-20 04:19:12 +0000
commitb6153796fc1a725bc955484ec95560ad5d7c3db5 (patch)
tree085c6e8bb20dda10b98cf4a4178c3df86ad788f2 /app-misc/binwalk
parentAdd USE=samba to control building of ntp signing daemon #375159. (diff)
downloadgentoo-2-b6153796fc1a725bc955484ec95560ad5d7c3db5.tar.gz
gentoo-2-b6153796fc1a725bc955484ec95560ad5d7c3db5.tar.bz2
gentoo-2-b6153796fc1a725bc955484ec95560ad5d7c3db5.zip
Version bump (bug #374723 by Anthony Basile) and remove old.
(Portage version: 2.2.0_alpha45/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/binwalk')
-rw-r--r--app-misc/binwalk/ChangeLog9
-rw-r--r--app-misc/binwalk/binwalk-0.3.3.ebuild19
-rw-r--r--app-misc/binwalk/binwalk-0.3.5.ebuild18
-rw-r--r--app-misc/binwalk/binwalk-0.3.7.ebuild (renamed from app-misc/binwalk/binwalk-0.3.2.ebuild)15
-rw-r--r--app-misc/binwalk/files/binwalk-0.3.7-system-magic.patch73
5 files changed, 93 insertions, 41 deletions
diff --git a/app-misc/binwalk/ChangeLog b/app-misc/binwalk/ChangeLog
index edb29f338b15..3089cef13a59 100644
--- a/app-misc/binwalk/ChangeLog
+++ b/app-misc/binwalk/ChangeLog
@@ -1,6 +1,13 @@
# 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.7 2011/07/04 23:04:53 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/binwalk/ChangeLog,v 1.8 2011/07/20 04:19:12 radhermit Exp $
+
+*binwalk-0.3.7 (20 Jul 2011)
+
+ 20 Jul 2011; Tim Harder <radhermit@gentoo.org> -binwalk-0.3.2.ebuild,
+ -binwalk-0.3.3.ebuild, -binwalk-0.3.5.ebuild, +binwalk-0.3.7.ebuild,
+ +files/binwalk-0.3.7-system-magic.patch:
+ Version bump (bug #374723 by Anthony Basile) and remove old.
*binwalk-0.3.6 (04 Jul 2011)
diff --git a/app-misc/binwalk/binwalk-0.3.3.ebuild b/app-misc/binwalk/binwalk-0.3.3.ebuild
deleted file mode 100644
index ec57a98e26a8..000000000000
--- a/app-misc/binwalk/binwalk-0.3.3.ebuild
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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.3.ebuild,v 1.1 2011/06/23 06:45:00 radhermit Exp $
-
-EAPI=4
-
-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
diff --git a/app-misc/binwalk/binwalk-0.3.5.ebuild b/app-misc/binwalk/binwalk-0.3.5.ebuild
deleted file mode 100644
index edc10ae852cd..000000000000
--- a/app-misc/binwalk/binwalk-0.3.5.ebuild
+++ /dev/null
@@ -1,18 +0,0 @@
-# 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.5.ebuild,v 1.1 2011/06/29 21:05:20 radhermit Exp $
-
-EAPI=4
-
-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
- net-misc/curl"
-DEPEND="${RDEPEND}"
diff --git a/app-misc/binwalk/binwalk-0.3.2.ebuild b/app-misc/binwalk/binwalk-0.3.7.ebuild
index 13744fb31875..d8d222e2ec88 100644
--- a/app-misc/binwalk/binwalk-0.3.2.ebuild
+++ b/app-misc/binwalk/binwalk-0.3.7.ebuild
@@ -1,9 +1,11 @@
# 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.2.ebuild,v 1.1 2011/06/07 05:01:59 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/binwalk/binwalk-0.3.7.ebuild,v 1.1 2011/07/20 04:19:12 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"
@@ -13,7 +15,14 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-RDEPEND="sys-apps/file"
+RDEPEND="net-misc/curl
+ sys-apps/file
+ sys-libs/zlib"
DEPEND="${RDEPEND}"
-S=${WORKDIR}/${P}/src
+S="${WORKDIR}/${P}/src"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-system-magic.patch
+ eautoreconf
+}
diff --git a/app-misc/binwalk/files/binwalk-0.3.7-system-magic.patch b/app-misc/binwalk/files/binwalk-0.3.7-system-magic.patch
new file mode 100644
index 000000000000..7975f52a4554
--- /dev/null
+++ b/app-misc/binwalk/files/binwalk-0.3.7-system-magic.patch
@@ -0,0 +1,73 @@
+--- binwalk-0.3.7.orig/src/configure.ac
++++ binwalk-0.3.7/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.7.orig/src/Makefile.in
++++ binwalk-0.3.7/src/Makefile.in
+@@ -1,7 +1,6 @@
+ CC=@CC@
+ CFLAGS=@CFLAGS@
+ LDFLAGS=@LDFLAGS@
+-FILE=@FILE@
+ MAGIC=magic
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+@@ -11,13 +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_ALT='"$(MAGICPATH).bincast"' 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
+
+@@ -43,7 +38,6 @@
+ rm -f binwalk *.o
+
+ cleanall: clean
+- rm -rf $(FILE)
+ rm -rf config.* *.cache
+ rm -f Makefile
+