blob: 00acdb1321394a20cec17effbe3536ff2a3aa4fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-forensics/sleuthkit/sleuthkit-2.01.ebuild,v 1.3 2005/04/28 19:46:33 config 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"
# mirror://gentoo/${P}_dbtool.patch.bz2"
LICENSE="GPL-2 IBM"
SLOT="0"
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86"
IUSE=""
RDEPEND="dev-lang/perl
dev-perl/DateManip
virtual/libc
sys-libs/zlib"
DEPEND="${RDEPEND}
>=sys-apps/sed-4
sys-devel/gcc"
src_unpack() {
unpack ${A}
# epatch ${P}_dbtool.patch || die "patch failed"
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"
if use amd64; then
epatch ${FILESDIR}/${P}-include_fix.patch
fi
}
src_compile() {
export CC="$(tc-getCC)" OPT="${CFLAGS}"
env -u CFLAGS \
emake -e no-perl sorter mactime || die "make failed"
}
# This is broken - bug report logged upstream. Maybe next version.
# The condition may need to check the output.
#
# Also this isn't a true test as it only checks if the files compile.
#
src_test() {
./check-install || die "test failed"
einfo '"file missing" is normal'
#if ! hasq userpriv FEATURES
# icat $(ls -i README.txt | cut -f1 -d ' ') (mount point of README.txt) | diff - README.txt || die "icat test failed"
#fi #TODO more work on later
}
src_install() {
dobin bin/* || die "dobin failed"
dodoc docs/*
insinto /usr/share/sorter
doins share/sorter/*
doman man/man1/*
}
|