View | Details | Raw Unified | Return to bug 234751
Collapse All | Expand All

(-)dns/knot2/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1542114322
1
TIMESTAMP = 1546941720
2
SHA256 (knot-2.7.4.tar.xz) = acebe2fbcd8f67b0cb8969376114855316fe831df08321b795147502a5e9fd74
2
SHA256 (knot-2.7.5.tar.xz) = 7d70d6d8f708285517d1d7c4ff2e5ddfd119cd2962c7a8d3f50a4c695209a086
3
SIZE (knot-2.7.4.tar.xz) = 1148652
3
SIZE (knot-2.7.5.tar.xz) = 1150904
(-)dns/knot2/files/knot.in (-8 / +24 lines)
Lines 33-39 Link Here
33
#
33
#
34
# # optional:
34
# # optional:
35
# NAME_config="%%PREFIX%%/etc/knot/NAME.conf"  # (-c)onfig file
35
# NAME_config="%%PREFIX%%/etc/knot/NAME.conf"  # (-c)onfig file
36
# NAME_diruser="%%USERS%%"   # /var/db/NAME and /var/run/NAME are created if they
36
# NAME_config="db:/var/db/knot/confdb"         # (-C)onfig database
37
# NAME_diruser="%%USERS%%"    # /var/db/NAME and /var/run/NAME are created if they
37
# NAME_dirgroup="%%GROUPS%%"  # don't exist. These don't control the user/group knot
38
# NAME_dirgroup="%%GROUPS%%"  # don't exist. These don't control the user/group knot
38
#                       # runs as, the config file has a setting for that.
39
#                       # runs as, the config file has a setting for that.
39
#
40
#
Lines 72-82 Link Here
72
dirgroup="$(eval echo \${${name}_dirgroup})"
73
dirgroup="$(eval echo \${${name}_dirgroup})"
73
74
74
command=%%PREFIX%%/sbin/knotd
75
command=%%PREFIX%%/sbin/knotd
75
command_args="-c ${configfile} -d"
76
case "$configfile" in
76
control=%%PREFIX%%/sbin/knotc
77
db:*)
77
pidfile=/var/run/${name}/knot.pid
78
	config_args="-C ${configfile#db:}"
78
79
	;;
79
required_files=${configfile}
80
*)
81
	config_args="-c ${configfile}"
82
	;;
83
esac
84
command_args="${config_args} -d"
85
control="%%PREFIX%%/sbin/knotc"
86
pidfile="/var/run/${name}/knot.pid"
87
88
case "$configfile" in
89
db:*)
90
	required_files=${configfile#db:}/data.mdb
91
	;;
92
*)
93
	required_files=${configfile}
94
	;;
95
esac
80
96
81
extra_commands=reload
97
extra_commands=reload
82
reload_cmd="knot_reload"
98
reload_cmd="knot_reload"
Lines 90-102 Link Here
90
	if [ ! -d /var/db/${name} ]; then
106
	if [ ! -d /var/db/${name} ]; then
91
		install -d -o ${diruser} -g ${dirgroup} /var/db/${name}
107
		install -d -o ${diruser} -g ${dirgroup} /var/db/${name}
92
	fi
108
	fi
93
	${control} -c ${configfile} conf-check
109
	${control} ${config_args} conf-check
94
}
110
}
95
111
96
knot_reload()
112
knot_reload()
97
{
113
{
98
	echo "Reloading ${name}."
114
	echo "Reloading ${name}."
99
	${control} -c ${configfile} reload
115
	${control} ${config_args} reload
100
}
116
}
101
117
102
run_rc_command "$1"
118
run_rc_command "$1"
(-)dns/knot2/Makefile (-2 / +1 lines)
Lines 2-9 Link Here
2
# $FreeBSD: head/dns/knot2/Makefile 489529 2019-01-06 20:39:43Z sunpoet $
2
# $FreeBSD: head/dns/knot2/Makefile 489529 2019-01-06 20:39:43Z sunpoet $
3
3
4
PORTNAME=	knot
4
PORTNAME=	knot
5
DISTVERSION=	2.7.4
5
DISTVERSION=	2.7.5
6
PORTREVISION=	2
7
CATEGORIES=	dns ipv6
6
CATEGORIES=	dns ipv6
8
MASTER_SITES=	https://secure.nic.cz/files/knot-dns/ \
7
MASTER_SITES=	https://secure.nic.cz/files/knot-dns/ \
9
		https://dns.company/downloads/knot-dns/
8
		https://dns.company/downloads/knot-dns/

Return to bug 234751