head	1.20;
access;
symbols
	RELEASE_8_3_0:1.12
	RELEASE_9_0_0:1.11
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.4
	RELEASE_8_1_0:1.4
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.1;
locks; strict;
comment	@# @;


1.20
date	2013.02.15.20.18.44;	author svnexp;	state Exp;
branches;
next	1.19;

1.19
date	2013.02.14.23.14.40;	author svnexp;	state Exp;
branches;
next	1.18;

1.18
date	2013.02.11.14.48.44;	author svnexp;	state Exp;
branches;
next	1.17;

1.17
date	2012.12.03.21.11.26;	author svnexp;	state Exp;
branches;
next	1.16;

1.16
date	2012.12.02.13.03.30;	author svnexp;	state Exp;
branches;
next	1.15;

1.15
date	2012.11.17.06.01.01;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.10.12.11.10.30;	author jhale;	state Exp;
branches;
next	1.13;

1.13
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.12;

1.12
date	2012.01.06.21.53.31;	author scheidell;	state Exp;
branches;
next	1.11;

1.11
date	2011.09.23.22.25.08;	author amdmi3;	state Exp;
branches;
next	1.10;

1.10
date	2011.08.19.13.02.39;	author zi;	state Exp;
branches;
next	1.9;

1.9
date	2011.05.15.17.09.38;	author ohauer;	state Exp;
branches;
next	1.8;

1.8
date	2011.05.14.19.09.58;	author ohauer;	state Exp;
branches;
next	1.7;

1.7
date	2011.04.04.21.28.15;	author ohauer;	state Exp;
branches;
next	1.6;

1.6
date	2011.03.19.13.15.29;	author ale;	state Exp;
branches;
next	1.5;

1.5
date	2011.01.31.01.17.36;	author ohauer;	state Exp;
branches;
next	1.4;

1.4
date	2010.07.05.20.20.34;	author sahil;	state Exp;
branches;
next	1.3;

1.3
date	2010.01.17.19.55.01;	author sylvio;	state Exp;
branches;
next	1.2;

1.2
date	2010.01.17.13.55.14;	author sylvio;	state Exp;
branches;
next	1.1;

1.1
date	2009.09.09.01.42.43;	author amdmi3;	state Exp;
branches;
next	;


desc
@@


1.20
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312306
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/security/barnyard2/Makefile 312306 2013-02-15 19:25:12Z jgh $

PORTNAME=	barnyard2
PORTVERSION=	1.12
CATEGORIES=	security

MAINTAINER=	pauls@@utdallas.edu
COMMENT=	Interpreter for Snort unified2 binary output files

LICENSE=	GPLv2

USE_GITHUB=	yes
GH_ACCOUNT=	firnsy
GH_TAGNAME=	v2-${PORTVERSION}
GH_COMMIT=	3c1f553

OPTIONS_DEFINE=	64BIT ARUBA BRO GRE IPV6 MPLS MYSQL MYSQL_SSL ODBC PRELUDE PGSQL
NO_OPTIONS_SORT=yes

64BIT_DESC=	Enable 64bit compilation (experimental)
ARUBA_DESC=	Enable aruba support
BRO_DESC=	Enable bro support (libbroccoli)
GRE_DESC=	Enable gre support
MYSQL_SSL_DESC=	Enable mysql ssl support (experimental)
PRELUDE_DESC=	Enable prelude support

.if defined(SLAVE)
OPTIONS_DEFINE+=	TCL
OPTIONS_DESC=	Enable tcl support for sguil
OPTIONS_DEFAULT+=	TCL
.endif

USE_AUTOTOOLS=	libtoolize aclocal autoheader automake autoconf
LIBTOOLIZE_ARGS=--copy --force
AUTOMAKE_ARGS=	--add-missing --copy
ACLOCAL_ARGS=	-I m4 -I ${LOCALBASE}/share/aclocal

USE_RC_SUBR=	barnyard2
GNU_CONFIGURE=	yes
MAKE_JOBS_SAFE=	yes

SUB_FILES=	pkg-message

PORTDOCS1=	README RELEASE.NOTES
PORTDOCS2=	INSTALL README.aruba README.database README.sguil README.snortsam
PORTDOCS=	${PORTDOCS1} ${PORTDOCS2}
PORTEXAMPLES=	SCHEMA_ACCESS create_db2 create_mssql create_mysql create_oracle.sql create_postgresql

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:M64BIT}
CONFIGURE_ARGS+=	--enable-64bit-gcc
.else
CONFIGURE_ARGS+=	--disable-64bit-gcc
.endif

