All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Becker <chemobejk@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] swupdate: install web application version 2
Date: Mon, 16 Apr 2018 14:47:22 +0300	[thread overview]
Message-ID: <CAOJ2eMcLiqd03QV5b14WzeXZz1LCU703C-kB0=JXgXtht3Noug@mail.gmail.com> (raw)
In-Reply-To: <20180416114444.26220-1-chemobejk@gmail.com>

On Mon, Apr 16, 2018 at 2:44 PM, Stefan Becker <chemobejk@gmail.com> wrote:
> 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 <chemobejk@gmail.com>
> ---
>  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
> --
> 2.14.3
>

Other alternative would be to revert swupdate 2017.11 -> 2018.03
change (git commit 26184c2815072e2ab5ba6eb3e13542684d65c55a)

Regards, Stefan

  reply	other threads:[~2018-04-16 11:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-15 19:45 [Buildroot] [git commit] swupdate: bump to version 2018.03 Thomas Petazzoni
2018-04-16 11:44 ` [Buildroot] [PATCH] swupdate: install web application version 2 Stefan Becker
2018-04-16 11:47   ` Stefan Becker [this message]
2018-04-16 14:38   ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOJ2eMcLiqd03QV5b14WzeXZz1LCU703C-kB0=JXgXtht3Noug@mail.gmail.com' \
    --to=chemobejk@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.