summaryrefslogtreecommitdiff
path: root/dns/powerdns-recursor/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dns/powerdns-recursor/Makefile')
-rw-r--r--dns/powerdns-recursor/Makefile41
1 files changed, 22 insertions, 19 deletions
diff --git a/dns/powerdns-recursor/Makefile b/dns/powerdns-recursor/Makefile
index fab4f26f26a8..a52d46caa39a 100644
--- a/dns/powerdns-recursor/Makefile
+++ b/dns/powerdns-recursor/Makefile
@@ -1,6 +1,5 @@
PORTNAME= recursor
-DISTVERSION= 5.2.2
-PORTREVISION= 3
+DISTVERSION= 5.3.0
CATEGORIES= dns
MASTER_SITES= https://downloads.powerdns.com/releases/
PKGNAMEPREFIX= powerdns-
@@ -21,33 +20,32 @@ BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
LIB_DEPENDS= libboost_context.so:devel/boost-libs \
libcurl.so:ftp/curl
-USES= autoreconf cargo compiler:c++11-lib cpe gmake libtool \
- localbase:ldflags pkgconfig python:build ssl tar:bzip2
+USES= cargo compiler:c++11-lib cpe localbase meson pkgconfig \
+ python:build tar:xz
CPE_VENDOR= powerdns
USE_RC_SUBR= pdns_recursor
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/pdns \
- --with-libsodium=no \
- --with-service-group=pdns_recursor \
- --with-service-user=pdns \
- --without-net-snmp \
- --without-systemd
+MESON_ARGS= --sysconfdir=${PREFIX}/etc/pdns \
+ -Dhardening=disabled \
+ -Dlibcap=disabled \
+ -Dsigners-libsodium=disabled \
+ -Dsystemd-service=disabled
-CARGO_CARGOLOCK= ${WRKSRC}/settings/rust/Cargo.lock
-CARGO_CARGOTOML= ${WRKSRC}/settings/rust/Cargo.toml
+CARGO_CARGOLOCK= ${WRKSRC}/rec-rust-lib/rust/Cargo.lock
+CARGO_CARGOTOML= ${WRKSRC}/rec-rust-lib/rust/Cargo.toml
CARGO_BUILD= no
CARGO_INSTALL= no
CARGO_TEST= no
+BINARY_ALIAS= python3=${PYTHON_CMD}
SUB_FILES= pkg-message
TARGET_ORDER_OVERRIDE= 750:cargo-configure
USERS= pdns_recursor
GROUPS= pdns
-OPTIONS_DEFINE= DNSTAP
+OPTIONS_DEFINE= DNSTAP SNMP
OPTIONS_DEFAULT= LUA
OPTIONS_SINGLE= EXTLUA
OPTIONS_SINGLE_EXTLUA= LUA LUAJIT
@@ -56,16 +54,21 @@ DNSTAP_DESC= dnstap support (see dnstap.info)
LUAJIT_DESC= Use luajit
LUA_DESC= Use lang/lua
-DNSTAP_LIB_DEPENDS= libfstrm.so:devel/fstrm
-DNSTAP_CONFIGURE_ENABLE= dnstap
+DNSTAP_LIB_DEPENDS= libfstrm.so:devel/fstrm
+DNSTAP_MESON_ENABLED= dnstap
LUAJIT_USES= luajit
-LUAJIT_CONFIGURE_ON= --with-lua=luajit
+LUAJIT_MESON_ON= -Dlua=luajit
LUA_USES= lua
+LUA_MESON_ON= -Dlua=lua
-#pre-configure:
-# @cd ${WRKSRC}/settings && ${PYTHON_CMD} generate.py
+SNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
+SNMP_MESON_ENABLED= snmp
+
+pre-configure:
+ @${ECHO_MSG} "===> Generating stub lib.rs to satisfy cargo configure"
+ @echo "// stub" > ${WRKSRC}/rec-rust-lib/rust/src/lib.rs
post-install:
@${MKDIR} ${STAGEDIR}/var/run/pdns-recursor