notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)

Current status

The server has been repaired, with a new power supply, for $23. I am waiting for lower COVID rates before visiting the datacenter to return it.
Port details
barnyard2 Interpreter for Snort unified2 binary output files
1.13_6 security on this many watch lists=5 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 1.13_6Version of this port present on the latest quarterly branch.
Maintainer: bofh@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2009-09-09 01:43:05
Last Update: 2021-04-07 08:09:01
Commit Hash: cf118cc
People watching this port, also watch:: snort, autoconf-wrapper, py37-subversion, openvpn, net-snmp
License: GPLv2
Description:
SVNWeb : git : Homepage
pkg-plist: as obtained via: make generate-plist
Expand this list (22 items)
Collapse this list.
  1. /usr/local/share/licenses/barnyard2-1.13_6/catalog.mk
  2. /usr/local/share/licenses/barnyard2-1.13_6/LICENSE
  3. /usr/local/share/licenses/barnyard2-1.13_6/GPLv2
  4. bin/barnyard2
  5. @sample etc/barnyard2.conf.sample
  6. share/doc/barnyard2/INSTALL
  7. share/doc/barnyard2/README
  8. share/doc/barnyard2/README.aruba
  9. share/doc/barnyard2/README.database
  10. share/doc/barnyard2/README.sguil
  11. share/doc/barnyard2/README.sig_suppress
  12. share/doc/barnyard2/README.snortsam
  13. share/doc/barnyard2/RELEASE.NOTES
  14. share/examples/barnyard2/SCHEMA_ACCESS
  15. share/examples/barnyard2/create_db2
  16. share/examples/barnyard2/create_mssql
  17. share/examples/barnyard2/create_mysql
  18. share/examples/barnyard2/create_oracle.sql
  19. share/examples/barnyard2/create_postgresql
  20. @owner
  21. @group
  22. @mode
Collapse this list.
Dependency lines:
  • barnyard2>0:security/barnyard2
To install the port: cd /usr/ports/security/barnyard2/ && make install clean
To add the package: pkg install barnyard2
PKGNAME: barnyard2
Flavors: there is no flavor information for this port.
distinfo:
Packages: (move your mouse over the cells for more information)
barnyard2
ABIlatestquarterly
FreeBSD:11:aarch641.13_11.13_4
FreeBSD:11:amd641.13_61.13_6
FreeBSD:11:armv61.131.13_4
FreeBSD:11:i3861.13_61.13_6
FreeBSD:11:mips1.131.13_4
FreeBSD:11:mips641.131.13_4
FreeBSD:12:aarch641.13_11.13_6
FreeBSD:12:amd641.13_61.13_6
FreeBSD:12:armv61.13_11.13_4
FreeBSD:12:armv71.13_11.13_4
FreeBSD:12:i3861.13_61.13_6
FreeBSD:12:mips1.13_11.13_4
FreeBSD:12:mips641.13_11.13_4
FreeBSD:12:powerpc64-1.13_6
FreeBSD:13:aarch641.13_41.13_6
FreeBSD:13:amd641.13_61.13_6
FreeBSD:13:armv61.13_41.13_6
FreeBSD:13:armv71.13_41.13_6
FreeBSD:13:i3861.13_61.13_6
FreeBSD:13:mips1.13_4-
FreeBSD:13:mips641.13_41.13_4
FreeBSD:13:powerpc641.13_41.13_6
FreeBSD:14:aarch641.13_6-
FreeBSD:14:amd641.13_6-
FreeBSD:14:armv61.13_6-
FreeBSD:14:armv71.13_6-
FreeBSD:14:i3861.13_6-
FreeBSD:14:mips--
FreeBSD:14:mips641.13_6-
FreeBSD:14:powerpc641.13_6-
 

Slave ports:
  1. security/barnyard2-sguil

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. autoconf>=2.69 : devel/autoconf
  2. automake>=1.16.1 : devel/automake
  3. libtoolize : devel/libtool
This port is required by:
for Run
  1. security/snort

Configuration Options:
Options name:

USES:

pkg-message:
If installing:
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/firnsy/barnyard2/tar.gz/v2-1.13?dummy=/
Collapse this list.

