aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/munin-node/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/munin-node/Makefile')
-rw-r--r--sysutils/munin-node/Makefile58
1 files changed, 58 insertions, 0 deletions
diff --git a/sysutils/munin-node/Makefile b/sysutils/munin-node/Makefile
new file mode 100644
index 000000000000..a300189e83d3
--- /dev/null
+++ b/sysutils/munin-node/Makefile
@@ -0,0 +1,58 @@
+# New ports collection makefile for: munin-node
+# Date created: 25 Januar 2004
+# Whom: Lupe Christoph <lupe@lupe-christoph.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= munin
+PORTVERSION= 1.0.0.p3
+CATEGORIES= sysutils perl5
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= munin
+PKGNAMESUFFIX= -node
+DISTNAME= munin_1.0.0pre3
+
+MAINTAINER= lupe@lupe-christoph.de
+COMMENT= Node-specific part of Munin
+
+BUILD_DEPENDS= ${RUN_DEPENDS}
+RUN_DEPENDS= ${SITE_PERL}/Net/Server/Fork.pm:${PORTSDIR}/net/p5-Net-Server
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500800
+RUN_DEPENDS+= ${SITE_PERL}/Net/Domain.pm:${PORTSDIR}/net/p5-Net
+.endif
+
+USE_GMAKE= yes
+PATCH_STRIP= -p1
+WRKSRC= ${WRKDIR}/munin-1.0.0pre3
+PKGMESSAGE= ${WRKDIR}/pkg-message
+ALL_TARGET= DATADIR=${DATADIR} build build-man
+INSTALL_TARGET= DATADIR=${DATADIR} install-node install-node-plugins
+
+MAN5= munin-node.conf.5
+MAN8= munin-node-configure.8 munin-node.8 munin-run.8
+
+pre-install:
+ @${SED} 's@%%PREFIX%%@${LOCALBASE}@g' ${FILESDIR}/pkg-message > ${PKGMESSAGE}
+ @PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL
+
+post-install:
+ @${SED} 's@%PREFIX%@${LOCALBASE}@g' ${FILESDIR}/munin-node.sh > ${PREFIX}/etc/rc.d/munin-node.sh
+ @${CHMOD} +x ${PREFIX}/etc/rc.d/munin-node.sh
+ @if [ ! -f ${PREFIX}/etc/munin/plugin-conf.d/plugins.conf ]; then \
+ ${INSTALL_DATA} ${WRKSRC}/plugins.conf ${PREFIX}/etc/munin/plugin-conf.d/plugins.conf; \
+ fi
+ @${CAT} ${PKGMESSAGE}
+ @${INSTALL_MAN} -d ${PREFIX}/man/man5
+ @${INSTALL_MAN} -d ${PREFIX}/man/man8
+ @${INSTALL_MAN} -C ${WRKSRC}/build/doc/munin-node.conf.5 ${PREFIX}/man/man5
+ @${INSTALL_MAN} -C ${WRKSRC}/build/doc/munin-node-configure.8 ${PREFIX}/man/man8
+ @${INSTALL_MAN} -C ${WRKSRC}/build/doc/munin-node.8 ${PREFIX}/man/man8
+ @${INSTALL_MAN} -C ${WRKSRC}/build/doc/munin-run.8 ${PREFIX}/man/man8
+ @PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} POST-INSTALL
+ @${ECHO} ${DISTNAME} | ${SED} -e 's/munin_//' > ${PREFIX}/etc/munin/VERSION.node
+
+.include <bsd.port.post.mk>