Ignore:
Timestamp:
May 6, 2012, 1:35:43 PM (7 years ago)
Author:
cal@…
Message:

autopsy: update to 2.24, add evidence locker to destroot.keepdirs, add dependency on md5sha1sum

Location:
trunk/dports/sysutils/autopsy
Files:
1 edited
1 moved

Legend:

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

    r86284 r92772  
    66name            autopsy
    77license         GPL-2
    8 version         2.21
     8version         2.24
    99categories      sysutils
    10 maintainers     nomaintainer
     10maintainers     cal openmaintainer
    1111platforms       darwin
    1212description     Autopsy Forensic Browser
     
    2525master_sites    sourceforge:project/autopsy/autopsy/${version}
    2626
    27 checksums       sha1 083f6e1794e19ad07989d088a35da16e9418c83b \
    28                 rmd160 d9b0c5c16c2462997cfe217211f46e1e75464204 \
    29                 md5 48d970749861cde7b850283636c6c4dd
     27checksums       sha256  ab787f519942783d43a561d12be0554587f11f22bc55ab79d34d8da703edc09e \
     28                rmd160  de85770e21f1c65c938015c0dde2133136e02b60
    3029
    31 patchfiles      patch-configure.diff
     30patchfiles      patch-configure-no-interactivity.diff
    3231
    3332use_configure   no
     
    3534depends_build   port:file \
    3635                path:bin/perl:perl5 \
    37                 port:sleuthkit
     36                port:sleuthkit \
     37                path:bin/md5sum:md5sha1sum \
     38                path:bin/sha1sum:md5sha1sum
    3839
     40set evidence_locker "${prefix}/var/${name}"
    3941post-patch {
    4042    reinplace "s|^dirs='.*'$|dirs='${prefix}/bin/ /usr/bin/ /sbin/'|g"  \
    4143        ${worksrcpath}/configure
    4244    reinplace "s|\\\$PWD/|${prefix}/share/${name}/|g" ${worksrcpath}/configure
    43     reinplace "s|MP_AUTOPSY_LOCKER|${prefix}/var/${name}/|g" ${worksrcpath}/configure
     45    reinplace "s|MP_AUTOPSY_LOCKER|${evidence_locker}/|g" ${worksrcpath}/configure
    4446}
    4547
    4648destroot {
     49    xinstall -m 755 -d ${destroot}${evidence_locker}
     50
    4751    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    4852
     
    7579
    7680}
     81
     82destroot.keepdirs   ${evidence_locker}
  • trunk/dports/sysutils/autopsy/files/patch-configure-no-interactivity.diff

    r92768 r92772  
    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 @@
     1--- configure.orig      2012-05-06 15:21:11.000000000 +0200
     2+++ configure   2012-05-06 15:25:57.000000000 +0200
     3@@ -130,16 +130,7 @@
     4 # Prompt if not found
     5 if (test $found -eq 0) then
     6   echo 'ERROR: grep utility not found';
     7-  echo 'Enter location of executable:';
     8-  while (test 1 -eq 1)
     9-    do read grepexe;
     10-    if (test -x "$grepexe") then
     11-         echo \$GREP_EXE = \'$grepexe\'\; >> $conf;
     12-      break;
     13-    else
     14-      echo 'grep was not found (try again):';
     15-    fi;
     16-  done
     17+  exit 1
     18 fi
    419 
    5  # Configuration script for the Autopsy Forensic Browser
     20 
     21@@ -159,16 +150,7 @@
     22 # Prompt if not found
     23 if (test $found -eq 0) then
     24   echo 'ERROR: file utility not found';
     25-  echo 'Enter location of executable:';
     26-  while (test 1 -eq 1)
     27-    do read fileexe;
     28-    if (test -x "$fileexe") then
     29-         echo \$FILE_EXE = \'$filexe\'\; >> $conf;
     30-      break;
     31-    else
     32-      echo 'file was not found (try again):';
     33-    fi;
     34-  done
     35+  exit 1
     36 fi
     37 
    638 #
    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 @@
     39@@ -192,16 +174,7 @@
     40 # Prompt if not found
     41 if (test $found -eq 0) then
     42   echo 'ERROR: md5/md5sum utility not found';
     43-  echo 'Enter location of executable:';
     44-  while (test 1 -eq 1)
     45-    do read md5exe;
     46-    if (test -x "$md5exe") then
     47-         echo \$MD5_EXE = \'$md5exe\'\; >> $conf;
     48-      break;
     49-    else
     50-      echo 'md5 was not found (try again):';
     51-    fi;
     52-  done
     53+  exit 1
     54 fi
     55 
     56 
     57@@ -263,25 +236,7 @@
     58 if (test $found -eq 0) then
     59   echo 'Sleuth Kit tools were not found in the standard install locations.'
     60   echo 'If you have not installed them, do so now and configure autopsy again.'
     61-  echo 'If you have installed them in a non-standard location, then'
     62-  echo '  enter the "bin" directory now:'
     63-
     64-  while (test 1 -eq 1)
     65-    do read tskdir;
     66-    if ((test -x ${tskdir}/fls) && (test -x ${tskdir}/ffind) && (test -x ${tskdir}/blkstat) && \
     67-          (test -x ${tskdir}/blkls) && (test -x ${tskdir}/blkcat) && \
     68-          (test -x ${tskdir}/mmls) && (test -x ${tskdir}/mmstat) && \
     69-          (test -x ${tskdir}/fsstat) && (test -x ${tskdir}/img_stat) && \
     70-          (test -x ${tskdir}/istat) && (test -x ${tskdir}/ifind) && \
     71-          (test -x ${tskdir}/icat) && (test -x ${tskdir}/ils) && \
     72-          (test -x ${tskdir}/srch_strings) && \
     73-          (test -x ${tskdir}/mactime) && (test -x ${tskdir}/sorter)) then
     74-      echo \$TSKDIR = \'${tskdir}\'\; >> $conf;
     75-      break;
     76-    else
     77-      echo 'TSK tools were not found or incomplete (try again):';
     78-    fi;
     79-  done
     80+  exit 1
     81 fi;
     82 
     83 # Test for latest version
     84@@ -362,16 +317,9 @@
     85 echo 'Autopsy saves configuration files, audit logs, and output to the'
     86 echo 'Evidence Locker directory.'
     87 echo ''
     88-echo 'Enter the directory that you want to use for the Evidence Locker:';
     89-read locker;
     90-if (test -d "${locker}") then
     91-  echo "  $locker already exists"
     92-else
     93-  echo '';
     94-  echo "WARNING: $locker does not exist"
     95-  mdone=1
     96-fi
     97-
     98+echo 'MacPorts has set the Evidence Locker directory to:'
     99+echo '  MP_AUTOPSY_LOCKER'
     100+locker="MP_AUTOPSY_LOCKER";
     101 echo \$LOCKDIR = \'${locker}\'\; >> $conf;
     102 
     103 fi
     104@@ -404,28 +352,7 @@
    22105 # If it wasn't found, then prompt for it.
    23106 if (test $found -eq 0) then
     
    45128-    fi
    46129-  done
    47 +  exit 1;
     130+  exit 1
    48131 fi
    49132 
    50133 # Check if this version of Perl supports large files
    51 @@ -109,9 +90,7 @@
    52    echo '    NOTE: It appears that your Perl does not support large files.';
    53    echo '    You therefore will not be able to analyze images larger than 2GB.';
    54    echo '    Download the source version from www.cpan.org and compile a new version.';
    55 -  echo "  [Press Enter to Continue]";
    56 -  read foo;
    57 -  echo ''
    58 +  exit1;
    59  fi;
     134@@ -444,14 +371,9 @@
     135 echo "use lib '$PWD/lib/';" >> ./config.tmp
    60136 
    61  # Get current working directory for lib
    62 @@ -120,24 +99,16 @@
    63  
    64  # Write autopsy
    65137 if (test -f ./autopsy) then
    66138-  echo "autopsy already exists, overwrite? (y/n):";
     
    72144-    echo '  original version was kept';
    73145-  fi
    74 +  echo "autopsy already exists, backup to autopsy.old";
    75 +  mv ./autopsy ./autopsy.old
     146+  echo "autopsy already exists, overwriting";
    76147+  cat ./config.tmp base/autopsy.base > ./autopsy
     148+  cat ./config2.tmp base/make-live-cd.base > ./make-live-cd
    77149 else
    78150   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 @@
    135  # Prompt if not found
    136  if (test $found -eq 0) then
    137    echo 'ERROR: grep utility not found';
    138 -  echo 'Enter location of executable:';
    139 -  while (test 1 -eq 1)
    140 -    do read grepexe;
    141 -    if (test -x "$grepexe") then
    142 -         echo \$GREP_EXE = \'$grepexe\'\; >> $conf;
    143 -      break;
    144 -    else
    145 -      echo 'grep was not found (try again):';
    146 -    fi;
    147 -  done
    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  
    214  # Test for latest version
    215 @@ -405,9 +301,6 @@
    216  elif (test "$ver" '<' "$curtskver") then
    217         echo '';
    218      echo "*** NOTE: A more recent version ($curtskver) of The Sleuth Kit Exists ***"
    219 -       echo "  [Press Enter to Continue]";
    220 -       read foo;
    221 -
    222  else
    223         echo '  Required version found';
    224  fi
    225 @@ -422,43 +315,7 @@
    226  echo 'hash values of known good and bad files.'
    227  echo '         http://www.nsrl.nist.gov'
    228  echo ''
    229 -echo 'Have you purchased or downloaded a copy of the NSRL (y/n) [n]'
    230 -read rep;
    231 -if (test "$rep" = "y") then
    232 -
    233 -  echo 'Enter the directory where you installed it:'
    234 -  while (test 1 -eq 1)
    235 -    do read nsrldir;
    236 -    if (test "$nsrldir" = "cancel") then
    237 -        echo \$NSRLDB = \'\'\; >> $conf;
    238 -               break;
    239 -       fi;
    240 -    if (test -f "${nsrldir}/NSRLFile.txt") then
    241 -      echo '  NSRL database was found (NSRLFile.txt)';
    242 -      echo \$NSRLDB = \'${nsrldir}/NSRLFile.txt\'\; >> $conf;
    243 -
    244 -         if (test -f "${nsrldir}/NSRLFile.txt-md5.idx") then
    245 -               echo '  NSRL Index file found (NSRLFile.txt-md5.idx)';
    246 -      else
    247 -        echo '  NSRL Index file not found, do you want it created? (y/n) [n]:'
    248 -        read rep;
    249 -        if (test "$rep" = "y") then
    250 -          echo ''
    251 -          echo '-------------- begin hfind output --------------'
    252 -          "${tskdir}/hfind" -i nsrl-md5 "${nsrldir}/NSRLFile.txt";
    253 -          echo '--------------- end hfind output ---------------'
    254 -          echo ''
    255 -               fi;
    256 -         fi;
    257 -      break;
    258 -    else
    259 -      echo 'The NSRL was not found (the directory should have NSRLFile.txt in it)';
    260 -         echo 'Enter a new directory (or cancel to stop):';
    261 -    fi;
    262 -  done
    263 -else
    264 -  echo \$NSRLDB = \'\'\; >> $conf;
    265 -fi;
    266 +echo \$NSRLDB = \'\'\; >> $conf;
    267  
    268  #############################################################################
    269  # EVIDENCE LOCKER
    270 @@ -470,8 +327,7 @@
    271  echo 'Autopsy saves configuration files, audit logs, and output to the'
    272  echo 'Evidence Locker directory.'
    273  echo ''
    274 -echo 'Enter the directory that you want to use for the Evidence Locker:';
    275 -read locker;
    276 +locker='MP_AUTOPSY_LOCKER'
    277  if (test -d "${locker}") then
    278    echo "  $locker already exists"
    279  else
     151   cat ./config2.tmp base/make-live-cd.base > ./make-live-cd
Note: See TracChangeset for help on using the changeset viewer.