/[gentoo-x86]/net-analyzer/barnyard2/barnyard2-1.9.ebuild
Gentoo

Contents of /net-analyzer/barnyard2/barnyard2-1.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Apr 2 12:54:23 2011 UTC (4 years, 4 months ago) by ssuominen
Branch: MAIN
Changes since 1.1: +2 -2 lines
Use net-libs/libpcap instead of virtual/libpcap wrt #358835.

(Portage version: 2.2.0_alpha29/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/barnyard2/barnyard2-1.9.ebuild,v 1.1 2011/02/15 19:06:02 patrick Exp $
4
5 EAPI="2"
6
7 DESCRIPTION="Parser for Snort unified/unified2 files"
8 HOMEPAGE="http://www.securixlive.com/barnyard2/"
9 SRC_URI="http://www.securixlive.com/download/barnyard2/${P}.tar.gz"
10 SLOT="0"
11 LICENSE="GPL-2"
12 KEYWORDS="~amd64 ~x86"
13 IUSE="static debug gre mpls mysql odbc postgres"
14
15 DEPEND="net-libs/libpcap
16 mysql? ( virtual/mysql )
17 postgres? ( dev-db/postgresql-server )
18 odbc? ( dev-db/unixODBC )"
19 RDEPEND="${DEPEND}"
20
21 src_prepare() {
22 sed -i -e "s:^#config interface:config interface:" \
23 "${WORKDIR}/${P}/etc/barnyard2.conf" || die
24 sed -i -e "s:^output alert_fast:#output alert_fast:" \
25 "${WORKDIR}/${P}/etc/barnyard2.conf" || die
26 }
27
28 src_configure() {
29 econf \
30 $(use_enable !static shared) \
31 $(use_enable static) \
32 $(use_enable debug) \
33 $(use_enable gre) \
34 $(use_enable mpls) \
35 $(use_with mysql) \
36 $(use_with odbc) \
37 $(use_with postgres postgresql) \
38 --disable-ipv6 \
39 --disable-prelude \
40 --disable-mysql-ssl-support \
41 --disable-aruba \
42 --without-tcl \
43 --without-oracle || die
44
45 emake || die
46 }
47
48 src_install () {
49 make DESTDIR="${D}" install || die
50 newconfd "${FILESDIR}/barnyard2.confd" barnyard2 || die
51 newinitd "${FILESDIR}/barnyard2.initd" barnyard2 || die
52 dodir /etc/barnyard2 \
53 /var/log/snort \
54 /var/log/snort/archive \
55 /var/log/barnyard2 || die
56 dodoc RELEASE.NOTES \
57 etc/barnyard2.conf \
58 doc/README* \
59 schemas/create_* || die
60 rm "${D}"/etc/barnyard2.conf || die
61 }
62
63 pkg_postinst() {
64 elog "Configuration options can be set in /etc/conf.d/barnyard2."
65 elog
66 elog "An example configuration file can be found in /usr/share/doc/${PF}."
67 }

  ViewVC Help
Powered by ViewVC 1.1.20