Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279019 - Request for barnyard2 ebuild
Summary: Request for barnyard2 ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-25 09:53 UTC by Fabio Scaccabarozzi
Modified: 2010-03-16 21:25 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-analyzer/barnyard2 ebuild (barnyard2-1.6.ebuild,2.67 KB, text/plain)
2009-07-25 09:53 UTC, Fabio Scaccabarozzi
Details
fix compile issue for 1.6 (platypus-fix-inet_ntop.patch,1.66 KB, patch)
2009-07-25 09:54 UTC, Fabio Scaccabarozzi
Details | Diff
barnyard2 default /etc/conf.d/ file (barnyard2.confd,729 bytes, text/plain)
2009-07-25 09:54 UTC, Fabio Scaccabarozzi
Details
barnyard2 default rc script (barnyard2.rc6,741 bytes, text/plain)
2009-07-25 09:55 UTC, Fabio Scaccabarozzi
Details
ebuild for 1.7 (barnyard2-1.7.ebuild.tar.gz,3.21 KB, text/plain)
2009-12-08 11:15 UTC, Han Boetes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Scaccabarozzi 2009-07-25 09:53:28 UTC
Barnyard2 (http://www.securixlive.com/barnyard2/index.php) is the successor of net-analyzer/barnyard, which is not mantained at least from mid-2004. Barnyard2 aims at improving barnyard itself, while also supporting unified2 output format (available from >snort-2.8) and many more output plugins. I have taken barnyard ebuild and modified it accordingly.
For version 1.6 (which is the current stable) I had to write a patch (already filed to upstream for inclusion in 1.7) to fix compilation issues. There are a lot of warnings when compiling with gcc-4.3 and the devs are already working on it.
Barnyard2 also supports privilege dropping. I've defaulted to snort:snort in the default config file to allow access to snort logs (with the default configuration).
Currently the only true problem is that when daemonized it doesn't stop when asked to: "rc-config stop barnyard2" says "ok", but then issuing "rc-config start barnyard2" fails with error ("cannot start barnyard2"), pgrep shows barnyard2 is still running. I'll file the link to this bug to the devs to help the bug-hunting process.
Due to the current problems I'd suggest hardmasking until 1.7 is out.
I'm attaching the ebuild, the compile fix and the two rc-files.

Reproducible: Always
Comment 1 Fabio Scaccabarozzi 2009-07-25 09:53:56 UTC
Created attachment 199090 [details]
net-analyzer/barnyard2 ebuild
Comment 2 Fabio Scaccabarozzi 2009-07-25 09:54:22 UTC
Created attachment 199091 [details, diff]
fix compile issue for 1.6
Comment 3 Fabio Scaccabarozzi 2009-07-25 09:54:43 UTC
Created attachment 199092 [details]
barnyard2 default /etc/conf.d/ file
Comment 4 Fabio Scaccabarozzi 2009-07-25 09:55:56 UTC
Created attachment 199094 [details]
barnyard2 default rc script

not tested with sguil
Comment 5 Han Boetes 2009-12-08 11:15:29 UTC
Created attachment 212443 [details]
ebuild for 1.7

I just created a somewhat cleaned up version for this ebuild, packed up in a tarball to make life easier.
Comment 6 Jason Wallace 2010-03-04 17:34:05 UTC
Please see Bug #307783 for an updated and fully working ebuild.
Comment 7 Patrick Lauer gentoo-dev 2010-03-16 21:25:58 UTC
+  16 Mar 2010; Patrick Lauer <patrick@gentoo.org> +files/barnyard2.confd,
+  +files/barnyard2.initd, +barnyard2-1.8.ebuild, +metadata.xml:
+  Initial import. Ebuild by Jason Wallace based on work by Fabio
+  Scaccabarozzi and Han Boetes . Closes #279019 and #307783