update to 1.5.7 [release 1.5.7-1mamba;Mon Jun 25 2012]

This commit is contained in:
Stefano Cotta Ramusino 2024-01-05 22:31:12 +01:00
parent 4cf11f7e3f
commit 39ef66dbfa
3 changed files with 85 additions and 0 deletions

View File

@ -1,2 +1,10 @@
# foremost # foremost
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.

View File

@ -0,0 +1,13 @@
diff -Nru foremost-1.5.6.orig/main.h foremost-1.5.6/main.h
--- foremost-1.5.6.orig/main.h 2010-01-11 21:28:38.428203679 +0100
+++ foremost-1.5.6/main.h 2010-01-11 21:28:59.701204009 +0100
@@ -456,8 +456,7 @@
size_t table[UCHAR_MAX + 1], int case_sen,int searchtype);
unsigned char *bm_search_skipn(unsigned char *needle, size_t needle_len,unsigned char *haystack, size_t haystack_len,
size_t table[UCHAR_MAX + 1], int casesensitive,int searchtype, int start_pos) ;
-#endif /* __FOREMOST_H */
-
+
/* BUILTIN */
unsigned char* extract_file(f_state *s, u_int64_t c_offset,unsigned char *foundat, u_int64_t buflen, s_spec * needle, u_int64_t f_offset);

64
foremost.spec Normal file
View File

@ -0,0 +1,64 @@
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