Number of commits found: 54

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
07 Apr 2021 08:09:01
 files touched by this commit commit hash:cf118ccf875508b9a1c570044c93cfcc82bd455c  1.13_6
mat search for other commits by this committer
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
06 Apr 2021 14:31:13
 files touched by this commit commit hash:135fdeebb99c3569e42d8162b265e15d29bd937d  1.13_6
mat search for other commits by this committer
all: Remove all other $FreeBSD keywords.
06 Apr 2021 14:31:07
 files touched by this commit commit hash:305f148f482daf30dcf728039d03d019f88344eb  1.13_6
mat search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
26 Jan 2021 22:42:25
Original commit files touched by this commit Revision:563007  1.13_6
bofh search for other commits by this committer
security/barnyard2: Remove reference of stale documentation

PR:		251625
Submitted by:	danmcgrath.ca@gmail.com
02 Jan 2021 14:46:45
Original commit files touched by this commit Revision:559948  1.13_4
rene search for other commits by this committer
security/barnyard2: remove optional dependency on expired security/broccoli
15 Nov 2019 10:12:08
Original commit files touched by this commit Revision:517643  1.13_4
tobik search for other commits by this committer
Move remaining USE_MYSQL, WANT_MYSQL_VER to USES=mysql
05 Oct 2019 10:51:34
Original commit files touched by this commit Revision:513827  1.13_4
tobik search for other commits by this committer
security/barnyard2: Cleanup

- Drop nop WANT_PGSQL_VER
- Spell TCL_DESC correctly (there is no OPTIONS_DESC)
- No need to include bsd.port.options.mk in this port
18 Sep 2019 09:29:54
Original commit files touched by this commit Revision:512264  1.13_4
tobik search for other commits by this committer
security/barnyard2: Spell ODBC_CONFIGURE_WITH correctly

The option now actually activates the ODBC code paths but the port
fails to build with it.  The code seems to lack full support for
it in a couple of places, so mark the ODBC option as broken for
now.

spo_database.c:3547:3: error: use of undeclared identifier 'result'
result = 0;
^
spo_database.c:3841:41: warning: incompatible pointer types passing 'SQLINTEGER
*' (aka 'int *') to parameter of type 'SQLLEN *' (aka 'long *')
[-Wincompatible-pointer-types]
if(SQLRowCount(data->u_statement, &data->u_rows) == SQL_SUCCESS)
^~~~~~~~~~~~~
/usr/local/include/sql.h:768:44: note: passing argument to parameter 'RowCount'
here
SQLLEN *RowCount);
^
spo_database.c:3849:33: error: use of undeclared identifier 'result'
result = 0;
^
1 warning and 2 errors generated.

PR:		240237
Approved by:	bofh (maintainer timeout, 17 days)
14 Aug 2019 12:16:13
Original commit files touched by this commit Revision:508909  1.13_3
mat search for other commits by this committer
Convert to UCL & cleanup pkg-message (categories s)
14 Feb 2019 11:50:56
Original commit files touched by this commit Revision:492914  1.13_3
bofh search for other commits by this committer
security/barnyard2: Undeprecate BRO option

PR:		235723
Submitted by:	leres
22 Jan 2019 14:57:27
Original commit files touched by this commit Revision:490954  1.13_2
bofh search for other commits by this committer
security/barnyard2: fix compile with ooption BRO

PR:		231265
Submitted by:	freebsd@onyphe.io
13 Jan 2019 21:22:07
Original commit files touched by this commit Revision:490213  1.13_1
adamw search for other commits by this committer
Deprecate everything that depends on net/GeoIP and everything that depends
on those ports.
04 Aug 2016 16:25:53
Original commit files touched by this commit Revision:419628  1.13_1
bofh search for other commits by this committer
security/barnyard2: Fix ambiguous specification of libpcap

PR:		211578
Submitted by:	marino
01 Apr 2016 14:25:18
Original commit files touched by this commit Revision:412349  1.13
mat search for other commits by this committer
Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.

