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

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=197302b445d9d871ae97bcaff3a7dbce328acb6b

commit 197302b445d9d871ae97bcaff3a7dbce328acb6b
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:55:41 +0000

    x11/swayimg: system config under PREFIX after 7a53589a408a
    
    (cherry picked from commit 3d3c629518a36d5f158d6919ea44594cee39c17b)
---
 x11/swayimg/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/x11/swayimg/Makefile b/x11/swayimg/Makefile
index 79a3a357d78a..5a4a846b4c20 100644
--- a/x11/swayimg/Makefile
+++ b/x11/swayimg/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	swayimg
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.9
+PORTREVISION=	1
 CATEGORIES=	x11 wayland
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -69,4 +70,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.30T9tqkv022362>