summaryrefslogtreecommitdiff
path: root/dns/dnscap/Makefile
blob: 13697dca941d6d1e3fdde597e9aa3caf0bc2b61e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
PORTNAME=	dnscap
PORTVERSION=	2.1.1
PORTEPOCH=	1
CATEGORIES=	dns
MASTER_SITES=	https://www.dns-oarc.net/files/dnscap/ \
		LOCAL/sunpoet

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	DNS network traffic capture utility
WWW=		https://www.dns-oarc.net/tools/dnscap

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libldns.so:dns/ldns

USES=		autoreconf libtool localbase pkgconfig ssl

CONFIGURE_ARGS=	--enable-shared --enable-static
CONFIGURE_ENV=	libcrypto_CFLAGS=-I${OPENSSLINC}/include \
		libcrypto_LIBS="-L${OPENSSLLIB}/lib -lcrypto"
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	CDS DOCS THREADS
OPTIONS_DEFAULT=THREADS
CDS_DESC=	CBOR DNS Stream (CDS) format (experimental)

CDS_CONFIGURE_OFF=	ac_cv_lib_tinycbor_cbor_parser_init=no
CDS_LIB_DEPENDS=	libtinycbor.so:devel/tinycbor
THREADS_CONFIGURE_ENABLE=	threads

post-patch-DOCS-off:
	@${REINPLACE_CMD} -e '/^install-data-am: / s| install-dist_docDATA||' ${WRKSRC}/Makefile.am

post-patch-DOCS-on:
	@${REINPLACE_CMD} -e '/^dist_doc_DATA = / s| LICENSE||' ${WRKSRC}/Makefile.am

.include <bsd.port.mk>