|
|
|
|
##
|
|
|
|
|
## sleuthkit.spec -- OpenPKG RPM Package Specification
|
|
|
|
|
## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
|
|
|
|
|
##
|
|
|
|
|
## Permission to use, copy, modify, and distribute this software for
|
|
|
|
|
## any purpose with or without fee is hereby granted, provided that
|
|
|
|
|
## the above copyright notice and this permission notice appear in all
|
|
|
|
|
## copies.
|
|
|
|
|
##
|
|
|
|
|
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
|
|
|
|
|
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
|
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
|
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
|
|
|
|
|
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
|
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
|
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
|
|
|
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
|
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
|
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
|
|
|
|
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
|
## SUCH DAMAGE.
|
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
# package information
|
|
|
|
|
Name: sleuthkit
|
|
|
|
|
Summary: Forensic Analysis Toolkit
|
|
|
|
|
URL: http://www.sleuthkit.org/
|
|
|
|
|
Vendor: Brian Carrier et al.
|
|
|
|
|
Packager: OpenPKG Foundation e.V.
|
|
|
|
|
Distribution: OpenPKG Community
|
|
|
|
|
Class: EVAL
|
|
|
|
|
Group: Filesystem
|
|
|
|
|
License: GPL
|
|
|
|
|
Version: 3.2.0
|
|
|
|
|
Release: 20101029
|
|
|
|
|
|
|
|
|
|
# list of sources
|
|
|
|
|
Source0: http://switch.dl.sourceforge.net/sleuthkit/sleuthkit-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
# build information
|
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, make
|
|
|
|
|
PreReq: OpenPKG, openpkg >= 20100101, file
|
|
|
|
|
BuildPreReq: perl, perl-time, openssl
|
|
|
|
|
PreReq: perl, perl-time, openssl
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The Sleuth Kit (previously known as TASK) is a collection of
|
|
|
|
|
UNIX-based command line file system and media management forensic
|
|
|
|
|
analysis tools. The file system tools allow you to examine NTFS,
|
|
|
|
|
FAT, FFS, EXT2FS, and EXT3FS file systems of a suspect computer in
|
|
|
|
|
a non-intrusive fashion. The tools have a layer-based design and
|
|
|
|
|
can extract data from the internal file system structures. Because
|
|
|
|
|
the tools do not rely on the operating system to process the file
|
|
|
|
|
systems, deleted and hidden content is shown. The media management
|
|
|
|
|
tools allow you to examine the layout of disks and other media. The
|
|
|
|
|
Sleuth Kit supports DOS partitions, BSD partitions (disk labels),
|
|
|
|
|
Mac partitions, and Sun slices (Volume Table of Contents). With
|
|
|
|
|
these tools, you can identify where partitions are located and
|
|
|
|
|
extract them so that they can be analyzed with file system analysis
|
|
|
|
|
tools.
|
|
|
|
|
|
|
|
|
|
%track
|
|
|
|
|
prog sleuthkit = {
|
|
|
|
|
version = %{version}
|
|
|
|
|
url = http://sourceforge.net/projects/sleuthkit/files/
|
|
|
|
|
regex = sleuthkit-(__VER__)\.tar\.gz
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# build programs
|
|
|
|
|
CC="%{l_cc}" \
|
|
|
|
|
CXX="%{l_cxx}" \
|
|
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
|
|
CXXFLAGS="%{l_cxxflags -O}" \
|
|
|
|
|
CPPFLAGS="%{l_cppflags}" \
|
|
|
|
|
LDFLAGS="%{l_ldflags}" \
|
|
|
|
|
./configure \
|
|
|
|
|
--prefix=%{l_prefix} \
|
|
|
|
|
--disable-shared
|
|
|
|
|
%{l_make} %{l_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|
|
|
|
|
|
|
%files -f files
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|