[27327] trunk/dports/sysutils/sleuthkit

source_changes at macosforge.org source_changes at macosforge.org
Sun Jul 29 14:37:17 PDT 2007


Revision: 27327
          http://trac.macosforge.org/projects/macports/changeset/27327
Author:   pmq at macports.org
Date:     2007-07-29 14:37:16 -0700 (Sun, 29 Jul 2007)

Log Message:
-----------
Closes #12325. Version bump to 2.09.
Maintainer didn't respond in two weeks time.
Submitted by: ecronin at gizmolabs.org

Modified Paths:
--------------
    trunk/dports/sysutils/sleuthkit/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/sleuthkit/files/
    trunk/dports/sysutils/sleuthkit/files/patch-Makefile
    trunk/dports/sysutils/sleuthkit/files/patch-check-install
    trunk/dports/sysutils/sleuthkit/files/patch-src_timeline_config-perl

Modified: trunk/dports/sysutils/sleuthkit/Portfile
===================================================================
--- trunk/dports/sysutils/sleuthkit/Portfile	2007-07-29 19:38:56 UTC (rev 27326)
+++ trunk/dports/sysutils/sleuthkit/Portfile	2007-07-29 21:37:16 UTC (rev 27327)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name            sleuthkit
-version         2.04
+version         2.09
 categories      sysutils
 maintainers     md at hudora.de
 platforms       darwin
@@ -21,20 +21,40 @@
 	extract them so that they can be analyzed with file system analysis tools.
 master_sites    sourceforge
 homepage        http://www.sleuthkit.org/sleuthkit/
-checksums       sha1 852c8d9ac1755f22d121e1e830f2bff3520a64da\
-                md5 abb1511e2ec53c6d34d745a348c94b33 
+checksums       sha1 9d2db6868026d887a83b0becb4d95a69527df457 \
+                md5 7a7b50e089c1807956146a50621b7441
 use_configure   no
+depends_build   port:file port:perl5.8
+depends_lib     port:openssl port:p5-datemanip port:zlib
+patchfiles      patch-Makefile patch-check-install patch-src_timeline_config-perl
 
