From e7769a06e830052967e85fb362d3978ab51a6c0e Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Tue, 2 Jan 2024 18:21:42 -0800 Subject: [PATCH] chore(license) intact LICENSE copy and new NOTICE file Correctly apply the Apache 2.0 license as per https://vladimirgorej.com/blog/how-to-apply-apache2-license-to-your-open-source-software-project/. --- LICENSE | 2 +- NOTICE | 13 +++++++++++++ README.md | 2 +- util/release.sh | 3 +++ 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 NOTICE diff --git a/LICENSE b/LICENSE index 5ff56e7a2..d64569567 100644 --- a/LICENSE +++ b/LICENSE @@ -187,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2020-2023 Kong Inc. + Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/NOTICE b/NOTICE new file mode 100644 index 000000000..f8da6f278 --- /dev/null +++ b/NOTICE @@ -0,0 +1,13 @@ +Copyright 2020-2024 Kong Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/README.md b/README.md index 7c3c44b9f..961c79321 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ list](https://github.com/proxy-wasm/spec#sdks). ## License ``` -Copyright 2020-2023 Kong Inc. +Copyright 2020-2024 Kong Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/util/release.sh b/util/release.sh index 3549f2219..4232f2af5 100755 --- a/util/release.sh +++ b/util/release.sh @@ -286,6 +286,7 @@ build_static_binary() { $DIST_SRC/assets/release/nginx.conf \ $DIST_SRC/assets/release/README \ $DIST_SRC/LICENSE \ + $DIST_SRC/NOTICE \ $dist_bin_name tar czf $dist_bin_name.tar.gz $dist_bin_name mv $dist_bin_name.tar.gz $DIR_DIST_OUT @@ -343,6 +344,7 @@ release_source() { $DIST_SRC/src \ $DIST_SRC/lib/resty \ $DIST_SRC/LICENSE \ + $DIST_SRC/NOTICE \ $DIST_SRC/assets/release/INSTALL cp $DIST_SRC.tar.gz $DIR_DIST_OUT popd @@ -466,6 +468,7 @@ cp -R \ $NGX_WASM_DIR/rust-toolchain.toml \ $NGX_WASM_DIR/Makefile \ $NGX_WASM_DIR/LICENSE \ + $NGX_WASM_DIR/NOTICE \ $NGX_WASM_DIR/config \ $NGX_WASM_DIR/auto \ $NGX_WASM_DIR/src \