Ignore:
Timestamp:
Dec 21, 2009, 6:54:58 PM (10 years ago)
Author:
ecronin@…
Message:

sysutils/autopsy: update to 2.21. Closes #16353, #22951

Location:
trunk/dports/sysutils/autopsy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/autopsy/Portfile

    r43304 r61821  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    12# $Id$
    23
     
    45
    56name            autopsy
    6 version         2.08
     7version         2.21
    78categories      sysutils
    8 maintainers     ecronin
     9maintainers     ecronin openmaintainer
    910platforms       darwin
    1011description     Autopsy Forensic Browser
     
    2122master_sites    sourceforge
    2223homepage        http://www.sleuthkit.org/autopsy/
    23 checksums       sha1 a9a1234393afd50b3609575a906fa0b387efe4b9 \
    24                 md5 0ac9db9acf66742f8f01f3d8b0cf2f90
     24checksums       sha1 083f6e1794e19ad07989d088a35da16e9418c83b \
     25                rmd160 d9b0c5c16c2462997cfe217211f46e1e75464204 \
     26                md5 48d970749861cde7b850283636c6c4dd
    2527livecheck.version   ${name}-${version}
    2628patchfiles      patch-configure.diff
    2729use_configure   no
    2830
    29 depends_build   port:file path:bin/perl:perl5 port:sleuthkit
     31depends_build   port:file \
     32                path:bin/perl:perl5 \
     33                port:sleuthkit
    3034
    3135post-patch {
    32     reinplace "s|/usr/local/bin/ /usr/bin/ /usr/ccs/bin/ /bin/ /usr/ucb/bin/ /sbin/ /usr/sbin/ /usr/local/sbin/|${prefix}/bin/ /usr/bin/|g"  \
     36    reinplace "s|^dirs='.*'$|dirs='${prefix}/bin/ /usr/bin/ /sbin/'|g"  \
    3337        ${worksrcpath}/configure
    3438    reinplace "s|\\\$PWD/|${prefix}/share/${name}/|g" ${worksrcpath}/configure
     
    6569    eval xinstall -m 644 [glob ${worksrcpath}/man/man1/*] \
    6670        ${destroot}${prefix}/share/man/man1/
     71
    6772}
  • trunk/dports/sysutils/autopsy/files/patch-configure.diff

    r32241 r61821  
    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.orig      2009-12-19 18:38:39.000000000 +0100
     2+++ configure   2009-12-19 20:31:22.000000000 +0100
     3@@ -8,6 +8,9 @@
     4 
     5 # Configuration script for the Autopsy Forensic Browser
     6 #
     7+# This configuration file has been adapted to comply with
     8+# MacPorts port installation system.
     9+#
     10 # Brian Carrier [carrier@sleuthkit.org]
     11 #
     12 # Copyright (c) 2003-2008 by Brian Carrier.  All rights reserved
     13@@ -67,7 +70,6 @@
     14       else     
     15         echo "perl found: ${d}perl (version $ver)";
     16         echo "#!${d}perl -wT" > ./config.tmp;
     17-        echo "#!${d}perl" > ./config2.tmp;
     18         perlexe="${d}perl";
     19         found=1;
     20         break;
     21@@ -79,28 +81,7 @@
    422 # If it wasn't found, then prompt for it.
    523 if (test $found -eq 0) then
     
    1028-    if (test -x "$perlexe") then
    1129-      if (test -n "`$perlexe -v 2> /dev/null | awk '/This is perl/ {print $0}'`")       then
    12 -        ver=`$perlexe -v 2> /dev/null | awk '/This is perl,/ {print $4}'`;
    13 -        if (test "$ver" '<' "v5.8.0") then
     30-        ver=`$perlexe -e 'print $];'`;
     31-        if (`$perlexe -e 'exit( $] >= 5.008);'`) then
    1432-          echo "This version of Perl is too old, 5.8.0 or older needed";
    15 -        else    
     33-        else     
    1634-          echo "Correct version found";
    17 -          echo "#!${d}perl -wT" > ./config.tmp;
    18 -          echo "#!${d}perl" > ./config2.tmp;
     35-          echo "#!${perlexe} -wT" > ./config.tmp;
     36-          echo "#!${perlexe}" > ./config2.tmp;
    1937-          found=1;
    2038-          break;
     
    2846-  done
    2947+  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
    5248 fi
    5349 
    5450 # Check if this version of Perl supports large files
    55 @@ -109,9 +110,9 @@
     51@@ -109,9 +90,7 @@
    5652   echo '    NOTE: It appears that your Perl does not support large files.';
    5753   echo '    You therefore will not be able to analyze images larger than 2GB.';
     
    6056-  read foo;
    6157-  echo ''
    62 +#  echo "  [Press Enter to Continue]";
    63 +#  read foo;
    64 +#  echo ''
     58+  exit1;
    6559 fi;
    6660 
    6761 # Get current working directory for lib
    68 @@ -239,19 +240,19 @@
    69  done
    70  
     62@@ -120,24 +99,16 @@
     63 
     64 # Write autopsy
     65 if (test -f ./autopsy) then
     66-  echo "autopsy already exists, overwrite? (y/n):";
     67-  read rep;
     68-  if (test "$rep" = "y") then
     69-    cat ./config.tmp base/autopsy.base > ./autopsy
     70-    cat ./config2.tmp base/make-live-cd.base > ./make-live-cd
     71-  else
     72-    echo '  original version was kept';
     73-  fi
     74+  echo "autopsy already exists, backup to autopsy.old";
     75+  mv ./autopsy ./autopsy.old
     76+  cat ./config.tmp base/autopsy.base > ./autopsy
     77 else
     78   cat ./config.tmp base/autopsy.base > ./autopsy
     79-  cat ./config2.tmp base/make-live-cd.base > ./make-live-cd
     80 fi
     81 chmod 0755 ./autopsy
     82-chmod 0755 ./make-live-cd
     83 
     84 # cleanup
     85 rm -f ./config.tmp
     86-rm -f ./config2.tmp
     87 
     88 
     89 #############################################################################
     90@@ -146,41 +117,11 @@
     91 
     92 
     93 conf='conf.pl'
     94-
     95 if (test -f $conf) then
     96-  echo "A configuration file already exists, overwrite? (y/n):";
     97-  read rep;
     98-  if (test "$rep" = "n") then
     99-    exit 0;
     100-  fi
     101+  echo "A configuration file already exists, backup to $conf.old";
     102+  mv $conf $conf.old
     103 fi
     104 
     105-# echo ''
     106-# echo '---------------------------------------------------------------'
     107-# echo ''
     108-# echo 'Autopsy can use the configuration file from a previous installation'
     109-# echo ''
     110-# echo 'Would you like to use a previous configuration file (y/n) [n]'
     111-# read rep;
     112-# if (test "$rep" = "y") then
     113-
     114-#  echo 'Enter the directory of the previous installation (or cancel):'
     115-#  while (test 1 -eq 1)
     116-#    do read prevdir;
     117-#    if (test "$prevdir" = "cancel") then
     118-#              break;
     119-#      fi;
     120-#    if (test -f "${prevdir}/conf.pl") then
     121-#              /bin/cp "${prevdir}/conf.pl" .
     122-#              echo '  Configuration file copied from $prevdir';
     123-
     124-#              # Check the config status
     125-#              exit 0;
     126-#      fi;
     127-#    echo 'Configuration file not found, try again (or 'cancel' to stop):'
     128-#  done;
     129-#fi;
     130-
     131 
     132 # First add the variables that are static
     133 #
     134@@ -240,16 +181,7 @@
    71135 # Prompt if not found
    72 -if (test $found -eq 0) then
    73 -  echo 'ERROR: grep utility not found';
     136 if (test $found -eq 0) then
     137   echo 'ERROR: grep utility not found';
    74138-  echo 'Enter location of executable:';
    75139-  while (test 1 -eq 1)
     
    82146-    fi;
    83147-  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
    98  
    99  
    100  
    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;
    131 -      break;
    132 -    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;
     148+  exit 1;
     149 fi
     150 
     151 
     152@@ -269,16 +201,7 @@
     153 # Prompt if not found
     154 if (test $found -eq 0) then
     155   echo 'ERROR: file utility not found';
     156-  echo 'Enter location of executable:';
     157-  while (test 1 -eq 1)
     158-    do read fileexe;
     159-    if (test -x "$fileexe") then
     160-         echo \$FILE_EXE = \'$filexe\'\; >> $conf;
     161-      break;
     162-    else
     163-      echo 'file was not found (try again):';
     164-    fi;
     165-  done
     166+  exit 1;
     167 fi
     168 
     169 #
     170@@ -302,16 +225,7 @@
     171 # Prompt if not found
     172 if (test $found -eq 0) then
     173   echo 'ERROR: md5/md5sum utility not found';
     174-  echo 'Enter location of executable:';
     175-  while (test 1 -eq 1)
     176-    do read md5exe;
     177-    if (test -x "$md5exe") then
     178-         echo \$MD5_EXE = \'$md5exe\'\; >> $conf;
     179-      break;
     180-    else
     181-      echo 'md5 was not found (try again):';
     182-    fi;
     183-  done
     184+  exit 1;
     185 fi
     186 
     187 
     188@@ -373,25 +287,7 @@
     189 if (test $found -eq 0) then
     190   echo 'Sleuth Kit tools were not found in the standard install locations.'
     191   echo 'If you have not installed them, do so now and configure autopsy again.'
     192-  echo 'If you have installed them in a non-standard location, then'
     193-  echo '  enter the "bin" directory now:'
     194-
     195-  while (test 1 -eq 1)
     196-    do read tskdir;
     197-    if ((test -x ${tskdir}/fls) && (test -x ${tskdir}/ffind) && (test -x ${tskdir}/blkstat) && \
     198-          (test -x ${tskdir}/blkls) && (test -x ${tskdir}/blkcat) && \
     199-          (test -x ${tskdir}/mmls) && (test -x ${tskdir}/mmstat) && \
     200-          (test -x ${tskdir}/fsstat) && (test -x ${tskdir}/img_stat) && \
     201-          (test -x ${tskdir}/istat) && (test -x ${tskdir}/ifind) && \
     202-          (test -x ${tskdir}/icat) && (test -x ${tskdir}/ils) && \
     203-          (test -x ${tskdir}/srch_strings) && \
     204-          (test -x ${tskdir}/mactime) && (test -x ${tskdir}/sorter)) then
     205-      echo \$TSKDIR = \'${tskdir}\'\; >> $conf;
     206-      break;
     207-    else
     208-      echo 'TSK tools were not found or incomplete (try again):';
     209-    fi;
     210-  done
     211+  exit 1;
     212 fi;
     213 
    142214 # Test for latest version
    143  
    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 @@
     215@@ -405,9 +301,6 @@
    150216 elif (test "$ver" '<' "$curtskver") then
    151217        echo '';
     
    157223        echo '  Required version found';
    158224 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 @@
     225@@ -422,43 +315,7 @@
    212226 echo 'hash values of known good and bad files.'
    213227 echo '         http://www.nsrl.nist.gov'
     
    236250-          echo ''
    237251-          echo '-------------- begin hfind output --------------'
    238 -          "${tskdir}/bin/hfind" -i nsrl-md5 "${nsrldir}/NSRLFile.txt";
     252-          "${tskdir}/hfind" -i nsrl-md5 "${nsrldir}/NSRLFile.txt";
    239253-          echo '--------------- end hfind output ---------------'
    240254-          echo ''
     
    248262-  done
    249263-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
    285    echo \$NSRLDB = \'\'\; >> $conf;
     264-  echo \$NSRLDB = \'\'\; >> $conf;
    286265-fi;
    287 +#fi;
     266+echo \$NSRLDB = \'\'\; >> $conf;
    288267 
    289268 #############################################################################
    290269 # EVIDENCE LOCKER
    291 @@ -402,7 +408,8 @@
     270@@ -470,8 +327,7 @@
     271 echo 'Autopsy saves configuration files, audit logs, and output to the'
    292272 echo 'Evidence Locker directory.'
    293273 echo ''
    294  echo 'Enter the directory that you want to use for the Evidence Locker:';
     274-echo 'Enter the directory that you want to use for the Evidence Locker:';
    295275-read locker;
    296 +#read locker;
    297276+locker='MP_AUTOPSY_LOCKER'
    298277 if (test -d "${locker}") then
Note: See TracChangeset for help on using the changeset viewer.