From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Nov 15 21:59:42 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4AB9C8DA for ; Sat, 15 Nov 2014 21:59:42 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2D2DCCB6 for ; Sat, 15 Nov 2014 21:59:42 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAFLxeYf016586 for ; Sat, 15 Nov 2014 21:59:40 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 195046] New: sysutils/rsyslog8 [patch] rsyslog8 doesn't build omprog output module Date: Sat, 15 Nov 2014 21:59:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rand@iteris.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Nov 2014 21:59:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195046 Bug ID: 195046 Summary: sysutils/rsyslog8 [patch] rsyslog8 doesn't build omprog output module Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: Normal Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: rand@iteris.com The omprog (sending log messages to stdin of another process) module isn't built by default on FreeBSD, nor does it actually compile. How-To-Repeat: Want to send syslog messages to stdin of another program, such as logsurfer or sec. Fix: Attached patch creates a PROG config knob enabling the omprog output module. It also includes a trivial patch to "fix" the omprog.c code with wait.h being in /usr/include/sys on FreeBSD. diff -Nur rsyslog8.old/Makefile rsyslog8/Makefile --- rsyslog8.old/Makefile 2014-11-15 15:23:38.354046000 -0600 +++ rsyslog8/Makefile 2014-11-15 15:32:41.269071343 -0600 @@ -23,13 +23,14 @@ PORTSCOUT= limit:^8\.2 PKGNAMESUFFIX= 8 -OPTIONS_DEFINE= DBI DOCS GNUTLS GSSAPI MYSQL PGSQL RELP RFC3195 SNMP +OPTIONS_DEFINE= DBI DOCS GNUTLS GSSAPI MYSQL PGSQL PROG RELP RFC3195 SNMP DBI_DESC= LibDBI output module for rsyslog GNUTLS_DESC= GNUTLS module for rsyslog GSSAPI_DESC= GSS API input/output module for rsyslog MYSQL_DESC= MySQL output module for rsyslog PGSQL_DESC= PostgreSQL output module for rsyslog +PROG_DESC= Prog (a.k.a. pipe) output module for rsyslog RELP_DESC= RELP input/output module for rsyslog RFC3195_DESC= RFC3195 input support for rsyslog SNMP_DESC= SNMP trap sender for rsyslog @@ -80,6 +81,13 @@ CONFIGURE_ARGS+=--disable-pgsql .endif +.if ${PORT_OPTIONS:MPROG} +CONFIGURE_ARGS+=--enable-omprog +PLIST_FILES+= lib/rsyslog/omprog.so +.else +CONFIGURE_ARGS+=--disable-omprog +.endif + .if ${PORT_OPTIONS:MRELP} LIB_DEPENDS+= librelp.so:${PORTSDIR}/devel/librelp CONFIGURE_ARGS+=--enable-relp diff -Nur rsyslog8.old/files/patch-plugins__omprog__omprog.c rsyslog8/files/patch-plugins__omprog__omprog.c --- rsyslog8.old/files/patch-plugins__omprog__omprog.c 1969-12-31 18:00:00.000000000 -0600 +++ rsyslog8/files/patch-plugins__omprog__omprog.c 2014-11-15 15:28:07.234028803 -0600 @@ -0,0 +1,11 @@ +--- plugins/omprog/omprog.c.orig 2014-11-15 15:26:55.633028880 -0600 ++++ plugins/omprog/omprog.c 2014-11-15 15:27:01.695054590 -0600 +@@ -36,7 +36,7 @@ + #include + #include + #include +-#include ++#include + #include + #include "conf.h" + #include "syslogd-types.h" -- You are receiving this mail because: You are the assignee for the bug.