New version for sguil integration. Includes init.d and conf.d files
authorBenjamin Smee <strerror@gentoo.org>
Sat, 8 Oct 2005 13:48:01 +0000 (13:48 +0000)
committerBenjamin Smee <strerror@gentoo.org>
Sat, 8 Oct 2005 13:48:01 +0000 (13:48 +0000)
Package-Manager: portage-2.0.51.22-r3

net-analyzer/barnyard/ChangeLog
net-analyzer/barnyard/Manifest
net-analyzer/barnyard/barnyard-0.2.0-r1.ebuild [new file with mode: 0644]
net-analyzer/barnyard/files/digest-barnyard-0.2.0-r1 [new file with mode: 0644]
net-analyzer/sancp/Manifest [new file with mode: 0644]

index c92a82fdacb3cd0d62652521c6ca45d572ad6129..41a2c8fd6e0e72c1502abe57d25e50ef55c8071a 100644 (file)
@@ -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:
index 27b74e27d3f828e2a1837e1b233625ccde7d3830..61fe8a659726c1ae51822ca9c6e39af224500f14 100644 (file)
@@ -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 04900935e60d6ab34493ca1160bc3e2e barnyard-0.2.0-r1.ebuild 1950
+MD5 319801a4a4735aa68ceddb8d1c80e340 ChangeLog 1969
+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 (file)
index 0000000..39c3b39
--- /dev/null
@@ -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 (file)
index 0000000..19a66c8
--- /dev/null
@@ -0,0 +1 @@
+MD5 be3283028cf414b52b220308ceb411e9 barnyard-0.2.0.tar.gz 161543
diff --git a/net-analyzer/sancp/Manifest b/net-analyzer/sancp/Manifest
new file mode 100644 (file)
index 0000000..92adfc9
--- /dev/null
@@ -0,0 +1,6 @@
+MD5 dcbac3909ccb1f3db2270023669e8e4c sancp-1.6.1.ebuild 1406
+MD5 8f165305da87ad300f768c0f85985e2d ChangeLog 418
+MD5 277c9d1d9522b7e2519bd07c003dc700 metadata.xml 238
+MD5 5b34fcdc64bdbee4ab2ccaa57e72bc3e files/sancp.rc1 967
+MD5 d58263b185630aa4738adbd4d79e0cbb files/sancp.confd 275
+MD5 5a29e0856415b398e93b6aa72172fa50 files/digest-sancp-1.6.1 62