diff --git a/dns/powerdns-recursor/Makefile b/dns/powerdns-recursor/Makefile index d21f4c64da99..acd1ce862ff2 100644 --- a/dns/powerdns-recursor/Makefile +++ b/dns/powerdns-recursor/Makefile @@ -1,75 +1,76 @@ PORTNAME= recursor DISTVERSION= 5.0.5 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= http://downloads.powerdns.com/releases/ PKGNAMEPREFIX= powerdns- DISTNAME= pdns-${PORTNAME}-${DISTVERSION} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= tremere@cainites.net COMMENT= Advanced DNS recursor WWW= https://www.PowerDNS.com/recursor.html LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_armv6= fails to compile: use of overloaded operator << is ambiguous BROKEN_armv7= fails to compile: use of overloaded operator << is ambiguous NOT_FOR_ARCHS= i386 NOT_FOR_ARCHS_REASON= archs with 32-bits time_t are no longer supported by upstream 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 CPE_VENDOR= powerdns USE_RC_SUBR= pdns-recursor GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/pdns \ --with-libsodium=no \ --with-service-user=pdns \ --with-service-group=pdns_recursor \ --without-net-snmp \ --without-systemd CARGO_CARGOLOCK= ${WRKSRC}/settings/rust/Cargo.lock CARGO_CARGOTOML= ${WRKSRC}/settings/rust/Cargo.toml CARGO_BUILD= no CARGO_INSTALL= no CARGO_TEST= no SUB_FILES= pkg-message TARGET_ORDER_OVERRIDE= 750:cargo-configure USERS= pdns_recursor GROUPS= pdns OPTIONS_DEFINE= DNSTAP OPTIONS_DEFAULT= LUA OPTIONS_SINGLE= EXTLUA OPTIONS_SINGLE_EXTLUA= LUA LUAJIT 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 LUAJIT_USES= luajit LUAJIT_CONFIGURE_ON= --with-lua=luajit LUA_USES= lua #pre-configure: # @cd ${WRKSRC}/settings && ${PYTHON_CMD} generate.py post-install: @${MKDIR} ${STAGEDIR}/var/run/pdns-recursor .include diff --git a/dns/powerdns-recursor/files/pdns-recursor.in b/dns/powerdns-recursor/files/pdns-recursor.in index 75733410bbad..9ba984bc9c8d 100644 --- a/dns/powerdns-recursor/files/pdns-recursor.in +++ b/dns/powerdns-recursor/files/pdns-recursor.in @@ -1,38 +1,39 @@ #!/bin/sh # PROVIDE: pdns_recursor # REQUIRE: NETWORKING # BEFORE: SERVERS # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable pdns_recursor: # # pdns_recursor_enable="YES" # pdns_recursor_flags="" # # See pdns_recursor(8) for flags. # . /etc/rc.subr name=pdns_recursor rcvar=pdns_recursor_enable load_rc_config ${name} pdns_recursor_enable=${pdns_recursor_enable:-"NO"} +: ${pdns_recursor_svcj_options:="net_basic"} pdns_recursor_conf=${pdns_recursor_conf:-"%%PREFIX%%/etc/pdns/recursor.conf"} required_files=${pdns_recursor_conf} # run_rc_command would send ${name}_flags as parameters to $command (daemon) # This ensures they are actually passed to pdns_recursor instead. actual_pdns_recursor_flags="${pdns_recursor_flags}" pdns_recursor_flags="" pidfile="/var/run/${name}.pid" actual_command="%%PREFIX%%/sbin/${name}" command="/usr/sbin/daemon" command_args="-c -f -r -P ${pidfile} ${actual_command} --daemon=no --write-pid=no ${actual_pdns_recursor_flags}" run_rc_command "$1"