/[gentoo-x86]/app-forensics/sleuthkit/sleuthkit-2.09.ebuild
Gentoo

Contents of /app-forensics/sleuthkit/sleuthkit-2.09.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Fri Mar 2 05:58:01 2012 UTC (7 years, 11 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha89/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-forensics/sleuthkit/sleuthkit-2.09.ebuild,v 1.8 2011/07/24 18:22:23 armin76 Exp $
4
5 inherit toolchain-funcs eutils
6
7 DESCRIPTION="A collection of file system and media management forensic analysis tools"
8 HOMEPAGE="http://www.sleuthkit.org/sleuthkit/"
9 SRC_URI="mirror://sourceforge/sleuthkit/${P}.tar.gz
10 dbtool? ( mirror://gentoo/${P}_dbtool.patch.bz2 ) "
11
12 LICENSE="GPL-2 IBM"
13 SLOT="0"
14 KEYWORDS="amd64 hppa ppc x86"
15 IUSE="dbtool"
16
17 RDEPEND="dev-perl/DateManip"
18
19 src_unpack() {
20 unpack ${A}
21 cd ${S}
22 use dbtool && epatch "${WORKDIR}/${P}_dbtool.patch"
23 epatch "${FILESDIR}/${PN}-makefiles_fix.patch"
24 epatch "${FILESDIR}/${PN}-fscheck.c_fix.patch"
25 sed -i '63,69d' src/timeline/config-perl || die "sed config-perl failed"
26 sed -i 's:`cd ../..; pwd`:/usr:' src/sorter/install \
27 || die "sed install failed"
28 }
29
30 src_compile() {
31 export CC="$(tc-getCC)" OPT="${CFLAGS}"
32 # Targets: this is so it doesn't remake sys-apps/file
33 # -j1: it really doesn't compile well with -j2 or more,
34 # even after having fixed the Makefiles... :(
35 env -u CFLAGS \
36 emake -j1 -e bin no-perl sorter mactime || die "make failed"
37 }
38
39 src_install() {
40 dobin bin/* || die "dobin failed"
41 if has_version 'sys-apps/dstat' ; then
42 mv ${D}/usr/bin/dstat ${D}/usr/bin/dstat-dsk
43 echo
44 ewarn "You are installing sleuthkit while you have sys-apps/dstat"
45 ewarn "already installed."
46 ewarn "app-forensics/sleuthkit provides /usr/bin/dstat which is a tool"
47 ewarn "that displays details of a data structure, while sys-apps/dstat"
48 ewarn "provides /usr/bin/dstat as a system statistics tool."
49 echo
50 ewarn "The Sleuth Kit dstat binary has been renamed to"
51 ewarn "/usr/bin/dstat-tsk (see bug 131268). This may cause trouble with"
52 ewarn "applications using sleuthkit such as Autopsy. You may prefer"
53 ewarn "to unmerge sys-apps/dstat and re-emerge app-forensics/sleuthkit."
54 echo
55 fi
56 dodoc docs/*.txt
57 docinto api-doc
58 dohtml docs/api-doc/*
59 insinto /usr/share/sorter
60 doins share/sorter/*
61 doman man/man1/*
62 }

  ViewVC Help
Powered by ViewVC 1.1.20