mirror of
https://git.freebsd.org/ports.git
synced 2025-06-17 10:40:46 -04:00
- Mark BROKEN on FreeBSD 9 - Remove STATIC option, add LUAJIT option - Cleanup LUA option, SETUID, and BROKEN_sparc64 usage; use option helpers Changes: https://doc.powerdns.com/md/changelog/#powerdns-recursor-400 https://doc.powerdns.com/md/changelog/#powerdns-recursor-401 PR: 211148 Submitted by: Ralf van der Enden <tremere@cainites.net> (maintainer) Security: CVE-2016-6172 Security: https://vuxml.FreeBSD.org/freebsd/7d08e608-5e95-11e6-b334-002590263bf5.html
37 lines
649 B
Bash
37 lines
649 B
Bash
#!/bin/sh
|
|
#
|
|
# $$
|
|
#
|
|
|
|
# PROVIDE: pdns_recursor
|
|
# REQUIRE: SERVERS cleanvar
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable pdns_recursor:
|
|
#
|
|
# pdns_recursor_enable="YES"
|
|
# pdns_recursor_flags="<set as needed>"
|
|
#
|
|
# See pdns_recursor(8) for flags.
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=pdns_recursor
|
|
rcvar=pdns_recursor_enable
|
|
|
|
command=%%PREFIX%%/sbin/pdns_recursor
|
|
command_args="--daemon=yes"
|
|
|
|
# set defaults
|
|
|
|
pdns_recursor_enable=${pdns_recursor_enable:-"NO"}
|
|
pdns_recursor_conf=${pdns_recursor_conf:-"%%PREFIX%%/etc/pdns/recursor.conf"}
|
|
|
|
load_rc_config ${name}
|
|
|
|
required_files=${pdns_recursor_conf}
|
|
|
|
run_rc_command "$1"
|