svn commit: r317075 - head/net-mgmt/nagios-plugins

Jason Helfman jgh at FreeBSD.org
Thu May 2 06:49:35 UTC 2013


Author: jgh
Date: Thu May  2 06:49:34 2013
New Revision: 317075
URL: http://svnweb.freebsd.org/changeset/ports/317075

Log:
  - adoptions of USES for gettext
  
  Approved by:	portmgr (bapt@)

Modified:
  head/net-mgmt/nagios-plugins/Makefile

Modified: head/net-mgmt/nagios-plugins/Makefile
==============================================================================
--- head/net-mgmt/nagios-plugins/Makefile	Thu May  2 06:36:43 2013	(r317074)
+++ head/net-mgmt/nagios-plugins/Makefile	Thu May  2 06:49:34 2013	(r317075)
@@ -42,7 +42,7 @@ NAGIOSCGIURL?=	${NAGIOSHTMURL}/cgi-bin
 NAGIOSPOLLIP?=	127.0.0.1
 NAGIOSPOLLIP6?=	::1
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 CONFIGURE_ARGS=	--with-nagios-user=${NAGIOSUSER} \
 		--with-nagios-group=${NAGIOSGROUP} \
@@ -128,12 +128,12 @@ PLIST_SUB+=	SUB_LDAP=""
 PLIST_SUB+=	SUB_LDAP="@comment "
 .endif
 
-.if empty(PORT_OPTIONS:MNLS)
+.if ${PORT_OPTIONS:MNLS}
+USES+=		gettext
+PLIST_SUB+=	NLS=""
+.else
 CONFIGURE_ARGS+=	--disable-nls
 PLIST_SUB+=	NLS="@comment "
-.else
-USE_GETTEXT=	yes
-PLIST_SUB+=	NLS=""
 .endif
 
 # Restore check_users from 1.4.15 for hosts without getutxent(3)
@@ -153,4 +153,4 @@ post-patch:
 	@${REINPLACE_CMD} -e 's# ::1 # ${NAGIOSPOLLIP6} #g' ${WRKSRC}/configure.in
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-all mailing list