Lines 6-14
Link Here
|
6 |
|
6 |
|
7 |
DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS" |
7 |
DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS" |
8 |
HOMEPAGE="http://www.snort.org/" |
8 |
HOMEPAGE="http://www.snort.org/" |
9 |
SRC_URI="http://www.snort.org/dl/current/${P}.tar.gz |
9 |
MY_P="${P}-0.9.0-rc1" |
|
|
10 |
MY_PRELUDE="${P}-prelude-0.9.0-rc1" |
11 |
SRC_URI="!prelude? ( http://www.snort.org/dl/current/${P}.tar.gz ) |
10 |
snortsam? ( mirror://gentoo/snortsam-20050110.tar.gz ) |
12 |
snortsam? ( mirror://gentoo/snortsam-20050110.tar.gz ) |
11 |
prelude? ( http://www.prelude-ids.org/download/releases/snort-prelude-reporting-patch-0.3.6.tar.gz ) |
13 |
prelude? ( http://www.prelude-ids.org/download/releases/${MY_P}.tar.gz ) |
12 |
sguil? ( mirror://sourceforge/sguil/sguil-sensor-0.5.3.tar.gz )" |
14 |
sguil? ( mirror://sourceforge/sguil/sguil-sensor-0.5.3.tar.gz )" |
13 |
|
15 |
|
14 |
# snortsam? ( http://www.snortsam.net/files/snort-plugin/snortsam-patch.tar.gz ) |
16 |
# snortsam? ( http://www.snortsam.net/files/snort-plugin/snortsam-patch.tar.gz ) |
Lines 29-35
Link Here
|
29 |
postgres? ( >=dev-db/postgresql-7.2 ) |
31 |
postgres? ( >=dev-db/postgresql-7.2 ) |
30 |
mysql? ( >=dev-db/mysql-3.23.26 ) |
32 |
mysql? ( >=dev-db/mysql-3.23.26 ) |
31 |
ssl? ( >=dev-libs/openssl-0.9.6b ) |
33 |
ssl? ( >=dev-libs/openssl-0.9.6b ) |
32 |
prelude? ( >=dev-libs/libprelude-0.8 ) |
34 |
prelude? ( >=dev-libs/libprelude-0.9.0_rc1 ) |
33 |
odbc? ( dev-db/unixODBC ) |
35 |
odbc? ( dev-db/unixODBC ) |
34 |
inline? ( |
36 |
inline? ( |
35 |
~net-libs/libnet-1.0.2a |
37 |
~net-libs/libnet-1.0.2a |
Lines 41-46
Link Here
|
41 |
selinux? ( sec-policy/selinux-snort ) |
43 |
selinux? ( sec-policy/selinux-snort ) |
42 |
snortsam? ( net-analyzer/snortsam )" |
44 |
snortsam? ( net-analyzer/snortsam )" |
43 |
|
45 |
|
|
|
46 |
if use prelude; then |
47 |
S="${WORKDIR}/${MY_PRELUDE}" |
48 |
fi |
49 |
|
44 |
src_unpack() { |
50 |
src_unpack() { |
45 |
unpack ${A} |
51 |
unpack ${A} |
46 |
cd ${S} |
52 |
cd ${S} |
Lines 54-65
Link Here
|
54 |
sed -i "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort:" \ |
60 |
sed -i "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort:" \ |
55 |
etc/snort.conf || die "sed snort.conf failed" |
61 |
etc/snort.conf || die "sed snort.conf failed" |
56 |
|
62 |
|
57 |
if use prelude ; then |
|
|
58 |
epatch ../snort-2.2.0-prelude-0.3.6.diff |
59 |
sed -i -e "s:AC_PROG_RANLIB:AC_PROG_LIBTOOL:" configure.in \ |
60 |
|| die "sed configure.in failed" |
61 |
fi |
62 |
|
63 |
if use sguil ; then |
63 |
if use sguil ; then |
64 |
cd ${S}/src/preprocessors |
64 |
cd ${S}/src/preprocessors |
65 |
epatch ${WORKDIR}/sguil-0.5.3/sensor/snort_mods/2_1/spp_portscan_sguil.patch || die |
65 |
epatch ${WORKDIR}/sguil-0.5.3/sensor/snort_mods/2_1/spp_portscan_sguil.patch || die |