aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/nagios-check_email_delivery/Makefile
blob: 2c3f0ea846342d4510dd67791aebc368b379e085 (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
# New ports collection makefile for:    nagios-check_email_delivery
# Date created:     9 May 2011
# Whom:         Ryan Steinmetz
#
# $FreeBSD$

PORTNAME=   check_email_delivery
PORTVERSION=    0.7.0
CATEGORIES= net-mgmt
MASTER_SITES=   http://buhacoff.net/software/check_email_delivery/archive/ \
        http://people.rit.edu/rpsfa/
PKGNAMEPREFIX=  nagios-

MAINTAINER= zi@FreeBSD.org
COMMENT=    Nagios Plugin to monitor your mail environment

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/LICENSE.txt

RUN_DEPENDS=    p5-Net-SMTP-TLS>=0:${PORTSDIR}/mail/p5-Net-SMTP-TLS \
        p5-Mail-IMAPClient>=0:${PORTSDIR}/mail/p5-Mail-IMAPClient

NO_BUILD=   yes
USE_PERL5_RUN=  yes
DOC_FILES=  check_email_delivery.html check_email_delivery.pod check_imap_receive.html check_imap_receive.pod check_smtp_send.html check_smtp_send.pod

PORTSCOUT=  ignore:1

.include <bsd.port.pre.mk>

do-install:
    @${MKDIR} ${PREFIX}/libexec/nagios
    ${INSTALL_SCRIPT} ${WRKSRC}/check_email_delivery ${PREFIX}/libexec/nagios/
    ${INSTALL_SCRIPT} ${WRKSRC}/check_email_delivery_epn ${PREFIX}/libexec/nagios/
    ${INSTALL_SCRIPT} ${WRKSRC}/check_imap_receive ${PREFIX}/libexec/nagios/
    ${INSTALL_SCRIPT} ${WRKSRC}/check_imap_receive_epn ${PREFIX}/libexec/nagios/
    ${INSTALL_SCRIPT} ${WRKSRC}/check_smtp_send ${PREFIX}/libexec/nagios/
    ${INSTALL_SCRIPT} ${WRKSRC}/check_smtp_send_epn ${PREFIX}/libexec/nagios/
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
    @${INSTALL_DATA} ${WRKSRC}/docs/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>