Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > de25d50fb423a8c7efcf5b474e0f3eff > files > 2

autopsy-2.03-1mdk.src.rpm

%define _provides_exceptions 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 _requires_exceptions 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	name	autopsy
%define	version	2.03
%define	release	1mdk

Summary:	Autopsy Forensic Browser
Name:		%{name}
Version:	%{version}
Release:	%{release}
URL:		http://www.sleuthkit.org
License:	GPL
Source0:	%{name}-%{version}.tar.bz2
Group:		System/Base
Requires:	binutils
Requires:	file
Requires:	grep
Requires:	perl
Requires:	sleuthkit >= 1.61
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
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';

# Directories
\$TSKDIR = '%{_bindir}/';
\$NSRLDB = '';
\$LOCKDIR = '%{_localstatedir}/morgue';
EOF

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}/var/log/autopsy
install -d %{buildroot}%{_localstatedir}/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/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES.txt COPYING docs/*.txt INSTALL.txt README-LIVE.txt README.txt TODO.txt
%config(noreplace) %attr(0644,root,root) %{_datadir}/autopsy/conf.pl
%config(noreplace) %attr(0644,root,root) %{_datadir}/autopsy/lib/define.pl
%{_datadir}/autopsy
%attr(0755,root,root) %{_sbindir}/autopsy
%attr(0755,root,root) %{_sbindir}/make-live-cd
%dir /var/log/autopsy
%dir %{_localstatedir}/morgue
%attr(0644,root,root) %{_mandir}/man1/*

%changelog
* Sun Oct 31 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.03-1mdk
- 2.03

* Sun May 16 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.00-1mdk
- 2.00
- drop P0, use spec file magic instead
- use _provides_exceptions and _requires_exceptions

* Mon Aug 04 2003 Michael Scherer <scherer.michael@free.fr> 1.71-4mdk
- own the dir in /usr/share/autopsy, fix distlint warning

* Sun May 11 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 1.71-3mdk
- fix provides

* Sun May 11 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 1.71-2mdk
- fix provides

* Sun May 11 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 1.71-1mdk
- initial cooker contrib
- used ideas from Ralf Spennebergs rpm package