Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Sep 2021 16:23:46 GMT
From:      Rainer Hurling <rhurlin@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 1d98fa2884c9 - main - sysutils/monit: Add $PREFIX to monitrc.sample
Message-ID:  <202109271623.18RGNk86074167@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by rhurlin:

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

commit 1d98fa2884c9b43ecdd2c5b640b191cb803a406a
Author:     Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2021-09-27 16:18:31 +0000
Commit:     Rainer Hurling <rhurlin@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}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109271623.18RGNk86074167>