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

(-)knot/Makefile (+5 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	knot
4
PORTNAME=	knot
5
DISTVERSION=	1.3.3
5
DISTVERSION=	1.3.3
6
PORTREVISION=	1
6
CATEGORIES=	dns ipv6
7
CATEGORIES=	dns ipv6
7
MASTER_SITES=	https://secure.nic.cz/files/knot-dns/ \
8
MASTER_SITES=	https://secure.nic.cz/files/knot-dns/ \
8
		http://dns-lab.com/downloads/knot-dns/
9
		http://dns-lab.com/downloads/knot-dns/
Lines 37-41 post-install: Link Here
37
	${INSTALL_DATA} ${WRKSRC}/samples/knot.sample.conf ${STAGEDIR}${ETCDIR}
38
	${INSTALL_DATA} ${WRKSRC}/samples/knot.sample.conf ${STAGEDIR}${ETCDIR}
38
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
39
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
39
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
40
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
41
	@${MKDIR} ${PREFIX}/var/lib/knot
42
	@${MKDIR} ${PREFIX}/var/run/knot
43
	@${CHOWN} 53:53 ${PREFIX}/var/lib/knot
44
	@${CHOWN} 53:53 ${PREFIX}/var/run/knot
40
45
41
.include <bsd.port.mk>
46
.include <bsd.port.mk>
(-)knot/files/knotd.in (-18 / +7 lines)
Lines 19-50 name=knot Link Here
19
rcvar=knot_enable
19
rcvar=knot_enable
20
20
21
extra_commands="reload"
21
extra_commands="reload"
22
reload_cmd="${name}_reload"
22
reload_cmd="${name}_x reload"
23
status_cmd="${name}_status"
23
status_cmd="${name}_x status"
24
stop_cmd="${name}_stop"
24
stop_cmd="  ${name}_x stop"
25
25
26
load_rc_config ${name}
26
load_rc_config ${name}
27
27
28
: ${knot_enable:="NO"}
28
: ${knot_enable:="NO"}
29
: ${knot_config="%%PREFIX%%/etc/knot/knot.conf"}
29
: ${knot_config="%%PREFIX%%/etc/knot/knot.conf"}
30
30
31
command=%%PREFIX%%/sbin/${name}c
31
command=%%PREFIX%%/sbin/${name}d
32
procname=%%PREFIX%%/sbin/${name}d
32
command_args="-c ${knot_config} -d"
33
pidfile=/var/run/${name}.pid
34
35
command_args="-c ${knot_config} -w start"
36
required_files=${knot_config}
33
required_files=${knot_config}
37
34
38
knot_reload() {
35
knot_x() {
39
	echo "Reloading ${name}."
36
	%%PREFIX%%/sbin/${name}c -c ${knot_config} "$1"
40
	${command} -c ${knot_config} reload
41
	}
42
knot_status() {
43
	${command} -c ${knot_config} status
44
	}
45
knot_stop() {
46
	echo "Stopping ${name}."
47
	${command} -c ${knot_config} stop
48
	}
37
	}
49
38
50
run_rc_command "$1"
39
run_rc_command "$1"
(-)knot/files/pkg-message.in (-12 / +4 lines)
Lines 1-30 Link Here
1
1
2
####################################################################
2
####################################################################
3
#
3
#
4
# To start using Knot DNS, you should complete the following tasks:
4
# To get Knot DNS started:
5
#
6
# ----- configure --------------------------------------------------
7
#
5
#
8
  cp %%ETCDIR%%/knot.sample.conf %%ETCDIR%%/knot.conf
6
  cp %%ETCDIR%%/knot.sample.conf %%ETCDIR%%/knot.conf
9
  $EDITOR %%ETCDIR%%/knot.conf
7
  $EDITOR %%ETCDIR%%/knot.conf
10
#
11
# ----- prepare ----------------------------------------------------
12
#
13
# required:
14
  echo knot_enable=\"YES\" >> /etc/rc.conf
8
  echo knot_enable=\"YES\" >> /etc/rc.conf
15
# for customization if desired:
16
# echo knot_config=\"%%PREFIX%%/etc/knot/knot.conf\" >> /etc/rc.conf
9
# echo knot_config=\"%%PREFIX%%/etc/knot/knot.conf\" >> /etc/rc.conf
17
#
18
# ----- startup ----------------------------------------------------
19
#
20
  %%PREFIX%%/etc/rc.d/knotd start
10
  %%PREFIX%%/etc/rc.d/knotd start
21
#
11
#
22
####################################################################
12
####################################################################
23
13
24
25
  When upgrading from version of before 1.3.0-RC1:
14
  When upgrading from version of before 1.3.0-RC1:
26
  mind the default config file location has changed.
15
  mind the default config file location has changed.
27
16
17
  When upgrading from version of 1.3.1-RC1 or before:
18
  the startup script has changed due to parameter changes.
19
  That problem reapeared in port 1.3.3 and was fixed in 1.3.3_1.
28
20
29
====================================================================
21
====================================================================

Return to bug 183891