git: f1a467ce5451 - 2025Q3 - net/xrdp: Adjust the default configuration to FreeBSD
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Aug 2025 00:52:35 UTC
The branch 2025Q3 has been updated by meta:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f1a467ce545145f2f9162b465673f38436ea81ae
commit f1a467ce545145f2f9162b465673f38436ea81ae
Author: Koichiro Iwao <meta@FreeBSD.org>
AuthorDate: 2025-08-28 00:32:38 +0000
Commit: Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2025-08-29 00:51:54 +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
Reported by: eduardo
(cherry picked from commit bd7bcc74d47183bfb9912bfd57505beea7ffd394)
(cherry picked from commit 64680d15e5eba90ac1fc60f017db725372814e94)
---
net/xrdp/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/net/xrdp/Makefile b/net/xrdp/Makefile
index 49dac567bfb2..fa90047a5fc0 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,13 @@ 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
+ ${REINPLACE_CMD} \
+ -e "s|^#SessionSockdirGroup=xrdp|#SessionSockdirGroup=_xrdp|" \
+ ${WRKSRC}/sesman/sesman.ini.in
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/startwm.sh ${STAGEDIR}${ETCDIR}