66 lines
1.5 KiB
Makefile
66 lines
1.5 KiB
Makefile
COMMENT= recursive nameserver
|
|
|
|
V= 4.8.0
|
|
DISTNAME= pdns-recursor-${V}
|
|
EXTRACT_SUFX = .tar.bz2
|
|
PKGNAME= powerdns-recursor-${V}
|
|
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= https://www.powerdns.com/
|
|
|
|
# GPLv2 only, OpenSSL exemption
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB+= ${COMPILER_LIBCXX} boost_context-mt boost_filesystem-mt
|
|
WANTLIB+= boost_system-mt boost_thread-mt c crypto curl fstrm m
|
|
WANTLIB+= sodium ssl z
|
|
|
|
MASTER_SITES= https://downloads.powerdns.com/releases/
|
|
MAINTAINER= Otto Moerbeek <otto@drijf.net>
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
NO_TEST= Yes
|
|
|
|
LIB_DEPENDS= devel/boost \
|
|
devel/boost,-md \
|
|
net/curl \
|
|
net/libfstrm \
|
|
security/libsodium
|
|
|
|
MODULES+= lang/lua
|
|
MODLUA_VERSION= 5.3
|
|
MODLUA_SA= Yes
|
|
LIB_DEPENDS+= ${MODLUA_LIB_DEPENDS}
|
|
WANTLIB+= ${MODLUA_WANTLIB}
|
|
|
|
SYSCONFDIR= ${BASESYSCONFDIR}/pdns
|
|
|
|
CONFIGURE_STYLE= autoreconf
|
|
AUTOCONF_VERSION= 2.69
|
|
AUTOMAKE_VERSION= 1.16
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_ARGS+= --disable-botan \
|
|
--disable-libdecaf \
|
|
--enable-dns-over-tls \
|
|
--enable-dnstap \
|
|
--with-lua=${MODLUA_DEP} \
|
|
--without-net-snmp \
|
|
--without-systemd
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
EXAMPLE_DIR= ${PREFIX}/share/examples/pdns/
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}
|
|
cat ${FILESDIR}/recursor.conf ${WRKSRC}/recursor.conf-dist > \
|
|
${WRKSRC}/recursor.conf # concatenate local and upstream sample configs
|
|
${INSTALL_DATA} ${WRKSRC}/recursor.conf ${EXAMPLE_DIR}
|
|
rm ${WRKINST}${SYSCONFDIR}/recursor.conf-dist
|
|
|
|
.include <bsd.port.mk>
|