git: 1d98fa2884c9 - main - sysutils/monit: Add $PREFIX to monitrc.sample

Rainer Hurling rhurlin at FreeBSD.org
Mon Sep 27 16:23:47 UTC 2021


The branch main has been updated by rhurlin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1d98fa2884c9b43ecdd2c5b640b191cb803a406a

commit 1d98fa2884c9b43ecdd2c5b640b191cb803a406a
Author:     Jose Luis Duran <jlduran at gmail.com>
AuthorDate: 2021-09-27 16:18:31 +0000
Commit:     Rainer Hurling <rhurlin at FreeBSD.org>
CommitDate: 2021-09-27 16:18:31 +0000

    sysutils/monit: Add $PREFIX to monitrc.sample
    
    PR:             258725
    Approved by:    Martin Pala (maintainer)
---
 sysutils/monit/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sysutils/monit/Makefile b/sysutils/monit/Makefile
index 7c35cdc9290f..f450065a7728 100644
--- a/sysutils/monit/Makefile
+++ b/sysutils/monit/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}
 


More information about the dev-commits-ports-main mailing list