| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- ##
- ## sleuthkit.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
- ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
- ##
- ## 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
- Distribution: OpenPKG
- Class: PLUS
- Group: System
- License: GPL
- Version: 2.02
- Release: 20050709
- # list of sources
- Source0: http://osdn.dl.sourceforge.net/sleuthkit/sleuthkit-%{version}.tar.gz
- Patch0: sleuthkit.patch
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-time
- PreReq: OpenPKG, openpkg >= 20040130, perl, perl-time, file
- AutoReq: no
- AutoReqProv: no
- %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://prdownloads.sourceforge.net/sleuthkit/
- regex = sleuthkit-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q
- %patch -p0
- %{l_shtool} subst \
- -e 's;/usr/local/bin/;%{l_prefix}/bin/;' \
- -e 's;read perlexe;exit 1;' \
- src/sorter/install src/timeline/config-perl
- %build
- # build programs
- %{l_make} %{l_mflags} \
- CC="%{l_cc} %{l_cflags -O}"
- # adjust Perl scripts
- %{l_shtool} subst \
- -e 's;#!/usr/bin/perl;%!{l_prefix}/bin/perl;' \
- -e 's;\(SK_DIR="\)[^"]*\("\);\1%{l_prefix}\2;' \
- -e 's;/share/sorter;%{l_prefix}/share/sleuthkit/sorter;' \
- bin/sorter
- %{l_shtool} subst \
- -e 's;#!/usr/bin/perl;%!{l_prefix}/bin/perl;' \
- -e '/^use lib.*/d' \
- bin/mactime
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/bin \
- $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
- $RPM_BUILD_ROOT%{l_prefix}/share/sleuthkit/sorter
- %{l_shtool} install -c -m 755 \
- bin/* $RPM_BUILD_ROOT%{l_prefix}/bin/
- %{l_shtool} install -c -m 644 \
- man/man1/*.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
- %{l_shtool} install -c -m 644 \
- share/sorter/* $RPM_BUILD_ROOT%{l_prefix}/share/sleuthkit/sorter/
- 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
- rm -rf $RPM_BUILD_ROOT
|