1 Summary: Binary image analyze tool
6 Group: Applications/Development
7 Source0: http://binwalk.googlecode.com/files/%{name}-%{version}.tar.gz
8 # Source0-md5: bc145f8b9abd5e79d5bc3aecdc0ab829
9 URL: http://code.google.com/p/binwalk/
10 BuildRequires: autoconf >= 2.65
11 BuildRequires: curl-devel
12 BuildRequires: libmagic-devel
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Binwalk is a tool for searching a given binary image for embedded files
17 and executable code. Specifically, it is designed for identifying files
18 and code embedded inside of firmware images. Binwalk uses the libmagic
19 library, so it is compatible with magic signatures created for the Unix
22 Binwalk also includes a custom magic signature file which contains
23 improved signatures for files that are commonly found in firmware
24 images such as compressed/archived files, firmware headers, Linux
25 kernels, bootloaders, filesystems, etc.
29 perl -ne 's/-lz/-lmagic/; print unless /^tar -zxvf \$FILE\.tar\.gz/' -i src/configure.ac
30 perl -ne 'print unless /FILE/' -i src/Makefile.in
39 rm -rf $RPM_BUILD_ROOT
41 %{__make} -C src install \
42 DESTDIR=$RPM_BUILD_ROOT
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
50 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}
51 %attr(755,root,root) %{_bindir}/%{name}