Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2012 21:20:38 +0000 (UTC)
From:      Wesley Shields <wxs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308800 - head/benchmarks/nuttcp
Message-ID:  <201212122120.qBCLKck9051378@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wxs
Date: Wed Dec 12 21:20:37 2012
New Revision: 308800
URL: http://svnweb.freebsd.org/changeset/ports/308800

Log:
  Convert to new options.
  Trim header.
  
  PR:		ports/173560
  Submitted by:	edward@rdtan.net
  Approved by:	maintainer timeout

Modified:
  head/benchmarks/nuttcp/Makefile   (contents, props changed)

Modified: head/benchmarks/nuttcp/Makefile
==============================================================================
--- head/benchmarks/nuttcp/Makefile	Wed Dec 12 21:17:10 2012	(r308799)
+++ head/benchmarks/nuttcp/Makefile	Wed Dec 12 21:20:37 2012	(r308800)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	nuttcp
-# Date Created:				17 Jul 2009
 # Whom:					Andy Clark <andrewclarkii@gmail.com>
-#
 # $FreeBSD$
-#
 
 PORTNAME=	nuttcp
 PORTVERSION=	6.1.2
@@ -26,11 +22,14 @@ MAN8=		${PORTNAME}.8
 NUTTSCPVERSION=	1.7
 NUTTSCPDISTFILE=nuttscp-${NUTTSCPVERSION}
 
-OPTIONS=	NUTTSCP "Install script for copying files over nuttcp" on
+OPTIONS_DEFINE=	NUTTSCP
+OPTIONS_DEFAULT=	NUTTSCP
+
+NUTTSCP_DESC=	Install script for copying files over nuttcp
 
 .include <bsd.port.pre.mk>
 
-.if defined(WITH_NUTTSCP)
+.if ${PORT_OPTIONS:MNUTTSCP}
 USE_PERL5=	yes
 PLIST_SUB+=	NUTTSCP=""
 .else
@@ -46,7 +45,7 @@ post-patch:	.SILENT
 	${REINPLACE_CMD} 's|/usr/bin/perl|${PERL}|g' ${WRKDIR}/nuttscp
 
 do-install:
-.	if defined(WITH_NUTTSCP)
+.	if ${PORT_OPTIONS:MNUTTSCP}
 		${INSTALL_SCRIPT} ${WRKDIR}/nuttscp ${PREFIX}/bin/
 		( cd ${PREFIX}/bin; ${LN} -sf nuttscp nuttrcp )
 .	endif



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