1PORTNAME= barnyard2 2PORTVERSION= 1.13 3DISTVERSIONPREFIX= v2- 4PORTREVISION= 2 5CATEGORIES= security 6 7MAINTAINER= ports@MidnightBSD.org 8COMMENT= Interpreter for Snort unified2 binary output files 9 10LICENSE= gpl2 11 12USES= autoreconf libtool 13 14USE_GITHUB= yes 15GH_ACCOUNT= firnsy 16 17OPTIONS_DEFINE= 64BIT ARUBA BRO GRE IPV6 MPLS PORT_PCAP DOCS EXAMPLES 18OPTIONS_RADIO= DATABASE 19OPTIONS_RADIO_DATABASE= MYSQL MYSQL_SSL ODBC PGSQL 20NO_OPTIONS_SORT=yes 21 2264BIT_DESC= Enable 64bit compilation (experimental) 23ARUBA_DESC= Enable aruba support 24BRO_DESC= Enable bro support (libbroccoli) 25GRE_DESC= Enable gre support 26MYSQL_SSL_DESC= Enable mysql ssl support (experimental) 27PORT_PCAP_DESC= Use libpcap from ports 28 29.if defined(SLAVE) 30OPTIONS_DEFINE+= TCL 31TCL_DESC= Enable tcl support for sguil 32OPTIONS_DEFAULT+= TCL 33.endif 34 35USE_RC_SUBR= barnyard2 36GNU_CONFIGURE= yes 37 38CONFIGURE_TARGET= ${ARCH}-portbld-freebsd10.4 39 40SUB_FILES= pkg-message 41 42PORTDOCS1= README RELEASE.NOTES 43PORTDOCS2= INSTALL README.aruba README.database README.sguil README.sig_suppress README.snortsam 44EXAMPLES= SCHEMA_ACCESS create_db2 create_mssql create_mysql create_oracle.sql create_postgresql 45 4664BIT_CONFIGURE_ENABLE= 64bit-gcc 47ARUBA_CONFIGURE_ENABLE= aruba 48BRO_LIB_DEPENDS= libbroccoli.so:security/broccoli 49BRO_CONFIGURE_ON= --with-broccoli=${LOCALBASE}/lib 50BRO_CONFIGURE_ENABLE= bro 51GRE_CONFIGURE_ENABLE= gre 52IPV6_CONFIGURE_ENABLE= ipv6 53MPLS_CONFIGURE_ENABLE= mpls 54MYSQL_USES= mysql 55MYSQL_CONFIGURE_WITH= mysql 56MYSQL_CONFIGURE_ON= --with-mysql-includes=${LOCALBASE}/include/mysql \ 57 --with-mysql-libraries=${LOCALBASE}/lib/mysql 58MYSQL_SSL_CONFIGURE_ENABLE= mysql-ssl-support 59ODBC_BROKEN= fails to build with ODBC=on 60ODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC 61ODBC_CONFIGURE_WITH= odbc 62PGSQL_USES= pgsql 63PGSQL_CONFIGURE_ON= --with-postgresql=${LOCALBASE}/bin/pg_config --with-pgsql-includes=${LOCALBASE}/include/postgresql/server 64PGSQL_CONFIGURE_OFF= --without-postgresql 65TCL_USES= tcl 66TCL_CONFIGURE_ON= --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER} 67TCL_CONFIGURE_OFF= --without-tcl 68PORT_PCAP_LIB_DEPENDS= libpcap.so.1:net/libpcap 69PORT_PCAP_CONFIGURE_ON= --with-libpcap-includes=${LOCALBASE}/include \ 70 --with-libpcap-libraries=${LOCALBASE}/lib 71 72post-patch: 73 @${REINPLACE_CMD} 's|/etc|${LOCALBASE}/etc|' \ 74 ${WRKSRC}/etc/barnyard2.conf 75 76do-install: 77 @${MKDIR} ${DOCSDIR} 78 ${INSTALL_DATA} ${PORTDOCS1:S|^|${WRKSRC}/|} ${DOCSDIR} 79 ${INSTALL_DATA} ${PORTDOCS2:S|^|${WRKSRC}/doc/|} ${DOCSDIR} 80 @${MKDIR} ${EXAMPLESDIR} 81 ${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/schemas/|} ${EXAMPLESDIR} 82 ${INSTALL_PROGRAM} ${WRKSRC}/src/barnyard2 ${PREFIX}/bin/ 83 ${CP} ${WRKSRC}/etc/barnyard2.conf ${PREFIX}/etc/barnyard2.conf.sample 84 85.include <bsd.port.mk> 86