2 # - change use/require Appsort to Autopsy::lib::Appsort or Autopsy::Appsort and more
4 Summary: The Autopsy Forensic Browser - a graphical interface to The Sleuth Kit utilities
5 Summary(pl.UTF-8): Autopsy Forensic Browser - graficzny interfejs do narzędzi z The Sleuth Kit
11 Source0: http://dl.sourceforge.net/autopsy/%{name}-%{version}.tar.gz
12 # Source0-md5: 4ed18aa9f79453d74957b5db220d0d59
14 URL: http://www.sleuthkit.org/autopsy
15 BuildRequires: rpm-perlprov >= 4.1-13
18 # check: openssl contains only shared lib and I don't see any native code here
19 # shouldn't it be openssl-tools or some openssl-based perl module?
21 Requires: perl-Date-Manip
23 Requires(post,preun): /sbin/chkconfig
24 Requires(postun): /usr/sbin/groupdel
25 Requires(postun): /usr/sbin/userdel
26 Requires(pre): /bin/id
27 Requires(pre): /usr/bin/getgid
28 Requires(pre): /usr/sbin/groupadd
29 Requires(pre): /usr/sbin/useradd
30 # some script/macro finds that autopsy requires the following perl modules
31 # which are provided in the package - as a workaround we provide them:
32 # (but this pollutes a perl module namespace)
33 Provides: perl(Appsort)
34 Provides: perl(Appview)
36 Provides: perl(Caseman)
40 Provides: perl(Filesystem)
44 Provides: perl(Kwsrch)
49 Provides: perl(Timeline)
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 The Autopsy Forensic Browser is a graphical interface to utilities
56 found in The Sleuth Kit (TSK). TSK is a collection of command line
57 tools that allow you to investigate a Windows or Unix system by
58 examining the hard disk contents. TSK and Autopsy will show you the
59 files, data units, and metadata of NTFS, FAT, EXTxFS, and UFS file
60 system images in a read-only environment. Autopsy allows you to search
61 for specific types of evidence based on keywords, MAC times, hash
62 values, and file types.
64 %description -l pl.UTF-8
65 Autopsy Forensic Browser to graficzny interfejs do narzędzi z pakietu
66 The Sleuth Kit (TSK). TSK to zbiór programów działających z linii
67 poleceń pozwalających zbadać system Windows lub uniksowy poprzez
68 sprawdzanie zawartości twardego dysku. TSK i Autopsy pokazują pliki,
69 jednostki danych i metadane obrazów systemów plików NTFS, FAT, EXTxFS
70 i UFS w środowisku tylko do odczytu. Autopsy pozwala wyszukiwać
71 określone rodzaje dowodów w oparciu o słowa kluczowe, czasy MAC,
72 wartości haszy i rodzaje plików.
77 echo '#!%{__perl} -wT' > autopsy
78 echo 'use lib qw(%{perl_vendorlib}/Autopsy);' >> autopsy
79 echo 'use lib qw(%{perl_vendorlib}/Autopsy/lib);' >> autopsy
80 cat base/autopsy.base >> autopsy
82 cat > conf.pl <<-'EOF'
83 # Autopsy configuration settings
85 # when set to 1, the server will stop after it receives no
86 # connections for STIMEOUT seconds.
90 # number of seconds that child waits for input from client
93 # set to 1 to save the cookie value in a file (for scripting)
96 $INSTALLDIR = '%{perl_vendorlib}/Autopsy/';
99 $GREP_EXE = '/bin/grep';
102 $TSKDIR = '%{_bindir}';
103 $FILE_EXE = '%{_bindir}/file';
104 $MD5_EXE = '%{_bindir}/md5sum';
105 $SHA1_EXE = '%{_bindir}/sha1sum';
107 # FIXME: FHS: /var/{lib,run}/autopsy?
108 $LOCKDIR = '/home/services/autopsy';
112 rm -rf $RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT%{_bindir}
115 install -d $RPM_BUILD_ROOT%{_mandir}/man1
116 install -d $RPM_BUILD_ROOT/home/services/autopsy
117 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Autopsy/{lib,pict}
119 install autopsy $RPM_BUILD_ROOT%{_bindir}
120 install conf.pl $RPM_BUILD_ROOT%{perl_vendorlib}/Autopsy
121 install lib/* $RPM_BUILD_ROOT%{perl_vendorlib}/Autopsy/lib
122 install pict/* $RPM_BUILD_ROOT%{perl_vendorlib}/Autopsy/pict
124 install man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
126 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
127 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/autopsy
130 rm -rf $RPM_BUILD_ROOT
133 %groupadd -g 178 autopsy
134 %useradd -u 178 -r -d /home/services/autopsy -s /bin/false -c "Autopsy user" -g autopsy autopsy
137 /sbin/chkconfig --add autopsy
140 %service autopsy stop
141 /sbin/chkconfig --del autopsy
149 %defattr(644,root,root,755)
150 %doc README.txt docs/sleuthkit-informer-13.txt
151 %attr(755,root,root) %{_bindir}/*
152 %dir %{perl_vendorlib}/Autopsy
153 %{perl_vendorlib}/Autopsy/conf.pl
154 %{perl_vendorlib}/Autopsy/lib
155 %{perl_vendorlib}/Autopsy/pict
157 %attr(750,autopsy,autopsy) /home/services/autopsy
158 %attr(754,root,root) /etc/rc.d/init.d/autopsy