diff options
-rw-r--r-- | net/xrdp/Makefile | 6 | ||||
-rw-r--r-- | net/xrdp/files/startwm.sh | 15 |
2 files changed, 20 insertions, 1 deletions
diff --git a/net/xrdp/Makefile b/net/xrdp/Makefile index 85edab89ed98..d89c8c933950 100644 --- a/net/xrdp/Makefile +++ b/net/xrdp/Makefile @@ -17,7 +17,8 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${LOCALBASE}/bin/nasm:devel/nasm -RUN_DEPENDS= ${LOCALBASE}/lib/xorg/modules/libxorgxrdp.so:x11-drivers/xorgxrdp \ +RUN_DEPENDS= xterm:x11/xterm \ + ${LOCALBASE}/lib/xorg/modules/libxorgxrdp.so:x11-drivers/xorgxrdp \ ${LOCALBASE}/lib/pulse-12.2/modules/module-xrdp-sink.so:audio/pulseaudio-module-xrdp USES= autoreconf:build jpeg localbase libtool pkgconfig ssl @@ -67,6 +68,9 @@ post-extract: pre-configure: @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./bootstrap +post-install: + @${INSTALL_SCRIPT} ${FILESDIR}/startwm.sh ${STAGEDIR}${ETCDIR}/startwm.sh + post-stage: @${RM} ${STAGEDIR}${PREFIX}/etc/xrdp/rsakeys.ini @${RM} ${STAGEDIR}${PREFIX}/etc/xrdp/cert.pem diff --git a/net/xrdp/files/startwm.sh b/net/xrdp/files/startwm.sh new file mode 100644 index 000000000000..2e304eee9589 --- /dev/null +++ b/net/xrdp/files/startwm.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# +# This script is an example. Edit this to suit your needs. +# If ${HOME}/startwm.sh exists, xrdp-sesman will execute it instead of this. + +#### set environment variables here if you want +# export LANG=en_US.UTF-8 + +#### start desktop environment +# exec gnome-session +# exec mate-session +# exec start-lumina-desktop +# exec startkde +# exec startxfce4 +exec xterm |