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/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysutils/munin-node/Makefile b/sysutils/munin-node/Makefile
index a5dab22b9e4a..c9f1a04313ff 100644
--- a/sysutils/munin-node/Makefile
+++ b/sysutils/munin-node/Makefile
@@ -7,7 +7,7 @@
PORTNAME= munin
PORTVERSION= 1.4.5
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= sysutils perl5
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20stable/${PORTVERSION}
PKGNAMESUFFIX= -node
@@ -31,6 +31,7 @@ RUN_DEPENDS= ${SITE_PERL}/Cache/Cache.pm:${PORTSDIR}/devel/p5-Cache-Cache \
USE_PERL5= yes
USE_GMAKE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
+REINPLACE_ARGS= -i ""
.include "${.CURDIR}/../munin-common/munin.mk"
@@ -64,6 +65,13 @@ MAN8= munin.8
SUB_FILES= pkg-message munin-node-revive.sh
USE_RC_SUBR= munin-node
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
+ ${WRKSRC}/node/sbin/munin-node \
+ ${WRKSRC}/node/sbin/munin-node-configure \
+ ${WRKSRC}/node/sbin/munin-run
+ @${FIND} ${WRKSRC}/node/sbin -type f -name "*.orig" -delete
+
pre-su-install:
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL