diff options
author | Ned Ludd <solar@gentoo.org> | 2003-08-10 01:24:00 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2003-08-10 01:24:00 +0000 |
commit | 8c6129b40d29751884c77bbc0f87de43d6102a96 (patch) | |
tree | d9ed3d0f889242a23041aebbc094a04a9f1067b3 /net-analyzer/barnyard | |
parent | Initial import of barnyard to portage (diff) | |
download | gentoo-2-8c6129b40d29751884c77bbc0f87de43d6102a96.tar.gz gentoo-2-8c6129b40d29751884c77bbc0f87de43d6102a96.tar.bz2 gentoo-2-8c6129b40d29751884c77bbc0f87de43d6102a96.zip |
Initial import of barnyard to portage
Diffstat (limited to 'net-analyzer/barnyard')
-rw-r--r-- | net-analyzer/barnyard/ChangeLog | 10 | ||||
-rw-r--r-- | net-analyzer/barnyard/Manifest | 6 | ||||
-rw-r--r-- | net-analyzer/barnyard/barnyard-0.1.0.ebuild | 55 | ||||
-rw-r--r-- | net-analyzer/barnyard/files/barnyard.confd | 13 | ||||
-rw-r--r-- | net-analyzer/barnyard/files/barnyard.rc6 | 30 | ||||
-rw-r--r-- | net-analyzer/barnyard/files/digest-barnyard-0.1.0 | 1 | ||||
-rw-r--r-- | net-analyzer/barnyard/metadata.xml | 10 |
7 files changed, 123 insertions, 2 deletions
diff --git a/net-analyzer/barnyard/ChangeLog b/net-analyzer/barnyard/ChangeLog new file mode 100644 index 000000000000..deaed1bf5c70 --- /dev/null +++ b/net-analyzer/barnyard/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-analyzer/barnyard +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/barnyard/ChangeLog,v 1.1 2003/08/10 01:23:54 solar Exp $ + +*barnyard-0.1.0 (09 Aug 2003) + + 09 Aug 2003; <solar@gentoo.org> barnyard-0.1.0.ebuild, metadata.xml, + files/barnyard.confd, files/barnyard.rc6: + Initial import of barnyard to portage + diff --git a/net-analyzer/barnyard/Manifest b/net-analyzer/barnyard/Manifest index c4d5db290f59..b83e4ef4cb0e 100644 --- a/net-analyzer/barnyard/Manifest +++ b/net-analyzer/barnyard/Manifest @@ -1,4 +1,6 @@ -MD5 46afd02f0e82d1761138c9625698ac78 barnyard-0.1.0.ebuild 1340 +MD5 2d0c1a5e26758f9b0aaf0e81b8170c28 barnyard-0.1.0.ebuild 1437 +MD5 0d037cb1053137451bf1e047d87b8e8c metadata.xml 499 +MD5 df1808fc6437d05798e6031a6b6ce678 ChangeLog 410 MD5 f2180306ab489100fe8729115dc23942 files/barnyard.confd 435 -MD5 dcf5edf27aaa1611f02554af03f6e08a files/barnyard.rc6 773 +MD5 c867a64f4ea4f977b7ebe07c3c039058 files/barnyard.rc6 778 MD5 e1650eb517daf81cb0abb45eee02a727 files/digest-barnyard-0.1.0 66 diff --git a/net-analyzer/barnyard/barnyard-0.1.0.ebuild b/net-analyzer/barnyard/barnyard-0.1.0.ebuild new file mode 100644 index 000000000000..dea61cb6de4d --- /dev/null +++ b/net-analyzer/barnyard/barnyard-0.1.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2002 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.1 2003/08/10 01:23:54 solar 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 +} diff --git a/net-analyzer/barnyard/files/barnyard.confd b/net-analyzer/barnyard/files/barnyard.confd new file mode 100644 index 000000000000..81c28ed75fea --- /dev/null +++ b/net-analyzer/barnyard/files/barnyard.confd @@ -0,0 +1,13 @@ +# Config file for /etc/init.d/barnyard + +PIDFILE="/var/run/barnyard.pid" + +# You probably don't want to change this, but in case you do +LOGDIR="/var/log/snort" +ARCHIVEDIR="$LOGDIR/archive" + +# Probably not this either +CONF=/etc/snort/barnyard.conf + +# This pulls in the options above +BARNYARD_OPTS="-c $CONF -d $LOGDIR -g /etc/snort/gen-msg.map -s /etc/snort/sid-msg.map -w $LOGDIR/barnyard.waldo -L $LOGDIR -a $ARCHIVEDIR -f snort.alert" diff --git a/net-analyzer/barnyard/files/barnyard.rc6 b/net-analyzer/barnyard/files/barnyard.rc6 new file mode 100644 index 000000000000..81e1e88e8289 --- /dev/null +++ b/net-analyzer/barnyard/files/barnyard.rc6 @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/barnyard/files/barnyard.rc6,v 1.1 2003/08/10 01:23:54 solar Exp $ + +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/snort/barnyard.conf ] ; then + eerror "You need an /etc/snort/barnyard.conf to run barnyard" + eerror "There is an example config in /etc/snort/barnyard.conf.distrib" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting barnyard" + start-stop-daemon --start --quiet --exec /usr/bin/barnyard \ + -- ${BARNYARD_OPTS} >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping barnyard" + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} + eend $? +} diff --git a/net-analyzer/barnyard/files/digest-barnyard-0.1.0 b/net-analyzer/barnyard/files/digest-barnyard-0.1.0 new file mode 100644 index 000000000000..68ae4b174f80 --- /dev/null +++ b/net-analyzer/barnyard/files/digest-barnyard-0.1.0 @@ -0,0 +1 @@ +MD5 d2e1318424c2cd224c3d39896b473a20 barnyard-0.1.0.tar.gz 135599 diff --git a/net-analyzer/barnyard/metadata.xml b/net-analyzer/barnyard/metadata.xml new file mode 100644 index 000000000000..bb361c7c32ae --- /dev/null +++ b/net-analyzer/barnyard/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>hardened</herd> + <maintainer> + <email>mboman@gentoo.org</email> + <description>Primary Maintainer</description> + </maintainer> + <longdescription>Unified alert/log spool reader and output handler for Snort! This program decouples output overhead from the Snort network intrusion detection system and allows Snort to run at full speed.</longdescription> +</pkgmetadata> |