diff options
author | Benjamin Smee <strerror@gentoo.org> | 2005-10-08 13:48:01 +0000 |
---|---|---|
committer | Benjamin Smee <strerror@gentoo.org> | 2005-10-08 13:48:01 +0000 |
commit | e417c81c5235df1d8260e0f5970f4a417cf9cb8c (patch) | |
tree | 1a305de27e33c2a7c414444b93de2918829ad16d /net-analyzer/barnyard | |
parent | Version bumped. Added useflag nvram. (diff) | |
download | gentoo-2-e417c81c5235df1d8260e0f5970f4a417cf9cb8c.tar.gz gentoo-2-e417c81c5235df1d8260e0f5970f4a417cf9cb8c.tar.bz2 gentoo-2-e417c81c5235df1d8260e0f5970f4a417cf9cb8c.zip |
New version for sguil integration. Includes init.d and conf.d files
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'net-analyzer/barnyard')
-rw-r--r-- | net-analyzer/barnyard/ChangeLog | 8 | ||||
-rw-r--r-- | net-analyzer/barnyard/Manifest | 20 | ||||
-rw-r--r-- | net-analyzer/barnyard/barnyard-0.2.0-r1.ebuild | 76 | ||||
-rw-r--r-- | net-analyzer/barnyard/files/digest-barnyard-0.2.0-r1 | 1 |
4 files changed, 90 insertions, 15 deletions
diff --git a/net-analyzer/barnyard/ChangeLog b/net-analyzer/barnyard/ChangeLog index c92a82fdacb3..41a2c8fd6e0e 100644 --- a/net-analyzer/barnyard/ChangeLog +++ b/net-analyzer/barnyard/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/barnyard # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/barnyard/ChangeLog,v 1.10 2005/01/29 05:12:50 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/barnyard/ChangeLog,v 1.11 2005/10/08 13:48:01 strerror Exp $ + +*barnyard-0.2.0-r1 (08 Oct 2005) + + 08 Oct 2005; Benjamin Smee <strerror@gentoo.org> + +barnyard-0.2.0-r1.ebuild: + New version for sguil integration. Includes init.d and conf.d files 29 Jan 2005; Daniel Black <dragonheart@gentoo.org> barnyard-0.1.0.ebuild, barnyard-0.2.0.ebuild: diff --git a/net-analyzer/barnyard/Manifest b/net-analyzer/barnyard/Manifest index 27b74e27d3f8..f02b7c30e714 100644 --- a/net-analyzer/barnyard/Manifest +++ b/net-analyzer/barnyard/Manifest @@ -1,18 +1,10 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 1a32edbac7742ae0be0e912b28431765 ChangeLog 1787 -MD5 20781d966c89d732a0a2b0a8d7deadad barnyard-0.1.0.ebuild 1332 -MD5 17784ab6e148b4abf7f6aa2390ce1bce metadata.xml 223 MD5 76615f3cb9b609a11d3abf6d6abe1ec4 barnyard-0.2.0.ebuild 1228 -MD5 3e857c89ec58ac318ebd669e7f427908 files/barnyard.confd 556 +MD5 4221183b9026885b6e2c37cdd77a66da barnyard-0.2.0-r1.ebuild 1950 +MD5 5706a03e44c2742241b74f67d4dec688 ChangeLog 1972 +MD5 17784ab6e148b4abf7f6aa2390ce1bce metadata.xml 223 +MD5 20781d966c89d732a0a2b0a8d7deadad barnyard-0.1.0.ebuild 1332 +MD5 7393a1ed7bc62178acd52f2da6f01185 files/digest-barnyard-0.2.0-r1 66 MD5 d513768e805f1e68bce21b6cffcf846a files/barnyard.rc6 762 +MD5 3e857c89ec58ac318ebd669e7f427908 files/barnyard.confd 556 MD5 e1650eb517daf81cb0abb45eee02a727 files/digest-barnyard-0.1.0 66 MD5 7393a1ed7bc62178acd52f2da6f01185 files/digest-barnyard-0.2.0 66 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.0 (GNU/Linux) - -iD8DBQFB+xtamdTrptrqvGERArv1AJ9VtdTmH+DWTmmmx/JmafQjBx38GACfVWSn -+L4J0zEsjBdOmbQ2PjohBj4= -=TKMa ------END PGP SIGNATURE----- diff --git a/net-analyzer/barnyard/barnyard-0.2.0-r1.ebuild b/net-analyzer/barnyard/barnyard-0.2.0-r1.ebuild new file mode 100644 index 000000000000..39c3b398e452 --- /dev/null +++ b/net-analyzer/barnyard/barnyard-0.2.0-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/barnyard/barnyard-0.2.0-r1.ebuild,v 1.1 2005/10/08 13:48:01 strerror Exp $ + +DESCRIPTION="Fast output system for Snort" +SRC_URI="mirror://sourceforge/barnyard/barnyard-${PV/_/-}.tar.gz" +HOMEPAGE="http://www.snort.org/dl/barnyard/" + +SLOT="0" +LICENSE="QPL" +KEYWORDS="x86 -sparc" +IUSE="mysql postgres sguil" + +DEPEND="virtual/libc + virtual/libpcap + postgres? ( >=dev-db/postgresql-7.2 ) + mysql? ( >=dev-db/mysql-3.23.26 )" + +RDEPEND="${DEPEND} + net-analyzer/snort" + +S=${WORKDIR}/${P/_/-} + +src_compile() { + local myconf + + econf \ + --sysconfdir=/etc/snort \ + $(use_enable postgres) \ + $(use_enable mysql)|| die "bad ./configure" + emake || die "compile problem" +} + +src_install () { + + make DESTDIR=${D} install || die + + dodoc docs/* + dodoc AUTHORS README + + keepdir /var/log/snort + keepdir /var/log/snort/archive + + insinto /etc/snort + newins etc/barnyard.conf barnyard.conf + if use sguil ; then + sed -i -e "/config hostname:/s%snorthost%$(hostname)%" \ + -e "/config interface/s:fxp0:eth0:" \ + -e "s:output alert_fast:#output alert_fast:" \ + -e "s:output log_dump:#output log_dump:" \ + "${D}/etc/snort/barnyard.conf" || die "sed failed" + fi + + newconfd ${FILESDIR}/barnyard.confd barnyard + if use sguil ; then + sed -i -e s:/var/log/snort:/var/lib/sguil/$(hostname): \ + -e s:/var/run/barnyard.pid:/var/run/sguil/barnyard.pid: \ + "${D}/etc/conf.d/barnyard" || die "sed failed" + fi + + newinitd ${FILESDIR}/barnyard.rc6 barnyard + if use sguil ; then + sed -i -e "/start-stop-daemon --start/s:--exec:-c sguil --exec:" \ + "${D}/etc/init.d/barnyard" || die "sed failed" + fi +} + +pkg_postinst() { + if use sguil ; then + einfo + einfo "Make sure to edit /etc/snort/barnyard.conf and uncomment the" + einfo "sguil section along with supplying the appropriate database" + einfo "information." + einfo + fi +} diff --git a/net-analyzer/barnyard/files/digest-barnyard-0.2.0-r1 b/net-analyzer/barnyard/files/digest-barnyard-0.2.0-r1 new file mode 100644 index 000000000000..19a66c8dc37b --- /dev/null +++ b/net-analyzer/barnyard/files/digest-barnyard-0.2.0-r1 @@ -0,0 +1 @@ +MD5 be3283028cf414b52b220308ceb411e9 barnyard-0.2.0.tar.gz 161543 |