blob: b7d67e2f2f3824bce1c4bd515b7e8ce842b9894b (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snorticus/snorticus-1.0.4.ebuild,v 1.3 2003/09/05 23:40:10 msterret Exp $
DESCRIPTION="Snorticus is a collection of shell scripts designed to allow easy
managment of Snort sensors."
HOMEPAGE="http://snorticus.baysoft.net/"
SRC_URI="http://snorticus.baysoft.net/snorticus/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RDEPEND="virtual/glibc
net-analyzer/snort
net-analyzer/snortsnarf
sys-apps/sh-utils
net-misc/openssh"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd ${S}
patch -p0 < ${FILESDIR}/${P}-gentoo.patch || die
}
src_compile() {
return 0
}
src_install () {
dodoc COPYING
dohtml snorticus.html
dodir /etc/snort/addons/
dodir /usr/lib/snort/addons/snorticus/
insinto /usr/lib/snort/addons/snorticus
doins hourly_wrapup.sh push_rules.sh retrieve_wrapup.sh
dodir /home/httpd/htdocs/snorticus
dosym /home/httpd/htdocs/snorticus /usr/lib/snort/addons/snorticus/LOGS
}
src_postinst() {
einfo 'Add the following into a cronjob somewhere for a sensor box.'
einfo ''
einfo '01 * * * * /usr/lib/snort/addons/snorticus/hourly_wrapup.sh > /dev/null 2>&1'
einfo ''
einfo 'Add the following into a cronjob somewhere for an analyst box.'
einfo ''
einfo '15 * * * * /usr/lib/snort/addons/snorticus/retrieve_wrapup.sh MySite1 mysensor.blah.blah > /dev/null 2>&1'
}
|