ports/dns/powerdns/files/pdns.in
Kurt Jaeger d684d9df53 dns/powerdns: 3.3.1 -> 3.4.0
Changelog
http://doc.powerdns.com/html/changelog.html#changelog-auth-3.4.0

- Moved remote backend to regular (was experimental)
- Added the GeoIP, LMDB (both experimental) and Bind backend
- Removed Crypto++ support (as suggested by the author)
- Fixed the Luabackend on i386
- Added note to pkg-message about mandatory schema changes for
  gmysql, gpgsql and gsqlite3 backends
- Changed the example pdns.conf to include all possible configuration
  options when all backends are enabled

PR:		194057
Submitted by:	me@nileshgr.com, updated by tremere@cainites.net
Approved by:	Ralf van der Enden <tremere@cainites.net> (maintainer)
2014-10-17 20:08:32 +00:00

38 lines
620 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: pdns_server
# REQUIRE: DAEMON SERVERS
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable powerdns:
#
# pdns_enable="YES"
# pdns_flags="<set as needed>"
#
# See pdns_server(8) for flags.
#
. /etc/rc.subr
name=pdns
rcvar=pdns_enable
command=%%PREFIX%%/sbin/pdns_server
# set defaults
pdns_enable=${pdns_enable:-"NO"}
pdns_conf=${pdns_conf:-"%%PREFIX%%/etc/pdns/pdns.conf"}
load_rc_config ${name}
required_files=${pdns_conf}
monitor_cmd="${command} --daemon=no --guardian=no --control-console --loglevel=9"
extra_commands="monitor"
run_rc_command "$1"