View | Details | Raw Unified | Return to bug 191778
Collapse All | Expand All

(-)Makefile (-5 / +1 lines)
Lines 7-18 Link Here
7
CATEGORIES=	sysutils security
7
CATEGORIES=	sysutils security
8
MASTER_SITES=	SF
8
MASTER_SITES=	SF
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	fbsd@dylanleigh.net
11
COMMENT=	Web-based (graphical) interface to The Sleuth Kit
11
COMMENT=	Web-based (graphical) interface to The Sleuth Kit
12
12
13
DEPRECATED=	Unmaintained interactive port
14
EXPIRATION_DATE=2014-08-20
15
16
LICENSE=	GPLv2
13
LICENSE=	GPLv2
17
14
18
BUILD_DEPENDS=	${LOCALBASE}/bin/ifind:${PORTSDIR}/sysutils/sleuthkit
15
BUILD_DEPENDS=	${LOCALBASE}/bin/ifind:${PORTSDIR}/sysutils/sleuthkit
Lines 19-25 Link Here
19
RUN_DEPENDS:=	${BUILD_DEPENDS}
16
RUN_DEPENDS:=	${BUILD_DEPENDS}
20
17
21
USES=		perl5
18
USES=		perl5
22
IS_INTERACTIVE=	yes
23
WEB=		pict/*
19
WEB=		pict/*
24
WEBHELP=	help/*
20
WEBHELP=	help/*
25
PERLBITS=	lib/*.pm lib/*.pl conf.pl
21
PERLBITS=	lib/*.pm lib/*.pl conf.pl
(-)files/patch-configure (-4 / +252 lines)
Lines 1-5 Link Here
1
--- configure.orig	Thu Oct 13 19:03:54 2005
1
--- configure.orig	2014-07-10 19:20:13.118096813 +1000
2
+++ configure	Tue Nov 29 12:41:17 2005
2
+++ configure	2014-07-10 19:20:13.117096540 +1000
3
@@ -45,7 +45,7 @@
3
@@ -45,7 +45,7 @@
4
 
4
 
5
 
5
 
Lines 9-14 Link Here
9
 
9
 
10
 
10
 
11
 echo ""
11
 echo ""
12
@@ -63,8 +63,8 @@
13
 
14
 rep=""
15
 if (test -f $conf) then
16
-  echo "A configuration file already exists, overwrite? (y/n):";
17
-  read rep;
18
+  echo "A configuration file already exists, not overwriting";
19
+  rep="n"
20
 else
21
   rep="y"
22
 fi
12
@@ -96,7 +96,7 @@
23
@@ -96,7 +96,7 @@
13
 # INSTALLATION DIRECTORY
24
 # INSTALLATION DIRECTORY
14
 #############################################################################
25
 #############################################################################
Lines 18-26 Link Here
18
 
29
 
19
 
30
 
20
 # Now add the variables that need user interaction
31
 # Now add the variables that need user interaction
21
@@ -438,8 +438,7 @@
32
@@ -127,19 +127,11 @@
33
   fi;
34
 done
35
 
36
-# Prompt if not found
37
+# Don't Prompt if not found
38
 if (test $found -eq 0) then
39
   echo 'ERROR: grep utility not found';
40
-  echo 'Enter location of executable:';
41
-  while (test 1 -eq 1) 
42
-    do read grepexe;
43
-    if (test -x "$grepexe") then
44
-	  echo \$GREP_EXE = \'$grepexe\'\; >> $conf; 
45
-      break;
46
-    else
47
-      echo 'grep was not found (try again):';
48
-    fi;
49
-  done
50
+  echo 'Configure aborted!';
51
+  exit 1
52
 fi
53
 
54
 
55
@@ -156,19 +148,11 @@
56
   fi;
57
 done
58
 
59
-# Prompt if not found
60
+# Don't Prompt if not found
61
 if (test $found -eq 0) then
62
   echo 'ERROR: file utility not found';
63
-  echo 'Enter location of executable:';
64
-  while (test 1 -eq 1) 
65
-    do read fileexe;
66
-    if (test -x "$fileexe") then
67
-	  echo \$FILE_EXE = \'$filexe\'\; >> $conf; 
68
-      break;
69
-    else
70
-      echo 'file was not found (try again):';
71
-    fi;
72
-  done
73
+  echo 'Configure aborted!';
74
+  exit 1
75
 fi
76
 
77
 #
78
@@ -189,19 +173,11 @@
79
   fi;
80
 done
81
 
82
-# Prompt if not found
83
+# Don't Prompt if not found
84
 if (test $found -eq 0) then
85
   echo 'ERROR: md5/md5sum utility not found';
86
-  echo 'Enter location of executable:';
87
-  while (test 1 -eq 1) 
88
-    do read md5exe;
89
-    if (test -x "$md5exe") then
90
-	  echo \$MD5_EXE = \'$md5exe\'\; >> $conf; 
91
-      break;
92
-    else
93
-      echo 'md5 was not found (try again):';
94
-    fi;
95
-  done
96
+  echo 'Configure aborted!';
97
+  exit 1
98
 fi
99
 
100
 
101
@@ -263,25 +239,8 @@
102
 if (test $found -eq 0) then
103
   echo 'Sleuth Kit tools were not found in the standard install locations.'
104
   echo 'If you have not installed them, do so now and configure autopsy again.'
105
-  echo 'If you have installed them in a non-standard location, then'
106
-  echo '  enter the "bin" directory now:'
107
-
108
-  while (test 1 -eq 1) 
109
-    do read tskdir;
110
-    if ((test -x ${tskdir}/fls) && (test -x ${tskdir}/ffind) && (test -x ${tskdir}/blkstat) && \
111
-          (test -x ${tskdir}/blkls) && (test -x ${tskdir}/blkcat) && \
112
-          (test -x ${tskdir}/mmls) && (test -x ${tskdir}/mmstat) && \
113
-          (test -x ${tskdir}/fsstat) && (test -x ${tskdir}/img_stat) && \
114
-          (test -x ${tskdir}/istat) && (test -x ${tskdir}/ifind) && \
115
-          (test -x ${tskdir}/icat) && (test -x ${tskdir}/ils) && \
116
-          (test -x ${tskdir}/srch_strings) && \
117
-          (test -x ${tskdir}/mactime) && (test -x ${tskdir}/sorter)) then
118
-      echo \$TSKDIR = \'${tskdir}\'\; >> $conf;
119
-      break;
120
-    else
121
-      echo 'TSK tools were not found or incomplete (try again):';
122
-    fi;
123
-  done
124
+  echo 'Configure aborted!'
125
+  exit 1
22
 fi;
126
 fi;
23
 
127
 
128
 # Test for latest version
129
@@ -297,9 +256,6 @@
130
 elif (test "$ver" '<' "$curtskver") then 
131
 	echo '';
132
     echo "*** NOTE: A more recent version ($curtskver) of The Sleuth Kit Exists ***"
133
-	echo "  [Press Enter to Continue]";
134
-	read foo;
135
-
136
 else
137
 	echo '  Required version found';
138
 fi
139
@@ -307,73 +263,18 @@
140
 
141
 
142
 # NSRL
143
-echo ''
144
-echo '---------------------------------------------------------------'
145
-echo ''
146
-echo 'The NIST National Software Reference Library (NSRL) contains'
147
-echo 'hash values of known good and bad files.'
148
-echo '         http://www.nsrl.nist.gov'
149
-echo ''
150
-echo 'Have you purchased or downloaded a copy of the NSRL (y/n) [n]'
151
-read rep;
152
-if (test "$rep" = "y") then
153
-
154
-  echo 'Enter the directory where you installed it:'
155
-  while (test 1 -eq 1) 
156
-    do read nsrldir;
157
-    if (test "$nsrldir" = "cancel") then
158
-        echo \$NSRLDB = \'\'\; >> $conf;
159
-		break;
160
-	fi;
161
-    if (test -f "${nsrldir}/NSRLFile.txt") then
162
-      echo '  NSRL database was found (NSRLFile.txt)';
163
-      echo \$NSRLDB = \'${nsrldir}/NSRLFile.txt\'\; >> $conf;
164
-
165
-	  if (test -f "${nsrldir}/NSRLFile.txt-md5.idx") then
166
-		echo '  NSRL Index file found (NSRLFile.txt-md5.idx)';
167
-      else
168
-        echo '  NSRL Index file not found, do you want it created? (y/n) [n]:'
169
-        read rep;
170
-        if (test "$rep" = "y") then
171
-          echo ''
172
-          echo '-------------- begin hfind output --------------'
173
-          "${tskdir}/hfind" -i nsrl-md5 "${nsrldir}/NSRLFile.txt";
174
-          echo '--------------- end hfind output ---------------'
175
-          echo ''
176
-		fi;
177
-	  fi;
178
-      break;
179
-    else
180
-      echo 'The NSRL was not found (the directory should have NSRLFile.txt in it)';
181
-	  echo 'Enter a new directory (or cancel to stop):';
182
-    fi;
183
-  done
184
-else
185
-  echo \$NSRLDB = \'\'\; >> $conf;
186
-fi;
187
+# User may add later (see pkg-message)
188
+echo \$NSRLDB = \'\'\; >> $conf;
189
 
190
-#############################################################################
191
 # EVIDENCE LOCKER
192
-#############################################################################
193
-mdone=0
194
-echo ''
195
-echo '---------------------------------------------------------------'
196
-echo ''
197
-echo 'Autopsy saves configuration files, audit logs, and output to the'
198
-echo 'Evidence Locker directory.'
199
-echo ''
200
-echo 'Enter the directory that you want to use for the Evidence Locker:';
201
-read locker;
202
-if (test -d "${locker}") then
203
-  echo "  $locker already exists"
204
-else
205
-  echo '';
206
-  echo "WARNING: $locker does not exist"
207
-  mdone=1
208
-fi
209
+# User may add later (see pkg-message)
210
+echo \$LOCKDIR = \'\'\; >> $conf;
211
 
212
-echo \$LOCKDIR = \'${locker}\'\; >> $conf;
213
+# Ensure configure-created conf.pl returns 1 to allow it to be
214
+# require-d in Autopsy's perl modules
215
+echo 1\; >> $conf;
216
 
217
+# XXX NOTE: This matches an overwrite if at the top of this script
218
 fi
219
 
220
 # Start of non-conf.pl file configuration
221
@@ -404,28 +305,8 @@
222
 # If it wasn't found, then prompt for it.
223
 if (test $found -eq 0) then
224
   echo 'ERROR: perl not found or the incorrect version found';
225
-  while (test 1 -eq 1) 
226
-    do echo 'Enter location of perl executable:';
227
-    read perlexe;
228
-    if (test -x "$perlexe") then
229
-      if (test -n "`$perlexe -v 2> /dev/null | awk '/This is perl/ {print $0}'`")       then
230
-        ver=`$perlexe -e 'print $];'`;
231
-        if (`$perlexe -e 'exit( $] >= 5.008);'`) then 
232
-          echo "This version of Perl is too old, 5.8.0 or older needed";
233
-        else      
234
-          echo "Correct version found";
235
-          echo "#!${perlexe} -wT" > ./config.tmp;
236
-          echo "#!${perlexe}" > ./config2.tmp;
237
-          found=1; 
238
-          break; 
239
-        fi;
240
-      else
241
-        echo "Perl found, but is not working.  Try another";
242
-      fi;
243
-    else
244
-      echo "file not found";
245
-    fi
246
-  done
247
+  echo 'Configure aborted!'
248
+  exit 1
249
 fi
250
 
251
 # Check if this version of Perl supports large files
252
@@ -434,24 +315,14 @@
253
   echo '    NOTE: It appears that your Perl does not support large files.';
254
   echo '    You therefore will not be able to analyze images larger than 2GB.';
255
   echo '    Download the source version from www.cpan.org and compile a new version.';
256
-  echo "  [Press Enter to Continue]";
257
-  read foo;
258
   echo ''
259
 fi;
260
 
24
 # Get current working directory for lib
261
 # Get current working directory for lib
25
-echo "use lib '$PWD/';" >> ./config.tmp
262
-echo "use lib '$PWD/';" >> ./config.tmp
26
-echo "use lib '$PWD/lib/';" >> ./config.tmp
263
-echo "use lib '$PWD/lib/';" >> ./config.tmp
Lines 27-30 Link Here
27
+echo "use lib '${PREFIX}/lib/autopsy/';" >> ./config.tmp
264
+echo "use lib '${PREFIX}/lib/autopsy/';" >> ./config.tmp
28
 
265
 
29
 if (test -f ./autopsy) then
266
 if (test -f ./autopsy) then
30
   echo "autopsy already exists, overwrite? (y/n):";
267
-  echo "autopsy already exists, overwrite? (y/n):";
268
-  read rep;
269
-  if (test "$rep" = "y") then
270
-    cat ./config.tmp base/autopsy.base > ./autopsy
271
-    cat ./config2.tmp base/make-live-cd.base > ./make-live-cd
272
-  else 
273
-    echo '  original version was kept';
274
-  fi
275
+  echo "WARNING: ./autopsy already exists not overwriting";
276
 else
277
   cat ./config.tmp base/autopsy.base > ./autopsy
278
   cat ./config2.tmp base/make-live-cd.base > ./make-live-cd
(-)pkg-descr (-2 / +5 lines)
Lines 2-10 Link Here
2
digital investigation analysis tools in The Sleuth Kit.  Together, they can
2
digital investigation analysis tools in The Sleuth Kit.  Together, they can
3
analyze Windows and UNIX disks and file systems (NTFS, FAT, UFS1/2, Ext2/3).
3
analyze Windows and UNIX disks and file systems (NTFS, FAT, UFS1/2, Ext2/3).
4
4
5
The Sleuth Kit and Autopsy are both Open Source and run on UNIX platforms.
6
As Autopsy is HTML-based, you can connect to the Autopsy server from any
5
As Autopsy is HTML-based, you can connect to the Autopsy server from any
7
platform using an HTML browser.  Autopsy provides a "File Manager"-like
6
platform using an HTML browser.  Autopsy provides a "File Manager"-like
8
interface and shows details about deleted data and file system structures.
7
interface and shows details about deleted data and file system structures.
9
8
10
WWW: http://www.sleuthkit.org/autopsy/
9
WARNING: The cross-platform version of Autopsy is no longer actively 
10
         developed. This port is retained mainly to allow users with 
11
         saved data to migrate to another forensic tool.
12
13
WWW: http://www.sleuthkit.org/autopsy/v2/
(-)pkg-message (+34 lines)
Line 0 Link Here
1
2
---------------------------------------------------------------
3
4
Default autopsy configuration file is /usr/local/lib/autopsy/conf.pl
5
6
---------------------------------------------------------------
7
8
The NIST National Software Reference Library (NSRL) contains
9
hash values of known good and bad files.
10
   http://www.nsrl.nist.gov
11
12
If you have a copy of the NSRL, you may add support in Autopsy by
13
adding the path to the NSRLFile.txt to the "NSRLDB" configuration
14
entry:
15
   NSRLDB = /path/to/NSRLFile.txt
16
17
The index file NSRLFile.txt-md5.idx must be in the same directory.
18
If it does not exist it may be created with the TSK hfind command:
19
   hfind -i nsrl-md5 /path/to/NSRLFile.txt
20
21
---------------------------------------------------------------
22
23
Autopsy saves configuration files, audit logs, and output to the
24
Evidence Locker directory. You MUST specify this with the LOCKDIR
25
configuration entry before running Autopsy:
26
   LOCKDIR = /path/to/locker
27
28
---------------------------------------------------------------
29
30
WARNING: The cross-platform version of Autopsy is no longer actively
31
         developed. This port is retained mainly to allow users with
32
         saved data to migrate to another forensic tool.
33
34
---------------------------------------------------------------

Return to bug 191778