.if ${PORT_OPTIONS:MARUBA}
CONFIGURE_ARGS+=	--enable-aruba
.else
CONFIGURE_ARGS+=	--disable-aruba
.endif

.if ${PORT_OPTIONS:MBRO}
BROKEN=			Bro port is in transition right now, so this is not supported at this time
BUILD_DEPENDS+=		bro:${PORTSDIR}/security/bro-barnyard2
CONFIGURE_ARGS+=	--enable-bro --with-broccoli=${LOCALBASE}/lib
.else
CONFIGURE_ARGS+=	--disable-bro
.endif

.if ${PORT_OPTIONS:MGRE}
CONFIGURE_ARGS+=	--enable-gre
.else
CONFIGURE_ARGS+=	--disable-gre
.endif

.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+=	--enable-ipv6
.else
CONFIGURE_ARGS+=	--disable-ipv6
.endif

.if ${PORT_OPTIONS:MMPLS}
CONFIGURE_ARGS+=	--enable-mpls
.else
CONFIGURE_ARGS+=	--disable-mpls
.endif

.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL=		yes
CONFIGURE_ARGS+=	--with-mysql \
			--with-mysql-includes=${LOCALBASE}/include/mysql \
			--with-mysql-libraries=${LOCALBASE}/lib/mysql
.else
CONFIGURE_ARGS+=	--without-mysql
.endif

.if ${PORT_OPTIONS:MMYSQL_SSL}
USE_MYSQL=		yes
CONFIGURE_ARGS+=	--enable-mysql-ssl-support
.else
CONFIGURE_ARGS+=	--disable-mysql-ssl-support
.endif

.if ${PORT_OPTIONS:MODBC}
LIB_DEPENDS+=	odbc:${PORTSDIR}/databases/unixODBC
CONFIGURE_ARGS+=	--with-odbc
.else
CONFIGURE_ARGS+=	--without-odbc
.endif

.if ${PORT_OPTIONS:MPRELUDE}
BUILD_DEPENDS+=	prelude-manager:${PORTSDIR}/security/prelude-manager
CONFIGURE_ARGS+=	--enable-prelude
.else
CONFIGURE_ARGS+=	--disable-prelude
.endif

.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL=		yes
WANT_PGSQL_VER=		92+
CONFIGURE_ARGS+=	--with-postgresql=${LOCALBASE}/bin/pg_config --with-pgsql-includes=${LOCALBASE}/include/postgresql/server
.else
CONFIGURE_ARGS+=	--without-postgresql
.endif

.if ${PORT_OPTIONS:MTCL}
USE_TCL=		yes
CONFIGURE_ARGS+=	--with-tcl=${LOCALBASE}/lib/tcl${TCL_VER}
.else
CONFIGURE_ARGS+=	--without-tcl
.endif

post-patch:
	@@${REINPLACE_CMD} 's|/etc|${LOCALBASE}/etc|' \
		${WRKSRC}/etc/barnyard2.conf

post-install:
	@@${CP} ${WRKSRC}/etc/barnyard2.conf ${PREFIX}/etc/barnyard2.conf.sample
	if [ ! -f ${PREFIX}/etc/barnyard2.conf ]; then \
		${CP} -p ${PREFIX}/etc/barnyard2.conf.sample ${PREFIX}/etc/barnyard2.conf; \
	fi

.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS1} ${DOCSDIR}
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS2} ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	@@${MKDIR} ${EXAMPLESDIR}
	cd ${WRKSRC}/schemas && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
.endif

	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.19
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312249
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: head/security/barnyard2/Makefile 312249 2013-02-14 23:03:03Z jgh $
d4 1
a4 1
PORTVERSION=	1.11
a13 1
GH_PROJECT=	${PORTNAME}
d15 1
a15 1
GH_COMMIT=	4dfdc80
d64 1
a64 1
BROKEN=			Will not compile until bro update is committed - deselect this option
@


1.18
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312063
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: head/security/barnyard2/Makefile 312063 2013-02-11 14:30:34Z skreuzer $
d18 1
a18 1
OPTIONS_DEFINE=	64BIT ARUBA BRO GRE IPV6 MPLS MYSQL MYSQL-SSL ODBC PRELUDE PGSQL
d25 1
a25 1
MYSQL-SSL_DESC=	Enable mysql ssl support (experimental)
d99 2
a100 2
.if ${PORT_OPTIONS:MMYSQL-SSL}
OPTIONS_DEFAULT+=	MYSQL
d122 1
d140 1
a140 1
	@@cp ${WRKSRC}/etc/barnyard2.conf ${PREFIX}/etc/barnyard2.conf.sample
