aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/nagios-certexp-plugin/Makefile
blob: 387bf28999b82d6060156bf3d325b5290884852d (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
# Created by: ecronin@gizmolabs.org
# $FreeBSD$

PORTNAME=   nagios-certexp-plugin
PORTVERSION=    1.1
CATEGORIES= net-mgmt
MASTER_SITES=   ftp://ftp.jhweiss.de/pub/users/weiss/nagios/plugins/
DISTNAME=   check_certexp.pl
EXTRACT_SUFX=

MAINTAINER= ecronin@gizmolabs.org
COMMENT=    Nagios plugin for checking SSL server certificate expiration

RUN_DEPENDS+=   p5-Net-SSLeay>=0:security/p5-Net-SSLeay \
        p5-Date-Manip>=0:devel/p5-Date-Manip \
        p5-Getopt-Long>=0:devel/p5-Getopt-Long

USES=       perl5 shebangfix
NO_WRKSUBDIR=   yes
NO_BUILD=   yes

SHEBANG_FILES=  check_certexp.pl
PLIST_FILES=    ${NAGIOS_PLUGIN_DIR}/check_certexp.pl

NAGIOS_PLUGIN_DIR=  libexec/nagios

do-extract:
    @${MKDIR} ${WRKSRC}
    @${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC}/check_certexp.pl

post-patch:
    ${REINPLACE_CMD} -e \
        "s,/usr/local/nagios/libexec,${PREFIX}/${NAGIOS_PLUGIN_DIR}," \
        ${WRKSRC}/check_certexp.pl

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/${NAGIOS_PLUGIN_DIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/check_certexp.pl ${STAGEDIR}${PREFIX}/${NAGIOS_PLUGIN_DIR}

.include <bsd.port.mk>