Port details |
- barnyard2 Interpreter for Snort unified2 binary output files
- 1.13_6 security
=7 1.13_6Version of this port present on the latest quarterly branch. - Maintainer: bofh@FreeBSD.org
 - Port Added: 2009-09-09 01:43:05
- Last Update: 2023-12-29 18:24:39
- Commit Hash: ee6c86a
- People watching this port, also watch:: snort, net-snmp, oinkmaster, openvpn, sleuthkit
- License: GPLv2
- WWW:
- https://github.com/firnsy/barnyard2
- Description:
- 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
GPLv2.
This is an effort to fuse the awesome work of Snort and the original concept
of barnyard giving it a fresh update along the way. We've come a long way so
far and have a very stable build that we've integrated into our NSMnow
framework. If you have any feature requests, bugs or gripes then send them
our way.
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- barnyard2>0:security/barnyard2
- Conflicts:
- CONFLICTS_INSTALL:
- To install the port:
- cd /usr/ports/security/barnyard2/ && make install clean
- To add the package, run one of these commands:
- pkg install security/barnyard2
- pkg install barnyard2
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: barnyard2
- Flavors: there is no flavor information for this port.
- distinfo:
- SHA256 (firnsy-barnyard2-v2-1.13_GH0.tar.gz) = b9e67f22334b937a59cf808ca20bdcd9c46561a4369979c965a0bb554d7dd09b
SIZE (firnsy-barnyard2-v2-1.13_GH0.tar.gz) = 435017
Packages (timestamps in pop-ups are UTC):
- Slave ports:
-
- security/barnyard2-sguil
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- autoconf>=2.71 : devel/autoconf
- automake>=1.16.5 : devel/automake
- libtoolize : devel/libtool
- This port is required by:
- for Run
-
- security/snort
Configuration Options:
- ===> The following configuration options are available for barnyard2-1.13_6:
64BIT=off: Enable 64bit compilation (experimental)
ARUBA=off: Enable aruba support
GRE=off: Enable gre support
IPV6=on: IPv6 protocol support
MPLS=off: MPLS support
PORT_PCAP=off: Use libpcap from ports
DOCS=on: Build and/or install documentation
EXAMPLES=on: Build and/or install examples
====> Options available for the radio DATABASE: you can only select none or one of them
MYSQL=off: MySQL database support
MYSQL_SSL=off: Enable mysql ssl support (experimental)
ODBC=off: ODBC database backend
PGSQL=off: PostgreSQL database support
===> Use 'make config' to modify these settings
- Options name:
- security_barnyard2
- USES:
- autoreconf libtool
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
1.13_6 29 Dec 2023 18:24:39
    |
