From owner-svn-ports-all@FreeBSD.ORG Fri Jul 11 21:47:45 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0F03767F; Fri, 11 Jul 2014 21:47:45 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E45B42A40; Fri, 11 Jul 2014 21:47:44 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6BLlil2060150; Fri, 11 Jul 2014 21:47:44 GMT (envelope-from marino@svn.freebsd.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6BLlivd060137; Fri, 11 Jul 2014 21:47:44 GMT (envelope-from marino@svn.freebsd.org) Message-Id: <201407112147.s6BLlivd060137@svn.freebsd.org> From: John Marino Date: Fri, 11 Jul 2014 21:47:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r361587 - in head/sysutils/autopsy: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2014 21:47:45 -0000 Author: marino Date: Fri Jul 11 21:47:43 2014 New Revision: 361587 URL: http://svnweb.freebsd.org/changeset/ports/361587 QAT: https://qat.redports.org/buildarchive/r361587/ Log: sysutils/autopsy: Convert from INTERACTIVE port and assign new maintainer This port was deprecated because it was unmaintained and interactive, but Dylan Leigh has brought it back into good standing: * Convert to a regular port by fixing configure script - Skip useless prompts to user - Abort instead of prompting when paths are not found, which will never happen in ports anyway - Convert evidence locker and NSRL prompts to pkg-message * Updated description to warn about project inactivity * Updated WWW link * Add pkg-message * Assign maintainership to Dylan PR: 191778 Submitted by: Dylan Leigh Verified by: Redports 8x Added: head/sysutils/autopsy/pkg-message (contents, props changed) Modified: head/sysutils/autopsy/Makefile head/sysutils/autopsy/files/patch-configure head/sysutils/autopsy/pkg-descr Modified: head/sysutils/autopsy/Makefile ============================================================================== --- head/sysutils/autopsy/Makefile Fri Jul 11 21:33:19 2014 (r361586) +++ head/sysutils/autopsy/Makefile Fri Jul 11 21:47:43 2014 (r361587) @@ -7,19 +7,15 @@ PORTREVISION= 1 CATEGORIES= sysutils security MASTER_SITES= SF -MAINTAINER= ports@FreeBSD.org +MAINTAINER= fbsd@dylanleigh.net COMMENT= Web-based (graphical) interface to The Sleuth Kit -DEPRECATED= Unmaintained interactive port -EXPIRATION_DATE=2014-08-20 - LICENSE= GPLv2 BUILD_DEPENDS= ${LOCALBASE}/bin/ifind:${PORTSDIR}/sysutils/sleuthkit RUN_DEPENDS:= ${BUILD_DEPENDS} USES= perl5 -IS_INTERACTIVE= yes WEB= pict/* WEBHELP= help/* PERLBITS= lib/*.pm lib/*.pl conf.pl Modified: head/sysutils/autopsy/files/patch-configure ============================================================================== --- head/sysutils/autopsy/files/patch-configure Fri Jul 11 21:33:19 2014 (r361586) +++ head/sysutils/autopsy/files/patch-configure Fri Jul 11 21:47:43 2014 (r361587) @@ -1,5 +1,5 @@ ---- configure.orig Thu Oct 13 19:03:54 2005 -+++ configure Tue Nov 29 12:41:17 2005 +--- configure.orig 2014-07-10 19:20:13.118096813 +1000 ++++ configure 2014-07-10 19:20:13.117096540 +1000 @@ -45,7 +45,7 @@ @@ -9,6 +9,17 @@ echo "" +@@ -63,8 +63,8 @@ + + rep="" + if (test -f $conf) then +- echo "A configuration file already exists, overwrite? (y/n):"; +- read rep; ++ echo "A configuration file already exists, not overwriting"; ++ rep="n" + else + rep="y" + fi @@ -96,7 +96,7 @@ # INSTALLATION DIRECTORY ############################################################################# @@ -18,7 +29,233 @@ # Now add the variables that need user interaction -@@ -438,8 +438,7 @@ +@@ -127,19 +127,11 @@ + fi; + done + +-# Prompt if not found ++# Don't Prompt if not found + if (test $found -eq 0) then + echo 'ERROR: grep utility not found'; +- echo 'Enter location of executable:'; +- while (test 1 -eq 1) +- do read grepexe; +- if (test -x "$grepexe") then +- echo \$GREP_EXE = \'$grepexe\'\; >> $conf; +- break; +- else +- echo 'grep was not found (try again):'; +- fi; +- done ++ echo 'Configure aborted!'; ++ exit 1 + fi + + +@@ -156,19 +148,11 @@ + fi; + done + +-# Prompt if not found ++# Don't Prompt if not found + if (test $found -eq 0) then + echo 'ERROR: file utility not found'; +- echo 'Enter location of executable:'; +- while (test 1 -eq 1) +- do read fileexe; +- if (test -x "$fileexe") then +- echo \$FILE_EXE = \'$filexe\'\; >> $conf; +- break; +- else +- echo 'file was not found (try again):'; +- fi; +- done ++ echo 'Configure aborted!'; ++ exit 1 + fi + + # +@@ -189,19 +173,11 @@ + fi; + done + +-# Prompt if not found ++# Don't Prompt if not found + if (test $found -eq 0) then + echo 'ERROR: md5/md5sum utility not found'; +- echo 'Enter location of executable:'; +- while (test 1 -eq 1) +- do read md5exe; +- if (test -x "$md5exe") then +- echo \$MD5_EXE = \'$md5exe\'\; >> $conf; +- break; +- else +- echo 'md5 was not found (try again):'; +- fi; +- done ++ echo 'Configure aborted!'; ++ exit 1 + fi + + +@@ -263,25 +239,8 @@ + if (test $found -eq 0) then + echo 'Sleuth Kit tools were not found in the standard install locations.' + echo 'If you have not installed them, do so now and configure autopsy again.' +- echo 'If you have installed them in a non-standard location, then' +- echo ' enter the "bin" directory now:' +- +- while (test 1 -eq 1) +- do read tskdir; +- if ((test -x ${tskdir}/fls) && (test -x ${tskdir}/ffind) && (test -x ${tskdir}/blkstat) && \ +- (test -x ${tskdir}/blkls) && (test -x ${tskdir}/blkcat) && \ +- (test -x ${tskdir}/mmls) && (test -x ${tskdir}/mmstat) && \ +- (test -x ${tskdir}/fsstat) && (test -x ${tskdir}/img_stat) && \ +- (test -x ${tskdir}/istat) && (test -x ${tskdir}/ifind) && \ +- (test -x ${tskdir}/icat) && (test -x ${tskdir}/ils) && \ +- (test -x ${tskdir}/srch_strings) && \ +- (test -x ${tskdir}/mactime) && (test -x ${tskdir}/sorter)) then +- echo \$TSKDIR = \'${tskdir}\'\; >> $conf; +- break; +- else +- echo 'TSK tools were not found or incomplete (try again):'; +- fi; +- done ++ echo 'Configure aborted!' ++ exit 1 + fi; + + # Test for latest version +@@ -297,9 +256,6 @@ + elif (test "$ver" '<' "$curtskver") then + echo ''; + echo "*** NOTE: A more recent version ($curtskver) of The Sleuth Kit Exists ***" +- echo " [Press Enter to Continue]"; +- read foo; +- + else + echo ' Required version found'; + fi +@@ -307,73 +263,18 @@ + + + # NSRL +-echo '' +-echo '---------------------------------------------------------------' +-echo '' +-echo 'The NIST National Software Reference Library (NSRL) contains' +-echo 'hash values of known good and bad files.' +-echo ' http://www.nsrl.nist.gov' +-echo '' +-echo 'Have you purchased or downloaded a copy of the NSRL (y/n) [n]' +-read rep; +-if (test "$rep" = "y") then +- +- echo 'Enter the directory where you installed it:' +- while (test 1 -eq 1) +- do read nsrldir; +- if (test "$nsrldir" = "cancel") then +- echo \$NSRLDB = \'\'\; >> $conf; +- break; +- fi; +- if (test -f "${nsrldir}/NSRLFile.txt") then +- echo ' NSRL database was found (NSRLFile.txt)'; +- echo \$NSRLDB = \'${nsrldir}/NSRLFile.txt\'\; >> $conf; +- +- if (test -f "${nsrldir}/NSRLFile.txt-md5.idx") then +- echo ' NSRL Index file found (NSRLFile.txt-md5.idx)'; +- else +- echo ' NSRL Index file not found, do you want it created? (y/n) [n]:' +- read rep; +- if (test "$rep" = "y") then +- echo '' +- echo '-------------- begin hfind output --------------' +- "${tskdir}/hfind" -i nsrl-md5 "${nsrldir}/NSRLFile.txt"; +- echo '--------------- end hfind output ---------------' +- echo '' +- fi; +- fi; +- break; +- else +- echo 'The NSRL was not found (the directory should have NSRLFile.txt in it)'; +- echo 'Enter a new directory (or cancel to stop):'; +- fi; +- done +-else +- echo \$NSRLDB = \'\'\; >> $conf; +-fi; ++# User may add later (see pkg-message) ++echo \$NSRLDB = \'\'\; >> $conf; + +-############################################################################# + # EVIDENCE LOCKER +-############################################################################# +-mdone=0 +-echo '' +-echo '---------------------------------------------------------------' +-echo '' +-echo 'Autopsy saves configuration files, audit logs, and output to the' +-echo 'Evidence Locker directory.' +-echo '' +-echo 'Enter the directory that you want to use for the Evidence Locker:'; +-read locker; +-if (test -d "${locker}") then +- echo " $locker already exists" +-else +- echo ''; +- echo "WARNING: $locker does not exist" +- mdone=1 +-fi ++# User may add later (see pkg-message) ++echo \$LOCKDIR = \'\'\; >> $conf; + +-echo \$LOCKDIR = \'${locker}\'\; >> $conf; ++# Ensure configure-created conf.pl returns 1 to allow it to be ++# require-d in Autopsy's perl modules ++echo 1\; >> $conf; + ++# XXX NOTE: This matches an overwrite if at the top of this script + fi + + # Start of non-conf.pl file configuration +@@ -404,28 +305,8 @@ + # If it wasn't found, then prompt for it. + if (test $found -eq 0) then + echo 'ERROR: perl not found or the incorrect version found'; +- while (test 1 -eq 1) +- do echo 'Enter location of perl executable:'; +- read perlexe; +- if (test -x "$perlexe") then +- if (test -n "`$perlexe -v 2> /dev/null | awk '/This is perl/ {print $0}'`") then +- ver=`$perlexe -e 'print $];'`; +- if (`$perlexe -e 'exit( $] >= 5.008);'`) then +- echo "This version of Perl is too old, 5.8.0 or older needed"; +- else +- echo "Correct version found"; +- echo "#!${perlexe} -wT" > ./config.tmp; +- echo "#!${perlexe}" > ./config2.tmp; +- found=1; +- break; +- fi; +- else +- echo "Perl found, but is not working. Try another"; +- fi; +- else +- echo "file not found"; +- fi +- done ++ echo 'Configure aborted!' ++ exit 1 + fi + + # Check if this version of Perl supports large files +@@ -434,24 +315,14 @@ + echo ' NOTE: It appears that your Perl does not support large files.'; + echo ' You therefore will not be able to analyze images larger than 2GB.'; + echo ' Download the source version from www.cpan.org and compile a new version.'; +- echo " [Press Enter to Continue]"; +- read foo; + echo '' fi; # Get current working directory for lib @@ -27,4 +264,15 @@ +echo "use lib '${PREFIX}/lib/autopsy/';" >> ./config.tmp if (test -f ./autopsy) then - echo "autopsy already exists, overwrite? (y/n):"; +- echo "autopsy already exists, overwrite? (y/n):"; +- read rep; +- if (test "$rep" = "y") then +- cat ./config.tmp base/autopsy.base > ./autopsy +- cat ./config2.tmp base/make-live-cd.base > ./make-live-cd +- else +- echo ' original version was kept'; +- fi ++ echo "WARNING: ./autopsy already exists not overwriting"; + else + cat ./config.tmp base/autopsy.base > ./autopsy + cat ./config2.tmp base/make-live-cd.base > ./make-live-cd Modified: head/sysutils/autopsy/pkg-descr ============================================================================== --- head/sysutils/autopsy/pkg-descr Fri Jul 11 21:33:19 2014 (r361586) +++ head/sysutils/autopsy/pkg-descr Fri Jul 11 21:47:43 2014 (r361587) @@ -2,9 +2,12 @@ The Autopsy Forensic Browser is a graphi digital investigation analysis tools in The Sleuth Kit. Together, they can analyze Windows and UNIX disks and file systems (NTFS, FAT, UFS1/2, Ext2/3). -The Sleuth Kit and Autopsy are both Open Source and run on UNIX platforms. As Autopsy is HTML-based, you 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. -WWW: http://www.sleuthkit.org/autopsy/ +WARNING: The cross-platform version of Autopsy is no longer actively + developed. This port is retained mainly to allow users with + saved data to migrate to another forensic tool. + +WWW: http://www.sleuthkit.org/autopsy/v2/ Added: head/sysutils/autopsy/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/autopsy/pkg-message Fri Jul 11 21:47:43 2014 (r361587) @@ -0,0 +1,34 @@ + +--------------------------------------------------------------- + +Default autopsy configuration file is /usr/local/lib/autopsy/conf.pl + +--------------------------------------------------------------- + +The NIST National Software Reference Library (NSRL) contains +hash values of known good and bad files. + http://www.nsrl.nist.gov + +If you have a copy of the NSRL, you may add support in Autopsy by +adding the path to the NSRLFile.txt to the "NSRLDB" configuration +entry: + NSRLDB = /path/to/NSRLFile.txt + +The index file NSRLFile.txt-md5.idx must be in the same directory. +If it does not exist it may be created with the TSK hfind command: + hfind -i nsrl-md5 /path/to/NSRLFile.txt + +--------------------------------------------------------------- + +Autopsy saves configuration files, audit logs, and output to the +Evidence Locker directory. You MUST specify this with the LOCKDIR +configuration entry before running Autopsy: + LOCKDIR = /path/to/locker + +--------------------------------------------------------------- + +WARNING: The cross-platform version of Autopsy is no longer actively + developed. This port is retained mainly to allow users with + saved data to migrate to another forensic tool. + +---------------------------------------------------------------