Date: Tue, 12 Apr 2011 03:22:59 GMT From: Brandon <m37a11@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/156341: sguil-sensor port relies on barnyard2, however barnyard2 is missing option "--with-tcl" Message-ID: <201104120322.p3C3Mx7j045153@red.freebsd.org> Resent-Message-ID: <201104120330.p3C3UGDq020878@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 156341 >Category: ports >Synopsis: sguil-sensor port relies on barnyard2, however barnyard2 is missing option "--with-tcl" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 12 03:30:15 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Brandon >Release: 8.1-RELEASE >Organization: >Environment: FreeBSD freebsdx86.localdomain 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: The port sguil-sensor-0.7.0_3 depends on barnyard2-1.9_2. However the barnyard2 port does not seem to include the compiler option --with-tcl=DIR which is required for the sguil output plugin. When the "output squil" plugin is enabled barnyard2 fails to start with this message: "Apr 11 19:16:54 freebsdx86 barnyard2[6647]: --== Initializing Barnyard2 ==-- Apr 11 19:16:54 freebsdx86 barnyard2[6647]: Initializing Input Plugins! Apr 11 19:16:54 freebsdx86 barnyard2[6647]: Initializing Output Plugins! Apr 11 19:16:54 freebsdx86 barnyard2[6647]: Parsing config file "/usr/local/etc/barnyard2.conf" Apr 11 19:16:54 freebsdx86 barnyard2[6647]: Log directory = /var/log/barnyard2 Apr 11 19:16:54 freebsdx86 barnyard2[6647]: sguil: Tcl support is not compiled into this build of barnyard2 Apr 11 19:16:54 freebsdx86 barnyard2[6647]: FATAL ERROR: If this build of barnyard was obtained as a binary distribution (e.g., rpm, or Windows), then check for alternate builds that contains the necessary Tcl support. If this build of barnyard was compiled by you, then re-run the ./configure script using the '--with-tcl' switch to specify the location of the tclConfig.sh for your system. Apr 11 19:16:54 freebsdx86 joe: /usr/local/etc/rc.d/barnyard2: WARNING: failed to start barnyard2 " >How-To-Repeat: Add the line "output: sguil" to /usr/local/etc/barnyard2.conf, and start barnyard2. >Fix: Add "--with-tcl=DIR" option to barnyard2 port Patch attached with submission follows: --- /usr/ports/security/barnyard2/Makefile 2011-04-11 20:00:04.000000000 -0600 +++ /usr/ports/security/barnyard2/Makefile 2011-04-11 19:58:49.000000000 -0600 @@ -17,7 +17,8 @@ OPTIONS= MYSQL "Enable MySQL support" on \ POSTGRESQL "Enable PostgreSQL support" off \ SNORT "Depend on security/snort" off \ - SURICATA "Depend on security/suricata" off + SURICATA "Depend on security/suricata" off \ + TCL "Enable TCL support" off USE_RC_SUBR= barnyard2.sh GNU_CONFIGURE= yes @@ -50,6 +51,12 @@ RUN_DEPENDS+= ${LOCALBASE}/bin/suricata:${PORTSDIR}/security/suricata .endif +.if defined(WITH_TCL) +USE_TCL= yes +CONFIGURE_ARGS+= --with-tcl=${PREFIX}/lib/tcl8.4 +LIB_DEPENDS+= tcl84.1:${PORTSDIR}/lang/tcl84 +.endif + pre-install: ${CHMOD} 744 ${WRKSRC}/install-sh >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104120322.p3C3Mx7j045153>