blob: d717179f16ff1a37b21db54ec50ef9d28ff79a31 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snortalog/snortalog-2.3.0-r1.ebuild,v 1.6 2006/02/13 14:53:52 mcummings Exp $
inherit eutils
MY_P="${PN}_v${PV}"
DESCRIPTION="a powerful perl script that summarizes snort logs"
SRC_URI="http://jeremy.chartier.free.fr/${PN}/${MY_P}.tgz"
HOMEPAGE="http://jeremy.chartier.free.fr/snortalog/
tcltk? ( mirror://gentoo/${P}-fix-gui.diff.gz )"
KEYWORDS="~x86 ~ppc"
LICENSE="GPL-2"
SLOT="0"
IUSE="tcltk"
S="${WORKDIR}/${MY_P%.?}"
RDEPEND="dev-lang/perl
virtual/perl-Getopt-Long
virtual/perl-DB_File
dev-perl/HTML-HTMLDoc
tcltk? ( dev-perl/perl-tk
dev-perl/GDGraph )"
src_unpack() {
unpack ${MY_P}.tgz && cd ${S}
# one file created at a time ( pdf or html )
epatch ${FILESDIR}/${P}-limit-args.diff
use tcltk || epatch ${FILESDIR}/${PN}-notcltk.diff
use tcltk && epatch ${DISTDIR}/${P}-fix-gui.diff.gz
# fix paths, erroneous can access message
sed -i -e "s:\(modules/\):/usr/lib/snortalog/${PV}/\1:g" \
-e 's:\($domains_file = "\)\(domains\)\(".*\):\1/etc/snortalog/\2\3:' \
-e 's:\($rules_file = "\)\(rules\)\(".*\):\1/etc/snortalog/\2\3:' \
-e 's:\($hw_file = "\)\(hw\)\(".*\):\1/etc/snortalog/\2\3:' \
-e 's:\($lang_file = "\)\(lang\)\(".*\):\1/etc/snortalog/\2\3:' \
-e 's:Can access:Can not access:' \
snortalog.pl || die "sed snortalog.pl failed"
}
src_install () {
dobin snortalog.pl || die
insinto /etc/${PN}
doins domains hw lang rules
insinto /usr/lib/${PN}/${PV}/modules
doins modules/*
dodoc CHANGES README snortalog_v2.2.0.pdf
}
|