From: Raphaël Marichez Date: Wed, 11 Apr 2007 22:20:06 +0000 (+0000) Subject: Version bump X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4918a23249c62e837785949609f73d0479839d70;p=gentoo.git Version bump Package-Manager: portage-2.1.2.2 --- diff --git a/app-forensics/sleuthkit/ChangeLog b/app-forensics/sleuthkit/ChangeLog index 9ca2a36997a4..7e75fbad87ba 100644 --- a/app-forensics/sleuthkit/ChangeLog +++ b/app-forensics/sleuthkit/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-forensics/sleuthkit # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-forensics/sleuthkit/ChangeLog,v 1.25 2007/02/21 21:55:01 peper Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-forensics/sleuthkit/ChangeLog,v 1.26 2007/04/11 22:20:06 falco Exp $ + +*sleuthkit-2.08 (11 Apr 2007) + + 11 Apr 2007; Raphael Marichez + +files/sleuthkit-fscheck.c_fix.patch, + +files/sleuthkit-makefiles_fix.patch, +sleuthkit-2.08.ebuild: + Version bump, with thanks to Jerome Poggi for his + notification. 21 Feb 2007; Piotr Jaroszyński ChangeLog: Transition to Manifest2. diff --git a/app-forensics/sleuthkit/Manifest b/app-forensics/sleuthkit/Manifest index bd181bf46ad0..8bf00ecb1d2c 100644 --- a/app-forensics/sleuthkit/Manifest +++ b/app-forensics/sleuthkit/Manifest @@ -1,12 +1,25 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX sleuthkit-2.01-include_fix.patch 291 RMD160 7fe44a7d4440045a688197f1866791b74405c3e1 SHA1 f0d72a58242d595ba0d0a03af0ef165aaf195620 SHA256 138582488fe95ce602974c11b00e1ebbef8a45fd5713b2a2ffaf2c7a007dcaae MD5 8978f054c0edcc527fc8c8954774c9a9 files/sleuthkit-2.01-include_fix.patch 291 RMD160 7fe44a7d4440045a688197f1866791b74405c3e1 files/sleuthkit-2.01-include_fix.patch 291 SHA256 138582488fe95ce602974c11b00e1ebbef8a45fd5713b2a2ffaf2c7a007dcaae files/sleuthkit-2.01-include_fix.patch 291 +AUX sleuthkit-fscheck.c_fix.patch 2866 RMD160 cb0f7b3074df2a009dc6a213555a583deae5abfe SHA1 45697778aaf36c4c5c0fc7740b85266cd4de44c6 SHA256 3115ebcbc6d39bce88448c7c624f855c0a7fb0fd83f2d6dc1e02828b631e13dd +MD5 33bfc6a448ec436d32e9ffd4bd1ac042 files/sleuthkit-fscheck.c_fix.patch 2866 +RMD160 cb0f7b3074df2a009dc6a213555a583deae5abfe files/sleuthkit-fscheck.c_fix.patch 2866 +SHA256 3115ebcbc6d39bce88448c7c624f855c0a7fb0fd83f2d6dc1e02828b631e13dd files/sleuthkit-fscheck.c_fix.patch 2866 +AUX sleuthkit-makefiles_fix.patch 4069 RMD160 ab25ef83d21215789d56803b0689f05e798c84ea SHA1 f1247415930133509a1ad0a620c480c17c6b7656 SHA256 9ee0451f194b4e434b70720b568549b09e078a514617f82123db6214401d6448 +MD5 c02e2fe4fb0483b122010db67d21fbdd files/sleuthkit-makefiles_fix.patch 4069 +RMD160 ab25ef83d21215789d56803b0689f05e798c84ea files/sleuthkit-makefiles_fix.patch 4069 +SHA256 9ee0451f194b4e434b70720b568549b09e078a514617f82123db6214401d6448 files/sleuthkit-makefiles_fix.patch 4069 DIST sleuthkit-1.73.tar.gz 727263 RMD160 1e4b241feec745abe6dc6701b069227bd119b53c SHA1 9efa28ac859d55e4b6247c6d6e3a342c0c0a5e6e SHA256 cbd2421173ea6fa99c0438382450c95c0a31dfec6c64047f6455c39ce78aadd7 DIST sleuthkit-1.73_dbtool.patch.bz2 9764 RMD160 69b3c0deae68f07a6e50f847ff82f963d7cbeb84 SHA1 ecdb76f298b2595dcf4f3c08dd6d1960a648b7ad SHA256 67e0ec215293851fc84ca74a069de6fe5349a5604251efe9daa313eb7274e2a9 DIST sleuthkit-2.02.tar.gz 789409 RMD160 8dafe7aacaf458b3ef75de46e6f2ca0b85eedff9 SHA1 00c089e710fef9a119b4fc75a45d298ce45d9d49 SHA256 02f1159386e39bfdbd8316f9863578c006b78ae90f8e3b89c9c9e68bf7537a4c DIST sleuthkit-2.03.tar.gz 935909 RMD160 1a5dd132aab418cf2ad5dbcd3dc27686eeaed46e SHA1 39de356238508110ef8cfdd8a07c69fc34e79d65 SHA256 edd8f1974a9a345affdb9e21927d493bf39d677b494eebe9fe627607e6de49b8 DIST sleuthkit-2.03_dbtool.patch.bz2 8568 RMD160 3658077a485f64c486d4890228b1c391a14da74f SHA1 2992055766d9a166889103f3a4b7afe4811caf94 SHA256 e563e8d7209a09f29c7e5d075b05f00a4c9c4ee335ae715f5031e5472280980f +DIST sleuthkit-2.08.tar.gz 1723828 RMD160 6a8847bc8835c6d435276147591b806f5a706b8c SHA1 855e5cb87506f4e86d06fa9f834c62b4660024e9 SHA256 18d9ded8236fe8bd29d06fab0f0d7b5e9e73f680b1c1024311deaac5ed9ffb24 +DIST sleuthkit-2.08_dbtool.patch.bz2 9049 RMD160 e88c225929a2286d223e44d4ecf26abf2d6456ff SHA1 46f57860e77ddbc4c4c0c055639b6ab4852abb7c SHA256 7cdf4611634c318731b686059e2114f5b418d45ed5eefdcea90847ce0386d6e3 EBUILD sleuthkit-1.73-r2.ebuild 1603 RMD160 52147c5f9b026239b069ef994c75a671e2dcdf84 SHA1 af148c9e6dc068c99e6843e6b5fdead295f75c23 SHA256 b0cc46bf5e28afcc6e056db54dc30af0e6dc1566ac56478633c2d05669ecf208 MD5 0f2ff0722ddf4ab26abcf067667c1bdf sleuthkit-1.73-r2.ebuild 1603 RMD160 52147c5f9b026239b069ef994c75a671e2dcdf84 sleuthkit-1.73-r2.ebuild 1603 @@ -19,10 +32,14 @@ EBUILD sleuthkit-2.03.ebuild 1681 RMD160 4a4727628c29b05ad0503e7fbb40ae64d5c7013 MD5 bffa331fb7f2f2c12e3470b94ac54fa3 sleuthkit-2.03.ebuild 1681 RMD160 4a4727628c29b05ad0503e7fbb40ae64d5c70136 sleuthkit-2.03.ebuild 1681 SHA256 dc71895d87b4df49926c9a9a4695930df69d4371f6f33ffedcd7069c57cb24c7 sleuthkit-2.03.ebuild 1681 -MISC ChangeLog 4909 RMD160 df57f1c9a5a107baf434aac80a09e4838bfbaded SHA1 07428eb9fafc082fd68eb67d871e567cdd45881d SHA256 f002602a3ceb3452827d0c7fd0fc410c296151cec8894ed77109c39527530b32 -MD5 1823eb896a4617c40504c7fa64d5aaa6 ChangeLog 4909 -RMD160 df57f1c9a5a107baf434aac80a09e4838bfbaded ChangeLog 4909 -SHA256 f002602a3ceb3452827d0c7fd0fc410c296151cec8894ed77109c39527530b32 ChangeLog 4909 +EBUILD sleuthkit-2.08.ebuild 1452 RMD160 9ae1d4e201abc6361caaac22bfd8d6d1fb0c8f19 SHA1 289033d770a17315beee85569eccb81cc258dc12 SHA256 f035ce5b62c62701fe82afc385a3ad48a3ebf1f5ec169b7729aacc4247537cbb +MD5 a4b6bd7e84816ee8d037f922ece7268e sleuthkit-2.08.ebuild 1452 +RMD160 9ae1d4e201abc6361caaac22bfd8d6d1fb0c8f19 sleuthkit-2.08.ebuild 1452 +SHA256 f035ce5b62c62701fe82afc385a3ad48a3ebf1f5ec169b7729aacc4247537cbb sleuthkit-2.08.ebuild 1452 +MISC ChangeLog 5186 RMD160 6572bc2b4ebf4e7ec3cbe2de9ffcdbb0f10203af SHA1 81481cb7c329261f4517819e691923f221dcc5fc SHA256 6fe9f3de3c80fd74f9800ac05f8ce8a47330ad4144fc3aa28a713cb90d76fb0e +MD5 8b966fccc062e865288cfefb30b4cd31 ChangeLog 5186 +RMD160 6572bc2b4ebf4e7ec3cbe2de9ffcdbb0f10203af ChangeLog 5186 +SHA256 6fe9f3de3c80fd74f9800ac05f8ce8a47330ad4144fc3aa28a713cb90d76fb0e ChangeLog 5186 MISC metadata.xml 230 RMD160 bae79bd47dd753f27518cf7f9da71328ff1e005b SHA1 d88c6d49a90025a7ecb8f501bba12aaefbbbf589 SHA256 54d210721f07e0e12229fe8d2a4f394ffa1432d52e9e0af50a5dd4f2f763d387 MD5 20ee07270b7eadc3659cd96a982e460f metadata.xml 230 RMD160 bae79bd47dd753f27518cf7f9da71328ff1e005b metadata.xml 230 @@ -36,3 +53,17 @@ SHA256 d3834580dd244c1ec9ed55f5918526129726bd067ebeb1426e81c26406c2c2cd files/di MD5 1b1822b51cb996a423b13412d8e8cd40 files/digest-sleuthkit-2.03 512 RMD160 0793ec9abda47caca9432e48d64b21de7a59208c files/digest-sleuthkit-2.03 512 SHA256 8cf467755a969f7b6baed1e44625c73f9ae03d6491de8bff944364bcc7c0885a files/digest-sleuthkit-2.03 512 +MD5 f09fb75f92d4a754c755cc5e22d505c2 files/digest-sleuthkit-2.08 515 +RMD160 24caf71e0c0c8c45b9ecb208700d6db0594262b2 files/digest-sleuthkit-2.08 515 +SHA256 f135d60cdd33fb00389935bbec3979a97badecebe92f701e83cc12aec279c2e2 files/digest-sleuthkit-2.08 515 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.6 (GNU/Linux) + +iQEVAwUBRh1fIjvRww8BFPxFAQIOtAf+LMm9HPR+zTmiTIlwSIx7cUG+Po1yyUD1 +AEb4fL0VtdYJWuZtX9uvXuu0Qv5Xl9ZXzqDrnBIf4jXFS0WmDUMuJ/VxmdeiDI9L +JaB5B8VOs0RhZ5/ImZaqeDisX1A8LbpQTxKYrl4xXSY0P7AG1IFXTGqHatZUujuw +4JGlMz+0bbPLUDeEY28NpsHaYKAtoOQ1A2HXq3DpNJh/jL+n+BTjuZBpoIC42XOJ +1Gy/WMcI72KQoR5meeJFF2OcI8WPtlE78fFjaQNJ8YXsDNuxN6ch+XDQWBWXomPG +qMh4vtOeGhGmKTbr7IniDxMiyTnPC0+tdlu9fK8UIf8VcqD6RSsLhQ== +=Dqih +-----END PGP SIGNATURE----- diff --git a/app-forensics/sleuthkit/files/digest-sleuthkit-2.08 b/app-forensics/sleuthkit/files/digest-sleuthkit-2.08 new file mode 100644 index 000000000000..1ed7bd0484d2 --- /dev/null +++ b/app-forensics/sleuthkit/files/digest-sleuthkit-2.08 @@ -0,0 +1,6 @@ +MD5 35cfea5a26a52a9ad871ee5551cb1526 sleuthkit-2.08.tar.gz 1723828 +RMD160 6a8847bc8835c6d435276147591b806f5a706b8c sleuthkit-2.08.tar.gz 1723828 +SHA256 18d9ded8236fe8bd29d06fab0f0d7b5e9e73f680b1c1024311deaac5ed9ffb24 sleuthkit-2.08.tar.gz 1723828 +MD5 6476d326f6d458fd3993e35e42c56a42 sleuthkit-2.08_dbtool.patch.bz2 9049 +RMD160 e88c225929a2286d223e44d4ecf26abf2d6456ff sleuthkit-2.08_dbtool.patch.bz2 9049 +SHA256 7cdf4611634c318731b686059e2114f5b418d45ed5eefdcea90847ce0386d6e3 sleuthkit-2.08_dbtool.patch.bz2 9049 diff --git a/app-forensics/sleuthkit/files/sleuthkit-fscheck.c_fix.patch b/app-forensics/sleuthkit/files/sleuthkit-fscheck.c_fix.patch new file mode 100644 index 000000000000..d0d65b594584 --- /dev/null +++ b/app-forensics/sleuthkit/files/sleuthkit-fscheck.c_fix.patch @@ -0,0 +1,105 @@ +diff -uNr -r sleuthkit-2.08-orig/src/fstools/fscheck.c sleuthkit-2.08/src/fstools/fscheck.c +--- sleuthkit-2.08-orig/src/fstools/fscheck.c 2007-03-13 21:05:37.000000000 +0100 ++++ sleuthkit-2.08/src/fstools/fscheck.c 2007-04-11 18:03:00.000000000 +0200 +@@ -11,8 +11,10 @@ + ** This software is distributed under the Common Public License 1.0 + ** + */ ++#include + #include "fs_tools.h" + ++static TSK_TCHAR *progname; + + static void + usage() +@@ -36,58 +38,71 @@ + int + main(int argc, char **argv) + { +- char *fstype = NULL; ++ TSK_TCHAR *fstype = NULL; + int ch; +- FS_INFO *fs; +- char *imgtype = NULL, *imgoff = NULL; +- IMG_INFO *img; ++ TSK_FS_INFO *fs; ++ TSK_TCHAR *imgtype = NULL; ++ SSIZE_T imgoff = 0; ++ TSK_IMG_INFO *img; + + progname = argv[0]; ++ setlocale(LC_ALL, ""); + +- while ((ch = getopt(argc, argv, "f:i:o:vV")) > 0) { ++ while ((ch = getopt(argc, argv, _TSK_T("f:i:o:vV"))) > 0) { + switch (ch) { +- case '?': ++ case _TSK_T('?'): + default: +- fprintf(stderr, "Invalid argument: %s\n", argv[optind]); ++ fprintf(stderr, _TSK_T("Invalid argument: %s\n"), argv[optind]); + usage(); + +- case 'f': ++ case _TSK_T('f'): + fstype = optarg; ++ if (TSTRCMP(fstype, _TSK_T("list")) == 0) { ++ tsk_fs_print_types(stderr); ++ exit(1); ++ } + break; + +- case 'i': ++ case _TSK_T('i'): + imgtype = optarg; ++ if (TSTRCMP(imgtype, _TSK_T("list")) == 0) { ++ tsk_img_print_types(stderr); ++ exit(1); ++ } + break; + +- case 'o': +- imgoff = optarg; ++ case _TSK_T('o'): ++ if ((imgoff = tsk_parse_offset(optarg)) == -1) { ++ tsk_error_print(stderr); ++ exit(1); ++ } + break; + +- case 'v': +- verbose++; ++ case _TSK_T('v'): ++ tsk_verbose++; + break; + +- case 'V': +- print_version(stdout); ++ case _TSK_T('V'): ++ tsk_print_version(stdout); + exit(0); + } + } + + /* We need at least one more argument */ + if (optind >= argc) { +- fprintf(stderr, "Missing image name\n"); ++ tsk_fprintf(stderr, "Missing image name\n"); + usage(); + } + + img = +- img_open(imgtype, imgoff, argc - optind, +- (const char **) &argv[optind]); ++ tsk_img_open(imgtype, argc - optind, ++ (const TSK_TCHAR **) &argv[optind]); + if (img == NULL) { + tsk_error_print(stderr); + exit(1); + } + +- if (fs = fs_open(img, fstype)) { ++ if (fs = tsk_fs_open(img, imgoff, fstype)) { + if (tsk_errno == TSK_ERR_FS_UNSUPTYPE) + tsk_print_types(stderr); + diff --git a/app-forensics/sleuthkit/files/sleuthkit-makefiles_fix.patch b/app-forensics/sleuthkit/files/sleuthkit-makefiles_fix.patch new file mode 100644 index 000000000000..5aa8a834133c --- /dev/null +++ b/app-forensics/sleuthkit/files/sleuthkit-makefiles_fix.patch @@ -0,0 +1,92 @@ +diff -uNr -r sleuthkit-2.08-orig/src/disktools/Makefile sleuthkit-2.08/src/disktools/Makefile +--- sleuthkit-2.08-orig/src/disktools/Makefile 2006-07-20 23:06:18.000000000 +0200 ++++ sleuthkit-2.08/src/disktools/Makefile 2007-04-11 17:07:09.982355393 +0200 +@@ -6,12 +6,19 @@ + BIN = ../../bin + PROGS = $(BIN)/disk_stat $(BIN)/disk_sreset + CFLAGS = $(DEFS) $(INCL) $(OPT) $(DEBUG) -I. -I ../auxtools/ $(XFLAGS) ++ ++LIBOBJ = disk_stat.o disk_sreset.o ide.o + LIBS = -L../../lib -ltsk ++LIB = ../../lib/libtsk.a + + defs: + @CC="$(CC)" sh ../makedefs $(MAKE) + +-all: $(PROGS) ++all: lib $(PROGS) ++ ++lib: $(LIBOBJ) ++ $(AR) $(LIB) $? ++ $(RANLIB) $(LIB) + + $(BIN)/disk_stat: disk_stat.o ide.o + $(CC) $(CFLAGS) -o $@ disk_stat.o ide.o $(LIBS) +diff -uNr -r sleuthkit-2.08-orig/src/fstools/Makefile sleuthkit-2.08/src/fstools/Makefile +--- sleuthkit-2.08-orig/src/fstools/Makefile 2007-02-22 06:47:12.000000000 +0100 ++++ sleuthkit-2.08/src/fstools/Makefile 2007-04-11 17:16:39.145986814 +0200 +@@ -9,12 +9,12 @@ + INCL = -I../auxtools -I../imgtools + CFLAGS = $(DEFS) $(INCL) $(OPT) $(DEBUG) + LIBOBJ = fs_inode.o fs_io.o fs_open.o \ +- fs_dent.o fs_types.o fs_data.o fs_load.o \ ++ fs_dent.o fs_types.o fs_data.o fs_load.o fsstat.o fscheck.o \ + ffs.o ffs_dent.o ext2fs.o ext2fs_dent.o ext2fs_journal.o \ + fatfs.o fatfs_dent.o ntfs.o ntfs_dent.o swapfs.o rawfs.o \ +- dcalc_lib.o dcat_lib.o dls_lib.o dstat_lib.o ffind_lib.o \ +- fls_lib.o icat_lib.o ifind_lib.o ils_lib.o \ +- iso9660.o iso9660_dent.o \ ++ dcalc.o dcalc_lib.o dcat.o dcat_lib.o dls.o dls_lib.o dstat.o dstat_lib.o ffind_lib.o \ ++ fls.o fls_lib.o icat.o icat_lib.o ifind.o ifind_lib.o ils.o ils_lib.o istat.o \ ++ iso9660.o iso9660_dent.o jls.o jcat.o \ + hfs.o hfs_dent.o hfs_journal.o + LIBS = -L../../lib -ltsk -lz -lcrypto + +diff -uNr -r sleuthkit-2.08-orig/src/hashtools/Makefile sleuthkit-2.08/src/hashtools/Makefile +--- sleuthkit-2.08-orig/src/hashtools/Makefile 2007-03-27 20:49:46.000000000 +0200 ++++ sleuthkit-2.08/src/hashtools/Makefile 2007-04-11 17:10:10.286508943 +0200 +@@ -7,7 +7,7 @@ + PROGS = $(BIN)/hfind + CFLAGS = $(DEFS) $(INCL) $(OPT) $(DEBUG) -I. -I../auxtools $(XFLAGS) + +-LIBOBJ = tm_lookup.o nsrl_index.o md5sum_index.o hk_index.o idxonly_index.o ++LIBOBJ = tm_lookup.o nsrl_index.o md5sum_index.o hk_index.o idxonly_index.o hfind.o + LIB = ../../lib/libtsk.a + + defs: +diff -uNr -r sleuthkit-2.08-orig/src/imgtools/Makefile sleuthkit-2.08/src/imgtools/Makefile +--- sleuthkit-2.08-orig/src/imgtools/Makefile 2006-08-23 16:17:53.000000000 +0200 ++++ sleuthkit-2.08/src/imgtools/Makefile 2007-04-11 17:09:22.977220557 +0200 +@@ -7,7 +7,7 @@ + DEBUG = -g + INCL = -I../auxtools -I../afflib/lib -I../libewf/src/ + CFLAGS = $(DEFS) $(INCL) $(OPT) $(DEBUG) +-LIBOBJ = img_open.o img_types.o raw.o split.o aff.o ewf.o ++LIBOBJ = img_open.o img_types.o raw.o split.o aff.o ewf.o img_stat.o img_cat.o + LIBS = -L../../lib -ltsk -lz -lcrypto + LIB = ../../lib/libtsk.a + BIN_DIR = ../../bin +diff -uNr -r sleuthkit-2.08-orig/src/mmtools/Makefile sleuthkit-2.08/src/mmtools/Makefile +--- sleuthkit-2.08-orig/src/mmtools/Makefile 2007-04-04 20:48:46.000000000 +0200 ++++ sleuthkit-2.08/src/mmtools/Makefile 2007-04-11 17:08:56.842299225 +0200 +@@ -7,7 +7,7 @@ + DEBUG = -g + INCL = -I../auxtools -I../imgtools + CFLAGS = $(DEFS) $(INCL) $(OPT) $(DEBUG) +-LIBOBJ = mm_part.o mm_open.o mm_io.o mm_types.o dos.o mac.o bsd.o sun.o gpt.o ++LIBOBJ = mm_part.o mm_open.o mm_io.o mm_types.o dos.o mac.o bsd.o sun.o gpt.o mmls.o mmstat.o + LIBS = -L../../lib -ltsk -lz -lcrypto + LIB = ../../lib/libtsk.a + BIN_DIR = ../../bin +diff -uNr -r sleuthkit-2.08-orig/src/srchtools/Makefile sleuthkit-2.08/src/srchtools/Makefile +--- sleuthkit-2.08-orig/src/srchtools/Makefile 2006-07-20 23:06:18.000000000 +0200 ++++ sleuthkit-2.08/src/srchtools/Makefile 2007-04-11 17:07:09.986355838 +0200 +@@ -7,7 +7,7 @@ + PROGS = $(BIN)/srch_strings $(BIN)/sigfind + CFLAGS = $(DEFS) $(INCL) $(OPT) $(DEBUG) -I. -I ../auxtools $(XFLAGS) + +-LIBOBJ = srch_strings.o ++LIBOBJ = srch_strings.o sigfind.o + LIBS = -L../../lib -ltsk + LIB = ../../lib/libtsk.a + diff --git a/app-forensics/sleuthkit/sleuthkit-2.08.ebuild b/app-forensics/sleuthkit/sleuthkit-2.08.ebuild new file mode 100644 index 000000000000..d972671582df --- /dev/null +++ b/app-forensics/sleuthkit/sleuthkit-2.08.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-forensics/sleuthkit/sleuthkit-2.08.ebuild,v 1.1 2007/04/11 22:20:06 falco Exp $ + +inherit toolchain-funcs eutils + +DESCRIPTION="A collection of file system and media management forensic analysis tools" +HOMEPAGE="http://www.sleuthkit.org/sleuthkit/" +SRC_URI="mirror://sourceforge/sleuthkit/${P}.tar.gz + dbtool? ( mirror://gentoo/${P}_dbtool.patch.bz2 ) " + +LICENSE="GPL-2 IBM" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86" +IUSE="dbtool" + +RDEPEND="dev-perl/DateManip + !sys-apps/dstat" + +src_unpack() { + unpack ${A} + use dbtool && epatch "${P}_dbtool.patch" + epatch "${FILESDIR}/${PN}-makefiles_fix.patch" + epatch "${FILESDIR}/${PN}-fscheck.c_fix.patch" + cd ${S} + sed -i '63,69d' src/timeline/config-perl || die "sed config-perl failed" + sed -i 's:`cd ../..; pwd`:/usr:' src/sorter/install \ + || die "sed install failed" +} + +src_compile() { + export CC="$(tc-getCC)" OPT="${CFLAGS}" + # Targets: this is so it doesn't remake sys-apps/file + # -j1: it really doesn't compile well with -j2 or more, + # even after having fixed the Makefiles... :( + env -u CFLAGS \ + emake -j1 -e bin no-perl sorter mactime || die "make failed" +} + +src_install() { + dobin bin/* || die "dobin failed" + dodoc docs/* + docinto api-doc + dohtml docs/api-doc/* + insinto /usr/share/sorter + doins share/sorter/* + doman man/man1/* +}