From nobody@FreeBSD.org  Thu Oct 24 11:29:58 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 719CB741
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Oct 2013 11:29:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 3387E25CA
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Oct 2013 11:29:58 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9OBTv2G070060
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Oct 2013 11:29:57 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9OBTv5x070055;
	Thu, 24 Oct 2013 11:29:57 GMT
	(envelope-from nobody)
Message-Id: <201310241129.r9OBTv5x070055@oldred.freebsd.org>
Date: Thu, 24 Oct 2013 11:29:57 GMT
From: Attila Nagy <bra@fsn.hu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: SYSLOG_SUPPORT doesn't work in www/nginx
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         183273
>Category:       ports
>Synopsis:       SYSLOG_SUPPORT doesn't work in www/nginx
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    osa
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 24 11:40:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Thu Oct 24 11:40:13 UTC 2013
>Originator:     Attila Nagy
>Release:        
>Organization:
>Environment:
>Description:
The www/nginx has an option knob, named SYSLOG_SUPPORT, which patches the source to include syslog support, but only in the case of NGX_ENABLE_SYSLOG is defined.
Currently, it is not, so it's not possible to use this patch.

Attached is a patch to port's Makefile which adds
CFLAGS+=-DNGX_ENABLE_SYSLOG=1
so the patch will actually be compiled in.
>How-To-Repeat:

>Fix:
See the attached patch.

Patch attached with submission follows:

Index: nginx/Makefile
===================================================================
--- nginx/Makefile	(revision 331473)
+++ nginx/Makefile	(working copy)
@@ -758,6 +758,7 @@
 .if ${PORT_OPTIONS:MSYSLOG_SUPPORT}
 NGINX_SYSLOG_SUPPORT_FACILITY?=	LOG_DAEMON
 CONFIGURE_ARGS+=--with-syslog --with-syslog-facility=${NGINX_SYSLOG_SUPPORT_FACILITY}
+CFLAGS+=-DNGX_ENABLE_SYSLOG=1
 EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-syslog_support
 .endif
 


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->osa 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Oct 24 11:40:12 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183273 
>Unformatted:
