PORTNAME=	check_redis
PORTVERSION=	0.1
PORTREVISION=	1
CATEGORIES=	databases perl5
MASTER_SITES=	#
PKGNAMEPREFIX=	nagios-
DISTFILES=	# none

MAINTAINER=	demon@FreeBSD.org
COMMENT=	Nagios plugin to check redis server
WWW=		https://exchange.nagios.org/directory/Plugins/Others/check_redis/details

RUN_DEPENDS=	${LOCALBASE}/libexec/nagios/utils.pm:net-mgmt/nagios-plugins \
		p5-Nagios-Plugin>=0:net-mgmt/p5-Nagios-Plugin \
		p5-Redis>=0:databases/p5-Redis \
		p5-Net-SNMP>=0:net-mgmt/p5-Net-SNMP

USES=		perl5
USE_PERL5=	run
NO_BUILD=	yes
PLIST_FILES=	libexec/nagios/check_redis

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
	${INSTALL_SCRIPT} ${FILESDIR}/check_redis ${STAGEDIR}${PREFIX}/libexec/nagios/

.include <bsd.port.mk>
