From 2da6aa7a41bbd6dd45d01f3f56dbc64905a3771d Mon Sep 17 00:00:00 2001 From: jj Date: Fri, 25 Jul 2025 11:55:17 +0000 Subject: [PATCH] patches/extra: add ungoogled-chromium license and info to about page --- .../ungoogled-chromium/add-credits.patch | 71 +++++++++++++++++++ patches/series | 1 + 2 files changed, 72 insertions(+) create mode 100644 patches/extra/ungoogled-chromium/add-credits.patch diff --git a/patches/extra/ungoogled-chromium/add-credits.patch b/patches/extra/ungoogled-chromium/add-credits.patch new file mode 100644 index 00000000..47c2711b --- /dev/null +++ b/patches/extra/ungoogled-chromium/add-credits.patch @@ -0,0 +1,71 @@ +--- a/components/webui/about/resources/about_credits_reciprocal.tmpl ++++ b/components/webui/about/resources/about_credits_reciprocal.tmpl +@@ -1,4 +1,4 @@ +
+- {{opensource_project}} software is made available as source code +- here. ++ {{opensource_project}} source code is available in ++ the repository. +
+--- a/tools/licenses/licenses.py ++++ b/tools/licenses/licenses.py +@@ -1015,6 +1015,16 @@ def GenerateCredits(file_template_file, + entries.append( + MetadataToTemplateEntry(chromium_license_metadata, entry_template)) + ++ ugc_license_metadata = { ++ 'Name': 'ungoogled-chromium', ++ 'URL': 'https://github.com/ungoogled-software/ungoogled-chromium', ++ 'Shipped': 'yes', ++ 'License File': [os.path.join(_REPOSITORY_ROOT, 'third_party', 'ungoogled-chromium', 'LICENSE')], ++ } ++ ++ entries.append( ++ MetadataToTemplateEntry(ugc_license_metadata, entry_template)) ++ + entries_by_name = {} + for path in third_party_dirs: + try: +@@ -1059,8 +1069,8 @@ def GenerateCredits(file_template_file, + reciprocal_template = codecs.open(reciprocal_template_file, + encoding='utf-8').read() + reciprocal_contents = EvaluateTemplate(reciprocal_template, { +- 'opensource_project': 'Chromium', +- 'opensource_link': 'https://source.chromium.org/chromium' ++ 'opensource_project': 'ungoogled-chromium', ++ 'opensource_link': 'https://github.com/ungoogled-software/ungoogled-chromium' + }, + escape=False) + +--- /dev/null ++++ b/third_party/ungoogled-chromium/LICENSE +@@ -0,0 +1,29 @@ ++BSD 3-Clause License ++ ++Copyright (c) 2015-2025, The ungoogled-chromium Authors ++All rights reserved. ++ ++Redistribution and use in source and binary forms, with or without ++modification, are permitted provided that the following conditions are met: ++ ++1. Redistributions of source code must retain the above copyright notice, this ++ list of conditions and the following disclaimer. ++ ++2. Redistributions in binary form must reproduce the above copyright notice, ++ this list of conditions and the following disclaimer in the documentation ++ and/or other materials provided with the distribution. ++ ++3. Neither the name of the copyright holder nor the names of its ++ contributors may be used to endorse or promote products derived from ++ this software without specific prior written permission. ++ ++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ++AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ++DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE ++FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ++SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ++CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ++OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ++OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/patches/series b/patches/series index 249674be..a92e0be9 100644 --- a/patches/series +++ b/patches/series @@ -111,3 +111,4 @@ extra/ungoogled-chromium/remove-pac-size-limit.patch extra/ungoogled-chromium/enable-certificate-transparency-and-add-flag.patch extra/ungoogled-chromium/add-flag-to-spoof-webgl-renderer-info.patch extra/ungoogled-chromium/add-flag-to-increase-incognito-storage-quota.patch +extra/ungoogled-chromium/add-credits.patch