NetBSD Problem Report #52177

From www@NetBSD.org  Tue Apr 18 14:49:28 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id F2E9B7A167
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 18 Apr 2017 14:49:27 +0000 (UTC)
Message-Id: <20170418144926.D0F537A2B0@mollari.NetBSD.org>
Date: Tue, 18 Apr 2017 14:49:26 +0000 (UTC)
From: amd@pd-house.info
Reply-To: amd@pd-house.info
To: gnats-bugs@NetBSD.org
Subject: stream feature for nginx
X-Send-Pr-Version: www-1.0

>Number:         52177
>Category:       pkg
>Synopsis:       stream feature for nginx
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    joerg
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 18 14:50:00 +0000 2017
>Last-Modified:  Tue Apr 18 18:50:56 +0000 2017
>Originator:     Anders Mundt Due
>Release:        pkgsrc current (as of 2017-04-18)
>Organization:
>Environment:
NetBSD netb71-64.pd-house.dk 7.1 NetBSD 7.1 (GENERIC.201703111743Z) amd64
>Description:
nginx stable and development versions both have a stream module but it's missing from options.mk so it can't be compiled in
>How-To-Repeat:
try to add stream to PKG_OPTIONS.nginx in your mk.conf..
>Fix:
diff www/nginx/options.mk www/nginx/options.mk
index b7e702485a1..4459cd8f2db 100644
--- www/nginx/options.mk
+++ www/nginx/options.mk
@@ -5,7 +5,7 @@ PKG_SUPPORTED_OPTIONS=          dav flv gtools inet6 luajit mail-proxy memcache naxsi \
                                pcre push realip ssl sub uwsgi image-filter \
                                debug status nginx-autodetect-cflags echo \
                                set-misc headers-more array-var encrypted-session \
-                               form-input perl gzip http2
+                               form-input perl gzip http2 stream
 PKG_OPTIONS_LEGACY_OPTS+=      v2:http2

 PKG_SUGGESTED_OPTIONS= inet6 pcre ssl
@@ -24,10 +24,17 @@ CONFIGURE_ARGS+=    --add-module=../${NAXSI_DISTNAME}/naxsi_src
 CONFIGURE_ARGS+=       --with-debug
 .endif

+.if !empty(PKG_OPTIONS:Mstream)
+CONFIGURE_ARGS+=       --with-stream
+.endif
+
 .if !empty(PKG_OPTIONS:Mssl)
 .include "../../security/openssl/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-mail_ssl_module
 CONFIGURE_ARGS+=       --with-http_ssl_module
+.if !empty(PKG_OPTIONS:Mstream)
+CONFIGURE_ARGS+=       --with-stream_ssl_module
+.endif
 .endif

 .if !empty(PKG_OPTIONS:Mpcre)

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Tue, 18 Apr 2017 18:50:56 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.