Muhammad Moinur Rahman (bofh)  |
*/*: Refactor with IGNORE_WITH_MYSQL
- There are multiple ports which has MYSQL options and are non-DEFAULT.
Most of the time committers actually forget to check with the OPTION
enabled and in some cases they are BROKEN with newr versions of mysql.
So test with different versions of mysql and mark IGNOPRE_WITH_MYSQL
appropriately. Due to the EOL of 5.7 this has not been checked.
- Unbreak sysutils/cfengine* with MySQL 8.0 and later
- The primary purpose of running this check is having statistics of the
MySQL usability over MariaDB to explore the future possibility of
shifting to MariaDB as the default as major ports upstream have moved
their codebase to support MariaDB over MySQL.
- The following actions will also be taken after the sunset of MySQL 5.7
If a port is broken on all instances of MySQL/MariaDB:
- If a port has the option of multiple DB backends and MySQL is the
default then the DEFAULT will be changed to PGSQL/SQLITE before
2024Q1. And the OPTION will be removed before 2024Q2. If a
MAINTAINER is aware about such cases and want to prefer PGSQL over
SQLITE or vice versa please do so at your own accord. Otherwise
PGSQL will be preferred over SQLITE.
- If a port has the option of multiple DB backends and MySQL is not
the default then the the OPTION will be removed before 2024Q1.
Approved by: portmgr (blanket) |
07 Sep 2022 21:58:51
    |
Stefan Eßer (se)  |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
1.13_6 07 Sep 2022 21:10:59
    |
Stefan Eßer (se)  |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
1.13_6 10 Jan 2022 15:15:39
    |
Stefan Eßer (se)  |
Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.
This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.
Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port (Only the first 15 lines of the commit message are shown above ) |
1.13_6 07 Apr 2021 08:09:01
    |
Mathieu Arnold (mat)  |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
1.13_6 06 Apr 2021 14:31:13
    |
Mathieu Arnold (mat)  |
all: Remove all other $FreeBSD keywords. |
1.13_6 06 Apr 2021 14:31:07
    |
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
1.13_6 26 Jan 2021 22:42:25
  |
bofh  |
security/barnyard2: Remove reference of stale documentation
PR: 251625
Submitted by: danmcgrath.ca@gmail.com |
1.13_4 02 Jan 2021 14:46:45
  |
rene  |
security/barnyard2: remove optional dependency on expired security/broccoli |
1.13_4 15 Nov 2019 10:12:08
  |
tobik  |
Move remaining USE_MYSQL, WANT_MYSQL_VER to USES=mysql |
1.13_4 05 Oct 2019 10:51:34
  |
tobik  |
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 |
1.13_4 18 Sep 2019 09:29:54
  |
tobik  |
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) |
1.13_3 14 Aug 2019 12:16:13
  |
mat  |
Convert to UCL & cleanup pkg-message (categories s) |
1.13_3 14 Feb 2019 11:50:56
  |
bofh  |
security/barnyard2: Undeprecate BRO option
PR: 235723
Submitted by: leres |
1.13_2 22 Jan 2019 14:57:27
  |
bofh  |
security/barnyard2: fix compile with ooption BRO
PR: 231265
Submitted by: freebsd@onyphe.io |
1.13_1 13 Jan 2019 21:22:07
  |
adamw  |
Deprecate everything that depends on net/GeoIP and everything that depends
on those ports. |
1.13_1 04 Aug 2016 16:25:53
  |
bofh  |
security/barnyard2: Fix ambiguous specification of libpcap
PR: 211578
Submitted by: marino |
1.13 01 Apr 2016 14:25:18
  |
mat  |
Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.
With hat: portmgr
Sponsored by: Absolight |
1.13 06 Mar 2016 19:21:30
  |
bofh  |
security/barnyard: Update WWW as it has moved to github
PR: 207573
Submitted by: vvelox@vvelox.net |
1.13 07 May 2015 20:24:16
  |
mat  |
Update ports in the remaining categories to not use GH_COMMIT.
With minor cleanups to make things simpler.
With hat: portmgr
Sponsored by: Absolight |
1.13 18 Apr 2015 12:58:35
  |
tijl  |
Convert to USES=autoreconf |
1.13 15 Jan 2015 09:48:35
  |
bofh  |
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) |
1.13 22 Nov 2014 19:13:50
  |
crees  |
Switch to USES=pgsql |
1.13 13 Nov 2014 09:02:57
  |
antoine  |
Cleanup plist |
1.13 13 Sep 2014 18:25:05
  |
tijl  |
Use default LIBTOOLIZE_ARGS |
1.13 07 Sep 2014 16:35:32
  |
marino  |
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. |
1.13 16 Jul 2014 03:18:26
  |
adamw  |
Add DOCS option where PORTDOCS is in plist. |
1.13 17 Feb 2014 17:32:46
  |
garga  |
- 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) |
1.13 04 Dec 2013 21:41:02
  |
wg  |
security/barnyard2: update to 1.13
PR: ports/184476
Submitted by: maintainer |
1.12_1 02 Nov 2013 12:15:36
  |
wg  |
security/barnyard2: remove BROKEN for one option
PR: ports/183574
Submitted by: Paul Schmehl <pauls utdallas.edu> (maintainer) |
1.12_1 01 Nov 2013 18:40:21
  |
wg  |
security/barnyard2: allow stating
- Allw staging [1] (based on)
PR: ports/183404 [1]
Submitted by: Paul Schmehl <pauls utdallas.edu> (maintainer) |
1.12 22 Sep 2013 05:32:11
  |
sunpoet  |
- Use USES=tcl
- While I'm here, add NO_STAGE=yes
PR: ports/182250
Submitted by: Paul Schmehl <pauls@utdallas.edu> (maintainer) |
1.12 20 Sep 2013 22:55:26
  |
bapt  |
Add NO_STAGE all over the place in preparation for the staging support (cat:
security) |
1.12 14 Aug 2013 22:35:54
  |
ak  |
- Remove MAKE_JOBS_SAFE variable
Approved by: portmgr (bdrewery) |
1.12 10 May 2013 17:38:02
  |
lme  |
Fix rc script.
PR: ports/178488
Submitted by: maintainer |
1.12 15 Feb 2013 19:25:13
  |
jgh  |
- update to 1.12
- where here drop default GH_PROJECT variable assignment
PR: 176176
Submitted by: maintainer, pauls@utdallas.edu |
1.11 14 Feb 2013 23:03:04
  |
jgh  |
- 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 |
1.11 11 Feb 2013 14:30:34
  |
skreuzer  |
Update GH_TAGNAME to make the distfile fetchable
again
PR: ports/175836
Submitted by: Paul Schmehl <pauls@utdallas.edu> |
1.11 03 Dec 2012 21:07:36
  |
rm  |
- revert PORTDOCS change from r308105 - it made this port not DOCS-safe
Reported by: sunpoet
Feature safe: yes |
1.11 02 Dec 2012 12:56:59
  |
rm  |
- update to 1.11
- add new port options
PR: 174024
Submitted by: Paul Schmehl <pauls@utdallas.edu> (maintainer)
Feature safe: yes |
1.10 12 Oct 2012 11:10:30
  |
jhale  |
- 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 |
1.9_2 05 Aug 2012 23:19:40
 |
dougb  |
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 |
1.9_2 14 Jan 2012 08:57:23
 |
dougb  |
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. |
1.9_2 06 Jan 2012 21:53:32
 |
scheidell  |
- 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) |
1.9_2 12 Oct 2011 00:48:13
 |
gabor  |
- 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) |
1.9_2 23 Sep 2011 22:26:39
 |
amdmi3  |
- 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 |
1.9_2 19 Aug 2011 13:02:39
 |
zi  |
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) |
1.9_2 15 May 2011 17:09:38
 |
ohauer  |
- 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 |
1.9_2 14 May 2011 19:09:58
 |
ohauer  |
- 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 |
1.9_2 04 Apr 2011 21:28:15
 |
ohauer  |
- 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) |
1.9_1 19 Mar 2011 13:15:34
 |
ale  |
Bump PORTREVISION for ports linking to default libmysqlclient. |
1.9 31 Jan 2011 01:17:36
 |
ohauer  |
- 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 |
1.8 05 Jul 2010 20:20:35
 |
sahil  |
- 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 |
1.7 27 Mar 2010 00:15:24
 |
dougb  |
Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr# |
1.7 17 Jan 2010 19:55:01
 |
sylvio  |
- Fix of a previously pointyhat.
Approved by: itetcu (mentor) |
1.7 17 Jan 2010 13:55:14
 |
sylvio  |
- Update to 1.7
PR: ports/140393
Submitted by: maintainer (Paul Schmehl <pauls@utdallas.edu>)
Approved by: itetcu (mentor) |
1.6 04 Nov 2009 07:42:59
 |
miwi  |
- Update to pkg-message
PR: 139880
Submitted by: maintainer |
1.6 09 Sep 2009 01:42:44
 |
amdmi3  |
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 ) |