summaryrefslogtreecommitdiff
path: root/net-mgmt/p5-Nagios-Plugins-Memcached/Makefile
blob: 2e26a8654e3a3a83de36105793c904339b0494d3 (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

PORTNAME=	Nagios-Plugins-Memcached
PORTVERSION=	0.02
PORTREVISION=	2
CATEGORIES=	net-mgmt perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:ZIGOROU
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Module to check memcached via nagios

USES=		perl5 shebangfix
USE_PERL5=	configure

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-Nagios-Plugin>=0:net-mgmt/p5-Nagios-Plugin \
		p5-Cache-Memcached>=0:databases/p5-Cache-Memcached \
		p5-Carp-Clan>=0:devel/p5-Carp-Clan

PORTDOCS=	Changes README

OPTIONS_DEFINE=	DOCS

SHEBANG_FILES=	bin/check_memcached

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
	${INSTALL} ${WRKSRC}/bin/check_memcached ${STAGEDIR}${PREFIX}/libexec/nagios/check_memcached
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}/
	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."

.include <bsd.port.mk>