[92772] trunk/dports/sysutils/autopsy
cal at macports.org
cal at macports.org
Sun May 6 06:35:47 PDT 2012
Revision: 92772
https://trac.macports.org/changeset/92772
Author: cal at macports.org
Date: 2012-05-06 06:35:43 -0700 (Sun, 06 May 2012)
Log Message:
-----------
autopsy: update to 2.24, add evidence locker to destroot.keepdirs, add dependency on md5sha1sum
Modified Paths:
--------------
trunk/dports/sysutils/autopsy/Portfile
Added Paths:
-----------
trunk/dports/sysutils/autopsy/files/patch-configure-no-interactivity.diff
Removed Paths:
-------------
trunk/dports/sysutils/autopsy/files/patch-configure.diff
Modified: trunk/dports/sysutils/autopsy/Portfile
===================================================================
--- trunk/dports/sysutils/autopsy/Portfile 2012-05-06 12:00:58 UTC (rev 92771)
+++ trunk/dports/sysutils/autopsy/Portfile 2012-05-06 13:35:43 UTC (rev 92772)
@@ -5,9 +5,9 @@
name autopsy
license GPL-2
-version 2.21
+version 2.24
categories sysutils
-maintainers nomaintainer
+maintainers cal openmaintainer
platforms darwin
description Autopsy Forensic Browser
long_description \
@@ -24,26 +24,30 @@
homepage http://www.sleuthkit.org/autopsy/
master_sites sourceforge:project/autopsy/autopsy/${version}
-checksums sha1 083f6e1794e19ad07989d088a35da16e9418c83b \
- rmd160 d9b0c5c16c2462997cfe217211f46e1e75464204 \
- md5 48d970749861cde7b850283636c6c4dd
+checksums sha256 ab787f519942783d43a561d12be0554587f11f22bc55ab79d34d8da703edc09e \
+ rmd160 de85770e21f1c65c938015c0dde2133136e02b60
-patchfiles patch-configure.diff
+patchfiles patch-configure-no-interactivity.diff
use_configure no
depends_build port:file \
path:bin/perl:perl5 \
- port:sleuthkit
+ port:sleuthkit \
+ path:bin/md5sum:md5sha1sum \
+ path:bin/sha1sum:md5sha1sum
+set evidence_locker "${prefix}/var/${name}"
post-patch {
reinplace "s|^dirs='.*'$|dirs='${prefix}/bin/ /usr/bin/ /sbin/'|g" \
${worksrcpath}/configure
reinplace "s|\\\$PWD/|${prefix}/share/${name}/|g" ${worksrcpath}/configure
- reinplace "s|MP_AUTOPSY_LOCKER|${prefix}/var/${name}/|g" ${worksrcpath}/configure
+ reinplace "s|MP_AUTOPSY_LOCKER|${evidence_locker}/|g" ${worksrcpath}/configure
}
destroot {
+ xinstall -m 755 -d ${destroot}${evidence_locker}
+
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 -d ${destroot}${prefix}/share/${name}
@@ -74,3 +78,5 @@
${destroot}${prefix}/share/man/man1/
}
+
+destroot.keepdirs ${evidence_locker}
Copied: trunk/dports/sysutils/autopsy/files/patch-configure-no-interactivity.diff (from rev 92768, trunk/dports/sysutils/autopsy/files/patch-configure.diff)
===================================================================
--- trunk/dports/sysutils/autopsy/files/patch-configure-no-interactivity.diff (rev 0)
+++ trunk/dports/sysutils/autopsy/files/patch-configure-no-interactivity.diff 2012-05-06 13:35:43 UTC (rev 92772)
@@ -0,0 +1,151 @@
+--- configure.orig 2012-05-06 15:21:11.000000000 +0200
++++ configure 2012-05-06 15:25:57.000000000 +0200
+@@ -130,16 +130,7 @@
+ # 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
++ exit 1
+ fi
+
+
+@@ -159,16 +150,7 @@
+ # 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
++ exit 1
+ fi
+
+ #
+@@ -192,16 +174,7 @@
+ # 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
++ exit 1
+ fi
+
+
+@@ -263,25 +236,7 @@
+ 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
++ exit 1
+ fi;
+
+ # Test for latest version
+@@ -362,16 +317,9 @@
+ 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
+-
++echo 'MacPorts has set the Evidence Locker directory to:'
++echo ' MP_AUTOPSY_LOCKER'
++locker="MP_AUTOPSY_LOCKER";
+ echo \$LOCKDIR = \'${locker}\'\; >> $conf;
+
+ fi
+@@ -404,28 +352,7 @@
+ # 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
++ exit 1
+ fi
+
+ # Check if this version of Perl supports large files
+@@ -444,14 +371,9 @@
+ echo "use lib '$PWD/lib/';" >> ./config.tmp
+
+ if (test -f ./autopsy) then
+- 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 "autopsy already exists, overwriting";
++ cat ./config.tmp base/autopsy.base > ./autopsy
++ cat ./config2.tmp base/make-live-cd.base > ./make-live-cd
+ else
+ cat ./config.tmp base/autopsy.base > ./autopsy
+ cat ./config2.tmp base/make-live-cd.base > ./make-live-cd
Deleted: trunk/dports/sysutils/autopsy/files/patch-configure.diff
===================================================================
--- trunk/dports/sysutils/autopsy/files/patch-configure.diff 2012-05-06 12:00:58 UTC (rev 92771)
+++ trunk/dports/sysutils/autopsy/files/patch-configure.diff 2012-05-06 13:35:43 UTC (rev 92772)
@@ -1,279 +0,0 @@
---- configure.orig 2009-12-19 18:38:39.000000000 +0100
-+++ configure 2009-12-19 20:31:22.000000000 +0100
-@@ -8,6 +8,9 @@
-
- # Configuration script for the Autopsy Forensic Browser
- #
-+# This configuration file has been adapted to comply with
-+# MacPorts port installation system.
-+#
- # Brian Carrier [carrier at sleuthkit.org]
- #
- # Copyright (c) 2003-2008 by Brian Carrier. All rights reserved
-@@ -67,7 +70,6 @@
- else
- echo "perl found: ${d}perl (version $ver)";
- echo "#!${d}perl -wT" > ./config.tmp;
-- echo "#!${d}perl" > ./config2.tmp;
- perlexe="${d}perl";
- found=1;
- break;
-@@ -79,28 +81,7 @@
- # 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
-+ exit 1;
- fi
-
- # Check if this version of Perl supports large files
-@@ -109,9 +90,7 @@
- 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 ''
-+ exit1;
- fi;
-
- # Get current working directory for lib
-@@ -120,24 +99,16 @@
-
- # Write autopsy
- if (test -f ./autopsy) then
-- 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 "autopsy already exists, backup to autopsy.old";
-+ mv ./autopsy ./autopsy.old
-+ cat ./config.tmp base/autopsy.base > ./autopsy
- else
- cat ./config.tmp base/autopsy.base > ./autopsy
-- cat ./config2.tmp base/make-live-cd.base > ./make-live-cd
- fi
- chmod 0755 ./autopsy
--chmod 0755 ./make-live-cd
-
- # cleanup
- rm -f ./config.tmp
--rm -f ./config2.tmp
-
-
- #############################################################################
-@@ -146,41 +117,11 @@
-
-
- conf='conf.pl'
--
- if (test -f $conf) then
-- echo "A configuration file already exists, overwrite? (y/n):";
-- read rep;
-- if (test "$rep" = "n") then
-- exit 0;
-- fi
-+ echo "A configuration file already exists, backup to $conf.old";
-+ mv $conf $conf.old
- fi
-
--# echo ''
--# echo '---------------------------------------------------------------'
--# echo ''
--# echo 'Autopsy can use the configuration file from a previous installation'
--# echo ''
--# echo 'Would you like to use a previous configuration file (y/n) [n]'
--# read rep;
--# if (test "$rep" = "y") then
--
--# echo 'Enter the directory of the previous installation (or cancel):'
--# while (test 1 -eq 1)
--# do read prevdir;
--# if (test "$prevdir" = "cancel") then
--# break;
--# fi;
--# if (test -f "${prevdir}/conf.pl") then
--# /bin/cp "${prevdir}/conf.pl" .
--# echo ' Configuration file copied from $prevdir';
--
--# # Check the config status
--# exit 0;
--# fi;
--# echo 'Configuration file not found, try again (or 'cancel' to stop):'
--# done;
--#fi;
--
-
- # First add the variables that are static
- #
-@@ -240,16 +181,7 @@
- # 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
-+ exit 1;
- fi
-
-
-@@ -269,16 +201,7 @@
- # 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
-+ exit 1;
- fi
-
- #
-@@ -302,16 +225,7 @@
- # 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
-+ exit 1;
- fi
-
-
-@@ -373,25 +287,7 @@
- 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
-+ exit 1;
- fi;
-
- # Test for latest version
-@@ -405,9 +301,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
-@@ -422,43 +315,7 @@
- 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;
-+echo \$NSRLDB = \'\'\; >> $conf;
-
- #############################################################################
- # EVIDENCE LOCKER
-@@ -470,8 +327,7 @@
- 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;
-+locker='MP_AUTOPSY_LOCKER'
- if (test -d "${locker}") then
- echo " $locker already exists"
- else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120506/d8bd182e/attachment-0001.html>
More information about the macports-changes
mailing list