blob: f994b8b046b6df6148a460b3d6f90d77dceafb93 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snortsnarf/snortsnarf-021111.1-r4.ebuild,v 1.1 2005/02/18 11:08:58 ka0ttic Exp $
inherit eutils webapp
MY_P="${P//s/S}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Snort Snarf parses Snort log files, and converts them into easy-to-read HTML files."
HOMEPAGE="http://www.silicondefense.com/software/snortsnarf/"
SRC_URI="http://www.silicondefense.com/software/snortsnarf/${MY_P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~x86 ~ppc"
IUSE=""
RDEPEND="dev-lang/perl
dev-perl/Time-modules
dev-perl/XML-Parser"
DEPEND="${RDEPEND}
>=sys-apps/sed-4.0.7"
src_unpack() {
unpack ${A}
cd ${S}
sed -i 's:"snort.alert":"snort".$dirsep."alert":g' snortsnarf.pl \
|| die "sed snortsnarf.pl failed"
epatch ${FILESDIR}/${P}-fix-array-refs.diff
epatch ${FILESDIR}/${P}-usage.patch
}
src_install() {
webapp_src_preinst
PERL_V=$( perl '-V:version' | awk -F "'" '{print $2}' )
dodoc Usage COPYING Changes README README.SISR README.nmap2html \
new-annotation-base.xml
dobin snortsnarf.pl nmap2html/log2db.pl nmap2html/nmap2html.pl \
nmap2html/nmaplog-dns.pl utilities/*
dodir ${MY_CGIBINDIR}/snortsnarf/
insinto ${MY_CGIBINDIR}/snortsnarf/
doins cgi/*
dodir /usr/lib/perl5/site_perl/$PERL_V/SnortSnarf
cp -a include/* ${D}/usr/lib/perl5/site_perl/$PERL_V
webapp_src_install
}
pkg_postinst() {
webapp_pkg_postinst
setup_anns_dir.pl /var/log/snortsnarf
}
|