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

(-)./Makefile (-21 / +16 lines)
Lines 1-16 Link Here
1
# Created by: alexis
1
# Created by: alexis
2
# $FreeBSD: head/dns/nsd/Makefile 327719 2013-09-20 16:31:57Z bapt $
2
# $FreeBSD: ports/dns/nsd/Makefile,v 1.53 2011/03/30 13:48:13 ohauer Exp $
3
3
4
PORTNAME=	nsd
4
PORTNAME=	nsd
5
PORTVERSION=	3.2.16
5
PORTVERSION=	4.0.0
6
CATEGORIES=	dns ipv6
6
CATEGORIES=	dns ipv6
7
MASTER_SITES=	http://www.nlnetlabs.nl/downloads/nsd/	\
7
MASTER_SITES=	http://www.nlnetlabs.nl/downloads/nsd/	\
8
		ftp://ftp.rhnet.is/pub/nsd/
8
		ftp://ftp.rhnet.is/pub/nsd/
9
9
10
MAINTAINER=	jaap@NLnetLabs.nl
10
MAINTAINER=	jaap@NLnetLabs.nl
11
COMMENT=	Authoritative only non-recursive name server
11
COMMENT=	An authoritative only non-recursive name server
12
12
13
CONFLICTS=	nsd-[0-2]*
13
CONFLICTS=	nsd-[0-3]*
14
14
15
USE_RC_SUBR=	nsd
15
USE_RC_SUBR=	nsd
16
16
Lines 22-28 Link Here
22
NSDMAX_IPS?=	512
22
NSDMAX_IPS?=	512
23
23
24
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
25
CONFIGURE_ARGS=	--with-user=${NSDUSER} \
25
CONFIGURE_ARGS=	--with-libevent=${LOCALBASE} \
26
		--with-user=${NSDUSER} \
26
		--with-configdir=${PREFIX}/etc/nsd \
27
		--with-configdir=${PREFIX}/etc/nsd \
27
		--localstatedir=${NSDLSDIR} \
28
		--localstatedir=${NSDLSDIR} \
28
		--with-dbfile=${NSDDBDIR}/nsd.db \
29
		--with-dbfile=${NSDDBDIR}/nsd.db \
Lines 36-58 Link Here
36
37
37
USE_OPENSSL=	yes
38
USE_OPENSSL=	yes
38
39
39
MAN5=	nsd.conf.5
40
MAN5=		nsd.conf.5
40
MAN8=	nsd.8 nsdc.8 zonec.8 nsd-checkconf.8 nsd-notify.8 nsd-patch.8 \
41
MAN8=		nsd.8 nsd-checkconf.8 nsd-control.8
41
	nsd-xfer.8
42
42
43
PORTDOCS=	CREDITS ChangeLog LICENSE NSD-DATABASE NSD-DIFFFILE \
43
PORTDOCS=	CREDITS ChangeLog LICENSE NSD-DATABASE NSD-DIFFFILE \
44
		NSD-FOR-BIND-USERS README README.icc RELNOTES \
44
		NSD-4-features NSD-FOR-BIND-USERS README README.icc RELNOTES \
45
		REQUIREMENTS TESTPLAN TODO UPGRADING coding-style \
45
		REQUIREMENTS TESTPLAN TODO UPGRADING coding-style \
46
		differences.tex
46
		differences.tex
47
47
48
OPTIONS_DEFINE=	ROOT_SERVER LARGEFILE IPV6 BIND8_STATS ZONE_STATS CHECKING \
48
OPTIONS_DEFINE=		ROOT_SERVER LARGEFILE IPV6 BIND8_STATS CHECKING \
49
		MINRESPSIZE NSEC3 NSEC3PREHASH MMAP MAXIPS DOCS RRL EUI_RRTYPES
49
		MINRESPSIZE NSEC3 NSEC3PREHASH MMAP MAXIPS DOCS EUI_RRTYPES
50
OPTIONS_DEFAULT=	LARGEFILE IPV6 NSEC3 NSEC3PREHASH MINRESPSIZE
50
OPTIONS_DEFAULT=	LARGEFILE IPV6 NSEC3 NSEC3PREHASH MINRESPSIZE RRL \
51
		 EUI_RRTYPES
