Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2013 15:10:55 -0700 (PDT)
From:      William Grzybowski <william88@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/177212: [PATCH] net/nss_ldap: options ng
Message-ID:  <514b856f.2436ec0a.799a.3231@mx.google.com>
Resent-Message-ID: <201303212220.r2LMK0Ja082119@freefall.freebsd.org>

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

>Number:         177212
>Category:       ports
>Synopsis:       [PATCH] net/nss_ldap: options ng
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 21 22:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     William Grzybowski
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
>Description:

	Convert to options ng
	Trim makefile header

>How-To-Repeat:
>Fix:

	See attached patch


--- nss_ldap.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 314859)
+++ Makefile	(working copy)
@@ -1,9 +1,5 @@
-# Ports collection Makefile for:	nss_ldap
-# Date created:				4/1/2003
-# Whom:					nectar@FreeBSD.org
-#
+# Created by: nectar@FreeBSD.org
 # $FreeBSD$
-#
 
 PORTNAME=	nss_ldap
 PORTVERSION=	1.${NSS_LDAP_VERSION}
@@ -26,8 +22,11 @@
 USE_LDCONFIG=	yes
 USE_OPENLDAP=	yes
 
-OPTIONS=	LCLASS "Enable login classes via the loginClass attribute" on
+OPTIONS_DEFINE=	LCLASS
+OPTIONS_DEFAULT=LCLASS
 
+LCLASS_DESC=	Enable login classes via the loginClass attribute
+
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib
 
@@ -45,7 +44,7 @@
 CONFIGURE_ARGS+=--enable-configurable-krb5-ccname-env
 .endif
 
-.if defined(WITH_LCLASS)
+.if ${PORT_OPTIONS:MLCLASS}
 CFLAGS+="-DHAVE_LOGIN_CLASSES"
 .endif
 
--- nss_ldap.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?514b856f.2436ec0a.799a.3231>