summaryrefslogtreecommitdiff
path: root/net-mgmt/cnagios/Makefile
blob: 1788d656f37bef46ccbfe09ec254467d8c68c61a (plain) (blame)
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
# Created by: Alexander Y. Grigoryev <alexander.4mail@gmail.com>
# $FreeBSD$

PORTNAME=	cnagios
PORTVERSION=	0.30
CATEGORIES=	net-mgmt
MASTER_SITES=	ftp://noc.hep.wisc.edu/src/cnagios/ \
		ftp://noc.hep.wisc.edu/src/cnagios/old-versions/

MAINTAINER=	alexander.4mail@gmail.com
COMMENT=	Curses-based interface for nagios

LICENSE=	ISCL

RUN_DEPENDS=	nagios>=3.0:${PORTSDIR}/net-mgmt/nagios

NAGIOSDIR?=	/var/spool/nagios
ETCDIR=		${PREFIX}/etc/nagios
GNU_CONFIGURE=	YES
CONFIGURE_ARGS=	--with-etc-dir="${ETCDIR}" \
		--with-var-dir="${NAGIOSDIR}" \
		--with-status-file="${NAGIOSDIR}/status.dat" \
		--with-nagios-data=3
USES=		perl5
ALL_TARGET=	cnagios

MAN1=		cnagios.1

post-install:
	@if [ ! -f ${ETCDIR}/cnagiosrc ]; then \
		${CP} -p ${ETCDIR}/cnagiosrc.sample ${ETCDIR}/cnagiosrc ; \
	fi
	@if [ ! -f ${ETCDIR}/cnagios.help ]; then \
		${CP} -p ${ETCDIR}/cnagios.help.sample ${ETCDIR}/cnagios.help ; \
	fi
	@if [ ! -f ${ETCDIR}/cnagios.pl ]; then \
		${CP} -p ${ETCDIR}/cnagios.pl.sample ${ETCDIR}/cnagios.pl ; \
	fi

.include <bsd.port.mk>