blob: 74f0780bd15531d0e159c514883010fd2c1506c9 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/barnyard/barnyard-0.1.0.ebuild,v 1.3 2004/03/15 22:47:22 mboman Exp $
IUSE="mysql"
S=${WORKDIR}/${P}
DESCRIPTION="Fast output system for Snort"
SRC_URI="http://www.snort.org/dl/barnyard/barnyard-${PV}.tar.gz"
HOMEPAGE="http://www.snort.org"
SLOT="0"
LICENSE="QPL"
KEYWORDS="x86 ~sparc"
DEPEND="virtual/glibc
net-libs/libpcap
mysql? ( >=dev-db/mysql-3.23.26 )"
RDEPEND="${DEPEND}
net-analyzer/snort"
src_compile() {
local myconf
use mysql && myconf="${myconf} --enable-mysql" \
|| myconf="${myconf} --disable-mysql"
# ./configure \
# --prefix=/usr \
# --sysconfdir=/etc/snort \
# --localstatedir=/var \
# --mandir=/usr/share/man \
# --host=${CHOST} ${myconf} || die "bad ./configure"
econf --sysconfdir=/etc/snort ${myconf} || die "bad ./configure"
emake || die "compile problem"
}
src_install () {
make DESTDIR=${D} install || die
dodoc docs/*
dodoc AUTHORS COPYING LICENSE.QPL README
dodir /var/log/snort/archive
keepdir /var/log/snort
keepdir /var/log/snort/archive
insinto /etc/snort ; doins etc/barnyard.conf ; mv ${D}/etc/snort/barnyard.conf ${D}/etc/snort/barnyard.conf.dist
insinto /etc/conf.d ; newins ${FILESDIR}/barnyard.confd barnyard
insopts -m 755
insinto /etc/init.d ; newins ${FILESDIR}/barnyard.rc6 barnyard
}
|