aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/mcollective-nrpe-agent/Makefile
blob: c98ccc859080b2f451cdd52dbdc7346229cd5433 (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
# $FreeBSD$

PORTNAME=   mcollective-nrpe-agent
PORTVERSION=    20130805
CATEGORIES= sysutils

MAINTAINER= robak@FreeBSD.org
COMMENT=    MCollective NRPE agent plugin

RUN_DEPENDS=    mcollective>=2:${PORTSDIR}/sysutils/mcollective

USE_GITHUB= yes
GH_ACCOUNT= puppetlabs
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT=  ee29242

PLIST_FILES=    share/mcollective/agent/nrpe.ddl \
        share/mcollective/agent/nrpe.rb \
        share/mcollective/aggregate/nagios_states.rb \
        share/mcollective/application/nrpe.rb \
        share/mcollective/data/nrpe_data.ddl \
        share/mcollective/data/nrpe_data.rb \
        sbin/check-mc-nrpe
PLIST_DIRSTRY=  share/mcollective/agent \
        share/mcollective/aggregate \
        share/mcollective/application \
        share/mcollective/data

NO_BUILD=   yes

do-install:

.for dir in ${PLIST_DIRSTRY}
    ${MKDIR} ${STAGEDIR}${PREFIX}/${dir}
.endfor

    ${INSTALL_DATA} ${WRKSRC}/agent/nrpe.ddl ${STAGEDIR}${PREFIX}/share/mcollective/agent/
    ${INSTALL_DATA} ${WRKSRC}/agent/nrpe.rb ${STAGEDIR}${PREFIX}/share/mcollective/agent/
    ${INSTALL_DATA} ${WRKSRC}/aggregate/nagios_states.rb ${STAGEDIR}${PREFIX}/share/mcollective/aggregate/
    ${INSTALL_DATA} ${WRKSRC}/application/nrpe.rb ${STAGEDIR}${PREFIX}/share/mcollective/application/
    ${INSTALL_DATA} ${WRKSRC}/data/nrpe_data.ddl ${STAGEDIR}${PREFIX}/share/mcollective/data/
    ${INSTALL_DATA} ${WRKSRC}/data/nrpe_data.rb ${STAGEDIR}${PREFIX}/share/mcollective/data/
    ${INSTALL_SCRIPT} ${WRKSRC}/sbin/check-mc-nrpe ${STAGEDIR}${PREFIX}/sbin/

.include <bsd.port.mk>