2018-12-26 18:31:27 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/neutrinolabs/xrdp
|
|
|
|
TERMUX_PKG_DESCRIPTION="An open source remote desktop protocol (RDP) server"
|
2019-01-21 17:50:21 +01:00
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
2019-05-17 00:18:48 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
2019-05-19 23:42:05 +02:00
|
|
|
TERMUX_PKG_VERSION=0.9.10
|
2018-12-26 18:31:27 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/neutrinolabs/xrdp/releases/download/v${TERMUX_PKG_VERSION}/xrdp-${TERMUX_PKG_VERSION}.tar.gz
|
2019-05-19 23:42:05 +02:00
|
|
|
TERMUX_PKG_SHA256=c9222b6b0a6beac0e7d6842deb6598b4a2cbac6c3f570f74c11771dbee641c98
|
2019-01-27 23:59:08 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libandroid-shmem, libcrypt, libice, libsm, libuuid, libx11, libxau, libxcb, libxfixes, libxdmcp, libxrandr, openssl, procps, tigervnc"
|
2018-12-26 18:31:27 +01:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--disable-pam
|
|
|
|
--enable-static
|
2018-12-27 23:45:59 +01:00
|
|
|
--with-socketdir=$TERMUX_PREFIX/tmp/.xrdp
|
2018-12-26 18:31:27 +01:00
|
|
|
"
|
|
|
|
|
2018-12-28 19:50:14 +01:00
|
|
|
TERMUX_PKG_CONFFILES="
|
2018-12-28 19:58:54 +01:00
|
|
|
etc/xrdp/km-00000407.ini
|
|
|
|
etc/xrdp/km-00000409.ini
|
|
|
|
etc/xrdp/km-0000040a.ini
|
|
|
|
etc/xrdp/km-0000040b.ini
|
|
|
|
etc/xrdp/km-0000040c.ini
|
|
|
|
etc/xrdp/km-00000410.ini
|
|
|
|
etc/xrdp/km-00000411.ini
|
|
|
|
etc/xrdp/km-00000412.ini
|
|
|
|
etc/xrdp/km-00000414.ini
|
|
|
|
etc/xrdp/km-00000415.ini
|
|
|
|
etc/xrdp/km-00000416.ini
|
|
|
|
etc/xrdp/km-00000419.ini
|
|
|
|
etc/xrdp/km-0000041d.ini
|
|
|
|
etc/xrdp/km-00000807.ini
|
|
|
|
etc/xrdp/km-00000809.ini
|
|
|
|
etc/xrdp/km-0000080c.ini
|
|
|
|
etc/xrdp/km-00000813.ini
|
|
|
|
etc/xrdp/km-00000816.ini
|
|
|
|
etc/xrdp/km-0000100c.ini
|
|
|
|
etc/xrdp/km-00010409.ini
|
|
|
|
etc/xrdp/reconnectwm.sh
|
2018-12-28 19:50:14 +01:00
|
|
|
etc/xrdp/sesman.ini
|
|
|
|
etc/xrdp/startwm.sh
|
2018-12-28 19:58:54 +01:00
|
|
|
etc/xrdp/xrdp.ini
|
2018-12-28 19:50:14 +01:00
|
|
|
etc/xrdp/xrdp.sh
|
2018-12-28 19:58:54 +01:00
|
|
|
etc/xrdp/xrdp_keyboard.ini
|
2018-12-28 19:50:14 +01:00
|
|
|
"
|
|
|
|
|
2018-12-28 19:51:29 +01:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="
|
|
|
|
etc/default
|
|
|
|
etc/init.d
|
|
|
|
"
|
|
|
|
|
2018-12-26 18:31:27 +01:00
|
|
|
termux_step_pre_configure() {
|
2019-01-21 17:50:21 +01:00
|
|
|
export LIBS="-landroid-shmem -llog"
|
2018-12-26 18:31:27 +01:00
|
|
|
}
|
2018-12-27 23:45:59 +01:00
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
2019-01-21 17:50:21 +01:00
|
|
|
mv -f "${TERMUX_PREFIX}/sbin/xrdp" "${TERMUX_PREFIX}/bin/xrdp"
|
|
|
|
mv -f "${TERMUX_PREFIX}/sbin/xrdp-chansrv" "${TERMUX_PREFIX}/bin/xrdp-chansrv"
|
|
|
|
mv -f "${TERMUX_PREFIX}/sbin/xrdp-sesman" "${TERMUX_PREFIX}/bin/xrdp-sesman"
|
|
|
|
mkdir -p "${TERMUX_PREFIX}/libexec/xrdp"
|
2018-12-27 23:45:59 +01:00
|
|
|
|
2019-01-21 17:50:21 +01:00
|
|
|
for bin in xrdp xrdp-chansrv xrdp-genkeymap xrdp-keygen xrdp-sesadmin xrdp-sesman xrdp-sesrun; do
|
|
|
|
mv -f "${TERMUX_PREFIX}/bin/${bin}" "${TERMUX_PREFIX}/libexec/xrdp/${bin}"
|
|
|
|
{
|
|
|
|
echo "#!${TERMUX_PREFIX}/bin/sh"
|
|
|
|
echo "export LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${TERMUX_PREFIX}/lib/xrdp"
|
|
|
|
echo "exec ${TERMUX_PREFIX}/libexec/xrdp/${bin} \"\${@}\""
|
|
|
|
} > "${TERMUX_PREFIX}/bin/${bin}"
|
|
|
|
chmod 700 "${TERMUX_PREFIX}/bin/${bin}"
|
|
|
|
done
|
|
|
|
unset bin
|
2018-12-27 23:45:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_create_debscripts() {
|
2019-01-21 17:50:21 +01:00
|
|
|
{
|
|
|
|
echo "#!${TERMUX_PREFIX}/bin/sh"
|
|
|
|
echo "if [ ! -e \"${TERMUX_PREFIX}/etc/xrdp/rsakeys.ini\" ]; then"
|
|
|
|
echo " xrdp-keygen xrdp \"${TERMUX_PREFIX}/etc/xrdp/rsakeys.ini\""
|
|
|
|
echo "fi"
|
|
|
|
} > ./postinst
|
|
|
|
chmod 755 postinst
|
2018-12-27 23:45:59 +01:00
|
|
|
}
|