diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2018-02-14 01:02:05 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2018-02-14 01:02:05 +0800 |
commit | 775491983c0434c948af98b57ac9c08806d22e61 (patch) | |
tree | 22baebd1858eeb8484d8b2e93704b66ff332d63b /dns | |
parent | c6e7e4a7f801efe03ab240464e2eb171314d32fc (diff) | |
download | freebsd-ports-gnome-775491983c0434c948af98b57ac9c08806d22e61.tar.gz freebsd-ports-gnome-775491983c0434c948af98b57ac9c08806d22e61.tar.zst freebsd-ports-gnome-775491983c0434c948af98b57ac9c08806d22e61.zip |
Add CDS option
Diffstat (limited to 'dns')
-rw-r--r-- | dns/dnscap/Makefile | 14 | ||||
-rw-r--r-- | dns/dnscap/pkg-plist | 6 |
2 files changed, 18 insertions, 2 deletions
diff --git a/dns/dnscap/Makefile b/dns/dnscap/Makefile index 31425db6885f..ad648e64241a 100644 --- a/dns/dnscap/Makefile +++ b/dns/dnscap/Makefile @@ -13,20 +13,30 @@ 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 diff --git a/dns/dnscap/pkg-plist b/dns/dnscap/pkg-plist index c126c3123ea6..f32a7d97ec79 100644 --- a/dns/dnscap/pkg-plist +++ b/dns/dnscap/pkg-plist @@ -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 |