From owner-svn-ports-all@freebsd.org Tue Feb 13 17:02:07 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B11DF10F75; Tue, 13 Feb 2018 17:02:07 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3088F82E34; Tue, 13 Feb 2018 17:02:05 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D99B723896; Tue, 13 Feb 2018 17:02:05 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1DH25Gf076888; Tue, 13 Feb 2018 17:02:05 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1DH25R3076886; Tue, 13 Feb 2018 17:02:05 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201802131702.w1DH25R3076886@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Tue, 13 Feb 2018 17:02:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r461714 - head/dns/dnscap X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: head/dns/dnscap X-SVN-Commit-Revision: 461714 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2018 17:02:07 -0000 Author: sunpoet Date: Tue Feb 13 17:02:05 2018 New Revision: 461714 URL: https://svnweb.freebsd.org/changeset/ports/461714 Log: Add CDS option Modified: head/dns/dnscap/Makefile head/dns/dnscap/pkg-plist Modified: head/dns/dnscap/Makefile ============================================================================== --- head/dns/dnscap/Makefile Tue Feb 13 17:02:00 2018 (r461713) +++ head/dns/dnscap/Makefile Tue Feb 13 17:02:05 2018 (r461714) @@ -13,19 +13,29 @@ COMMENT= DNS network traffic capture utility LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -OPTIONS_DEFINE= DOCS THREADS +OPTIONS_DEFINE= CDS DOCS THREADS OPTIONS_DEFAULT=THREADS +OPTIONS_SUB= yes +CDS_DESC= CBOR DNS Stream (CDS) format (experimental) CONFIGURE_ARGS= --enable-shared --enable-static GNU_CONFIGURE= yes INSTALL_TARGET= install-strip -USES= autoreconf libtool +USES= autoreconf libtool localbase GH_ACCOUNT= DNS-OARC +# https://github.com/DNS-OARC/dnscap/tree/develop/src GH_TUPLE= DNS-OARC:pcap-thread:v3.1.0:pcap/src/pcap-thread USE_GITHUB= yes +CDS_CONFIGURE_OFF= ac_cv_lib_ldns_ldns_wire2pkt=no \ + ac_cv_lib_tinycbor_cbor_parser_init=no +CDS_LIB_DEPENDS= libldns.so:dns/ldns \ + libtinycbor.so:devel/tinycbor THREADS_CONFIGURE_ENABLE= threads + +post-patch: + @${REINPLACE_CMD} -e 's|\(HAVE_\)\(CBOR_CBOR_H\)|\1TINY\2|; s|cbor/cbor.h|tiny&|' ${WRKSRC}/configure.ac ${WRKSRC}/src/dump_cbor.c ${WRKSRC}/src/dump_cds.c post-patch-DOCS-off: @${REINPLACE_CMD} -e '/^install-data-am: / s| install-dist_docDATA||' ${WRKSRC}/Makefile.am Modified: head/dns/dnscap/pkg-plist ============================================================================== --- head/dns/dnscap/pkg-plist Tue Feb 13 17:02:00 2018 (r461713) +++ head/dns/dnscap/pkg-plist Tue Feb 13 17:02:05 2018 (r461714) @@ -1,10 +1,16 @@ bin/dnscap +%%CDS%%bin/dnscap-rssm-rssac002 lib/dnscap/pcapdump.a lib/dnscap/pcapdump.so lib/dnscap/royparse.a lib/dnscap/royparse.so +%%CDS%%lib/dnscap/rssm.a +%%CDS%%lib/dnscap/rssm.so +%%CDS%%lib/dnscap/rzkeychange.a +%%CDS%%lib/dnscap/rzkeychange.so lib/dnscap/txtout.a lib/dnscap/txtout.so +%%CDS%%man/man1/dnscap-rssm-rssac002.1.gz man/man1/dnscap.1.gz %%PORTDOCS%%%%DOCSDIR%%/CONTRIBUTORS %%PORTDOCS%%%%DOCSDIR%%/README.md