bdd7d61637
This package contains the basic monitoring plugins for nagios. For more information about nagios, see the 'nagios-base' package.
28 lines
797 B
Makefile
28 lines
797 B
Makefile
# $NetBSD: Makefile.plugin,v 1.1.1.1 2003/04/06 00:33:12 marmfield Exp $
|
|
#
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/lib && ${SETENV} ${MAKE_ENV} \
|
|
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE}
|
|
.if ${BINARY_TARGET:D1}
|
|
cd ${WRKSRC}/plugins && ${SETENV} ${MAKE_ENV} \
|
|
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${BINARY_TARGET}
|
|
.endif
|
|
.if ${SCRIPT_TARGET:D1}
|
|
cd ${WRKSRC}/plugins-scripts && ${SETENV} ${MAKE_ENV} \
|
|
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${SCRIPT_TARGET}
|
|
.endif
|
|
|
|
do-install:
|
|
.if ${BINARY_TARGET:D1}
|
|
for PROG in ${BINARY_TARGET}; do \
|
|
${INSTALL_PROGRAM} ${WRKSRC}/plugins/$${PROG} \
|
|
${PREFIX}/libexec/nagios; \
|
|
done
|
|
.endif
|
|
.if ${SCRIPT_TARGET:D1}
|
|
for PROG in ${SCRIPT_TARGET}; do \
|
|
${INSTALL_SCRIPT} ${WRKSRC}/plugins-scripts/$${PROG} \
|
|
${PREFIX}/libexec/nagios; \
|
|
done
|
|
.endif
|