aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/p5-Nagios-Plugin/Makefile
blob: 73833afc67109282a8a300ffff7fbe07d09a069e (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
41
42
43
44
45
46
47
# New ports collection makefile for:    p5-Nagios-Plugin
# Date created:             13 08 2006
# Whom:                 Gerrit Beine <gerrit.beine@gmx.de>
#
# $FreeBSD$
#

PORTNAME=       Nagios-Plugin
PORTVERSION=        0.15
CATEGORIES=     net-mgmt perl5
MASTER_SITES=       ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= ../../authors/id/G/GA/GAVINC
PKGNAMEPREFIX=      p5-

MAINTAINER=     gerrit.beine@gmx.de
COMMENT=        Modules to streamline writing Nagios plugins

PERL_CONFIGURE=     yes

BUILD_DEPENDS=      ${SITE_PERL}/Class/Accessor.pm:${PORTSDIR}/devel/p5-Class-Accessor \
            ${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate
RUN_DEPENDS=        ${BUILD_DEPENDS}

MAN3=           Nagios::Plugin.3 \
            Nagios::Plugin::ExitResult.3 \
            Nagios::Plugin::Functions.3 \
            Nagios::Plugin::Getopt.3 \
            Nagios::Plugin::Performance.3 \
            Nagios::Plugin::Range.3 \
            Nagios::Plugin::Threshold.3 \

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=     This port requires FreeBSD 5-STABLE.
.endif

.if !defined(NOPORTDOCS)
PORTDOCS=   Changes README

post-install:
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
    @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif

.include <bsd.port.post.mk>