/
autopsy.spec
108 lines (89 loc) · 3.8 KB
/
autopsy.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
%define __noautoprov 'perl\\(Appsort\\)|perl\\(Appview\\)|perl\\(Args\\)|perl\\(Caseman\\)|perl\\(Data\\)|perl\\(Exec\\)|perl\\(File\\)|perl\\(Filesystem\\)|perl\\(Frame\\)|perl\\(Fs\\)|perl\\(Hash\\)|perl\\(Kwsrch\\)|perl\\(Main\\)|perl\\(Meta\\)|perl\\(Notes\\)|perl\\(Print\\)|perl\\(Timeline\\)|perl\\(autopsyfunc\\)|perl\\(conf.pl\\)|perl\\(define.pl\\)|perl\\(fs.pl\\)|perl\\(search.pl\\)'
%define __noautoreq 'perl\\(Appsort\\)|perl\\(Appview\\)|perl\\(Args\\)|perl\\(Caseman\\)|perl\\(Data\\)|perl\\(Exec\\)|perl\\(File\\)|perl\\(Filesystem\\)|perl\\(Frame\\)|perl\\(Fs\\)|perl\\(Hash\\)|perl\\(Kwsrch\\)|perl\\(Main\\)|perl\\(Meta\\)|perl\\(Notes\\)|perl\\(Print\\)|perl\\(Timeline\\)|perl\\(autopsyfunc\\)|perl\\(conf.pl\\)|perl\\(define.pl\\)|perl\\(fs.pl\\)|perl\\(search.pl\\)'
Summary: Autopsy Forensic Browser
Name: autopsy
Version: 2.24
Release: 3
License: GPLv2+
Group: System/Base
URL: http://www.sleuthkit.org
Source0: http://dfn.dl.sourceforge.net/sourceforge/autopsy/%name-%version.tar.gz
Requires: binutils
Requires: file
Requires: grep
Requires: perl
Requires: sleuthkit >= 1.61
BuildArch: noarch
%description
The Autopsy Forensic Browser is a graphical interface to the command line
digital forensic analysis tools in The Sleuth Kit. Together, The Sleuth Kit and
Autopsy provide many of the same features as commercial digital forensics tools
for the analysis of Windows(tm) and UNIX file systems (NTFS, FAT, FFS, EXT2FS,
and EXT3FS).
The Sleuth Kit and Autopsy are both Open Source and run on UNIX platforms. As
Autopsy is HTML-based, the investigator can connect to the Autopsy server from
any platform using an HTML browser. Autopsy provides a "File Manager"-like
interface and shows details about deleted data and file system structures.
%prep
%setup -q
%build
# "build" autopsy
cat > autopsy << EOF
#!%{_bindir}/perl -wT
use lib '%{_datadir}/autopsy/';
use lib '%{_datadir}/autopsy/lib/';
EOF
cat base/autopsy.base >> autopsy
# "build" make-live-cd
cat > make-live-cd << EOF
#!%{_bindir}/perl
use lib '%{_datadir}/autopsy/';
use lib '%{_datadir}/autopsy/lib/';
EOF
cat base/make-live-cd.base >> make-live-cd
# "build" conf.pl
cat > conf.pl << EOF
# Autopsy configuration settings
# when set to 1, the server will stop after it receives no
# connections for STIMEOUT seconds.
\$USE_STIMEOUT = 0;
\$STIMEOUT = 3600;
# number of seconds that child waits for input from client
\$CTIMEOUT = 15;
# set to 1 to save the cookie value in a file (for scripting)
\$SAVE_COOKIE = 1;
\$INSTALLDIR = '%{_datadir}/autopsy/';
# System Utilities
\$STRINGS_EXE = '%{_bindir}/strings';
\$GREP_EXE = '/bin/grep';
\$FILE_EXE = '%{_bindir}/file';
\$MD5_EXE = '%{_bindir}/md5sum';
\$SHA1_EXE = '%{_bindir}/sha1sum';
# Directories
\$TSKDIR = '%{_bindir}/';
\$NSRLDB = '';
\$LOCKDIR = '%{_localstatedir}/lib/morgue';
EOF
%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}/var/log/autopsy
install -d %{buildroot}%{_localstatedir}/lib/morgue
install -d %{buildroot}%{_datadir}/autopsy/help
install -d %{buildroot}%{_datadir}/autopsy/lib
install -d %{buildroot}%{_datadir}/autopsy/pict
install -m0755 autopsy %{buildroot}%{_sbindir}/autopsy
install -m0755 make-live-cd %{buildroot}%{_sbindir}/make-live-cd
install -m0755 conf.pl %{buildroot}%{_datadir}/autopsy/
install -m0644 help/*.html %{buildroot}%{_datadir}/autopsy/help/
install -m0644 lib/*.p* %{buildroot}%{_datadir}/autopsy/lib/
install -m0644 man/man1/autopsy.1 %{buildroot}%{_mandir}/man1/
install -m0644 pict/* %{buildroot}%{_datadir}/autopsy/pict/
%files
%doc CHANGES.txt COPYING docs/*.txt INSTALL.txt README-LIVE.txt README.txt TODO.txt
%{_datadir}/autopsy
%attr(0755,root,root) %{_sbindir}/autopsy
%attr(0755,root,root) %{_sbindir}/make-live-cd
%dir /var/log/autopsy
%dir %{_localstatedir}/lib/morgue
%attr(0644,root,root) %{_mandir}/man1/*