@


1.17
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308173
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308173 | rm | 2012-12-03 21:07:36 +0000 (Mon, 03 Dec 2012) | 5 lines
## SVN ##
## SVN ## - revert PORTDOCS change from r308105 - it made this port not DOCS-safe
## SVN ##
## SVN ## Reported by:	sunpoet
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/security/barnyard2/Makefile 308173 2012-12-03 21:07:36Z rm $
d15 1
a15 1
GH_TAGNAME=	master
@


1.16
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308105
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308105 | rm | 2012-12-02 12:56:59 +0000 (Sun, 02 Dec 2012) | 7 lines
## SVN ##
## SVN ## - update to 1.11
## SVN ## - add new port options
## SVN ##
## SVN ## PR:		174024
## SVN ## Submitted by:	Paul Schmehl <pauls@@utdallas.edu> (maintainer)
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/security/barnyard2/Makefile 308105 2012-12-02 12:56:59Z rm $
d47 1
@


1.15
log
@Switch exporter over
@
text
@d1 1
a1 1
# $FreeBSD: head/security/barnyard2/Makefile 305773 2012-10-12 11:10:30Z jhale $
d4 1
a4 2
PORTVERSION=	1.10
PORTREVISION?=	0
d15 2
a16 2
GH_TAGNAME=	v2-${PORTVERSION}
GH_COMMIT=	2f5d496
d18 1
a18 2
OPTIONS_DEFINE=	MYSQL PGSQL BRO SNORT SNORTSAM SURICATA
OPTIONS_DEFAULT=#empty
d21 11
a31 9
BRO_DESC=	Depend on security/bro
MYSQL_DESC=	Enable MySQL support
PGSQL_DESC=	Enable PostgreSQL support
SNORT_DESC=	Depend on security/snort
SNORTSAM_DESC=	Depend on security/snortsam
SURICATA_DESC=	Depend on security/suricata

.if !defined(SLAVE)
OPTIONS_DEFINE+=TCL
d47 1
a47 2
PORTEXAMPLES=	create_db2 create_mysql	create_postgresql SCHEMA_ACCESS	create_mssql create_oracle.sql
PORTDOCS=	${PORTDOCS1} ${PORTDOCS2}
d51 38
a93 1
SUB_LIST+=		MYSQL=" mysql"
a95 1
SUB_LIST+=		MYSQL=""
d98 3
a100 4
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL=		yes
CONFIGURE_ARGS+=	--with-postgresql=${LOCALBASE}
SUB_LIST+=		PGSQL=" postgresql"
d102 1
a102 2
CONFIGURE_ARGS+=	--without-postgresql
SUB_LIST+=		PGSQL=""
d105 5
a109 2
.if ${PORT_OPTIONS:MBRO}
RUN_DEPENDS+=		${LOCALBASE}/bin/bro:${PORTSDIR}/security/bro
d112 5
a116 2
.if ${PORT_OPTIONS:MSNORT}
RUN_DEPENDS+=		${LOCALBASE}/bin/snort:${PORTSDIR}/security/snort
d119 5
a123 6
.if ${PORT_OPTIONS:MSNORTSAM}
RUN_DEPENDS+=		${LOCALBASE}/bin/snortsnam:${PORTSDIR}/security/snortsam
.endif

.if ${PORT_OPTIONS:MSURICATA}
RUN_DEPENDS+=		${LOCALBASE}/bin/suricata:${PORTSDIR}/security/suricata
d138 1
@


1.14
log
@SVN rev 305773 on 2012-10-12 11:10:30Z by 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
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.13
log
@SVN rev 302141 on 2012-08-05 23:19:36Z by 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
@
text
@a0 4
# New ports collection makefile for:	barnyard2
# Date created:				28 Aug 2009
# Whom:					pauls
#
a1 1
#
d4 2
a5 2
PORTVERSION=	1.9
PORTREVISION=	2
a6 1
MASTER_SITES=	http://www.securixlive.com/download/barnyard2/
d9 20
a28 1
COMMENT=	An output system for Snort or Suricata that parses unified2 files
a29 4
OPTIONS=	MYSQL "Enable MySQL support" on \
		POSTGRESQL "Enable PostgreSQL support" off \
		SNORT "Depend on security/snort" off \
		SURICATA "Depend on security/suricata" off
