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

(-)net-mgmt/mk-livestatus/Makefile (-12 / +13 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	mk-livestatus
4
PORTNAME=	mk-livestatus
5
PORTVERSION=	1.2.8p18
5
PORTVERSION=	1.2.8p20
6
CATEGORIES=	net-mgmt
6
CATEGORIES=	net-mgmt
7
MASTER_SITES=	http://mathias-kettner.de/download/
7
MASTER_SITES=	http://mathias-kettner.de/download/
8
DIST_SUBDIR=	check_mk
8
DIST_SUBDIR=	check_mk
Lines 13-18 Link Here
13
LICENSE=	GPLv2
13
LICENSE=	GPLv2
14
14
15
USES=		compiler:c++11-lib gmake
15
USES=		compiler:c++11-lib gmake
16
16
GNU_CONFIGURE=	yes
17
GNU_CONFIGURE=	yes
17
18
18
PLIST_FILES=	lib/mk-livestatus/unixcat \
19
PLIST_FILES=	lib/mk-livestatus/unixcat \
Lines 19-30 Link Here
19
		lib/mk-livestatus/livestatus.o
20
		lib/mk-livestatus/livestatus.o
20
SUB_FILES=	pkg-message
21
SUB_FILES=	pkg-message
21
22
22
PORTEXAMPLES=	*
23
PORTEXAMPLES=	*.py README
23
EXAMPLE_FILES=	api/python/example_multisite.py \
24
EXAMPLE_FILES=	example_multisite.py example.py \
24
		api/python/example.py \
25
		livestatus.py make_nagvis_map.py \
25
		api/python/livestatus.py \
26
		README
26
		api/python/make_nagvis_map.py \
27
		api/python/README
28
27
29
# parameter "command_file" from nagios.cfg
28
# parameter "command_file" from nagios.cfg
30
COMMAND_FILE?=	/var/spool/nagios/rw/live
29
COMMAND_FILE?=	/var/spool/nagios/rw/live
Lines 34-39 Link Here
34
OPTIONS_SINGLE_NAGIOS=	NAGIOS3 NAGIOS4
33
OPTIONS_SINGLE_NAGIOS=	NAGIOS3 NAGIOS4
35
OPTIONS_DEFAULT=	NAGIOS3
34
OPTIONS_DEFAULT=	NAGIOS3
36
35
36
EXAMPLES_USES=	python
37
37
NAGIOS3_DESC=	build for nagios-3.x
38
NAGIOS3_DESC=	build for nagios-3.x
38
NAGIOS4_DESC=	build for nagios-4.x
39
NAGIOS4_DESC=	build for nagios-4.x
39
40
Lines 46-60 Link Here
46
	@${RM} -r ${WRKSRC}/api/perl
47
	@${RM} -r ${WRKSRC}/api/perl
47
48
48
post-patch:
49
post-patch:
49
	@${REINPLACE_CMD} -e 's|/usr/bin/python|${LOCALBASE}/bin/python2.7|g' \
50
		-e 's|/var/lib/nagios/rw/live|${COMMAND_FILE}|g' \
51
		-e 's|/var/run/nagios/rw/live|${COMMAND_FILE}|g' \
52
		${EXAMPLE_FILES:S|^|${WRKSRC}/|}
53
	@${REINPLACE_CMD} -e 's|/usr/local/nagios/var/rw/live|${COMMAND_FILE}|' \
50
	@${REINPLACE_CMD} -e 's|/usr/local/nagios/var/rw/live|${COMMAND_FILE}|' \
54
		${WRKSRC}/src/livestatus.h
51
		${WRKSRC}/src/livestatus.h
55
52
56
post-install-EXAMPLES-on:
53
post-install-EXAMPLES-on:
57
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
54
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
58
	( cd ${WRKSRC} && ${COPYTREE_SHARE} api\* ${STAGEDIR}${EXAMPLESDIR}/ )
55
	@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|g' \
56
		-e 's|/var/lib/nagios/rw/live|${COMMAND_FILE}|g' \
57
		-e 's|/var/run/nagios/rw/live|${COMMAND_FILE}|g' \
58
		${PORTEXAMPLES:S|^|${WRKSRC}/api/python/|}
59
	${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/api/python/|} ${STAGEDIR}${EXAMPLESDIR}
59
60
60
.include <bsd.port.mk>
61
.include <bsd.port.mk>
(-)net-mgmt/mk-livestatus/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1537537042
1
TIMESTAMP = 1537726481
2
SHA256 (check_mk/mk-livestatus-1.2.8p18.tar.gz) = e0a6037f388b6d8c42ee8c00b4cb76c8e6354e86aa402726a3691c3c6cf2750d
2
SHA256 (check_mk/mk-livestatus-1.2.8p20.tar.gz) = aa1cecfefea6ca4e651071fc26cc8d4c48ba9cb0e1cdc91dc30b6c4bee96f19a
3
SIZE (check_mk/mk-livestatus-1.2.8p18.tar.gz) = 453516
3
SIZE (check_mk/mk-livestatus-1.2.8p20.tar.gz) = 453544

Return to bug 231645