ports/144832: [PATCH] net-mgmt/bsnmp-regex - Add option to use PCRE regex library

Marko Njezic mrmax063 at maxempire.com
Wed Mar 17 22:50:02 UTC 2010


>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 at 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:



More information about the freebsd-ports-bugs mailing list