ChangeLog

# ChangeLog for net-analyzer/barnyard
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/barnyard/ChangeLog,v 1.20 2008/08/04 19:11:03 jer Exp $

04 Aug 2008; Jeroen Roovers metadata.xml:
Describe local USE flags for GLEP 56.

21 May 2008; Tiziano Müller
barnyard-0.2.0-r1.ebuild, barnyard-0.2.0-r2.ebuild:
Changed dependency for postgresql from dev-db/postgresql to
virtual/postgresql-server

05 Dec 2007; Markus Ullmann barnyard-0.2.0-r2.ebuild:
Fix some autotools mess, quotes, bugs 199118 and bug 199119, thanks to jakub
for providing the patch

01 May 2007; Marius Mauch barnyard-0.2.0-r1.ebuild,
barnyard-0.2.0-r2.ebuild:
Replacing einfo with elog

23 Nov 2006; Francesco Riosa barnyard-0.2.0-r1.ebuild,
barnyard-0.2.0-r2.ebuild:
dev-db/mysql => virtual/mysql

23 Jul 2006; Marcelo Goes -barnyard-0.1.0.ebuild,
-barnyard-0.2.0.ebuild:
Remove old ebuilds.

15 Feb 2006; Markus Ullmann barnyard-0.1.0.ebuild,
barnyard-0.2.0.ebuild, barnyard-0.2.0-r1.ebuild, barnyard-0.2.0-r2.ebuild:
Removing virtual/libpcap wrt bug #117898

28 Jan 2006; Marcelo Goes
-files/0.2.0-configure-in.patch.gz, -files/0.2.0-op_plugbase.c.patch.gz,
-files/0.2.0-sguil_files.patch.gz, barnyard-0.2.0-r2.ebuild:
Move patches to mirrors for bug 120670.

*barnyard-0.2.0-r2 (24 Dec 2005)

24 Dec 2005; Benjamin Smee
+files/0.2.0-configure-in.patch.gz, +files/0.2.0-op_plugbase.c.patch.gz,
+files/0.2.0-sguil_files.patch.gz, +barnyard-0.2.0-r2.ebuild:
Added patches and support for new version of sguil

*barnyard-0.2.0-r1 (08 Oct 2005)

08 Oct 2005; Benjamin Smee
+barnyard-0.2.0-r1.ebuild:
New version for sguil integration. Includes init.d and conf.d files

29 Jan 2005; Daniel Black barnyard-0.1.0.ebuild,
barnyard-0.2.0.ebuild:
changed net-libs/libpcap depend to virtual/libcap

22 Jan 2005; Jason Wever barnyard-0.1.0.ebuild,
barnyard-0.2.0.ebuild:
Masked on sparc as snort is now masked on sparc.

09 Jul 2004; Eldad Zack barnyard-0.1.0.ebuild,
barnyard-0.2.0.ebuild, -barnyard-0.2.0_rc1.ebuild:
Purged 0.2.0_rc1, 0.2.0 marked x86 stable

