Skip to content

Commit

Permalink
Support Additional OS.
Browse files Browse the repository at this point in the history
Update xrdp to support netbsd, openindiana, macos, gentoo linux.
  • Loading branch information
mstone2001 committed Sep 26, 2023
1 parent bfdcdb0 commit 23158bc
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ AC_ARG_ENABLE(rdpsndaudin, AS_HELP_STRING([--enable-rdpsndaudin],
[], [enable_rdpsndaudin=no])
AM_CONDITIONAL(XRDP_RDPSNDAUDIN, [test x$enable_rdpsndaudin = xyes])

AC_ARG_ENABLE(openrc, AS_HELP_STRING([--enable-openrc],
[Use openrc in (default: no)]),
[], [enable_openrc=no])
AM_CONDITIONAL(XRDP_OPENRC, [test x$enable_openrc = xyes])

AC_ARG_WITH(imlib2, AS_HELP_STRING([--with-imlib2=ARG], [imlib2 library to use for non-BMP backgrounds (ARG=yes/no/<abs-path>)]),,)

AC_ARG_WITH(freetype2, AS_HELP_STRING([--with-freetype2=ARG], [freetype2 library to use for rendering fonts (ARG=yes/no/<abs-path>)]),,)
Expand Down Expand Up @@ -574,6 +579,7 @@ AC_CONFIG_FILES([
instfiles/pam.d/Makefile
instfiles/pulse/Makefile
instfiles/rc.d/Makefile
instfiles/openrc/Makefile
keygen/Makefile
waitforx/Makefile
libipm/Makefile
Expand Down Expand Up @@ -628,6 +634,7 @@ echo " ipv6only $enable_ipv6only"
echo " vsock $enable_vsock"
echo " auth mechanism $auth_mech"
echo " rdpsndaudin $enable_rdpsndaudin"
echo " openrc $enable_openrc"
echo
echo " with imlib2 $use_imlib2"
echo " with freetype2 $use_freetype2"
Expand Down
6 changes: 6 additions & 0 deletions instfiles/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,15 @@ systemdsystemunit_DATA = \
xrdp-sesman.service \
xrdp.service
else
if XRDP_OPENRC
SUBDIRS += \
default \
openrc
else
SUBDIRS += \
default \
init.d
endif # XRDP_OPENRC
endif # HAVE_SYSTEMD
endif # LINUX

Expand Down
3 changes: 3 additions & 0 deletions instfiles/openrc/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
startscriptdir = $(sysconfdir)/init.d

dist_startscript_SCRIPTS = xrdp xrdp-sesman
4 changes: 4 additions & 0 deletions instfiles/openrc/xrdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/sbin/openrc-run

command="/usr/local/sbin/xrdp"
pidfile="/run/${RC_SVCNAME}.pid"
4 changes: 4 additions & 0 deletions instfiles/openrc/xrdp-sesman
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/sbin/openrc-run

command="/usr/local/sbin/xrdp-sesman"
pidfile="/run/${RC_SVCNAME}.pid"

0 comments on commit 23158bc

Please sign in to comment.