65 lines
2.3 KiB
RPMSpec
65 lines
2.3 KiB
RPMSpec
|
Name: foremost
|
||
|
Version: 1.5.7
|
||
|
Release: 1mamba
|
||
|
Summary: A console program to recover files based on data carving
|
||
|
Group: Applications/File
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
||
|
URL: http://foremost.sourceforge.net/
|
||
|
Source: http://foremost.sourceforge.net/pkg/foremost-%{version}.tar.gz
|
||
|
Patch0: foremost-1.5.6-fix_build.patch
|
||
|
License: Public Domain
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
Foremost is a console program to recover files based on their headers, footers, and internal data structures.
|
||
|
This process is commonly referred to as data carving.
|
||
|
Foremost can work on image files, such as those generated by dd, Safeback, Encase, etc, or directly on a drive.
|
||
|
The headers and footers can be specified by a configuration file or you can use command line switches to specify built-in file types.
|
||
|
These built-in types look at the data structures of a given file format allowing for a more reliable and faster recovery.
|
||
|
|
||
|
Originally developed by the United States Air Force Office of Special Investigations and The Center for Information Systems Security Studies and Research, foremost has been opened to the general public.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
%patch0 -p1
|
||
|
sed -i -e "s,/usr/local,," config.c
|
||
|
sed -i -e "s,.*__U16_TYPE.*,," main.h
|
||
|
|
||
|
%build
|
||
|
%make \
|
||
|
RAW_CC=%{_target_platform}-gcc
|
||
|
# RAW_FLAGS="%{optflags} -DVERSION=\"\$(VERSION)\""
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
install -d %{buildroot}{%{_bindir},%{_sysconfdir},%{_mandir}/man1}
|
||
|
%makeoldinstall \
|
||
|
BIN=%{buildroot}%{_bindir} \
|
||
|
CONF=%{buildroot}%{_sysconfdir} \
|
||
|
MAN=%{buildroot}%{_mandir}/man1
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/foremost
|
||
|
%config(noreplace) %{_sysconfdir}/foremost.conf
|
||
|
%{_mandir}/man1/*
|
||
|
%doc CHANGES README
|
||
|
|
||
|
%changelog
|
||
|
* Mon Jun 25 2012 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.5.7-1mamba
|
||
|
- update to 1.5.7
|
||
|
|
||
|
* Mon Jan 11 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.6-1mamba
|
||
|
- update to 1.5.6
|
||
|
|
||
|
* Wed Aug 29 2007 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.5-1mamba
|
||
|
- package created by autospec
|