From 7e9d2e93d3d5beb401c10a2a1038872ae24b3ed5 Mon Sep 17 00:00:00 2001 From: Stefano Cotta Ramusino Date: Fri, 5 Jan 2024 17:39:40 +0100 Subject: [PATCH] update to 2.0 [release 2.0-1mamba;Mon Jun 25 2012] --- README.md | 5 +++++ scalpel.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 scalpel.spec diff --git a/README.md b/README.md index c9d6c49..6234968 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # scalpel +Scalpel is a fast file carver that reads a database of header and footer definitions and extracts matching files from a set of image files or raw device files. +Scalpel is filesystem-independent and will carve files from FATx, NTFS, ext2/3, or raw partitions. +It is useful for both digital forensics investigation and file recovery. +Scalpel resulted from a complete rewrite of foremost 0.69, a popular open source file carver, to enhance performance and decrease memory usage. + diff --git a/scalpel.spec b/scalpel.spec new file mode 100644 index 0000000..0370631 --- /dev/null +++ b/scalpel.spec @@ -0,0 +1,56 @@ +Name: scalpel +Version: 2.0 +Release: 1mamba +Summary: A fast file carver +Group: Applications/File +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://www.digitalforensicssolutions.com/Scalpel +Source: http://www.digitalforensicssolutions.com/Scalpel/scalpel-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libtre-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Scalpel is a fast file carver that reads a database of header and footer definitions and extracts matching files from a set of image files or raw device files. +Scalpel is filesystem-independent and will carve files from FATx, NTFS, ext2/3, or raw partitions. +It is useful for both digital forensics investigation and file recovery. +Scalpel resulted from a complete rewrite of foremost 0.69, a popular open source file carver, to enhance performance and decrease memory usage. + +%prep +%setup -q +sed -i -e "s,\(scalpel.conf\),/etc/\1," src/scalpel.h +sed -i -e "s,\(f\" in \)the current,\1%{_sysconfdir}," man/scalpel.1 + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +# install configuration file +install -D -m 644 scalpel.conf \ + %{buildroot}%{_sysconfdir}/scalpel.conf + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/scalpel +%config(noreplace) %{_sysconfdir}/scalpel.conf +%{_mandir}/man1/* +%doc Changelog gpl.txt README + +%changelog +* Mon Jun 25 2012 Stefano Cotta Ramusino 2.0-1mamba +- update to 2.0 + +* Wed Aug 29 2007 Stefano Cotta Ramusino 1.60-1mamba +- package created by autospec