summaryrefslogtreecommitdiffstats
path: root/net-mgmt/victorops-nagios/Makefile
blob: 0242d67093265dd97819353d4f6d15a68d213065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Created by: Douglas K. Rand <rand@iteris.com>
# $FreeBSD$

PORTNAME=	victorops-nagios
PORTVERSION=	1.4.20
CATEGORIES=	net-mgmt
MASTER_SITES=	http://software.victorops.com/

MAINTAINER=	rand@iteris.com
COMMENT=	Nagios integration for VictorOps incident notification service

USES=		shebangfix
SHEBANG_FILES=	${WRKSRC}/opt/victorops/nagios_plugin/bin/*

NO_WRKSUBDIR=	YES
NO_BUILD=	YES
NO_ARCH=	YES

RESTRICTED=	Redistribution of software prohibited by VictorOps

OPTIONS_DEFINE=	QPAGE
OPTIONS_DEFAULT=
QPAGE_DESC=	Integrate qpage for victorops server problems

RUN_DEPENDS+=	bash:shells/bash \
		curl:ftp/curl

QPAGE_RUN_DEPENDS+=	qpage:comms/qpage
QPAGE_EXTRA_PATCHES+=	${FILESDIR}/qpage-patch

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
	${INSTALL_DATA} ${WRKSRC}/etc/cron.daily/victorops ${STAGEDIR}${PREFIX}/etc/periodic/daily/400.victorops
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/nagios
	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/victorops
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/victorops
	${MKDIR} ${STAGEDIR}/var/log/victorops
	${INSTALL_DATA} ${WRKSRC}/opt/victorops/nagios_plugin/nagios_conf/victorops.cfg ${STAGEDIR}${PREFIX}/etc/nagios/victorops.cfg-sample
	${INSTALL_DATA} ${WRKSRC}/opt/victorops/nagios_plugin/conf/env.sh.sample ${STAGEDIR}${PREFIX}/etc/victorops
	${INSTALL_DATA} ${WRKSRC}/opt/victorops/nagios_plugin/conf/proxy.sh.sample ${STAGEDIR}${PREFIX}/etc/victorops
.for i in check_test_svc check_victorops_cmds check_victorops_forwarder \
	do_victorops_heartbeat enqueue_alert forward_alert_file forward_alerts \
	send_email_alert send_status stop_forwarder \
	url_encode.sed utils
	${INSTALL_SCRIPT} ${WRKSRC}/opt/victorops/nagios_plugin/bin/${i} ${STAGEDIR}${PREFIX}/libexec/victorops/${i}
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud