aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/check_multi/Makefile
blob: ea9e75923343b155802badd5671bdc9f433006ba (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
# New ports collection makefile for:    check_multi
# Date created:         18 Mar 2009
# Whom:                 dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#

PORTNAME=   check_multi
PORTVERSION=    0.19
CATEGORIES= net-mgmt
#MASTER_SITES=  http://my-plugin.de/${PORTNAME}/
#PKGNAMEPREFIX= nagios-
#DISTNAME=  ${PORTNAME}-${PORTVERSION}.current
MASTER_SITES=   ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/
EXTRACT_SUFX=   .tgz

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    A multi purpose wrapper plugin for Nagios

LICENSE=    GPLv2

USE_PERL5_RUN=  yes
NO_BUILD=   yes

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLUGIN_DIR= libexec/nagios

do-configure:
    ${REINPLACE_CMD} -e "s|/usr/bin/perl|${PERL5}|" \
        ${WRKSRC}/check_multi

do-install:
    -${MKDIR} ${PREFIX}/${PLUGIN_DIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/check_multi ${PREFIX}/${PLUGIN_DIR}/
.if !defined(NOPORTEXAMPLES)
    ${MKDIR} ${EXAMPLESDIR}
    @${TAR} -C ${WRKSRC}/contrib -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
.endif

.include <bsd.port.mk>