With hat:	portmgr
Sponsored by:	Absolight
06 Mar 2016 19:21:30
Original commit files touched by this commit Revision:410478  1.13
bofh search for other commits by this committer
security/barnyard: Update WWW as it has moved to github

PR:		207573
Submitted by:	vvelox@vvelox.net
07 May 2015 20:24:16
Original commit files touched by this commit Revision:385665  1.13
mat search for other commits by this committer
Update ports in the remaining categories to not use GH_COMMIT.

With minor cleanups to make things simpler.

With hat:	portmgr
Sponsored by:	Absolight
18 Apr 2015 12:58:35
Original commit files touched by this commit Revision:384225  1.13
tijl search for other commits by this committer
Convert to USES=autoreconf
15 Jan 2015 09:48:35
Original commit files touched by this commit Revision:377067  1.13
bofh search for other commits by this committer
security/barnyard2: Ports cleanup

- Move DATABASE Backend options to OPTIONS_RADIO as only one backend is
  supported at a time. MYSQL and MYSQL_SSL will create conflict in
  previous state
- Update pkg-plist to make proper use of @sample
- Pass Maintainership [1]

PR:			196552 [1]
Differential Revision:	https://reviews.freebsd.org/D1514
Submitted by:		pauls@utdallas.edu [1]
Approved by:		bapt(mentor)
22 Nov 2014 19:13:50
Original commit files touched by this commit Revision:373091  1.13
crees search for other commits by this committer
Switch to USES=pgsql
13 Nov 2014 09:02:57
Original commit files touched by this commit Revision:372514  1.13
antoine search for other commits by this committer
Cleanup plist
13 Sep 2014 18:25:05
Original commit files touched by this commit Revision:368126  1.13
tijl search for other commits by this committer
Use default LIBTOOLIZE_ARGS
07 Sep 2014 16:35:32
Original commit files touched by this commit Revision:367571  1.13
marino search for other commits by this committer
security/barnyard2: Remove PRELUDE option

The prelude-manager port is unstaged, and its removal is imminent.  Before
that happens, remove the optional dependency Barnyard2 has on it.
16 Jul 2014 03:18:26
Original commit files touched by this commit Revision:362024  1.13
adamw search for other commits by this committer
Add DOCS option where PORTDOCS is in plist.
17 Feb 2014 17:32:46
Original commit files touched by this commit Revision:344800  1.13
garga search for other commits by this committer
- Add a new OPTION PORT_PCAP to build using libpcap from ports instead of base
- Use OPTIONS helpers and simplify Makefile

PR:		ports/186542
Approved by:	Paul Schmehl <pauls@utdallas.edu> (maintainer)
04 Dec 2013 21:41:02
Original commit files touched by this commit Revision:335636  1.13
wg search for other commits by this committer
security/barnyard2: update to 1.13

PR:		ports/184476
Submitted by:	maintainer
02 Nov 2013 12:15:36
Original commit files touched by this commit Revision:332471  1.12_1
wg search for other commits by this committer
security/barnyard2: remove BROKEN for one option

PR:		ports/183574
Submitted by:	Paul Schmehl <pauls utdallas.edu> (maintainer)
01 Nov 2013 18:40:21
Original commit files touched by this commit Revision:332399  1.12_1
wg search for other commits by this committer
security/barnyard2: allow stating

- Allw staging [1] (based on)

PR:		ports/183404 [1]
Submitted by:	Paul Schmehl <pauls utdallas.edu> (maintainer)
22 Sep 2013 05:32:11
Original commit files touched by this commit Revision:327850  1.12
sunpoet search for other commits by this committer
- Use USES=tcl
- While I'm here, add NO_STAGE=yes

PR:		ports/182250
Submitted by:	Paul Schmehl <pauls@utdallas.edu> (maintainer)
20 Sep 2013 22:55:26
Original commit files touched by this commit Revision:327769  1.12
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
security)
14 Aug 2013 22:35:54
Original commit files touched by this commit Revision:324744  1.12  Sanity Test Failure
ak search for other commits by this committer
- Remove MAKE_JOBS_SAFE variable

