diff options
author | he <he@pkgsrc.org> | 2006-06-04 20:53:56 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2006-06-04 20:53:56 +0000 |
commit | 93964f9c9323bc802f17ab9984123e88025767ff (patch) | |
tree | e56692e95f6d1f17355080390a79736c4d4ee8ac /sysutils/munin-node/Makefile | |
parent | 177711e1e2c47c6a4986bca40887b0ed13ba8cc9 (diff) | |
download | pkgsrc-93964f9c9323bc802f17ab9984123e88025767ff.tar.gz |
Import the client version of the Munin system monitoring/graphing
tool -- project homepage is at http://munin.sourceforge.net/
This package has added support for NetBSD, via a number of new plugin
scripts where specific steps needs to be taken to collect information.
I also modified the ntp_ plugin script to make it possible to not
plot the NTP poll delay, leaving just jitter and offset, which IMO
produces a more telling graph.
Diffstat (limited to 'sysutils/munin-node/Makefile')
-rw-r--r-- | sysutils/munin-node/Makefile | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/sysutils/munin-node/Makefile b/sysutils/munin-node/Makefile new file mode 100644 index 00000000000..772a8d1af53 --- /dev/null +++ b/sysutils/munin-node/Makefile @@ -0,0 +1,84 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/06/04 20:53:56 he Exp $ +# + +DISTNAME= ${PKGNAME:S:-node-:_:} +PKGNAME= munin-node-1.3.1 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=munin/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://munin.sourceforge.net/ +COMMENT= System monitoring tool, client version + +DEPENDS+= p5-Net-Server>=0:../../net/p5-Net-Server +DEPENDS+= p5-Net-SSLeay>=0:../../security/p5-Net-SSLeay +BUILD_DEPENDS+= htmldoc>=0:../../www/htmldoc +BUILD_DEPENDS+= html2text>=0:../../textproc/html2text + +USE_TOOLS+= perl +USE_TOOLS+= gmake +USE_PKGINSTALL= YES + +WRKSRC= ${WRKDIR}/${DISTNAME:S:_:-:} + +MUNIN_GROUP?= munin +MUNIN_USER?= munin + +PKG_GROUPS= ${MUNIN_GROUP} +PKG_USERS= ${MUNIN_USER}:${MUNIN_GROUP}::Munin\\ user + +STATEDIR= ${VARBASE}/munin/plugin-state + +MAKE_DIRS= ${VARBASE}/munin +MAKE_DIRS+= ${VARBASE}/run/munin +MAKE_DIRS+= ${VARBASE}/log/munin +MAKE_DIRS+= ${STATEDIR} + +OWN_DIRS= ${VARBASE}/munin +OWN_DIRS+= ${VARBASE}/run/munin +OWN_DIRS+= ${VARBASE}/log/munin +OWN_DIRS+= ${VARBASE}/munin/plugin-state + +OWN_DIRS_PERMS+=${VARBASE}/munin ${MUNIN_USER} ${MUNIN_GROUP} 0755 +OWN_DIRS_PERMS+=${VARBASE}/run/munin ${MUNIN_USER} ${MUNIN_GROUP} 0755 +OWN_DIRS_PERMS+=${VARBASE}/log/munin ${MUNIN_USER} ${MUNIN_GROUP} 0755 +OWN_DIRS_PERMS+=${VARBASE}/munin/plugin-state ${MUNIN_USER} ${MUNIN_GROUP} 0775 + +INSTALL_TARGET= install-doc install-man +INSTALL_TARGET+=install-node install-node-plugins + +BUILD_TARGET= build build-doc build-man + +#MAKE_ENV+= PERL=${PERL5:Q} +#MAKE_ENV+= PERL5_SITELIB=${PERL5_SITELIB} +MAKE_ENV+= MUNIN_USER=${MUNIN_USER} +MAKE_ENV+= MUNIN_GROUP=${MUNIN_GROUP} +MAKE_ENV+= PERL5=${PERL5:Q} + +FILES_SUBST+= PERL=${PERL5:Q} +FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} +FILES_SUBST+= STATEDIR=${STATEDIR} + +RCD_SCRIPTS+= munin-node + +EGDIR= ${PREFIX}/share/examples/munin + +CONF_FILES+= ${EGDIR}/munin-node.conf ${PKG_SYSCONFDIR}/munin/munin-node.conf + + +pre-configure: + cd ${FILESDIR}; ${TAR} cf - . | (cd ${WRKSRC}; ${TAR} xfp -) + +post-install: + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/build/node/munin-node.conf ${EGDIR} + +#pre-install: +# sed -e "s!@PKG_SYSCONFDIR@!${PKG_SYSCONFDIR}!; \ +# s!@PERL@!${PERL5}!; \ +# s!@PREFIX@!${PREFIX}!;" \ +# <${WRKSRC}/munin-node.sh \ +# > ${WRKSRC}/rc.d/munin-node + +.include "../../mk/bsd.pkg.mk" +.include "../../lang/python/application.mk" |