openbsd-ports/net/dnsdist/Makefile
ajacoutot f50fdd748e Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:14:43 +00:00

66 lines
1.5 KiB
Makefile

COMMENT= highly DNS-, DoS- and abuse-aware loadbalancer
DISTNAME= dnsdist-1.7.3
EXTRACT_SUFX= .tar.bz2
REVISION= 0
CATEGORIES= net
HOMEPAGE= https://dnsdist.org/
MAINTAINER= Otto Moerbeek <otto@drijf.net>
# GPLv2 only
PERMIT_PACKAGE= Yes
WANTLIB += ${MODLUA_WANTLIB} c curses edit m \
fstrm h2o-evloop nghttp2 pthread \
z crypto ssl sodium ${COMPILER_LIBCXX}
MASTER_SITES= https://downloads.powerdns.com/releases/
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.69
USE_GMAKE= Yes
CONFIGURE_ARGS+= --without-gnutls \
--disable-hardening \
--with-lua=lua${MODLUA_VERSION:S/.//} \
--without-net-snmp \
--without-libcap \
--without-ebpf \
--without-lmdb \
--with-nghttp2 \
--enable-dns-over-tls \
--enable-dnscrypt \
--enable-dnstap \
--enable-dns-over-https
#
# On at least amd64 using clang13 dnsdist-lua-bindings.cc gets
# miscompiled with -O2, resulting in a segfault on startup
#
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
LIBEDIT_LIBS='-ledit -lcurses' \
LIBEDIT_CFLAGS=' '
SYSCONFDIR= ${BASESYSCONFDIR}/dnsdist
COMPILER = base-clang ports-gcc
MODULES+= lang/lua
MODLUA_VERSION= 5.3
BUILD_DEPENDS= devel/boost
LIB_DEPENDS+= ${MODLUA_LIB_DEPENDS} \
security/libsodium \
net/libfstrm \
www/h2o \
www/nghttp2
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/{doc,examples}/dnsdist
cd ${WRKSRC}; ${INSTALL_DATA} README.md ${PREFIX}/share/doc/dnsdist/; \
${INSTALL_DATA} dnsdistconf.lua ${PREFIX}/share/examples/dnsdist/
.include <bsd.port.mk>