aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/p5-Nagios-Plugins-Memcached/Makefile
blob: e25a3c5059143a79be52d600016e83f59d2ed8bb (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
# $FreeBSD$

PORTNAME=   Nagios-Plugins-Memcached
PORTVERSION=    0.02
PORTREVISION=   1
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
USE_PERL5=  configure

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

MAN3=       Nagios::Plugins::Memcached.3
PORTDOCS=   Changes README

NO_STAGE=   yes
post-install:
    @${MKDIR} ${LOCALBASE}/libexec/nagios
    ${INSTALL} ${WRKSRC}/bin/check_memcached ${LOCALBASE}/libexec/nagios/check_memcached
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}/
    @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif

.include <bsd.port.mk>