Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 2013 18:38:27 GMT
From:      "Ilya A. Arkhipov" <rum1cro@yandex.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/178424: [sysutils/rsyslog5] patch for moving to optionsng
Message-ID:  <201305081838.r48IcRCq027740@oldred.FreeBSD.org>
Resent-Message-ID: <201305081840.r48Ie1eX056841@freefall.freebsd.org>

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

>Number:         178424
>Category:       ports
>Synopsis:       [sysutils/rsyslog5] patch for moving to optionsng
>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 May 08 18:40:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Ilya A. Arkhipov
>Release:        10.0-CURRENT
>Organization:
Rambler
>Environment:
FreeBSD mhome 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Thu Mar 29 18:04:50 UTC 2012     root@mhome:/usr/obj/usr/src/sys/MICROKERNEL  amd64
>Description:
[sysutils/rsyslog5] patch for moving to optionsng
>How-To-Repeat:
install it ^_^
>Fix:
diff -Nru rsyslog5_old/Makefile rsyslog5/Makefile
--- rsyslog5_old/Makefile       2013-05-07 20:43:36.157707306 +0400
+++ rsyslog5/Makefile   2013-05-07 20:48:18.367707321 +0400
@@ -40,13 +40,15 @@
 GNU_CONFIGURE= yes
 USES=          pkgconfig

-OPTIONS=       DEBUG   "Enable debugging"      off
+OPTIONS_DEFINE=        DEBUG
+DEBUG_DESC=    Enable debugging

-.ifdef WITH_DEBUG
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MDEBUG}
 CONFIGURE_ARGS+=--enable-rtinst --enable-debug
 .endif

-.include <bsd.port.pre.mk>
 .if ${ARCH} == "i386"
 CPPFLAGS+=-march=i686
 .endif


Patch attached with submission follows:

diff -Nru rsyslog5_old/Makefile rsyslog5/Makefile
--- rsyslog5_old/Makefile	2013-05-07 20:43:36.157707306 +0400
+++ rsyslog5/Makefile	2013-05-07 20:48:18.367707321 +0400
@@ -40,13 +40,15 @@
 GNU_CONFIGURE=	yes
 USES=		pkgconfig
 
-OPTIONS=	DEBUG	"Enable debugging"	off
+OPTIONS_DEFINE=	DEBUG
+DEBUG_DESC=	Enable debugging
 
-.ifdef WITH_DEBUG
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MDEBUG}
 CONFIGURE_ARGS+=--enable-rtinst --enable-debug
 .endif
 
-.include <bsd.port.pre.mk>
 .if ${ARCH} == "i386"
 CPPFLAGS+=-march=i686
 .endif


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



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