From patchwork Sat Sep 20 17:09:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 391531 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id A6CC214018C for ; Sun, 21 Sep 2014 03:11:44 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0429DA1C90; Sat, 20 Sep 2014 17:11:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XjoRJoa2bJ-r; Sat, 20 Sep 2014 17:11:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 16E60A16DA; Sat, 20 Sep 2014 17:10:17 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 0438C1C107C for ; Sat, 20 Sep 2014 17:10:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A20682621E for ; Sat, 20 Sep 2014 17:10:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HGEJlHbL2chR for ; Sat, 20 Sep 2014 17:10:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by silver.osuosl.org (Postfix) with ESMTPS id 473A1215E5 for ; Sat, 20 Sep 2014 17:10:08 +0000 (UTC) Received: by mail-wg0-f45.google.com with SMTP id x13so291208wgg.4 for ; Sat, 20 Sep 2014 10:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=m9/p37NzEG3i7hMvIKTtJ6JbWXsQEhnGFu97X+D/3U8=; b=uSoQiUgIpP7mSYjXo8NcmOPFGCmMEhXfKmf7U/TR3J5LldCeo07wnnaPsi6QwAcoE7 CqiKCzAOR0fP2cQO1+FAoYGdG2UecNjLcOlnVAWnpvzOWX7dh4hohvN7GpmIYAvvQCOk LMTRV3vWm00xnK+6LN0CMBUspEb4h6TBVrM0uw50KyzI+Z20r8rzKJbf6PFTgfyG4oS7 ppKCF8N9FXZxgg9UG39T38eX1jZUgNLpMY4mss38LPrqV45wthLIyinVSAJSEPKbl1Zl NPmc4hBfoZCvWb7jr3qAdjSEx9oLqCdt50kccf0ctV6QFg2XvoxSyFPgemZ0R/bAfwGi w7yA== X-Received: by 10.194.220.7 with SMTP id ps7mr9020535wjc.28.1411233006648; Sat, 20 Sep 2014 10:10:06 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id fl6sm5959581wib.21.2014.09.20.10.10.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 20 Sep 2014 10:10:06 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sat, 20 Sep 2014 19:09:53 +0200 Message-Id: <21f6bb06dc7bd3e4efda24924c344a0c5b39b95a.1411232859.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 07/10] package/freerdp: install server key and certificate X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This is mandatory for an RDP server to have a key and a certificate, otherwise clients will refuse to connect to that server. Signed-off-by: "Yann E. MORIN" --- package/freerdp/freerdp.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/freerdp/freerdp.mk b/package/freerdp/freerdp.mk index 3dc257b..9c974b7 100644 --- a/package/freerdp/freerdp.mk +++ b/package/freerdp/freerdp.mk @@ -83,4 +83,14 @@ else FREERDP_CONF_OPT += -DWITH_XV=OFF endif +# Install the server key and certificate, so that a client can connect. +# A user can override them with its opwn 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 + $(eval $(cmake-package))