+post-patch {
+	reinplace "s|/usr/local/bin/ /usr/bin/ /usr/ccs/bin/ /bin/ /usr/ucb/bin/ /sbin/ /usr/sbin/ /usr/local/sbin/ /usr/pkg/bin/|${prefix}/bin/|g" ${worksrcpath}/src/timeline/config-perl
+	reinplace "s|/usr/local/bin/ /usr/bin/ /usr/ccs/bin/ /bin/ /usr/ucb/bin/ /sbin/ /usr/sbin/ /usr/local/sbin/ /usr/pkg/bin/|${prefix}/bin/|g" ${worksrcpath}/src/sorter/install
+
+    foreach srcdir { auxtools disktools fstools hashtools imgtools 
+                     mmtools srchtools } {
+        # Those are literal tabs after CFLAGS and LIBS, don't retab 'em
+    	reinplace "s|^CFLAGS\[ 	\]*=|CFLAGS	= -I${prefix}/include |g" \
+        	${worksrcpath}/src/${srcdir}/Makefile
+    	reinplace "s|^LIBS\[ 	\]*=|LIBS	= -L${prefix}/lib |g" \
+        	${worksrcpath}/src/${srcdir}/Makefile
+    }
+}
+
 destroot   {
-       cd ${worksrcpath}
-       file rename bin/file bin/file_sk
-       file rename man/man1/file.1 man/man1/file_sk.1
+	reinplace "s|\\\$SK_DIR=\"${worksrcpath}/\"|\\\$SK_DIR=\"${prefix}\"|g" ${worksrcpath}/bin/sorter
+	reinplace "s|\\\$SK_DIR/share/sorter/|\\\$SK_DIR/share/${name}/sorter/|g" ${worksrcpath}/bin/sorter
 
 	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/tct_docs
+	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/api_docs
 
-	eval xinstall [glob ${worksrcpath}/docs/*] \
+	eval xinstall [glob ${worksrcpath}/docs/*.txt] \
 		${destroot}${prefix}/share/doc/${name}
 
+	eval xinstall [glob ${worksrcpath}/docs/api-doc/*] \
+		${destroot}${prefix}/share/doc/${name}/api_docs
+
         xinstall -m 644 -W ${worksrcpath} CHANGES.txt INSTALL.txt README.txt \
                 ${destroot}${prefix}/share/doc/${name}
 
@@ -45,15 +65,15 @@
 	eval xinstall -m 755 [glob ${worksrcpath}/bin/*] \
 		${destroot}${prefix}/bin
 
+	xinstall -m 755 -d ${destroot}${prefix}/lib
+	xinstall -m 644 ${worksrcpath}/lib/libtsk.a \
+		${destroot}${prefix}/lib
+
 	xinstall -m 755 -d ${destroot}${prefix}/man/man1
 	eval xinstall -m 644 [glob ${worksrcpath}/man/man1/*] \
 		${destroot}${prefix}/share/man/man1/ 
 
-	xinstall -m 755 -d ${destroot}${prefix}/man/man3
-        eval xinstall -m 644 [glob ${worksrcpath}/man/man3/*] \
-                ${destroot}${prefix}/share/man/man3/
-
-	xinstall -m 755 -d ${destroot}${prefix}/man/man4
-        eval xinstall -m 644 [glob ${worksrcpath}/man/man4/*] \
-                ${destroot}${prefix}/share/man/man4/
+	xinstall -m 755 -d ${destroot}${prefix}/share/${name}/sorter
+	eval xinstall [glob ${worksrcpath}/share/sorter/*] \
+		${destroot}${prefix}/share/${name}/sorter
 }

Added: trunk/dports/sysutils/sleuthkit/files/patch-Makefile
===================================================================
--- trunk/dports/sysutils/sleuthkit/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/sysutils/sleuthkit/files/patch-Makefile	2007-07-29 21:37:16 UTC (rev 27327)
@@ -0,0 +1,40 @@
+--- Makefile.orig	2007-07-18 14:52:18.000000000 -0400
++++ Makefile	2007-07-18 16:05:23.000000000 -0400
+@@ -1,6 +1,6 @@
+ SHELL	= /bin/sh
+ #CC		= g++
+-CC		= gcc
++CC		= gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
+ DIRS	= bin
+ 
+ all:	$(DIRS) compile
+@@ -10,9 +10,9 @@
+ $(DIRS):
+ 	mkdir -p $@
+ 
+-compile: no-perl mactime sorter file test 
++compile: no-perl mactime sorter test 
+ 
+-compile-static: no-perl-static mactime sorter file test
++compile-static: no-perl-static mactime sorter test
+ 
+ no-perl:
+ 	$(MAKE) -C src/auxtools
+@@ -42,9 +42,6 @@
+ mactime:
+ 	$(MAKE) -C src/timeline
+ 
+-file:
+-	cd src; sh ./file-install.sh
+-
+ indent:
+ 	$(MAKE) -C src/auxtools indent
+ 	$(MAKE) -C src/imgtools indent
+@@ -69,7 +66,6 @@
+ 	cd src/sorter; sh ./clean
+ 	cd src; sh ./afflib-clean.sh
+ 	cd src; sh ./libewf-clean.sh
+-	cd src; sh ./file-clean.sh
+ 	rm -f lib/libtsk.a
+ 	rm -f bin/*core
+ 	rm -f bin/.gdb_history

Added: trunk/dports/sysutils/sleuthkit/files/patch-check-install
===================================================================
--- trunk/dports/sysutils/sleuthkit/files/patch-check-install	                        (rev 0)
+++ trunk/dports/sysutils/sleuthkit/files/patch-check-install	2007-07-29 21:37:16 UTC (rev 27327)
@@ -0,0 +1,15 @@
+--- check-install.orig	2007-07-18 14:51:40.000000000 -0400
++++ check-install	2007-07-18 14:52:13.000000000 -0400
+@@ -51,12 +51,6 @@
+   echo "ERROR: Missing disk_stat tool";
+ fi
+ 
+-if (test -x "bin/file") then
+-  blah=1;
+-else
+-  echo "ERROR: Missing 'file' command";
+-fi
+-
+ if (test -x "bin/mactime") then
+   blah=1;
+ else

Added: trunk/dports/sysutils/sleuthkit/files/patch-src_timeline_config-perl
===================================================================
--- trunk/dports/sysutils/sleuthkit/files/patch-src_timeline_config-perl	                        (rev 0)
+++ trunk/dports/sysutils/sleuthkit/files/patch-src_timeline_config-perl	2007-07-29 21:37:16 UTC (rev 27327)
@@ -0,0 +1,18 @@
+--- src/timeline/config-perl.orig	2007-07-18 15:52:47.000000000 -0400
++++ src/timeline/config-perl	2007-07-18 15:53:00.000000000 -0400
+@@ -60,15 +60,6 @@
+ fi
+ 
+ 
+-# Print the installed location of the lib directory
+-# This is not the best fix, but it works
+-if (test -z "`echo "$PWD" | awk '/\/src\/timeline/ {print $0}'`") then
+-  echo "use lib '$PWD/$LIB_DIR_NORM';" >> $BIN_DIR$PROG;
+-else
+-  echo "use lib '$PWD/$LIB_DIR_BACK';" >> $BIN_DIR$PROG;
+-fi
+-
+-
+ # Print the current version
+ echo "\$VER = \"`cat ../../patchlevel`\";" >> $BIN_DIR$PROG;
+ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070729/bf4fae0c/attachment.html


More information about the macports-changes mailing list