diff options
author | yjqg6666 <jinking.this@gmail.com> | 2023-12-18 02:31:20 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-12-18 02:32:24 +0000 |
commit | 8e5b0e862a71f5d454f90e09378459ac3dd0ca91 (patch) | |
tree | 9f65650cccfa00fa1b2b7341c8751d06499fcb6b /dns | |
parent | 02d7506df897de6e5364776e57eece2c69a33a1a (diff) | |
download | ports-8e5b0e862a71f5d454f90e09378459ac3dd0ca91.tar.gz ports-8e5b0e862a71f5d454f90e09378459ac3dd0ca91.zip |
dns/coredns: change working directory to load extra config files
PR: 275205
Diffstat (limited to 'dns')
-rw-r--r-- | dns/coredns/Makefile | 2 | ||||
-rw-r--r-- | dns/coredns/files/coredns.in | 4 |
2 files changed, 3 insertions, 3 deletions
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" |