09 Jul 2004; Eldad Zack barnyard-0.1.0.ebuild:
Tidy up, fixed mysql issue (#47026). Thanks to Ryu
and Devon

01 Jul 2004; Jon Hood barnyard-0.1.0.ebuild,
barnyard-0.2.0.ebuild, barnyard-0.2.0_rc1.ebuild:
change virtual/glibc to virtual/libc

*barnyard-0.2.0 (19 May 2004)

19 May 2004; Michael Boman +barnyard-0.2.0.ebuild:
New upstream version

*barnyard-0.2.0_rc1 (29 Mar 2004)

29 Mar 2004; Michael Boman barnyard-0.2.0_rc1.ebuild,
files/barnyard.confd:
New upstream version. Put more variables (less hardcoding) in barnyard.confd.

21 Mar 2004; Michael Boman barnyard-0.1.0.ebuild:
QA: Unnecessary definition of S removed.

16 Mar 2004; Michael Boman barnyard-0.1.0.ebuild:
Marked 0.1.0 stable on x86

*barnyard-0.1.0 (09 Aug 2003)

09 Aug 2003; barnyard-0.1.0.ebuild, metadata.xml,
files/barnyard.confd, files/barnyard.rc6:
Initial import of barnyard to portage

Manifest

AUX barnyard.confd 556 RMD160 2a15cf57a6d84a4bf4f6c5e73484ec3326d76a87 SHA1 a1e0f5df4accdfb84a349e51495bd55555d48982 SHA256 c4a2630d75d6d172db5d715f2c189b36e25804d1ed8b26ff949afd4773159fdd
AUX barnyard.rc6 736 RMD160 f220e64045bf9bb7ad0727541dd62c97ee219163 SHA1 246ffedd0b9bbef4e8e7eb9eaabfa8a84d46b2a5 SHA256 fddb7073e955140bab50376c7b3f926bd85df209a8117341fa5491ab967cdec8
DIST barnyard-0.2.0-patches.tar.bz2 12911 RMD160 5d38251e4b1198d9d4a4cbc535a3b89ac4bf1a04 SHA1 ff6aed111817469e8bffecc92a26bf27a6105c52 SHA256 cecc0c983899d12ae217232e2cd34d86e780b4be34ac36ccb3f73a1b954ea6f0
DIST barnyard-0.2.0.tar.gz 161543 RMD160 b5e10dc3cbfe1a73f56e893544722e2771ecf0f3 SHA1 4adfcabb2702def5a9a6c68cbde1b90a70f7e67a SHA256 09e0f8e095e79cfe70ea069d13e7d02521a504a1f400a45556a634dccfd31a3a
EBUILD barnyard-0.2.0-r1.ebuild 1945 RMD160 1af8b2d8598d9ea24e8c68b43b288c0e72abd213 SHA1 0f58439ec3cbe9d2163e4f30bd1d2d0ca1a71a5c SHA256 00040b48a8fb4bff17c3cd86fea5879abbbeb11561db846111a279d7f8211be9
EBUILD barnyard-0.2.0-r2.ebuild 2354 RMD160 7c19058c335df97a8e9f5addd552ef1d11ea73a3 SHA1 94b4a9b314a4fd81e8e20e272d611e8f55b822f5 SHA256 dae17307bedffe549786cd6c41676450904ddd4aae4c1966eec44c84d13d0aa7
MISC ChangeLog 3541 RMD160 324e5b7e5e224a08e8187b2190f99db3ac40a4c0 SHA1 fca33f0586fc16eaa5de9276fcf0691aca4881ee SHA256 cfe9b22db1094a9550cd28cf019b568e5746484713e2947e24da56c81bda44da
MISC metadata.xml 337 RMD160 d4d853cf2b8d812592721dff9f9a555379b4979e SHA1 5ac7c9b0902f4d5964dcae0c0dd92dcd7652d688 SHA256 3cffd59961c4b14afdb04bee33ab328cea8c349acde0ea9e408d87d360f2067c

barnyard-0.2.0-r1.ebuild

# Copyright 1999-2008 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.5 2008/05/21 18:46:22 dev-zero 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
net-libs/libpcap
postgres? ( >=virtual/postgresql-server-7.2 )
mysql? ( virtual/mysql )"

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
elog
elog "Make sure to edit /etc/snort/barnyard.conf and uncomment the"
elog "sguil section along with supplying the appropriate database"
elog "information."
elog
fi
}

barnyard-0.2.0-r2.ebuild

# Copyright 1999-2008 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-r2.ebuild,v 1.7 2008/05/21 18:46:22 dev-zero Exp $

WANT_AUTOMAKE="1.4"
inherit eutils autotools

DESCRIPTION="Fast output system for Snort"
HOMEPAGE="http://www.snort.org/dl/barnyard/"
SRC_URI="mirror://sourceforge/barnyard/barnyard-${PV/_/-}.tar.gz
mirror://gentoo/${P}-patches.tar.bz2"

SLOT="0"
LICENSE="QPL"
KEYWORDS="~x86 -sparc"
IUSE="mysql postgres sguil"

DEPEND="net-libs/libpcap
postgres? ( >=virtual/postgresql-server-7.2 )
mysql? ( virtual/mysql )
sguil? ( dev-lang/tcl )"

RDEPEND="${DEPEND}
net-analyzer/snort"

S="${WORKDIR}/${P/_/-}"

src_unpack() {
unpack ${A}
cd "${S}"

if use sguil ; then
epatch "${WORKDIR}/${PV}-sguil_files.patch"
epatch "${WORKDIR}/${PV}-configure-in.patch"
cd "${S}/src/output-plugins"
epatch "${WORKDIR}/${PV}-op_plugbase.c.patch"
cd "${S}"
eautoreconf
fi
}

src_compile() {
local myconf
if use sguil ; then
myconf="--enable-tcl"
fi

econf \
${myconf} \
--sysconfdir=/etc/snort \
$(use_enable postgres) \
$(use_enable mysql)
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
elog
elog "Make sure to edit /etc/snort/barnyard.conf and uncomment the"
elog "sguil section along with supplying the appropriate database"
elog "information."
elog
fi
}

files

metadata.xml




netmon
Fast output system for Snort

Enable sguil (The Analyst Console for Network Security
Monitoring) support