Approved by:	portmgr (bdrewery)
10 May 2013 17:38:02
Original commit files touched by this commit Revision:317833  1.12
lme search for other commits by this committer
Fix rc script.

PR:		ports/178488
Submitted by:	maintainer
15 Feb 2013 19:25:13
Original commit files touched by this commit Revision:312306  1.12
jgh search for other commits by this committer
- update to 1.12
- where here drop default GH_PROJECT variable assignment

PR:		176176
Submitted by:	maintainer, pauls@utdallas.edu
14 Feb 2013 23:03:04
Original commit files touched by this commit Revision:312249  1.11
jgh search for other commits by this committer
- update PGSQL option, as only version 9.2 has the correct libraries to build
- rename option MYSQL-SSL -> MYSQL_SSL
- fix incorrectly defined option of OPTIONS_DEFAULT within MYSQL_SSL
- use ${CP} in favor of cp

PR:		176124
Submitted by:	maintainer, pauls@utdallas.edu
11 Feb 2013 14:30:34
Original commit files touched by this commit Revision:312063  1.11
skreuzer search for other commits by this committer
Update GH_TAGNAME to make the distfile fetchable
again

PR:		ports/175836
Submitted by:	Paul Schmehl <pauls@utdallas.edu>
03 Dec 2012 21:07:36
Original commit files touched by this commit Revision:308173  1.11
rm search for other commits by this committer
- revert PORTDOCS change from r308105 - it made this port not DOCS-safe

Reported by:	sunpoet
Feature safe:	yes
02 Dec 2012 12:56:59
Original commit files touched by this commit Revision:308105  1.11
rm search for other commits by this committer
- update to 1.11
- add new port options

PR:		174024
Submitted by:	Paul Schmehl <pauls@utdallas.edu> (maintainer)
Feature safe:	yes
12 Oct 2012 11:10:30
Original commit files touched by this commit Revision:305773  1.10
jhale search for other commits by this committer
- Update to 1.10
- Convert to new options framework
- Allow for any available version of TCL to be used
- Add LICENSE
- Remove indefinite article from COMMENT, update
- Mark MAKE_JOBS_SAFE
- Trim Makefile header

PR:		ports/172456
Submitted by:	Paul Schmehl <pauls@utdallas.edu> (maintainer)
Approved by:	makc (mentor)
Feature safe:	yes
05 Aug 2012 23:19:40
Original commit files touched by this commit   1.9_2
dougb search for other commits by this committer
Move the rc.d scripts of the form *.sh.in to *.in

Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
14 Jan 2012 08:57:23
Original commit files touched by this commit   1.9_2
dougb search for other commits by this committer
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
06 Jan 2012 21:53:32
Original commit files touched by this commit   1.9_2
scheidell search for other commits by this committer
- Selectivly adds mysql/and/or postgresql to rc script 'REQUIRES:'

PR:             ports/163825
Submitted by:   scheidell
Approved by:    pauls@utdallas.edu (maintainer), gabor (mentor, implicit)
12 Oct 2011 00:48:13
Original commit files touched by this commit   1.9_2
gabor search for other commits by this committer
- Fix support of status and restart for multi-config rc script

PR:             ports/161168
Submitted by:   Michael Scheidell <scheidell@secnap.net>
Approved by:    Paul Schmehl <pauls@utdallas.edu> (maintainer)
23 Sep 2011 22:26:39
Original commit files touched by this commit   1.9_2
amdmi3 search for other commits by this committer
- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:             157936
Submitted by:   myself
Exp-runs by:    pav
Approved by:    pav
19 Aug 2011 13:02:39
Original commit files touched by this commit   1.9_2
zi search for other commits by this committer
Add support for running multiple instances
Adjust whitespace in Makefile

PR:             ports/159892
Submitted by:   Paul Schmehl <pauls@utdallas.edu> (maintainer)
Approved by:    tabthorpe (mentor)
15 May 2011 17:09:38
Original commit files touched by this commit   1.9_2
ohauer search for other commits by this committer
- add patch to barnyard2 to allow build with postgresql and tcl
  (reported and fixed upstream)
- display option TCL only for Master port, it makes no sense if
  the slave can de-select a required option