d31 1
a31 1
OPTIONS+=	TCL "Enable TCL support" off
d34 5
d41 2
d45 3
a47 2
PORTDOCS1=	README
PORTDOCS2=	INSTALL README.aruba README.database README.sguil
d50 1
a50 1
.include <bsd.port.pre.mk>
d52 1
a52 1
.if defined(WITH_MYSQL)
d59 1
d63 1
a63 1
.if defined(WITH_POSTGRESQL)
d65 1
a65 1
CONFIGURE_ARGS+=	--with-postgresql
d68 1
d72 5
a76 1
.if defined(WITH_SNORT)
d80 5
a84 1
.if defined(WITH_SURICATA)
d88 1
a88 1
.if defined(WITH_TCL)
d90 3
a92 2
CONFIGURE_ARGS+=	--with-tcl=${PREFIX}/lib/tcl8.4
LIB_DEPENDS+=		tcl84.1:${PORTSDIR}/lang/tcl84
a94 3
pre-install:
	${CHMOD} 744 ${WRKSRC}/install-sh

d100 3
d104 1
a104 5
.for f in barnyard2.conf
	[ -f ${PREFIX}/etc/${f} ] || \
	${INSTALL_DATA} ${WRKSRC}/etc/${f} ${PREFIX}/etc/${f}
.endfor
.if !defined(NOPORTDOCS)
d109 4
d116 1
a116 1
.include <bsd.port.post.mk>
@


1.12
log
@- 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)
@
text
@d25 1
a25 1
USE_RC_SUBR=	barnyard2.sh
@


1.11
log
@- 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
@
text
@d40 3
d48 3
@


1.10
log
@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)
@
text
@a26 1
CONFIGURE_ENV=	LDFLAGS="${LDFLAGS}"
@


1.9
log
@- 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
@
text
@d49 1
a49 1
RUN_DEPENDS+=	${LOCALBASE}/bin/snort:${PORTSDIR}/security/snort
d53 1
a53 1
RUN_DEPENDS+=	${LOCALBASE}/bin/suricata:${PORTSDIR}/security/suricata
d59 1
a59 1
LIB_DEPENDS+=   	tcl84.1:${PORTSDIR}/lang/tcl84
@


1.8
log
@- 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
@
text
@d20 4
a23 2
		SURICATA "Depend on security/suricata" off \
		TCL "Enable TCL support" off 
a35 6
.if defined(WITH_TCL)
USE_TCL=		yes
CONFIGURE_ARGS+=	--with-tcl=${PREFIX}/lib/tcl8.4
LIB_DEPENDS+=   	tcl84.1:${PORTSDIR}/lang/tcl84
.endif

d56 6
@


1.7
log
@ - 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)
@
text
@d20 2
a21 1
		SURICATA "Depend on security/suricata" off
d34 6
@


1.6
log
@Bump PORTREVISION for ports linking to default libmysqlclient.
@
text
@d10 1
a10 1
PORTREVISION=	1
d15 1
a15 3
COMMENT=	An output system for Snort that parses unified2 files

RUN_DEPENDS+=	${LOCALBASE}/bin/snort:${PORTSDIR}/security/snort
d18 3
a20 1
		POSTGRESQL "Enable PostgreSQL support" off
d45 8
@


1.5
log
@- 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
@
text
@d10 1
@


1.4
log
@- 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
@
text
@d9 1
a9 1
PORTVERSION=	1.8
d26 3
a28 1
PORTDOCS=	INSTALL	README README.aruba README.database README.sguil
d59 2
a60 1
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
@


1.3
log
@- Fix of a previously pointyhat.

Approved by:	itetcu (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	1.7
d45 4
a51 1
	${INSTALL_DATA} ${WRKSRC}/etc/${f} ${PREFIX}/etc/${f}-sample
@


1.2
log
@- Update to 1.7

PR:		ports/140393
Submitted by:	maintainer (Paul Schmehl <pauls@@utdallas.edu>)
Approved by:	itetcu (mentor)
@
text
@d42 2
a43 3
post-patch:
	${REINPLACE_CMD} -e "s,644,755,g" ${WRKSRC}/Makefile.in \
		${WRKSRC}/configure
@


1.1
log
@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.

WWW: http://www.securixlive.com/barnyard2/

PR:		138326
Submitted by:	Paul Schmehl <pauls@@utdallas.edu>
@
text
@d9 1
a9 1
PORTVERSION=	1.6
d42 4
a54 1
#	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
@

