Date: Sun, 11 Nov 2012 03:16:12 GMT From: Edward <edward@rdtan.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/173547: [PATCH] benchmarks/netperf: OPTIONSNG & trim Makefile header Message-ID: <201211110316.qAB3GC5k089054@red.freebsd.org> Resent-Message-ID: <201211110320.qAB3K0wq070050@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 173547 >Category: ports >Synopsis: [PATCH] benchmarks/netperf: OPTIONSNG & trim Makefile header >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: Sun Nov 11 03:20:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Edward >Release: FreeBSD 8.3-RELEASE >Organization: >Environment: FreeBSD optionsng 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Apr 9 21:23:18 UTC 2012 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: - Update to use OPTIONSNG - Trim Makefile header - Will cc Maintainer (sumikawa@FreeBSD.org) # portlint -a looks fine. >How-To-Repeat: >Fix: Patch attached with submission follows: --- Makefile.original 2012-10-31 00:24:48.000000000 +0800 +++ Makefile 2012-11-11 01:36:09.000000000 +0800 @@ -1,9 +1,5 @@ -# New ports collection makefile for: netperf -# Date created: 19 July 1996 -# Whom: koshy -# -# $FreeBSD: ports/benchmarks/netperf/Makefile,v 1.33 2012/08/24 02:29:12 sumikawa Exp $ -# +# Created by: koshy +# $FreeBSD$ PORTNAME= netperf PORTVERSION= 2.6.0 @@ -14,11 +10,14 @@ MAINTAINER= sumikawa@FreeBSD.org COMMENT= Network performance benchmarking package -OPTIONS= SOCKETS "Enable Unix Domain socket support" On \ - SCTP "Enable SCTP support" On \ - EXS "Enable ICSC async socket support" On \ - HISTOGRAM "Enable optional histogram output" On \ - OMNI "Enable OMNI tests" Off \ +OPTIONS_DEFINE= OMNI SCTP SOCKETS HISTOGRAM EXS +OPTIONS_DEFAULT= SCTP SOCKETS HISTOGRAM EXS + +OMNI_DESC= Enable OMNI tests +SCTP_DESC= Enable SCTP support +SOCKETS_DESC= Enable Unix Domain socket support +HISTOGRAM_DESC= Enable optional histogram output +EXS_DESC= Enable ICSC async socket support .include <bsd.port.options.mk> @@ -27,31 +26,31 @@ CONFIGURE_ARGS= --program-prefix="" --program-suffix="" --enable-dirty \ --enable-demo --enable-burst --enable-intervals -.if !defined(WITHOUT_SOCKETS) +.if ${PORT_OPTIONS:MSOCKETS} CONFIGURE_ARGS+= --enable-unixdomain .else CONFIGURE_ARGS+= --disable-unixdomain .endif -.if !defined(WITHOUT_SCTP) +.if ${PORT_OPTIONS:MSCTP} CONFIGURE_ARGS+= --enable-sctp .else CONFIGURE_ARGS+= --disable-sctp .endif -.if !defined(WITHOUT_EXS) +.if ${PORT_OPTIONS:MEXS} CONFIGURE_ARGS+= --enable-exs .else CONFIGURE_ARGS+= --disable-exs .endif -.if !defined(WITHOUT_HISTOGRAM) +.if ${PORT_OPTIONS:MHISTOGRAM} CONFIGURE_ARGS+= --enable-histogram .else CONFIGURE_ARGS+= --disable-histogram .endif -.if !defined(WITHOUT_OMNI) +.if ${PORT_OPTIONS:MOMNI} CONFIGURE_ARGS+= --enable-omni .else CONFIGURE_ARGS+= --disable-omni >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211110316.qAB3GC5k089054>