83bc9e629c
Resmon is a lightweight utility for local host monitoring that can be queried by tools such as nagios over http. One of the main design goals is portability: that resmon should require nothing more than a default install of Perl. Also provide nagios-plugins-resmon for checking resmon agents. Assistance by and ok merdely@
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2009/08/02 19:12:15 jdixon Exp $
|
|
|
|
COMMENT-main = system monitoring tool
|
|
COMMENT-nagios = nagios plugin for resmon
|
|
|
|
V = 20090802
|
|
DISTNAME = resmon-$V
|
|
PKGNAME-main = ${DISTNAME}
|
|
PKGNAME-nagios = nagios-plugins-resmon-$V
|
|
CATEGORIES = sysutils
|
|
HOMEPAGE = http://labs.omniti.com/trac/resmon
|
|
|
|
MAINTAINER = Jason Dixon <jdixon@openbsd.org>
|
|
|
|
MULTI_PACKAGES = -main -nagios
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
MASTER_SITES = http://www.dixongroup.net/
|
|
NO_BUILD = Yes
|
|
NO_REGRESS = Yes
|
|
PKG_ARCH = *
|
|
|
|
RUN_DEPENDS-nagios = ::net/nagios/plugins,-main
|
|
|
|
INSTDIR = ${PREFIX}/libdata/perl5/site_perl
|
|
RESMONCONF = ${SYSCONFDIR}/resmon
|
|
RESMONSTATE = /var/resmon
|
|
SUBST_VARS = INSTDIR RESMONCONF RESMONSTATE
|
|
|
|
DOCSDIR = ${PREFIX}/share/doc/resmon
|
|
EXAMPLESDIR = ${PREFIX}/share/examples/resmon
|
|
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKDIST}/resmon ${WRKDIST}/resmon.conf.sample
|
|
|
|
do-install:
|
|
@find ${WRKDIST} -name \*.bak -or -name \*.orig | xargs rm
|
|
${INSTALL_SCRIPT} ${WRKSRC}/resmon ${PREFIX}/sbin
|
|
@cp -R ${WRKDIST}/lib/Resmon ${INSTDIR}
|
|
${INSTALL_DATA_DIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/resmon.conf.sample ${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/libexec/nagios
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/check_resmon_xml_part \
|
|
${PREFIX}/libexec/nagios
|
|
|
|
.include <bsd.port.mk>
|