git: 3d3c629518a3 - main - x11/swayimg: system config under PREFIX after 7a53589a408a
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 29 Jan 2023 09:55:11 UTC
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>