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

(-)Makefile (-23 / +8 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	unbound
4
PORTNAME=	unbound
5
PORTVERSION=	1.4.21
5
PORTVERSION=	1.4.21
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	dns
7
CATEGORIES=	dns
8
MASTER_SITES=	http://unbound.net/downloads/
8
MASTER_SITES=	http://unbound.net/downloads/
9
9
Lines 16-22 Link Here
16
USE_GMAKE=	yes
16
USE_GMAKE=	yes
17
USE_OPENSSL=	yes
17
USE_OPENSSL=	yes
18
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
19
CONFIGURE_ARGS+=--with-ssl=${OPENSSLBASE}
19
CONFIGURE_ARGS+=--with-ssl=${OPENSSLBASE} --with-libexpat=${LOCALBASE}
20
USE_LDCONFIG=	yes
20
USE_LDCONFIG=	yes
21
21
22
USERS=		${PORTNAME}
22
USERS=		${PORTNAME}
Lines 24-43 Link Here
24
24
25
USE_RC_SUBR=	unbound
25
USE_RC_SUBR=	unbound
26
26
27
MAN1=		unbound-host.1
28
MAN3=		libunbound.3 ub_cancel.3 ub_ctx.3 ub_ctx_add_ta.3 \
29
		ub_ctx_add_ta_file.3 ub_ctx_async.3 ub_ctx_config.3 \
30
		ub_ctx_create.3 ub_ctx_data_add.3 ub_ctx_data_remove.3 \
31
		ub_ctx_debuglevel.3 ub_ctx_debugout.3 ub_ctx_delete.3 \
32
		ub_ctx_get_option.3 ub_ctx_hosts.3 ub_ctx_print_local_zones.3 \
33
		ub_ctx_resolvconf.3 ub_ctx_set_fwd.3 ub_ctx_set_option.3 \
34
		ub_ctx_trustedkeys.3 ub_ctx_zone_add.3 ub_ctx_zone_remove.3 \
35
		ub_fd.3 ub_poll.3 ub_process.3 ub_resolve.3 ub_resolve_async.3 \
36
		ub_resolve_free.3 ub_result.3 ub_strerror.3 ub_wait.3
37
MAN5=		unbound.conf.5
38
MAN8=		unbound.8 unbound-anchor.8 unbound-control.8 \
39
		unbound-checkconf.8 unbound-control-setup.8
40
41
PORTDOCS=	CREDITS Changelog FEATURES LICENSE README README.svn \
27
PORTDOCS=	CREDITS Changelog FEATURES LICENSE README README.svn \
42
		README.tests TODO control_proto_spec.txt ietf67-design-02.odp \
28
		README.tests TODO control_proto_spec.txt ietf67-design-02.odp \
43
		ietf67-design-02.pdf requirements.txt
29
		ietf67-design-02.pdf requirements.txt
Lines 56-62 Link Here
56
ECDSA_DESC=	Enable ECDSA (elliptic curve) support (OpenSSL >= 1.0)
42
ECDSA_DESC=	Enable ECDSA (elliptic curve) support (OpenSSL >= 1.0)
57
MUNIN_DESC=	Install Munin plugin
43
MUNIN_DESC=	Install Munin plugin
58
44
59
NO_STAGE=	yes
60
.include <bsd.port.options.mk>
45
.include <bsd.port.options.mk>
61
46
62
LIB_DEPENDS+=	expat:${PORTSDIR}/textproc/expat2 \
47
LIB_DEPENDS+=	expat:${PORTSDIR}/textproc/expat2 \
Lines 119-131 Link Here
119
104
120
post-install:
105
post-install:
121
.if ${PORT_OPTIONS:MMUNIN}
106
.if ${PORT_OPTIONS:MMUNIN}
122
	@${MKDIR} ${PREFIX}/share/munin/plugins
107
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/munin/plugins
123
	@${MKDIR} ${PREFIX}/etc/munin/plugins
108
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/munin/plugins
124
	@${INSTALL_SCRIPT} ${WRKDIR}/unbound-${PORTVERSION}/contrib/unbound_munin_\
109
	@${INSTALL_SCRIPT} ${WRKDIR}/unbound-${PORTVERSION}/contrib/unbound_munin_\
125
		${PREFIX}/share/munin/plugins/
110
		${STAGEDIR}${PREFIX}/share/munin/plugins/
126
	@for i in ${MUNIN_ALL}; do\
111
	@for i in ${MUNIN_ALL}; do\
127
		${LN} -fs ${PREFIX}/share/munin/plugins/unbound_munin_\
112
		${LN} -fs ${PREFIX}/share/munin/plugins/unbound_munin_\
128
			${PREFIX}/etc/munin/plugins/unbound_munin_$$i ;\
113
			${STAGEDIR}${PREFIX}/etc/munin/plugins/unbound_munin_$$i ;\
129
	done
114
	done
130
	@${ECHO_MSG}
115
	@${ECHO_MSG}
131
	@${ECHO_MSG} "============================================================="
116
	@${ECHO_MSG} "============================================================="
Lines 133-141 Link Here
133
	@${ECHO_MSG} "============================================================="
118
	@${ECHO_MSG} "============================================================="
134
.endif
119
.endif
135
.if ${PORT_OPTIONS:MDOCS}
120
.if ${PORT_OPTIONS:MDOCS}
136
	@${MKDIR} ${DOCSDIR}; \
121
	@${MKDIR} ${STAGEDIR}${DOCSDIR}; \
137
	for f in ${PORTDOCS}; do \
122
	for f in ${PORTDOCS}; do \
138
		cd ${WRKSRC}/doc && ${INSTALL_DATA} $${f} ${DOCSDIR}/; \
123
		cd ${WRKSRC}/doc && ${INSTALL_DATA} $${f} ${STAGEDIR}${DOCSDIR}/; \
139
	done
124
	done
140
.endif
125
.endif
141
126
(-)files/unbound.in (-1 / +5 lines)
Lines 7-12 Link Here
7
# copy this to /etc/rc.d/unbound
7
# copy this to /etc/rc.d/unbound
8
# and put unbound_enable="YES" into rc.conf
8
# and put unbound_enable="YES" into rc.conf
9
#
9
#
10
# unbound_anchorflags can be used to allow you to pass a custom flags to
11
# unbound-anchor.  Examples include a custom resolv.conf (-f) or a custom
12
# root.hints (-r).  Useful for when /etc/resolv.conf only contains 127.0.0.1
10
13
11
# PROVIDE: unbound
14
# PROVIDE: unbound
12
# REQUIRE: SERVERS cleanvar
15
# REQUIRE: SERVERS cleanvar
Lines 26-37 Link Here
26
29
27
pidfile=${unbound_pidfile:-"%%PREFIX%%/etc/unbound/unbound.pid"}
30
pidfile=${unbound_pidfile:-"%%PREFIX%%/etc/unbound/unbound.pid"}
28
unbound_enable=${unbound_enable:-"NO"}
31
unbound_enable=${unbound_enable:-"NO"}
32
unbound_anchorflags=${unbound_anchorflags:-""}
29
33
30
start_precmd()
34
start_precmd()
31
{
35
{
32
	%%PREFIX%%/sbin/unbound-checkconf > /dev/null && \
36
	%%PREFIX%%/sbin/unbound-checkconf > /dev/null && \
33
	echo -n "Obtaining a trust anchor:" && \
37
	echo -n "Obtaining a trust anchor:" && \
34
	su -m unbound -c %%PREFIX%%/sbin/unbound-anchor && \
38
	su -m unbound -c %%PREFIX%%/sbin/unbound-anchor ${unbound_anchorflags} && \
35
	echo .
39
	echo .
36
}
40
}
37
41
(-)pkg-plist (+38 lines)
Lines 4-9 Link Here
4
lib/libunbound.so
4
lib/libunbound.so
5
lib/libunbound.la
5
lib/libunbound.la
6
lib/libunbound.a
6
lib/libunbound.a
7
man/man1/unbound-host.1.gz
8
man/man3/libunbound.3.gz
9
man/man3/ub_cancel.3.gz
10
man/man3/ub_ctx.3.gz
11
man/man3/ub_ctx_add_ta.3.gz
12
man/man3/ub_ctx_add_ta_file.3.gz
13
man/man3/ub_ctx_async.3.gz
14
man/man3/ub_ctx_config.3.gz
15
man/man3/ub_ctx_create.3.gz
16
man/man3/ub_ctx_data_add.3.gz
17
man/man3/ub_ctx_data_remove.3.gz
18
man/man3/ub_ctx_debuglevel.3.gz
19
man/man3/ub_ctx_debugout.3.gz
20
man/man3/ub_ctx_delete.3.gz
21
man/man3/ub_ctx_get_option.3.gz
22
man/man3/ub_ctx_hosts.3.gz
23
man/man3/ub_ctx_print_local_zones.3.gz
24
man/man3/ub_ctx_resolvconf.3.gz
25
man/man3/ub_ctx_set_fwd.3.gz
26
man/man3/ub_ctx_set_option.3.gz
27
man/man3/ub_ctx_trustedkeys.3.gz
28
man/man3/ub_ctx_zone_add.3.gz
29
man/man3/ub_ctx_zone_remove.3.gz
30
man/man3/ub_fd.3.gz
31
man/man3/ub_poll.3.gz
32
man/man3/ub_process.3.gz
33
man/man3/ub_resolve.3.gz
34
man/man3/ub_resolve_async.3.gz
35
man/man3/ub_resolve_free.3.gz
36
man/man3/ub_result.3.gz
37
man/man3/ub_strerror.3.gz
38
man/man3/ub_wait.3.gz
39
man/man5/unbound.conf.5.gz
40
man/man8/unbound-anchor.8.gz
41
man/man8/unbound-checkconf.8.gz
42
man/man8/unbound-control-setup.8.gz
43
man/man8/unbound-control.8.gz
44
man/man8/unbound.8.gz
7
sbin/unbound
45
sbin/unbound
8
sbin/unbound-anchor
46
sbin/unbound-anchor
9
sbin/unbound-checkconf
47
sbin/unbound-checkconf

Return to bug 187239