git: 70428c494fcb - main - devel/lua-language-server: Set log to a temp directory

From: Adam Weinberger <adamw_at_FreeBSD.org>
Date: Tue, 06 Sep 2022 21:34:04 UTC
The branch main has been updated by adamw:

URL: https://cgit.FreeBSD.org/ports/commit/?id=70428c494fcb49dbdaffb3de5a6a95ef1932a277

commit 70428c494fcb49dbdaffb3de5a6a95ef1932a277
Author:     Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2022-09-06 21:32:41 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2022-09-06 21:33:23 +0000

    devel/lua-language-server: Set log to a temp directory
---
 devel/lua-language-server/files/lua-language-server.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/devel/lua-language-server/files/lua-language-server.in b/devel/lua-language-server/files/lua-language-server.in
index 72278b6066af..1d0447160891 100644
--- a/devel/lua-language-server/files/lua-language-server.in
+++ b/devel/lua-language-server/files/lua-language-server.in
@@ -1,3 +1,6 @@
 #!/bin/sh
 
-exec '%%DATADIR%%/bin/lua-language-server' "$@"
+TMPPATH=$(/usr/bin/mktemp -d '/tmp/lua-language-server.XXXXXX' || exit 1)
+
+exec '%%DATADIR%%/bin/lua-language-server' \
+    --logpath="${TMPPATH}/log" "$@"