summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/barnyard/barnyard-0.2.0_rc1.ebuild')
-rw-r--r--net-analyzer/barnyard/barnyard-0.2.0_rc1.ebuild49
1 files changed, 49 insertions, 0 deletions
diff --git a/net-analyzer/barnyard/barnyard-0.2.0_rc1.ebuild b/net-analyzer/barnyard/barnyard-0.2.0_rc1.ebuild
new file mode 100644
index 000000000000..45d2f4de0a17
--- /dev/null
+++ b/net-analyzer/barnyard/barnyard-0.2.0_rc1.ebuild
@@ -0,0 +1,49 @@
+# 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.2.0_rc1.ebuild,v 1.1 2004/03/29 12:26:53 mboman Exp $
+
+IUSE="mysql"
+
+DESCRIPTION="Fast output system for Snort"
+SRC_URI="mirror://sourceforge/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"
+
+S=${WORKDIR}/${P/_/-}
+
+src_compile() {
+ local myconf
+
+ use mysql && myconf="${myconf} --enable-mysql" \
+ || myconf="${myconf} --disable-mysql"
+
+ 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
+}