mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
dns/blocky: Enable logging in rc script
- While here, move pkg-plist to PLIST_FILES PR: 276499 Reported by: rodrigo Pull Request: https://github.com/freebsd/freebsd-ports/pull/187
This commit is contained in:
parent
5eb9bd7cd4
commit
5d038a444a
@ -1,6 +1,7 @@
|
||||
PORTNAME= blocky
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.23
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= dns
|
||||
MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/:gomod
|
||||
DISTFILES= go.mod:gomod
|
||||
@ -26,6 +27,9 @@ GO_BUILDFLAGS= -ldflags "-w -s \
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
PLIST_FILES= "@sample etc/blocky-config.yml.sample" \
|
||||
sbin/blocky
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${FILESDIR}/blocky-config.yml.sample ${STAGEDIR}${PREFIX}/etc/blocky-config.yml.sample
|
||||
|
||||
|
@ -34,12 +34,13 @@ if [ -n "${blocky_user}" ] && [ -z "${blocky_group}" ]; then
|
||||
blocky_group=$(id -gn "${blocky_user}")
|
||||
fi
|
||||
|
||||
logfile="/var/log/${name}.log"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
blocky_path="%%PREFIX%%/sbin/blocky"
|
||||
|
||||
command="/usr/sbin/daemon"
|
||||
procname="/usr/local/sbin/blocky"
|
||||
command_args="-c -f -p ${pidfile} ${blocky_path} \
|
||||
command_args="-c -f -o ${logfile} -p ${pidfile} ${blocky_path} \
|
||||
-c ${blocky_config} ${blocky_flags}"
|
||||
|
||||
start_precmd="blocky_precmd"
|
||||
|
@ -1,2 +0,0 @@
|
||||
@sample etc/blocky-config.yml.sample
|
||||
sbin/blocky
|
Loading…
Reference in New Issue
Block a user