2009-09-09 03:42:44 +02:00
|
|
|
PORTNAME= barnyard2
|
2013-12-04 22:41:02 +01:00
|
|
|
PORTVERSION= 1.13
|
2015-05-07 22:24:15 +02:00
|
|
|
DISTVERSIONPREFIX= v2-
|
2021-01-26 23:42:24 +01:00
|
|
|
PORTREVISION= 6
|
2009-09-09 03:42:44 +02:00
|
|
|
CATEGORIES= security
|
|
|
|
|
2015-01-15 10:48:34 +01:00
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
2012-10-12 13:10:30 +02:00
|
|
|
COMMENT= Interpreter for Snort unified2 binary output files
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2019-01-22 15:57:27 +01:00
|
|
|
USES= autoreconf libtool
|
|
|
|
|
2012-10-12 13:10:30 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= firnsy
|
|
|
|
|
2021-01-02 15:46:45 +01:00
|
|
|
OPTIONS_DEFINE= 64BIT ARUBA GRE IPV6 MPLS PORT_PCAP DOCS EXAMPLES
|
2015-01-15 10:48:34 +01:00
|
|
|
OPTIONS_RADIO= DATABASE
|
|
|
|
OPTIONS_RADIO_DATABASE= MYSQL MYSQL_SSL ODBC PGSQL
|
2012-10-12 13:10:30 +02:00
|
|
|
NO_OPTIONS_SORT=yes
|
|
|
|
|
2012-12-02 13:56:59 +01:00
|
|
|
64BIT_DESC= Enable 64bit compilation (experimental)
|
|
|
|
ARUBA_DESC= Enable aruba support
|
|
|
|
GRE_DESC= Enable gre support
|
2013-02-15 00:03:03 +01:00
|
|
|
MYSQL_SSL_DESC= Enable mysql ssl support (experimental)
|
2014-02-17 18:32:46 +01:00
|
|
|
PORT_PCAP_DESC= Use libpcap from ports
|
2012-12-02 13:56:59 +01:00
|
|
|
|
|
|
|
.if defined(SLAVE)
|
|
|
|
OPTIONS_DEFINE+= TCL
|
2019-10-05 12:51:34 +02:00
|
|
|
TCL_DESC= Enable tcl support for sguil
|
2012-12-02 13:56:59 +01:00
|
|
|
OPTIONS_DEFAULT+= TCL
|
2011-05-15 19:09:38 +02:00
|
|
|
.endif
|
2009-09-09 03:42:44 +02:00
|
|
|
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= barnyard2
|
2009-09-09 03:42:44 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2012-10-12 13:10:30 +02:00
|
|
|
|
2009-09-09 03:42:44 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2012-10-12 13:10:30 +02:00
|
|
|
PORTDOCS1= README RELEASE.NOTES
|
2013-12-04 22:41:02 +01:00
|
|
|
PORTDOCS2= INSTALL README.aruba README.database README.sguil README.sig_suppress README.snortsam
|
2013-11-01 19:40:20 +01:00
|
|
|
EXAMPLES= SCHEMA_ACCESS create_db2 create_mssql create_mysql create_oracle.sql create_postgresql
|
2009-09-09 03:42:44 +02:00
|
|
|
|
2014-02-17 18:32:46 +01:00
|
|
|
64BIT_CONFIGURE_ENABLE= 64bit-gcc
|
|
|
|
ARUBA_CONFIGURE_ENABLE= aruba
|
|
|
|
GRE_CONFIGURE_ENABLE= gre
|
|
|
|
IPV6_CONFIGURE_ENABLE= ipv6
|
|
|
|
MPLS_CONFIGURE_ENABLE= mpls
|
2019-11-15 11:12:08 +01:00
|
|
|
MYSQL_USES= mysql
|
2014-02-17 18:32:46 +01:00
|
|
|
MYSQL_CONFIGURE_WITH= mysql
|
|
|
|
MYSQL_CONFIGURE_ON= --with-mysql-includes=${LOCALBASE}/include/mysql \
|
2009-09-09 03:42:44 +02:00
|
|
|
--with-mysql-libraries=${LOCALBASE}/lib/mysql
|
2014-02-17 18:32:46 +01:00
|
|
|
MYSQL_SSL_CONFIGURE_ENABLE= mysql-ssl-support
|
2019-09-18 11:29:53 +02:00
|
|
|
ODBC_BROKEN= fails to build with ODBC=on
|
2016-04-01 16:25:16 +02:00
|
|
|
ODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC
|
2019-09-18 11:29:53 +02:00
|
|
|
ODBC_CONFIGURE_WITH= odbc
|
2014-11-22 20:13:49 +01:00
|
|
|
PGSQL_USES= pgsql
|
2014-02-17 18:32:46 +01:00
|
|
|
PGSQL_CONFIGURE_ON= --with-postgresql=${LOCALBASE}/bin/pg_config --with-pgsql-includes=${LOCALBASE}/include/postgresql/server
|
|
|
|
PGSQL_CONFIGURE_OFF= --without-postgresql
|
|
|
|
TCL_USES= tcl
|
|
|
|
TCL_CONFIGURE_ON= --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER}
|
|
|
|
TCL_CONFIGURE_OFF= --without-tcl
|
2016-08-04 18:25:53 +02:00
|
|
|
PORT_PCAP_LIB_DEPENDS= libpcap.so.1:net/libpcap
|
2014-02-17 18:32:46 +01:00
|
|
|
PORT_PCAP_CONFIGURE_ON= --with-libpcap-includes=${LOCALBASE}/include \
|
|
|
|
--with-libpcap-libraries=${LOCALBASE}/lib
|
2011-05-15 19:09:38 +02:00
|
|
|
|
2010-07-05 22:20:35 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's|/etc|${LOCALBASE}/etc|' \
|
|
|
|
${WRKSRC}/etc/barnyard2.conf
|
|
|
|
|
2013-11-01 19:40:20 +01:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS1:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS2:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/schemas/|} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/barnyard2 ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
${CP} ${WRKSRC}/etc/barnyard2.conf ${STAGEDIR}${PREFIX}/etc/barnyard2.conf.sample
|
2009-09-09 03:42:44 +02:00
|
|
|
|
2012-10-12 13:10:30 +02:00
|
|
|
.include <bsd.port.mk>
|