51
52
52
ROOT_SERVER_DESC=	Configure as a root server
53
ROOT_SERVER_DESC=	Configure as a root server
53
LARGEFILE_DESC=		Largefile support
54
LARGEFILE_DESC=		Largefile support
54
BIND8_STATS_DESC=	BIND8-like NSTATS & XSTATS
55
BIND8_STATS_DESC=	BIND8-like NSTATS & XSTATS
55
ZONE_STATS_DESC=	Per-zone BIND8 stats
56
CHECKING_DESC=		Internal run-time checks
56
CHECKING_DESC=		Internal run-time checks
57
NSEC3_DESC=		NSEC3 support
57
NSEC3_DESC=		NSEC3 support
58
NSEC3PREHASH_DESC=	Full NSEC3 pre-hashing
58
NSEC3PREHASH_DESC=	Full NSEC3 pre-hashing
Lines 62-70 Link Here
62
RRL_DESC=		Response Rate Limiting
62
RRL_DESC=		Response Rate Limiting
63
EUI_RRTYPES_DESC=	EUI48 and EUI64 RRtypes support
63
EUI_RRTYPES_DESC=	EUI48 and EUI64 RRtypes support
64
64
65
NO_STAGE=	yes
65
NO_STAGE=		yes
66
.include <bsd.port.options.mk>
66
.include <bsd.port.options.mk>
67
67
68
LIB_DEPENDS+=	event-1:${PORTSDIR}/devel/libevent
69
68
.if ${PORT_OPTIONS:MROOT_SERVER}
70
.if ${PORT_OPTIONS:MROOT_SERVER}
69
CONFIGURE_ARGS+=	--enable-root-server
71
CONFIGURE_ARGS+=	--enable-root-server
70
.endif
72
.endif
Lines 81-93 Link Here
81
CONFIGURE_ARGS+=	--enable-bind8-stats
83
CONFIGURE_ARGS+=	--enable-bind8-stats
82
.endif
84
.endif
83
85
84
.if ${PORT_OPTIONS:MZONE_STATS}
85
.	if empty(PORT_OPTIONS:MBIND8_STATS)
86
CONFIGURE_ARGS+=	--enable-bind8-stats
87
.	endif
88
CONFIGURE_ARGS+=	--enable-zone-stats
89
.endif
90
91
.if ${PORT_OPTIONS:MCHECKING}
86
.if ${PORT_OPTIONS:MCHECKING}
92
CONFIGURE_ARGS+=	--enable-checking
87
CONFIGURE_ARGS+=	--enable-checking
93
.endif
88
.endif
(-)./distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (nsd-3.2.16.tar.gz) = 15a5fd69ea80345eefced83a58b40e8f262a06ac4f7f83606d33033b167d6604
1
SHA256 (nsd-4.0.0.tar.gz) = 62608a409d0f68c9d8d4595031b9de9130ac02efe39733be5dee40d5a90e991c
2
SIZE (nsd-3.2.16.tar.gz) = 917815
2
SIZE (nsd-4.0.0.tar.gz) = 1035710
(-)./files/nsd.in (-54 / +17 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $FreeBSD: head/dns/nsd/files/nsd.in 312942 2013-02-25 21:59:11Z beech $
3
# $FreeBSD: ports/dns/nsd/files/nsd.in,v 1.8 2010/11/25 16:04:00 bapt Exp $
4
#
4
#
5
# PROVIDE: nsd
5
# PROVIDE: nsd
6
# REQUIRE: DAEMON
6
# REQUIRE: DAEMON
Lines 14-84 Link Here
14
14
15
. /etc/rc.subr
15
. /etc/rc.subr
16
16
17
case $0 in
17
name=nsd
18
/etc/rc*)
18
rcvar=`set_rcvar`
19
	# during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown),
20
	# so get the name of the script from $_file
21
	name=$_file
22
	;;
23
*)
24
	name=$0
25
	;;
