From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 21 13:10:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C9423E46 for ; Thu, 21 Mar 2013 13:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id AEA4975F for ; Thu, 21 Mar 2013 13:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2LDA1mg076338 for ; Thu, 21 Mar 2013 13:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2LDA1oW076337; Thu, 21 Mar 2013 13:10:01 GMT (envelope-from gnats) Resent-Date: Thu, 21 Mar 2013 13:10:01 GMT Resent-Message-Id: <201303211310.r2LDA1oW076337@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, William Grzybowski Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 48ED4960 for ; Thu, 21 Mar 2013 13:05:59 +0000 (UTC) (envelope-from william88@gmail.com) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx1.freebsd.org (Postfix) with ESMTP id 0EA40708 for ; Thu, 21 Mar 2013 13:05:58 +0000 (UTC) Received: by mail-vc0-f172.google.com with SMTP id hr11so2248612vcb.31 for ; Thu, 21 Mar 2013 06:05:58 -0700 (PDT) Received: from localhost ([177.40.113.56]) by mx.google.com with ESMTPS id tp10sm40722389vec.1.2013.03.21.06.05.55 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Mar 2013 06:05:56 -0700 (PDT) Message-Id: <514b05b4.aae83a0a.39c3.ffffc5be@mx.google.com> Date: Thu, 21 Mar 2013 06:05:56 -0700 (PDT) From: William Grzybowski To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/177192: [PATCH] net/wireshark: convert to options ng X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: William Grzybowski List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Mar 2013 13:10:01 -0000 >Number: 177192 >Category: ports >Synopsis: [PATCH] net/wireshark: convert to 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 13:10:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: William Grzybowski >Release: FreeBSD 9.1-RELEASE amd64 >Organization: >Environment: >Description: Convert to new options framework Trim makefile header >How-To-Repeat: >Fix: See attached patch --- wireshark.patch begins here --- Index: Makefile =================================================================== --- Makefile (revision 314701) +++ Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: ethereal -# Date created: 10 August 1998 -# Whom: Bill Fumerola -# +# Created by: Bill Fumerola # $FreeBSD$ -# PORTNAME?= wireshark PORTVERSION= 1.8.6 @@ -16,7 +12,6 @@ http://ftp.yz.yamagata-u.ac.jp/pub/network/security/wireshark/src/ \ ftp://ftp.yz.yamagata-u.ac.jp/pub/network/security/wireshark/src/ \ http://wireshark.zing.org/download/src/ -DISTNAME= ${DATADIR_NAME}-${PORTVERSION} MAINTAINER= marcus@FreeBSD.org COMMENT?= A powerful network analyzer/capture tool @@ -56,25 +51,23 @@ .endif .endfor -.if !defined(WITHOUT_X11) -USE_XORG= x11 +.if !defined(LITE) +OPTIONS_DEFINE= RTP SNMP ADNS PCRE IPV6 GEOIP LUA CARES GSSAPI +OPTIONS_DEFAULT=SNMP ADNS PCRE IPV6 GEOIP GSSAPI + +RTP_DESC= Enable support for playing back RTP streams +ADNS_DESC= Enable asynchronous DNS lookup support .endif -.if !defined(LITE) -OPTIONS= RTP "Enable support for playing back RTP streams" off \ - SNMP "Enable SNMP OID translation support" on \ - ADNS "Enable asynchronous DNS lookup support" on \ - PCRE "Enable regular expression matching support" on \ - IPV6 "Enable IPv6 support" on \ - GEOIP "Enable GeoIP lookups" on \ - LUA "Enable LUA scripting integration" off \ - CARES "Asynchronous DNS resolution via c-ares" off \ - GSSAPI "Enable Kerberos support" on +.include + +.if ${PORT_OPTIONS:MX11} +USE_XORG= x11 .endif .include -.if !defined(WITHOUT_X11) +.if ${PORT_OPTIONS:MX11} MAN1+= wireshark.1 PLIST_SUB+= WIRESHARK=bin/wireshark USE_GNOME+= gtk20 @@ -90,25 +83,25 @@ LIBTOOLFILES= configure wiretap/configure PLIST_SUB+= PORTVERSION=${PORTVERSION} -.if !defined(WITHOUT_IPV6) +.if ${PORT_OPTIONS:MIPV6} CONFIGURE_ARGS+= --enable-ipv6=yes .else CONFIGURE_ARGS+= --enable-ipv6=no .endif # XXX - untested -.if defined(WITH_THREADS) +.if ${PORT_OPTIONS:MTHREADS} CONFIGURE_ARGS+= --enable-threads .endif -.if !defined(WITHOUT_PCRE) && !defined(LITE) +.if ${PORT_OPTIONS:MPCRE} && !defined(LITE) LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre CONFIGURE_ARGS+= --with-pcre=${LOCALBASE}/lib .else CONFIGURE_ARGS+= --with-pcre=no .endif -.if defined(WITH_LUA) && !defined(LITE) +.if ${PORT_OPTIONS:MLUA} && !defined(LITE) USE_LUA= 5.1 CONFIGURE_ARGS+=--with-lua=${LUA_PREFIX} PLIST_SUB+= LUA="" @@ -117,7 +110,7 @@ PLIST_SUB+= LUA="@comment " .endif -.if defined(WITH_RTP) && !defined(LITE) +.if ${PORT_OPTIONS:MRTP} && !defined(LITE) LIB_DEPENDS+= portaudio:${PORTSDIR}/audio/portaudio CONFIGURE_ARGS+=--with-portaudio=${LOCALBASE} WIRESHARK_LIBS+=${PTHREAD_LIBS} @@ -125,35 +118,35 @@ CONFIGURE_ARGS+=--without-portaudio .endif -.if !defined(WITHOUT_SNMP) && !defined(LITE) +.if ${PORT_OPTIONS:MSNMP} && !defined(LITE) LIB_DEPENDS+= smi:${PORTSDIR}/net-mgmt/libsmi CONFIGURE_ARGS+= --with-libsmi=${LOCALBASE} .else CONFIGURE_ARGS+= --with-libsmi=no .endif -.if !defined(WITHOUT_ADNS) && !defined(LITE) +.if ${PORT_OPTIONS:MADNS} && !defined(LITE) LIB_DEPENDS+= adns:${PORTSDIR}/dns/adns CONFIGURE_ARGS+= --with-adns=${LOCALBASE}/lib .else CONFIGURE_ARGS+= --with-adns=no .endif -.if !defined(WITHOUT_CARES) && !defined(LITE) +.if ${PORT_OPTIONS:MCARES} && !defined(LITE) LIB_DEPENDS+= cares:${PORTSDIR}/dns/c-ares CONFIGURE_ARGS+= --with-c-ares=${LOCALBASE}/lib .else CONFIGURE_ARGS+= --with-c-ares=no .endif -.if !defined(WITHOUT_GEOIP) && !defined(LITE) +.if ${PORT_OPTIONS:MGEOIP} && !defined(LITE) LIB_DEPENDS+= GeoIP:${PORTSDIR}/net/GeoIP CONFIGURE_ARGS+= --with-geoip=${LOCALBASE}/lib .else CONFIGURE_ARGS+= --with-geoip=no .endif -.if !defined(WITHOUT_GNUTLS) +.if ${PORT_OPTIONS:MGNUTLS} LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls \ gcrypt:${PORTSDIR}/security/libgcrypt CONFIGURE_ARGS+=--with-libgcrypt-prefix=${LOCALBASE} \ @@ -162,12 +155,12 @@ CONFIGURE_ARGS+=--with-gnutls=no .endif -.if !defined(WITHOUT_LIBGCRYPT) +.if ${PORT_OPTIONS:MGCRYPT} LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt CONFIGURE_ARGS+=--with-libgcrypt-prefix=${LOCALBASE} .endif -.if defined(WITHOUT_GSSAPI) +.if ! ${PORT_OPTIONS:MGSSAPI} CONFIGURE_ARGS+=--with-krb5=no .endif --- wireshark.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: