From b5848e87f5ee90b2a758aaf5ce2392119581313d Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sat, 21 Feb 2015 23:36:23 +0100 Subject: [PATCH] package/freerdp: install server key and certificate This is mandatory for an RDP server to have a key and a certificate, otherwise clients will refuse to connect to that server. We install the key and certificate bundled in FreeRDP. The user can install its own set using a post-build script if needed. Signed-off-by: "Yann E. MORIN" Cc: Samuel Martin Reviewed-by: Samuel Martin Signed-off-by: Thomas Petazzoni --- package/freerdp/freerdp.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/freerdp/freerdp.mk b/package/freerdp/freerdp.mk index e680e39c74..37568c0033 100644 --- a/package/freerdp/freerdp.mk +++ b/package/freerdp/freerdp.mk @@ -71,6 +71,15 @@ endif ifeq ($(BR2_PACKAGE_FREERDP_SERVER),y) FREERDP_CONF_OPTS += -DWITH_SERVER=ON -DWITH_SERVER_INTERFACE=ON +# Install the server key and certificate, so that a client can connect. +# A user can override them with its own in a post-build script, if needed. +define FREERDP_INSTALL_KEYS + $(INSTALL) -D $(@D)/server/X11/server.key \ + $(TARGET_DIR)/etc/freerdp/keys/server.key + $(INSTALL) -D $(@D)/server/X11/server.crt \ + $(TARGET_DIR)/etc/freerdp/keys/server.crt +endef +FREERDP_POST_INSTALL_TARGET_HOOKS += FREERDP_INSTALL_KEYS else FREERDP_CONF_OPTS += -DWITH_SERVER=OFF -DWITH_SERVER_INTERFACE=OFF endif -- 2.30.2