Date: Fri, 7 Feb 2014 17:30:44 GMT From: Renato Botelho <garga@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/186542: [patch] security/barnyard2: Add an option to build using libpcap from ports Message-ID: <201402071730.s17HUirn044569@newred.freebsd.org> Resent-Message-ID: <201402071740.s17He0nV097958@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 186542 >Category: ports >Synopsis: [patch] security/barnyard2: Add an option to build using libpcap from ports >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Feb 07 17:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Renato Botelho >Release: 11-CURRENT >Organization: ESF LLC >Environment: FreeBSD fbsd1 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r257265M: Mon Oct 28 18:51:16 BRST 2013 root@fbsd1:/usr/obj/usr/src/sys/GARGA amd64 >Description: - Add a new OPTION PORT_PCAP to build using libpcap from ports instead of base - While I'm here, use OPTIONS helpers and simplify Makefile >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 343279) +++ Makefile (working copy) @@ -14,7 +14,7 @@ GH_TAGNAME= v2-${PORTVERSION} GH_COMMIT= 272eaf7 -OPTIONS_DEFINE= 64BIT ARUBA BRO GRE IPV6 MPLS MYSQL MYSQL_SSL ODBC PRELUDE PGSQL +OPTIONS_DEFINE= 64BIT ARUBA BRO GRE IPV6 MPLS MYSQL MYSQL_SSL ODBC PRELUDE PGSQL PORT_PCAP NO_OPTIONS_SORT=yes 64BIT_DESC= Enable 64bit compilation (experimental) @@ -23,6 +23,7 @@ GRE_DESC= Enable gre support MYSQL_SSL_DESC= Enable mysql ssl support (experimental) PRELUDE_DESC= Enable prelude support +PORT_PCAP_DESC= Use libpcap from ports .if defined(SLAVE) OPTIONS_DEFINE+= TCL @@ -44,90 +45,34 @@ PORTDOCS2= INSTALL README.aruba README.database README.sguil README.sig_suppress README.snortsam EXAMPLES= 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} -LIB_DEPENDS+= libbroccoli.so:${PORTSDIR}/security/broccoli -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 \ +64BIT_CONFIGURE_ENABLE= 64bit-gcc +ARUBA_CONFIGURE_ENABLE= aruba +BRO_LIB_DEPENDS= libbroccoli.so:${PORTSDIR}/security/broccoli +BRO_CONFIGURE_ON= --with-broccoli=${LOCALBASE}/lib +BRO_CONFIGURE_ENABLE= bro +GRE_CONFIGURE_ENABLE= gre +IPV6_CONFIGURE_ENABLE= ipv6 +MPLS_CONFIGURE_ENABLE= mpls +MYSQL_USE= MYSQL=yes +MYSQL_CONFIGURE_WITH= mysql +MYSQL_CONFIGURE_ON= --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 +MYSQL_SSL_CONFIGURE_ENABLE= mysql-ssl-support +ODBC_LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC +ODBC_WITH= odbc +PRELUDE_BUILD_DEPENDS= prelude-manager:${PORTSDIR}/security/prelude-manager +PRELUDE_CONFIGURE_ENABLE= prelude +PGSQL_USE= PGSQL=yes +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 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 +PORT_PCAP_LIB_DEPENDS= libpcap.so:${PORTSDIR}/net/libpcap +PORT_PCAP_CONFIGURE_ON= --with-libpcap-includes=${LOCALBASE}/include \ + --with-libpcap-libraries=${LOCALBASE}/lib -.if ${PORT_OPTIONS:MTCL} -USES+= tcl -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 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402071730.s17HUirn044569>