From patchwork Mon Apr 16 11:44:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Becker X-Patchwork-Id: 898585 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bftOW4/M"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40PmlV505yz9s21 for ; Mon, 16 Apr 2018 21:45:09 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 450EC8722F; Mon, 16 Apr 2018 11:45:07 +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 yl1T6EpLlOAE; Mon, 16 Apr 2018 11:45:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id D206B860FE; Mon, 16 Apr 2018 11:45:02 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 95BED1C08F2 for ; Mon, 16 Apr 2018 11:45:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 92A308745C for ; Mon, 16 Apr 2018 11:45:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p0hH37tFkinb for ; Mon, 16 Apr 2018 11:45:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id A793486E75 for ; Mon, 16 Apr 2018 11:45:01 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id n14-v6so3982747lfe.5 for ; Mon, 16 Apr 2018 04:45:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z8JnZACFm7x6ZavPtphnKZERo+yKHfVPC7dExCtDq+U=; b=bftOW4/MMZ9bJBwCWmP/Tv9Quzqvf8YyTW9cx+REho1j2w1B0oVbXxlsYAadxYqQ2T 2yjYC6C4vop+agjjt3W27rMHdCAzAUoqbWugs6BIIcYGf6WcajFS0bcECB8MGO9x2vS1 ds6KCTJ0jIk4bjV9vzIE2KOt4PQPCWvqCmZYcGN7wiFY5k5j/rq/hJJqcwa+rkuQJpYp dj6Ifn25JZCOg5gKhK7Otx0yYa2Ucb8FE0oedT/Df2k9G8mLTQGJyTR3SkJwwr7Hfrsq rLhfJuWslqi0R3QRrbtv0iHCGqWO9ATLqruI7h66Zmk8iH4vcEcBCq4Ntew/UJeAPTgF 373A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=z8JnZACFm7x6ZavPtphnKZERo+yKHfVPC7dExCtDq+U=; b=IkeGW0Amrog0sb3cZfChFBjK5eWsRg+ml9zzvGwK4FLhEZuYSuJYXB0tp5W7zyqHjc dIHsJOTiIynOeaCx/DqrdTt43euAZpqyB+K01bnXvjczjndRbYMuFe/LZqe4XrDr/juy 6o4pE20k0pDtVb4OvSpYQAuvTgcoAMjSjU4gXPr+wX73oBdoy4Dzi6MMK+viMjKrVF77 b+ON045AB1BildFhLVK8Zziy/HDEJ5VDAquRqXO7bNmCJAcCUHvov95mHJE1s0LIHy4o 0sQiYf3AaHWb1u2IGW8U66jOxSVGc6vzJtGM9IuK+hUDfDW5xhyvHX4IFT5cfYZMGJDY 6saw== X-Gm-Message-State: ALQs6tCIfRw7YYgQ3Gnc0zQHmT1NziUHa0e2dk3WHEPMP1pfoqyq14mH r+PTwwk5VqqPNkES4AhGeuaTavXd1ig= X-Google-Smtp-Source: AIpwx49BryGXQ5GABGZMe4n1VSgAUsR6FXPqxWcyPmmfIJtaR0yijv8YocuIRz59sfLvU/KzlsYVyg== X-Received: by 10.46.154.142 with SMTP id p14mr841505lji.103.1523879099563; Mon, 16 Apr 2018 04:44:59 -0700 (PDT) Received: from stefanb-lnx.localdomain ([62.121.61.82]) by smtp.gmail.com with ESMTPSA id q18sm2133584ljg.35.2018.04.16.04.44.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 04:44:58 -0700 (PDT) From: Stefan Becker To: buildroot@buildroot.org Date: Mon, 16 Apr 2018 14:44:44 +0300 Message-Id: <20180416114444.26220-1-chemobejk@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180415195628.4CE0F88476@busybox.osuosl.org> References: <20180415195628.4CE0F88476@busybox.osuosl.org> Subject: [Buildroot] [PATCH] swupdate: install web application version 2 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Becker , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The old web application under www/ and mongoose API v1 no longer work after upgrading to 2018.03. Install web application version 2 from examples/www/v2/ to /var/www/swupdate/ instead. This fix does not address the fact that you can't rebuild the new web application under buildroot. That would require host Node.js & npm to run the application build. I.e. for now users have to live with the example application or apply patches directly to the built version of the appication. Signed-off-by: Stefan Becker --- package/swupdate/swupdate.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/swupdate/swupdate.mk b/package/swupdate/swupdate.mk index 8649931eb7..5dce9cd46c 100644 --- a/package/swupdate/swupdate.mk +++ b/package/swupdate/swupdate.mk @@ -125,7 +125,7 @@ define SWUPDATE_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0755 $(@D)/swupdate $(TARGET_DIR)/usr/bin/swupdate $(if $(BR2_PACKAGE_SWUPDATE_INSTALL_WEBSITE), \ mkdir -p $(TARGET_DIR)/var/www/swupdate; \ - cp -dpf $(@D)/www/* $(TARGET_DIR)/var/www/swupdate) + cp -dpRf $(@D)/examples/www/v2/* $(TARGET_DIR)/var/www/swupdate) endef # Checks to give errors that the user can understand