Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2023 09:55:11 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3d3c629518a3 - main - x11/swayimg: system config under PREFIX after 7a53589a408a
Message-ID:  <202301290955.30T9tB1K022133@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=3d3c629518a36d5f158d6919ea44594cee39c17b

commit 3d3c629518a36d5f158d6919ea44594cee39c17b
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-01-29 09:54:24 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-01-29 09:54:39 +0000

    x11/swayimg: system config under PREFIX after 7a53589a408a
---
 x11/swayimg/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/x11/swayimg/Makefile b/x11/swayimg/Makefile
index 794f7cce92c3..b93d8672b2a5 100644
--- a/x11/swayimg/Makefile
+++ b/x11/swayimg/Makefile
@@ -69,4 +69,10 @@ WEBP_MESON_ENABLED=	webp
 ZSH_MESON_ENABLED=	zsh
 ZSH_PLIST_FILES=	share/zsh/site-functions/_${PORTNAME}
 
+post-patch:
+# Respect PREFIX for system-wide config
+	@${REINPLACE_CMD} 's,/etc,${PREFIX}&,' \
+		${WRKSRC}/extra/${PORTNAME}rc.5 \
+		${WRKSRC}/src/config.c
+
 .include <bsd.port.mk>



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