diff --git a/dns/coredns/Makefile b/dns/coredns/Makefile index 16034b7653c8..a130ab8dffb7 100644 --- a/dns/coredns/Makefile +++ b/dns/coredns/Makefile @@ -1,7 +1,7 @@ PORTNAME= coredns DISTVERSIONPREFIX= v DISTVERSION= 1.11.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= dns MAINTAINER= yuri@FreeBSD.org diff --git a/dns/coredns/files/coredns.in b/dns/coredns/files/coredns.in index c7e998a02093..fb5af7605464 100644 --- a/dns/coredns/files/coredns.in +++ b/dns/coredns/files/coredns.in @@ -37,8 +37,8 @@ command_args="-S -m 3 -s "info" -l "daemon" -p ${pidfile} /usr/bin/env ${procnam coredns_precmd() { - /usr/bin/install -d -m 0755 \ - %%PREFIX%%/etc/coredns + /usr/bin/install -d -m 0755 %%PREFIX%%/etc/coredns && \ + cfg_dir=$(dirname "${coredns_config}") && cd "$cfg_dir" } run_rc_command "$1"