- remove broken barnyard-sguil (master port was removed 2011-04-04)
- add new port barnyard2-sguil [1]
- add entry to MOVED

PR:             ports/156188 [1]
Submitted by:   me
Approved by:    maintainer timeout
14 May 2011 19:09:58
Original commit files touched by this commit   1.9_2
ohauer search for other commits by this committer
- add OPTION tcl (default off) to allow sguil* ports build against barnyard2

PR:             ports/156341
Submitted by:   Brandon <m37a11 _at_ gmail.com>
Approved by:    maintainer timeout
04 Apr 2011 21:28:15
Original commit files touched by this commit   1.9_2
ohauer search for other commits by this committer
 - make snort and suricata optional
 - bump portrevision

PR:             ports/156172
Submitted by:   Nikolay Denev <ndenev _at_ gmail.com>
Approved by:    Paul Schmehl <pauls _at_ utdallas.edu> (maintainer)
19 Mar 2011 13:15:34
Original commit files touched by this commit   1.9_1
ale search for other commits by this committer
Bump PORTREVISION for ports linking to default libmysqlclient.
31 Jan 2011 01:17:36
Original commit files touched by this commit   1.9
ohauer search for other commits by this committer
- update barnyard2 to version 2.1.9

Changes:
 2010-12-27 - Barnyard 2.1.9
   [*] Additions
      * spo_database. Support of encrypted connections to postgresql is now
        available. See README.database for the appropriate options.

      * spo_sguil. Fixed issue with duplication of alerts.

   [*] Improvements

      * spooler. Fixed issue with borking when reading unrecognised records.
        There is now sufficient information to skip and move on.

      * spooler. Fixed early termination of non-readable files, causing the
        dreaded SEGFAULT.

      * classifications. Tweaked output for classification identification if the
        appropriate node can't be found.

PR:             ports/154400
Submitted by:   Paul Schmehl <pauls _at_ utdallas.edu> (maintainer)
Feature safe:   yes
05 Jul 2010 20:20:35
Original commit files touched by this commit   1.8
sahil search for other commits by this committer
- Update to 1.8
- Do not overwrite pre-existing conf file
- Replace '/etc' with '${LOCALBASE}/etc' in sample conf

PR:             ports/148240
Submitted by:   Paul Schmehl <pauls@utdallas.edu> (maintainer)
Approved by:    wxs@ (mentor)
Feature safe:   yes
27 Mar 2010 00:15:24
Original commit files touched by this commit   1.7
dougb search for other commits by this committer
Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
17 Jan 2010 19:55:01
Original commit files touched by this commit   1.7
sylvio search for other commits by this committer
- Fix of a previously pointyhat.

Approved by:    itetcu (mentor)
17 Jan 2010 13:55:14
Original commit files touched by this commit   1.7
sylvio search for other commits by this committer
- Update to 1.7

PR:             ports/140393
Submitted by:   maintainer (Paul Schmehl <pauls@utdallas.edu>)
Approved by:    itetcu (mentor)
04 Nov 2009 07:42:59
Original commit files touched by this commit   1.6
miwi search for other commits by this committer
- Update to pkg-message

PR:             139880
Submitted by:   maintainer
09 Sep 2009 01:42:44
Original commit files touched by this commit   1.6
amdmi3 search for other commits by this committer
Barnyard is a critical tool for the parsing of Snort's unified binary files,
processing and on-forwarding to a variety of output plugins. Unfortunately
it has not seen an updated in over 4 years and is not going to be maintained
by the original developers. With the new version of the unified format
(ie. unified2) arriving we need something to bridge this gap.

The SXL team love barnyard. So much so that we want it to stay and have been
tinkering around with the code to give it a breath of new life. Here is what
we have achieved to far for this reinvigorated code base:

    * Parsing of the new unified2 log files.
    * Maintaining majority of the command syntax of barnyard.
    * Addressed all associated bug reports and feature requests arising since
                barnyard-0.2.0.
    * Completely rewritten code based on the GPLv2 Snort making it entirely
(Only the first 15 lines of the commit message are shown above View all of this commit message)

Number of commits found: 54