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

(-)dns/unbound/Makefile (-1 / +24 lines)
Lines 32-38 Link Here
32
PKGINSTALL=	${WRKDIR}/pkg-install
32
PKGINSTALL=	${WRKDIR}/pkg-install
33
PKGDEINSTALL=	${WRKDIR}/pkg-deinstall
33
PKGDEINSTALL=	${WRKDIR}/pkg-deinstall
34
SUB_FILES=	pkg-install pkg-deinstall
34
SUB_FILES=	pkg-install pkg-deinstall
35
PLIST_SUB+=	PYTHON=${PYTHON}
35
PLIST_SUB+=	PYTHON=${PYTHON} MUNIN=${MUNIN}
36
OPTIONS=	LIBEVENT "is useful when using many (10000) outgoing ports" off \
36
OPTIONS=	LIBEVENT "is useful when using many (10000) outgoing ports" off \
37
		THREADS "build with threads support" on \
37
		THREADS "build with threads support" on \
Lines 58-63 Link Here
58
CONFIGURE_ARGS+=	--disable-gost
58
CONFIGURE_ARGS+=	--disable-gost
59
.endif
59
.endif
60
.if defined(WITH_MUNIN)
61
ALL=		hits queue memory by_type by_class\
62
		by_opcode by_rcode by_flags histogram
63
SUB_FILES+=	pkg-message
64
MUNIN=
65
.else
66
MUNIN=		"@comment "
67
.endif
68
60
.include <bsd.port.pre.mk>
69
.include <bsd.port.pre.mk>
61
# OpenSSL on 6.x has no sha256 functions
70
# OpenSSL on 6.x has no sha256 functions
Lines 89-94 Link Here
89
post-install:
98
post-install:
90
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
99
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
100
.if defined(WITH_MUNIN)
101
	@${MKDIR} ${PREFIX}/share/munin/plugins
102
	@${MKDIR} ${PREFIX}/etc/munin/plugins
103
	@${INSTALL_DATA} ${WRKDIR}/unbound-${PORTVERSION}/contrib/unbound_munin_\
104
		${PREFIX}/share/munin/plugins/
105
	@for i in ${ALL}; do\
106
		${LN} -fs ${PREFIX}/share/munin/plugins/unbound_munin_\
107
			${PREFIX}/etc/munin/plugins/unbound_munin_$$i ;\
108
	done
109
	@${ECHO_MSG}
110
	@${ECHO_MSG} "============================================================="
111
	@${CAT} ${WRKDIR}/pkg-message
112
	@${ECHO_MSG} "============================================================="
113
.endif
91
.if !defined(NOPORTDOCS)
114
.if !defined(NOPORTDOCS)
92
	@${MKDIR} ${DOCSDIR}; \
115
	@${MKDIR} ${DOCSDIR}; \
93
	for f in ${PORTDOCS}; do \
116
	for f in ${PORTDOCS}; do \
(-)dns/unbound/files/pkg-message.in (+10 lines)
Line 0 Link Here
1
You can set them in your %%PREFIX%%/etc/munin/plugin-conf.d/plugins.conf file
2
with:
3
4
[unbound*]
5
user root
6
env.statefile %%PREFIX%%/var/munin/plugin-state/unbound-state
7
env.unbound_conf %%PREFIX%%/etc/unbound/unbound.conf
8
env.unbound_control %%PREFIX%%/sbin/unbound-control
9
env.spoof_warn 1000
10
env.spoof_crit 100000
(-)dns/unbound/pkg-plist (+14 lines)
Lines 16-20 Link Here
16
%%PYTHON%%%%PYTHON_SITELIBDIR%%/_unbound.so.2
16
%%PYTHON%%%%PYTHON_SITELIBDIR%%/_unbound.so.2
17
%%PYTHON%%%%PYTHON_SITELIBDIR%%/unbound.py
17
%%PYTHON%%%%PYTHON_SITELIBDIR%%/unbound.py
18
%%PYTHON%%%%PYTHON_SITELIBDIR%%/unboundmodule.py
18
%%PYTHON%%%%PYTHON_SITELIBDIR%%/unboundmodule.py
19
%%MUNIN%%etc/munin/plugins/unbound_munin_by_class
20
%%MUNIN%%etc/munin/plugins/unbound_munin_by_flags
21
%%MUNIN%%etc/munin/plugins/unbound_munin_by_opcode
22
%%MUNIN%%etc/munin/plugins/unbound_munin_by_rcode
23
%%MUNIN%%etc/munin/plugins/unbound_munin_by_type
24
%%MUNIN%%etc/munin/plugins/unbound_munin_histogram
25
%%MUNIN%%etc/munin/plugins/unbound_munin_hits
26
%%MUNIN%%etc/munin/plugins/unbound_munin_memory
27
%%MUNIN%%etc/munin/plugins/unbound_munin_queue
28
%%MUNIN%%share/munin/plugins/unbound_munin_
29
%%MUNIN%%@dirrmtry etc/munin/plugins
30
%%MUNIN%%@dirrmtry etc/munin
31
%%MUNIN%%@dirrmtry share/munin/plugins
32
%%MUNIN%%@dirrmtry share/munin
19
@dirrmtry etc/unbound
33
@dirrmtry etc/unbound
20
@dirrmtry /var/run/unbound
34
@dirrmtry /var/run/unbound

Return to bug 156015