Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2010 22:40:28 GMT
From:      Marko Njezic <mrmax063@maxempire.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/144832: [PATCH] net-mgmt/bsnmp-regex - Add option to use PCRE regex library
Message-ID:  <201003172240.o2HMeSC7010760@www.freebsd.org>
Resent-Message-ID: <201003172250.o2HMo1Ct073454@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         144832
>Category:       ports
>Synopsis:       [PATCH] net-mgmt/bsnmp-regex - Add option to use PCRE regex library
>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:   Wed Mar 17 22:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Marko Njezic
>Release:        8.0-RELEASE-p2
>Organization:
MAX Interactive corp.
>Environment:
FreeBSD vmbsd 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan  5 16:02:27 UTC 2010     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Bsnmp-regex has support for using PCRE regex library, but the port doesn't provide an option to choose which regex library to use, therefore defaulting to always using standard C regex library.

I've created a patch for port's Makefile that will allow users to choose whether to use PCRE or not.
>How-To-Repeat:

>Fix:
Apply the suggested patch file.

Patch attached with submission follows:

diff -Naur bsnmp-regex.original/Makefile bsnmp-regex/Makefile
--- bsnmp-regex.original/Makefile	2009-11-28 01:07:05.000000000 +0100
+++ bsnmp-regex/Makefile	2010-03-17 23:08:02.000000000 +0100
@@ -15,6 +15,17 @@
 
 GNU_CONFIGURE=	yes
 
+OPTIONS=	PCRE	"Use PCRE instead of the default regex library"	Off
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_PCRE)
+LIB_DEPENDS+=		pcre.0:${PORTSDIR}/devel/pcre
+CONFIGURE_ARGS+=	--enable-pcre
+.else
+CONFIGURE_ARGS+=	--disable-pcre
+.endif
+
 MAN1=		sockin.1
 MAN5=		bsnmp-regex.conf.5
 MAN8=		bsnmp-regex.8


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003172240.o2HMeSC7010760>