git: bd7bcc74d471 - main - net/xrdp: Adjust the default configuration to FreeBSD
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 Aug 2025 04:57:49 UTC
The branch main has been updated by meta:
URL: https://cgit.FreeBSD.org/ports/commit/?id=bd7bcc74d47183bfb9912bfd57505beea7ffd394
commit bd7bcc74d47183bfb9912bfd57505beea7ffd394
Author: Koichiro Iwao <meta@FreeBSD.org>
AuthorDate: 2025-08-28 00:32:38 +0000
Commit: Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2025-08-28 04:57:41 +0000
net/xrdp: Adjust the default configuration to FreeBSD
Since xrdp 0.10.2, it supports running xrdp daemon as unpriviled user
(See also UPDATING 20241224).
The user/group to run xrdp daemon is "_xrdp" and will be created
automatically, but "xrdp" is specified with commented out in upstream
default config. This might mislead some users that they need to create
"xrdp" user manually.
PR: 289138
---
net/xrdp/Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/net/xrdp/Makefile b/net/xrdp/Makefile
index 49dac567bfb2..175e7254df46 100644
--- a/net/xrdp/Makefile
+++ b/net/xrdp/Makefile
@@ -1,6 +1,6 @@
PORTNAME= xrdp
DISTVERSION= 0.10.4.1
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= net
MASTER_SITES= https://github.com/neutrinolabs/${PORTNAME}/releases/download/v${DISTVERSION}/
@@ -92,6 +92,10 @@ pre-configure:
post-patch:
${REINPLACE_CMD} -e "s|^param=Xorg|param=${LOCALBASE}/libexec/Xorg|" \
${WRKSRC}/sesman/sesman.ini.in
+ ${REINPLACE_CMD} \
+ -e "s|^#runtime_user=xrdp|#runtime_user=_xrdp|" \
+ -e "s|^#runtime_group=xrdp|#runtime_group=_xrdp|" \
+ ${WRKSRC}/xrdp/xrdp.ini.in
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/startwm.sh ${STAGEDIR}${ETCDIR}