Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307783 - net-analyzer/barnyard2-1.8 New Ebuild
Summary: net-analyzer/barnyard2-1.8 New 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: http://www.securixlive.com/barnyard2/
Whiteboard: sunrise-suggested
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2010-03-04 17:28 UTC by Jason Wallace
Modified: 2010-10-30 07:53 UTC (History)
2 users (show)

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


Attachments
barnyard2-1.7.ebuild (barnyard2-1.7.ebuild,3.31 KB, text/plain)
2010-03-04 17:29 UTC, Jason Wallace
Details
metadata.xml (metadata.xml,605 bytes, text/plain)
2010-03-04 17:30 UTC, Jason Wallace
Details
barnyard2.confd (barnyard2.confd,1.22 KB, text/plain)
2010-03-04 17:31 UTC, Jason Wallace
Details
barnyard2.initd (barnyard2.initd,793 bytes, text/plain)
2010-03-04 17:32 UTC, Jason Wallace
Details
barnyard2-1.8.ebuild (barnyard2-1.8.ebuild,3.54 KB, text/plain)
2010-03-08 15:04 UTC, Jason Wallace
Details
barnyard2.confd (barnyard2.confd,1.45 KB, text/plain)
2010-03-08 15:05 UTC, Jason Wallace
Details
barnyard2.initd (barnyard2.initd,796 bytes, text/plain)
2010-03-08 15:05 UTC, Jason Wallace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Wallace 2010-03-04 17:28:26 UTC
Barnyard2 is a replacement for the original Barnyard which is no longer maintained up stream. Barnyard2 is a tool to process Snort unified and unified2 logs and output alerts in various formats.

Reproducible: Always





The beginning of an ebuild for BY2 could be found at Bug #279019, however there were a number of issues with it. 

1. I removed snort as a dependency since snort is not required to build or run BY2. Although, most users will run BY2 and snort on the same box, there are a number of deployment configurations where this is not the case.

2. I removed options for sguil because I do not use it, it was not tested in the previous ebuild, there were some errors with the sguil related stuff, and most people use mysql and BASE.

3. The ebuild at the above bug used "use_enable" for mysql, odbc, and postgres. This works, but causes an error during ./configure. I switched this back to "use_with" which works, produces no error, and is consistent with the snort ebuild.

4. Moved barnyard2.conf.distrb from /etc/snort to /etc/barnyard. This is a more appropriate location, especially when running multiple instances of BY2.

5. Fixed the problem of "/etc/init.d/barnyard2 stop" not working. This is related to how BY2 handles PID files. See the ebuild and barnyard.confd for more info.

6. Added post install info regarding configuration and listing what output plugins are considered stable up stream.

7. Created metadata.xml file for the ebuild


I've been using this ebuild for a couple of months in production on x86 and amd64 boxes and have no issues to report.

The repoman has been paid...

# repoman full

RepoMan scours the neighborhood...
  ebuild.allmasked              1
   net-analyzer/barnyard2

Note: use --include-dev (-d) to check dependencies for 'dev' profiles

RepoMan sez: "You're only giving me a partial QA payment?
              I'll take it this time, but I'm not happy."
Comment 1 Jason Wallace 2010-03-04 17:29:53 UTC
Created attachment 222051 [details]
barnyard2-1.7.ebuild
Comment 2 Jason Wallace 2010-03-04 17:30:17 UTC
Created attachment 222053 [details]
metadata.xml
Comment 3 Jason Wallace 2010-03-04 17:31:36 UTC
Created attachment 222055 [details]
barnyard2.confd


Config file for /etc/conf.d
Comment 4 Jason Wallace 2010-03-04 17:32:19 UTC
Created attachment 222057 [details]
barnyard2.initd


barnyard2 /etc/init.d/ script.
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2010-03-06 12:24:55 UTC
Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Thanks,
On behalf of the Gentoo Sunrise Team,
Justin.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 6 Jason Wallace 2010-03-08 14:36:52 UTC
(In reply to comment #5)

I'll contact you offline regarding this.
Comment 7 Jason Wallace 2010-03-08 15:04:11 UTC
Version 1.8 was released for barnyard2. I'll upload the new ebuild, barnyard2.confd, and barnyard2.initd.

There are no major functionality changes from 1.7 to 1.8. I made some minor modifications to the ebuild, barnyard2.confd, and barnyard2.initd to reflect an upstream bug fix and to clarify some of the variables in barnyard2.confd.
Comment 8 Jason Wallace 2010-03-08 15:04:41 UTC
Created attachment 222675 [details]
barnyard2-1.8.ebuild
Comment 9 Jason Wallace 2010-03-08 15:05:06 UTC
Created attachment 222677 [details]
barnyard2.confd
Comment 10 Jason Wallace 2010-03-08 15:05:38 UTC
Created attachment 222679 [details]
barnyard2.initd
Comment 11 Jason Wallace 2010-03-08 15:17:48 UTC
Updated bug Summary from "net-analyzer/barnyard2-1.7 New Ebuild" to 

"net-analyzer/barnyard2-1.8 New Ebuild"
Comment 12 Patrick Lauer gentoo-dev 2010-03-16 21:26:02 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