From 0b26fd60b7b9ff6b048ba0872e56955c6dea61a8 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Sun, 7 Oct 2018 19:24:23 -0700 Subject: openpower: phosphor-webui: set wildcard to version Update the bbappend to wildcard on the recipe's version. (From meta-openpower rev: a613ae43d3c2085ef8e769c4eec909eade57ec00) Change-Id: I669c205ac1d23b657138687781f5366988437fe9 Signed-off-by: Patrick Venture Signed-off-by: Brad Bishop --- .../recipes-phosphor/webui/phosphor-webui%.bbappend | 16 ---------------- .../recipes-phosphor/webui/phosphor-webui_%.bbappend | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 meta-openpower/recipes-phosphor/webui/phosphor-webui%.bbappend create mode 100644 meta-openpower/recipes-phosphor/webui/phosphor-webui_%.bbappend (limited to 'meta-openpower') diff --git a/meta-openpower/recipes-phosphor/webui/phosphor-webui%.bbappend b/meta-openpower/recipes-phosphor/webui/phosphor-webui%.bbappend deleted file mode 100644 index 17dd7397b..000000000 --- a/meta-openpower/recipes-phosphor/webui/phosphor-webui%.bbappend +++ /dev/null @@ -1,16 +0,0 @@ -do_install_append_df-openpower () { - -# The webui content is served as pre-compressed gzip content. While nginx can -# handle this via the gzip_static directive (and we use that), the nginx -# try_files directive (which we also use) searches the URI as-is. The suggested -# workaround is to have an empty uncompressed file with the same name as the -# compressed file. This does not impact the functionality of gzip_static. -# So for eg if there's an index.html.gz, create an empty index.html. Same goes -# for all the webui content. -# https://serverfault.com/questions/571733/nginx-gzip-static-why-are-the-non-compressed-files-required -# https://www.ruby-forum.com/topic/4402481 -# https://trac.nginx.org/nginx/ticket/1367 - -find ${D}${datadir}/www -type f -name '*.gz' -exec sh -c 'touch `dirname "$0"`/`basename "$0" .gz`' '{}' \; - -} diff --git a/meta-openpower/recipes-phosphor/webui/phosphor-webui_%.bbappend b/meta-openpower/recipes-phosphor/webui/phosphor-webui_%.bbappend new file mode 100644 index 000000000..17dd7397b --- /dev/null +++ b/meta-openpower/recipes-phosphor/webui/phosphor-webui_%.bbappend @@ -0,0 +1,16 @@ +do_install_append_df-openpower () { + +# The webui content is served as pre-compressed gzip content. While nginx can +# handle this via the gzip_static directive (and we use that), the nginx +# try_files directive (which we also use) searches the URI as-is. The suggested +# workaround is to have an empty uncompressed file with the same name as the +# compressed file. This does not impact the functionality of gzip_static. +# So for eg if there's an index.html.gz, create an empty index.html. Same goes +# for all the webui content. +# https://serverfault.com/questions/571733/nginx-gzip-static-why-are-the-non-compressed-files-required +# https://www.ruby-forum.com/topic/4402481 +# https://trac.nginx.org/nginx/ticket/1367 + +find ${D}${datadir}/www -type f -name '*.gz' -exec sh -c 'touch `dirname "$0"`/`basename "$0" .gz`' '{}' \; + +} -- cgit v1.2.3