summaryrefslogtreecommitdiff
blob: ce3e4a2d8d42d246a3e5040b70da69480d1735c9 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Your Name <your email>
# $Header: /var/cvsroot/gentoo-x86/net-misc/snort/snort-1.6.3-r2.ebuild,v 1.3 2001/05/09 04:28:00 achim Exp $

#P=
A="${P}.tar.gz"
S=${WORKDIR}/${P}
DESCRIPTION="Libpcap packet sniffer/logger/lightweight IDS"
SRC_URI="http://www.snort.org/Files/${A}"
HOMEPAGE="http://www.snort.org"

DEPEND=">=net-libs/libpcap-0.5.2
        >=dev-db/mysql-3.23.26"

RDEPEND=">=dev-db/mysql-3.23.26"

src_compile() {

    cd ${S}
    try ./configure --prefix=/usr --host=${CHOST} \
         --enable-smbalerts --enable-pthreads \
         --with-mysql-includes=/usr/include/mysql \
        --with-mysql-libraries=/usr/lib/mysql
    try make

}

src_install () {

    cd ${S}
    try make DESTDIR=${D} install
    insinto /usr/lib/snort/bin
    doins contrib/create_mysql contrib/*.pl contrib/snortlog
    dodoc AUTHORS BUGS ChangeLog COPYING CREDITS NEWS README.*
    dodoc RULES.SAMPLE USAGE contrib/pgsql.php3
}