summaryrefslogtreecommitdiff
blob: 1d675dce012bac13f2861bc4158b2e71b4afde3c (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-forensics/airt/airt-0.4-r1.ebuild,v 1.1 2005/07/19 10:56:59 dragonheart Exp $

inherit linux-mod toolchain-funcs eutils

DESCRIPTION="AIRT(Advanced incident response tool) is a set of incident response assistant tools on linux platform."
HOMEPAGE="http://159.226.5.93/projects/airt.htm"
SRC_URI="http://159.226.5.93/projects/${P}.tar.bz2"

LICENSE="GPL-2"
KEYWORDS="~x86 -*"
IUSE=""
S=${WORKDIR}/${PN}
DEPEND="virtual/libc"

MODULE_NAMES="sock_hunter(:) process_hunter(:) mod_hunter(:) modumper(:${S}/mod_dumper)"
BUILD_PARAMS="KDIR=${KERNEL_DIR}"
BUILD_TARGETS="default"

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/${P}-kernelupdate.patch
	epatch ${FILESDIR}/${P}-dismod.patch
	sed -i -e "s|^CC.*|CC = $(tc-getCC) ${CFLAGS}|" -e "s/modumper:/default:/" \
		${S}/mod_dumper/Makefile
}

src_compile() {
	linux-mod_src_compile
	emake -C mod_dumper dismod || die
}


src_install() {
	linux-mod_src_install
	dosbin mod_dumper/dismod
	dosbin mod_dumper/dismod.pl
	dodoc CHANGELOG.txt README.txt TODO
}