From b648fd3502994a4e8956ca2b3653441725b887ae Mon Sep 17 00:00:00 2001 From: Jose Luis Duran Date: Sat, 25 Sep 2021 12:00:00 -0000 Subject: [PATCH] sysutils/monit: Add $PREFIX to monitrc.sample Add a `$PREFIX` to the include directive. It is commented out by default, so no functional change should be produced. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 7c35cdc..f450065 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ PORTNAME= monit DISTVERSION= 5.29.0 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= https://mmonit.com/monit/dist/ @@ -34,6 +35,9 @@ SSL_CONFIGURE_OFF= --without-ssl post-install: ${INSTALL} -m 600 ${WRKSRC}/monitrc ${STAGEDIR}${PREFIX}/etc/monitrc.sample + @${REINPLACE_CMD} -i '' -e \ + "s|include /etc/monit.d|include ${PREFIX}/etc/monit.d|" \ + ${STAGEDIR}${PREFIX}/etc/monitrc.sample ${INSTALL} -d ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL} -m 644 ${PORTDOCS} ${STAGEDIR}${DOCSDIR} -- 2.33.0