Make xrdp.ini to be dynamic for each operating system

master
Vraiment 7 years ago committed by metalefty
parent 31ef2552c4
commit 9ed5243de9

1
.gitignore vendored

@ -41,3 +41,4 @@ sesman/xrdp-sesman
*.so *.so
stamp-h1 stamp-h1
xrdp/xrdp xrdp/xrdp
xrdp/xrdp.ini

@ -67,6 +67,23 @@ xrdp_LDADD = \
xrdpsysconfdir=$(sysconfdir)/xrdp xrdpsysconfdir=$(sysconfdir)/xrdp
if MACOS
lib_extension = dylib
else
lib_extension = so
endif
SUBST_VARS = sed \
-e 's|@lib_extension[@]|$(lib_extension)|g'
subst_verbose = $(subst_verbose_@AM_V@)
subst_verbose_ = $(subst_verbose_@AM_DEFAULT_V@)
subst_verbose_0 = @echo " SUBST $@";
SUFFIXES = .in
.in:
$(subst_verbose)$(SUBST_VARS) $< > $@
dist_xrdpsysconf_DATA = \ dist_xrdpsysconf_DATA = \
xrdp.ini \ xrdp.ini \
xrdp_keyboard.ini xrdp_keyboard.ini

@ -155,7 +155,7 @@ tcutils=true
; in sesman.ini. See and configure also sesman.ini. ; in sesman.ini. See and configure also sesman.ini.
[Xorg] [Xorg]
name=Xorg name=Xorg
lib=libxup.so lib=libxup.@lib_extension@
username=ask username=ask
password=ask password=ask
ip=127.0.0.1 ip=127.0.0.1
@ -164,7 +164,7 @@ code=20
[X11rdp] [X11rdp]
name=X11rdp name=X11rdp
lib=libxup.so lib=libxup.@lib_extension@
username=ask username=ask
password=ask password=ask
ip=127.0.0.1 ip=127.0.0.1
@ -174,7 +174,7 @@ code=10
[Xvnc] [Xvnc]
name=Xvnc name=Xvnc
lib=libvnc.so lib=libvnc.@lib_extension@
username=ask username=ask
password=ask password=ask
ip=127.0.0.1 ip=127.0.0.1
@ -184,7 +184,7 @@ port=-1
[console] [console]
name=console name=console
lib=libvnc.so lib=libvnc.@lib_extension@
ip=127.0.0.1 ip=127.0.0.1
port=5900 port=5900
username=na username=na
@ -193,7 +193,7 @@ password=ask
[vnc-any] [vnc-any]
name=vnc-any name=vnc-any
lib=libvnc.so lib=libvnc.@lib_extension@
ip=ask ip=ask
port=ask5900 port=ask5900
username=na username=na
@ -205,7 +205,7 @@ password=ask
[sesman-any] [sesman-any]
name=sesman-any name=sesman-any
lib=libvnc.so lib=libvnc.@lib_extension@
ip=ask ip=ask
port=-1 port=-1
username=ask username=ask
@ -214,7 +214,7 @@ password=ask
[neutrinordp-any] [neutrinordp-any]
name=neutrinordp-any name=neutrinordp-any
lib=libxrdpneutrinordp.so lib=libxrdpneutrinordp.@lib_extension@
ip=ask ip=ask
port=ask3389 port=ask3389
username=ask username=ask
Loading…
Cancel
Save