git: 2f49c32b28a9 - main - www/threema-web: fix sed's use of \s and replace it by [[:space::]]

Vinícius Zavam egypcio at FreeBSD.org
Sun Apr 11 15:44:40 UTC 2021


The branch main has been updated by egypcio:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2f49c32b28a99db3e4a1c947a4ff9f0e6f6a8e70

commit 2f49c32b28a99db3e4a1c947a4ff9f0e6f6a8e70
Author:     Vinícius Zavam <egypcio at freebsd.org>
AuthorDate: 2021-04-11 15:33:58 +0000
Commit:     Vinícius Zavam <egypcio at FreeBSD.org>
CommitDate: 2021-04-11 15:44:23 +0000

    www/threema-web: fix sed's use of \s and replace it by [[:space::]]
---
 www/threema-web/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/www/threema-web/Makefile b/www/threema-web/Makefile
index 83d6cc1d74b6..3ad371c312be 100644
--- a/www/threema-web/Makefile
+++ b/www/threema-web/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	threema-web
 PORTVERSION=	2.3.7
+PORTREVISION=	1
 CATEGORIES=	www net-im
 MASTER_SITES=	https://github.com/threema-ch/${PORTNAME}/releases/download/v${PORTVERSION}/
 DISTNAME=	${PORTNAME}-${PORTVERSION}-gh
@@ -26,11 +27,11 @@ post-patch:
 	  ${WRKSRC}/*.bundle.js
 	${REINPLACE_CMD} "s/${THREEMA_PUBLICTURNS}/${THREEMA_ICE_SERVER}/g" \
 	  ${WRKSRC}/*.bundle.js
-	${REINPLACE_CMD} "s/SALTYRTC_HOST:\s*\"[^\"]*\",/SALTYRTC_HOST:\"${THREEMA_SALTYRTC_HOST}\",/g" \
+	${REINPLACE_CMD} "s/SALTYRTC_HOST:[[:space:]]*\"[^\"]*\",/SALTYRTC_HOST:\"${THREEMA_SALTYRTC_HOST}\",/g" \
 	  ${WRKSRC}/*.bundle.js
-	${REINPLACE_CMD} "s/SALTYRTC_PORT:\s*[^,]*,/SALTYRTC_PORT:${THREEMA_SALTYRTC_PORT},/g" \
+	${REINPLACE_CMD} "s/SALTYRTC_PORT:[[:space:]]*[^,]*,/SALTYRTC_PORT:${THREEMA_SALTYRTC_PORT},/g" \
 	  ${WRKSRC}/*.bundle.js
-	${REINPLACE_CMD} "s/SALTYRTC_SERVER_KEY:\s*\"[^\"]*\",/SALTYRTC_SERVER_KEY:\"${THREEMA_SALTYRTC_KEY}\",/g" \
+	${REINPLACE_CMD} "s/SALTYRTC_SERVER_KEY:[[:space:]]*\"[^\"]*\",/SALTYRTC_SERVER_KEY:\"${THREEMA_SALTYRTC_KEY}\",/g" \
 	  ${WRKSRC}/*.bundle.js
 
 do-install:


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