Ticket #16353: autopsy-2.10.diff

File autopsy-2.10.diff, 10.2 KB (added by ryandesign (Ryan Carsten Schmidt), 16 years ago)
  • files/patch-configure.diff

     
    1 --- configure.orig      2007-07-18 19:32:24.000000000 -0400
    2 +++ configure   2007-07-18 20:12:02.000000000 -0400
    3 @@ -79,28 +79,29 @@
     1--- configure   2008-01-29 17:23:04.000000000 -0600
     2+++ configure   2008-09-10 15:51:19.000000000 -0500
     3@@ -79,28 +79,7 @@
    44 # If it wasn't found, then prompt for it.
    55 if (test $found -eq 0) then
    66   echo 'ERROR: perl not found or the incorrect version found';
     
    2727-    fi
    2828-  done
    2929+  exit 1;
    30 +#  while (test 1 -eq 1)
    31 +#    do echo 'Enter location of perl executable:';
    32 +#    read perlexe;
    33 +#    if (test -x "$perlexe") then
    34 +#      if (test -n "`$perlexe -v 2> /dev/null | awk '/This is perl/ {print $0}'`")       then
    35 +#        ver=`$perlexe -v 2> /dev/null | awk '/This is perl,/ {print $4}'`;
    36 +#        if (test "$ver" '<' "v5.8.0") then
    37 +#          echo "This version of Perl is too old, 5.8.0 or older needed";
    38 +#        else   
    39 +#          echo "Correct version found";
    40 +#          echo "#!${d}perl -wT" > ./config.tmp;
    41 +#          echo "#!${d}perl" > ./config2.tmp;
    42 +#          found=1;
    43 +#          break;
    44 +#        fi;
    45 +#      else
    46 +#        echo "Perl found, but is not working.  Try another";
    47 +#      fi;
    48 +#    else
    49 +#      echo "file not found";
    50 +#    fi
    51 +#  done
    5230 fi
    5331 
    5432 # Check if this version of Perl supports large files
    55 @@ -109,9 +110,9 @@
     33@@ -109,9 +88,6 @@
    5634   echo '    NOTE: It appears that your Perl does not support large files.';
    5735   echo '    You therefore will not be able to analyze images larger than 2GB.';
    5836   echo '    Download the source version from www.cpan.org and compile a new version.';
    5937-  echo "  [Press Enter to Continue]";
    6038-  read foo;
    6139-  echo ''
    62 +#  echo "  [Press Enter to Continue]";
    63 +#  read foo;
    64 +#  echo ''
    6540 fi;
    6641 
    6742 # Get current working directory for lib
    68 @@ -239,19 +240,19 @@
    69  done
    70  
     43@@ -240,16 +216,7 @@
    7144 # Prompt if not found
    72 -if (test $found -eq 0) then
    73 -  echo 'ERROR: grep utility not found';
     45 if (test $found -eq 0) then
     46   echo 'ERROR: grep utility not found';
    7447-  echo 'Enter location of executable:';
    7548-  while (test 1 -eq 1)
    7649-    do read grepexe;
     
    8154-      echo 'grep was not found (try again):';
    8255-    fi;
    8356-  done
    84 -fi
    85 +#if (test $found -eq 0) then
    86 +#  echo 'ERROR: grep utility not found';
    87 +#  echo 'Enter location of executable:';
    88 +#  while (test 1 -eq 1)
    89 +#    do read grepexe;
    90 +#    if (test -x "$grepexe") then
    91 +#        echo \$GREP_EXE = \'$grepexe\'\; >> $conf;
    92 +#      break;
    93 +#    else
    94 +#      echo 'grep was not found (try again):';
    95 +#    fi;
    96 +#  done
    97 +#fi
     57+  exit 1;
     58 fi
    9859 
    9960 
     61@@ -372,26 +339,7 @@
    10062 
    101 @@ -270,26 +271,30 @@
    102  echo 'Autopsy uses forensic tools from The Sleuth Kit.'
    103  echo '          http://www.sleuthkit.org/sleuthkit/'
    104  echo ''
    105 -echo 'Enter the directory where you installed it:'
    106 -while (test 1 -eq 1)
    107 -  do read tskdir;
    108 -  if (test -x "${tskdir}/bin/icat") then
    109 -    if (test -x "${tskdir}/bin/fls") then
    110 +#echo 'Enter the directory where you installed it:'
    111 +#while (test 1 -eq 1)
    112 +#  do read tskdir;
    113 +#  if (test -x "${tskdir}/bin/icat") then
    114 +#    if (test -x "${tskdir}/bin/fls") then
    115 +#      echo '  Sleuth Kit bin directory was found';
    116 +#      echo \$TSKDIR = \'${tskdir}/bin\'\; >> $conf;
    117 +#      break;
    118 +#    else
    119 +#      echo 'The Sleuth Kit was not fully found (did you give me a TCT or TASK directory?) (try again):';
    120 +#    fi
    121 +#  else
    122 +#    echo 'The Sleuth Kit was not found (try again):';
    123 +#  fi;
    124 +#done
    125 +found=0
    126 +for d in $dirs
    127 +  do if (test -x ${d}icat) then
    128 +    if (test -x ${d}fls) then
    129        echo '  Sleuth Kit bin directory was found';
    130 -      echo \$TSKDIR = \'${tskdir}/bin\'\; >> $conf;
     63 if (test $found -eq 0) then
     64   echo 'Sleuth Kit tools were not found in the standard install locations.'
     65-  echo 'If you have not installed them, do so now and configure autopsy again.'
     66-  echo 'If you have installed them in a non-standard location, then'
     67-  echo '  enter the "bin" directory now:'
     68-
     69-  while (test 1 -eq 1)
     70-    do read tskdir;
     71-    if ((test -x ${tskdir}/fls) && (test -x ${tskdir}/ffind) && (test -x ${tskdir}/dstat) && \
     72-          (test -x ${tskdir}/dls) && (test -x ${tskdir}/dcat) && \
     73-          (test -x ${tskdir}/mmls) && (test -x ${tskdir}/mmstat) && \
     74-          (test -x ${tskdir}/fsstat) && (test -x ${tskdir}/img_stat) && \
     75-          (test -x ${tskdir}/istat) && (test -x ${tskdir}/ifind) && \
     76-          (test -x ${tskdir}/icat) && (test -x ${tskdir}/ils) && \
     77-          (test -x ${tskdir}/srch_strings) && \
     78-          (test -x ${tskdir}/mactime) && (test -x ${tskdir}/sorter)) then
     79-      echo \$TSKDIR = \'${tskdir}\'\; >> $conf;
    13180-      break;
    13281-    else
    133 -      echo 'The Sleuth Kit was not fully found (did you give me a TCT or TASK directory?) (try again):';
    134 -    fi
    135 -  else
    136 -    echo 'The Sleuth Kit was not found (try again):';
    137 -  fi;
    138 -done
    139 -
    140 -
    141 +      echo \$TSKDIR = \'${d}\'\; >> $conf;
    142  # Test for latest version
     82-      echo 'TSK tools were not found or incomplete (try again):';
     83-    fi;
     84-  done
     85+  exit 1;
     86 fi;
    14387 
    144 -ver=`"${tskdir}/bin/fls" -V | awk '/The Sleuth Kit ver / {print $5}'`;
    145 +      ver=`"${d}fls" -V | awk '/The Sleuth Kit ver / {print $5}'`;
    146  echo "  Version $ver found";
    147  
    148  
    149 @@ -299,19 +304,20 @@
     88 # Test for latest version
     89@@ -405,9 +353,6 @@
    15090 elif (test "$ver" '<' "$curtskver") then
    15191        echo '';
    15292     echo "*** NOTE: A more recent version ($curtskver) of The Sleuth Kit Exists ***"
     
    15696 else
    15797        echo '  Required version found';
    15898 fi
    159 +      break;
    160 +    fi;
    161 +  fi;
    162 +done
    163  
    164  
    165  # Check that file exists in TSK and if not then use the local
    166  # version
    167 -if (test -x "${tskdir}/bin/file") then
    168 -  echo \$FILE_EXE = \'${tskdir}/bin/file\'\; >> $conf;
    169 -else
    170 +#if (test -x "${tskdir}/bin/file") then
    171 +#  echo \$FILE_EXE = \'${tskdir}/bin/file\'\; >> $conf;
    172 +#else
    173  
    174  echo ''
    175  echo '---------------------------------------------------------------'
    176 @@ -329,20 +335,20 @@
    177  done
    178  
    179  # Prompt if not found
    180 -if (test $found -eq 0) then
    181 -  echo 'ERROR: file utility not found';
    182 -  echo 'Enter location of executable:';
    183 -  while (test 1 -eq 1)
    184 -    do read fileexe;
    185 -    if (test -x "$fileexe") then
    186 -         echo \$FILE_EXE = \'$fileexe\'\; >> $conf;
    187 -      break;
    188 -    else
    189 -      echo 'file was not found (try again):';
    190 -    fi;
    191 -  done
    192 -fi
    193 -fi
    194 +#if (test $found -eq 0) then
    195 +#  echo 'ERROR: file utility not found';
    196 +#  echo 'Enter location of executable:';
    197 +#  while (test 1 -eq 1)
    198 +#    do read fileexe;
    199 +#    if (test -x "$fileexe") then
    200 +#        echo \$FILE_EXE = \'$fileexe\'\; >> $conf;
    201 +#      break;
    202 +#    else
    203 +#      echo 'file was not found (try again):';
    204 +#    fi;
    205 +#  done
    206 +#fi
    207 +#fi
    208  
    209  
    210  # NSRL
    211 @@ -353,43 +359,43 @@
     99@@ -421,44 +366,7 @@
     100 echo 'The NIST National Software Reference Library (NSRL) contains'
    212101 echo 'hash values of known good and bad files.'
    213102 echo '         http://www.nsrl.nist.gov'
    214  echo ''
     103-echo ''
    215104-echo 'Have you purchased or downloaded a copy of the NSRL (y/n) [n]'
    216105-read rep;
    217106-if (test "$rep" = "y") then
     
    235124-        if (test "$rep" = "y") then
    236125-          echo ''
    237126-          echo '-------------- begin hfind output --------------'
    238 -          "${tskdir}/bin/hfind" -i nsrl-md5 "${nsrldir}/NSRLFile.txt";
     127-          "${tskdir}/hfind" -i nsrl-md5 "${nsrldir}/NSRLFile.txt";
    239128-          echo '--------------- end hfind output ---------------'
    240129-          echo ''
    241130-               fi;
     
    247136-    fi;
    248137-  done
    249138-else
    250 +#echo 'Have you purchased or downloaded a copy of the NSRL (y/n) [n]'
    251 +#read rep;
    252 +#if (test "$rep" = "y") then
    253 +#
    254 +#  echo 'Enter the directory where you installed it:'
    255 +#  while (test 1 -eq 1)
    256 +#    do read nsrldir;
    257 +#    if (test "$nsrldir" = "cancel") then
    258 +#        echo \$NSRLDB = \'\'\; >> $conf;
    259 +#              break;
    260 +#      fi;
    261 +#    if (test -f "${nsrldir}/NSRLFile.txt") then
    262 +#      echo '  NSRL database was found (NSRLFile.txt)';
    263 +#      echo \$NSRLDB = \'${nsrldir}/NSRLFile.txt\'\; >> $conf;
    264 +#
    265 +#        if (test -f "${nsrldir}/NSRLFile.txt-md5.idx") then
    266 +#              echo '  NSRL Index file found (NSRLFile.txt-md5.idx)';
    267 +#      else
    268 +#        echo '  NSRL Index file not found, do you want it created? (y/n) [n]:'
    269 +#        read rep;
    270 +#        if (test "$rep" = "y") then
    271 +#          echo ''
    272 +#          echo '-------------- begin hfind output --------------'
    273 +#          "${tskdir}/bin/hfind" -i nsrl-md5 "${nsrldir}/NSRLFile.txt";
    274 +#          echo '--------------- end hfind output ---------------'
    275 +#          echo ''
    276 +#              fi;
    277 +#        fi;
    278 +#      break;
    279 +#    else
    280 +#      echo 'The NSRL was not found (the directory should have NSRLFile.txt in it)';
    281 +#        echo 'Enter a new directory (or cancel to stop):';
    282 +#    fi;
    283 +#  done
    284 +#else
    285139   echo \$NSRLDB = \'\'\; >> $conf;
    286140-fi;
    287 +#fi;
    288141 
    289142 #############################################################################
    290143 # EVIDENCE LOCKER
    291 @@ -402,7 +408,8 @@
    292  echo 'Evidence Locker directory.'
     144@@ -469,9 +377,7 @@
    293145 echo ''
    294  echo 'Enter the directory that you want to use for the Evidence Locker:';
     146 echo 'Autopsy saves configuration files, audit logs, and output to the'
     147 echo 'Evidence Locker directory.'
     148-echo ''
     149-echo 'Enter the directory that you want to use for the Evidence Locker:';
    295150-read locker;
    296 +#read locker;
    297151+locker='MP_AUTOPSY_LOCKER'
    298152 if (test -d "${locker}") then
    299153   echo "  $locker already exists"
  • Portfile

     
    33PortSystem 1.0
    44
    55name            autopsy
    6 version         2.08
     6version         2.10
    77categories      sysutils
    88maintainers     ecronin
    99platforms       darwin
     
    2020    deleted data and file system structures.
    2121master_sites    sourceforge
    2222homepage        http://www.sleuthkit.org/autopsy/
    23 checksums       sha1 a9a1234393afd50b3609575a906fa0b387efe4b9 \
    24                 md5 0ac9db9acf66742f8f01f3d8b0cf2f90
     23checksums       md5 e0e22c3d39211696925f4ec9f0c74cae \
     24                sha1 fe4ec800162580c6b642d3a7a212ec133a33a0d0 \
     25                rmd160 01056cc888ea5a8d83d11c32d4013275d600694d
    2526livecheck.version   ${name}-${version}
    2627patchfiles      patch-configure.diff
    2728use_configure   no