26
esac
27
19
28
name=${name##*/}
20
required_files=%%PREFIX%%/etc/nsd/nsd.conf
29
21
30
rcvar=${name}_enable
22
command=%%PREFIX%%/sbin/nsd-control
23
command_args="start"
24
pidfile=`%%PREFIX%%/sbin/nsd-checkconf -o pidfile %%PREFIX%%/etc/nsd/nsd.conf`
25
procname=%%PREFIX%%/sbin/${name}
31
26
32
load_rc_config ${name}
27
load_rc_config ${name}
33
28
34
eval ": \${${name}_conf:=\"%%PREFIX%%/etc/nsd/${name}.conf\"}"
29
nsd_enable=${nsd_enable-"NO"}
35
eval "_conf=\${${name}_conf}"
36
30
37
command=%%PREFIX%%/sbin/nsdc
31
extra_commands="reload"
38
procname=%%PREFIX%%/sbin/nsd
32
reload_cmd="${name}_reload"
33
stop_cmd="${name}_stop"
39
34
40
required_files=${_conf}
35
nsd_reload()
41
pidfile=`%%PREFIX%%/sbin/nsd-checkconf -o pidfile ${_conf}`
42
43
extra_commands="notify patch rebuild reload update"
44
45
notify_cmd="nsd_nsdc_cmd notify"
46
patch_cmd="nsd_nsdc_cmd patch"
47
rebuild_cmd="nsd_nsdc_cmd rebuild"
48
reload_cmd="nsd_reload_cmd"
49
start_cmd="nsd_start_cmd"
50
stop_cmd="nsd_stop_cmd"
51
update_cmd="nsd_nsdc_cmd update"
52
53
nsd_nsdc_cmd()
54
{
55
	${command} -c ${_conf} "$1"
56
}
57
58
nsd_reload_cmd()
59
{
36
{
60
	nsd_nsdc_cmd rebuild && nsd_nsdc_cmd reload
37
	echo "Reloading ${name}."
38
	kill -HUP `cat $pidfile`
61
}
39
}
62
40
63
nsd_start_cmd()
41
nsd_stop()
64
{
42
{
65
	local _db
66
	_db=`%%PREFIX%%/sbin/nsd-checkconf -o database ${_conf}`
67
	if [ ! -f "${_db}" ]; then
68
		nsd_nsdc_cmd rebuild
69
	fi
70
71
	echo "Starting ${name}."
72
	nsd_nsdc_cmd start
73
}
74
75
nsd_stop_cmd()
76
{
77
	echo "Merging nsd zone transfer changes to zone files."
78
	nsd_nsdc_cmd patch
79
80
	echo "Stopping ${name}."
43
	echo "Stopping ${name}."
81
	nsd_nsdc_cmd stop	
44
	kill -TERM `cat $pidfile`
82
}
45
}
83
46
84
run_rc_command "$1"
47
run_rc_command "$1"
(-)./files/pkg-install.in (-1 / +1 lines)
Lines 1-5 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
# $FreeBSD: head/dns/nsd/files/pkg-install.in 300896 2012-07-14 13:54:48Z beat $
2
# $FreeBSD$
3
3
4
PATH="/bin:/sbin:/usr/bin:/usr/sbin"
4
PATH="/bin:/sbin:/usr/bin:/usr/sbin"
5
5
(-)./pkg-message (-7 / +10 lines)
Lines 1-9 Link Here
1
**************************************************************************
1
**************************************************************************
2
*                                                                        *
2
*
3
*   To run nsd from startup, add nsd_enable="YES" to your /etc/rc.conf   *
3
*   To run nsd from startup, add nsd_enable="YES" to your /etc/rc.conf
4
*                                                                        *
4
*
5
*   Take good care when using nsd commands, since they often need to     *
5
*   Starting with nsd version 4 the old nsdc control program has been
6
*   be executed as user dedicated to nsd, in order for the files it      *
6
*   replaced by nsd-control. This requires some manual setup with
7
*   touches or creates to have the proper permissions.                   *
7
*   nsd-control-setup and editing of the config files. 
8
*                                                                        *
8
*
9
*   nsd-control is incompatible with nsdc so when that is used in scripts,
10
*   these should be adapted
11
*
9
**************************************************************************
12
**************************************************************************
(-)./pkg-plist (-5 / +2 lines)
Lines 1-9 Link Here
1
%%ETCDIR%%/nsd.conf.sample
1
%%ETCDIR%%/nsd.conf.sample
2
sbin/nsd
2
sbin/nsd
3
sbin/nsd-checkconf
3
sbin/nsd-checkconf
4
sbin/nsd-notify
4
sbin/nsd-control
5
sbin/nsd-patch
5
sbin/nsd-control-setup
6
sbin/nsd-xfer
7
sbin/nsdc
8
sbin/zonec
9
@dirrmtry %%ETCDIR%%
6
@dirrmtry %%ETCDIR%%

Return to bug 183888