sleuthkit/sleuthkit.spec

104 lines
3.3 KiB
RPMSpec
Raw Normal View History

2020-02-26 10:30:10 +08:00
Name: sleuthkit
Version: 4.6.7
Release: 6
2020-02-26 10:30:10 +08:00
Summary: Tools for file system and volume forensic analysis
License: CPL and IBM and GPLv2+
URL: http://www.sleuthkit.org
Source0: https://github.com/sleuthkit/sleuthkit/releases/download/sleuthkit-%{version}/sleuthkit-%{version}.tar.gz
2020-12-09 18:03:28 +08:00
Patch1: 0001-MEMORYLEAK-DOS-LOAD-EXT-TABLE.patch
2020-12-16 15:40:24 +08:00
Patch2: 0002-Ensure-that-we-don-t-attempt-to-index-into-an-invali.patch
Patch3: 0003-Fix-bug-introduced-with-imap-offset-check.patch
Patch4: 0004-Cast-attrseq-address-to-uintptr_t-so-that-the-correc.patch
Patch5: 0005-Fix-Fuzz-buffer-overflow.patch
Patch6: 0006-Add-attributes-file-nodesize-check.patch
2020-12-09 18:03:28 +08:00
2020-02-26 10:30:10 +08:00
BuildRequires: gcc-c++ afflib-devel >= 3.3.4 libewf-devel perl-generators sqlite-devel
%{?_with_java:
BuildRequires: java-devel >= 1:1.6.0 jpackage-utils
Requires: java >= 1:1.6.0 jpackage-utils
}
Requires: file
2020-02-26 10:30:10 +08:00
Provides: %{name}-libs = %{version}-%{release}
Obsoletes: %{name}-libs < %{version}-%{release}
%description
The Sleuth Kit (previously known as TASK) is a collection of UNIX-based command
line file system forensic tools that allow an investigator to examine NTFS,
FAT, FFS, EXT2FS, EXT3FS and ExFAT file systems of a suspect computer in a
non-intrusive fashion. The tools have a layer-based design and can extract
data from 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.
%package devel
Summary: Provides development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: sqlite-devel
%description devel
This package provides the development files for %{name}.
%package help
Summary:Help Document for %{name}
%description help
The help package contains manual pages and other related files for %{name}.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure --disable-static %{!?_with_java:--disable-java}
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install
%make_install
%delete_la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc ChangeLog.txt NEWS.txt licenses/*
%{_bindir}/{blkcalc,blkcat,blkls,blkstat}
%exclude %{_bindir}/fcat
%{_bindir}/{ffind,fiwalk,fls,fsstat,hfind,icat}
%{_bindir}/{ifind,ils,img_cat,img_stat,istat,jcat,sorter}
%{_bindir}/{jpeg_extract,jls,mactime,mmcat,mmls,mmstat,sigfind}
%{_bindir}/{srch_strings,tsk_comparedir,tsk_gettimes,tsk_loaddb,tsk_recover,usnjls}
%exclude %{_mandir}/man1/fcat.1*
%dir %{_datadir}/tsk
%{_datadir}/tsk/sorter/
%{_libdir}/*.so.*
%files devel
%{_includedir}/tsk/
%{_libdir}/*.so
%files help
%{_mandir}/man1/*
%changelog
* Thu Jan 28 2021 maminjie <maminjie1@huawei.com> - 4.6.7-6
- remove the requires mac-robber that is deprecated
* Fri Dec 18 2020 lingsheng <lingsheng@huawei.com> - 4.6.7-5
- Add attributes file nodesize check to fix heap overflow
2020-12-16 15:40:24 +08:00
* Tue Dec 15 2020 Jiachen Fan <fanjiachen3@huawei.com> - 4.6.7-4
- fix oss-fuzz heap over flow
* Wed Dec 9 2020 Jiachen Fan <fanjiachen3@huawei.com> - 4.6.7-3
- fix oss-fuzz memory leak
2020-02-26 10:30:10 +08:00
* Fri Feb 21 2020 wangzhishun <wangzhishun1@huawei.com> - 4.6.7-2
- Package init