2015-08-07 19:34:57 +00:00
|
|
|
# Created by: Carlos J Puga Medina <cpm@fbsd.es>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dnsdist
|
2018-11-11 09:54:04 +00:00
|
|
|
DISTVERSION= 1.3.3
|
2019-07-05 19:08:49 +00:00
|
|
|
PORTREVISION= 8
|
2015-08-07 19:34:57 +00:00
|
|
|
CATEGORIES= dns net
|
2016-03-22 02:14:01 +00:00
|
|
|
MASTER_SITES= https://downloads.powerdns.com/releases/ \
|
2016-03-03 04:16:37 +00:00
|
|
|
LOCAL/cpm
|
2015-08-07 19:34:57 +00:00
|
|
|
|
2016-02-02 12:52:19 +00:00
|
|
|
MAINTAINER= cpm@FreeBSD.org
|
2015-08-07 19:34:57 +00:00
|
|
|
COMMENT= Highly DNS-, DoS- and abuse-aware loadbalancer
|
|
|
|
|
2016-03-22 02:14:01 +00:00
|
|
|
LICENSE= GPLv2 UNLICENSE
|
|
|
|
LICENSE_COMB= multi
|
2018-05-07 17:06:00 +00:00
|
|
|
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
|
2016-03-22 02:14:01 +00:00
|
|
|
LICENSE_FILE_UNLICENSE= ${WRKSRC}/ext/incbin/UNLICENSE
|
2015-08-07 19:34:57 +00:00
|
|
|
|
2016-04-01 14:00:51 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libatomic_ops.a:devel/libatomic_ops
|
|
|
|
LIB_DEPENDS= libboost_serialization.so:devel/boost-libs \
|
2017-01-11 00:48:04 +00:00
|
|
|
libprotobuf.so:devel/protobuf \
|
|
|
|
libre2.so:devel/re2 \
|
2016-04-01 14:00:51 +00:00
|
|
|
libsodium.so:security/libsodium
|
2015-08-07 19:34:57 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2018-04-22 16:39:18 +00:00
|
|
|
USES= bison compiler:c++14-lang cpe gmake libedit libtool localbase \
|
2017-04-14 16:31:02 +00:00
|
|
|
pkgconfig tar:bz2
|
2017-01-11 00:48:04 +00:00
|
|
|
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \
|
2018-04-01 15:14:45 +00:00
|
|
|
--enable-dns-over-tls \
|
2017-01-11 00:48:04 +00:00
|
|
|
--enable-dnscrypt \
|
|
|
|
--enable-libsodium \
|
|
|
|
--enable-re2
|
|
|
|
|
2015-08-07 19:34:57 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
|
2016-04-25 07:47:53 +00:00
|
|
|
USERS= _dnsdist
|
|
|
|
GROUPS= _dnsdist
|
|
|
|
|
2015-08-22 11:26:16 +00:00
|
|
|
USE_RC_SUBR= dnsdist
|
|
|
|
|
2018-04-01 15:14:45 +00:00
|
|
|
OPTIONS_DEFINE= FSTRM LUAJIT SNMP
|
|
|
|
OPTIONS_DEFAULT= GNUTLS OPENSSL
|
|
|
|
OPTIONS_MULTI= TLS
|
|
|
|
OPTIONS_MULTI_TLS= GNUTLS OPENSSL
|
|
|
|
|
2018-05-07 17:06:00 +00:00
|
|
|
FSTRM_DESC= dnstap support (see dnstap.info)
|
|
|
|
LUAJIT_DESC= Use LuaJIT instead of Lua
|
2018-04-01 15:14:45 +00:00
|
|
|
|
|
|
|
FSTRM_LIB_DEPENDS= libfstrm.so:devel/fstrm
|
|
|
|
FSTRM_CONFIGURE_ENABLE= fstrm
|
|
|
|
|
|
|
|
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
|
|
|
|
GNUTLS_CONFIGURE_ENABLE=gnutls
|
|
|
|
|
2018-11-11 15:59:50 +00:00
|
|
|
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit
|
2018-04-01 15:14:45 +00:00
|
|
|
LUAJIT_USES_OFF= lua
|
2018-11-11 15:59:50 +00:00
|
|
|
LUAJIT_CONFIGURE_ON= --with-lua=luajit
|
|
|
|
LUAJIT_CONFIGURE_OFF= --with-lua=lua-${LUA_VER}
|
2018-04-01 15:14:45 +00:00
|
|
|
|
|
|
|
OPENSSL_USES= ssl
|
|
|
|
OPENSSL_CONFIGURE_ENABLE=libssl
|
2018-04-01 16:33:16 +00:00
|
|
|
OPENSSL_CONFIGURE_ON= LIBSSL_CFLAGS=-I${OPENSSLINC} LIBSSL_LIBS="-L${OPENSSLLIB} -lssl"
|
2018-04-01 15:14:45 +00:00
|
|
|
|
|
|
|
SNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
|
|
|
|
SNMP_CONFIGURE_WITH= net-snmp
|
|
|
|
|
2015-08-22 11:26:16 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/dnsdist.conf.sample \
|
|
|
|
${STAGEDIR}${PREFIX}/etc
|
2015-08-07 19:34:57 +00:00
|
|
|
|
2018-04-22 16:39:18 +00:00
|
|
|
.include <bsd.port.mk>
|