commit 9bd4d868cb69d76ea7e5eddf430ff846d7fa86fe
Author: qvint <dotqvint(a)gmail.com>
Date: Sun Sep 22 15:02:59 2019 +0300
Rename to chromium-browser-privacy
chromium-browser-privacy.appdata.xml | 39 ++++++++++++++++++++++
chromium-vaapi.sh => chromium-browser-privacy.sh | 7 ++--
...ium-vaapi.spec => chromium-browser-privacy.spec | 19 ++++++++---
chromium-default-user-data-dir.patch | 14 ++++++++
chromium-vaapi.appdata.xml | 37 --------------------
5 files changed, 73 insertions(+), 43 deletions(-)
---
diff --git a/chromium-browser-privacy.appdata.xml b/chromium-browser-privacy.appdata.xml
new file mode 100644
index 0000000..b83b11f
--- /dev/null
+++ b/chromium-browser-privacy.appdata.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>chromium-browser-privacy.desktop</id>
+ <update_contact>dotqvint(a)gmail.com</update_contact>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>
+ BSD-3-Clause and LGPL-2.1+ and Apache-2.0 and IJG and MIT and
+ GPL-2.0+ and ISC and OpenSSL and (MPL-1.1 or GPL-2.0 or LGPL-2.0)
+ </project_license>
+ <name>chromium-browser-privacy</name>
+ <summary>Chromium, sans integration with Google</summary>
+ <description>
+ <p>
+ chromium-browser-privacy is an ungoogled-chromium distribution.
+ </p>
+ <p>
+ ungoogled-chromium is Chromium, sans integration with Google. It also
+ features some tweaks to enhance privacy, control, and transparency (almost
+ all of which require manual activation or enabling).
+ </p>
+ <p>
+ ungoogled-chromium retains the default Chromium experience as closely as
+ possible. Unlike other Chromium forks that have their own visions of a web
+ browser, ungoogled-chromium is essentially a drop-in replacement for
+ Chromium.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default">
+
<
image>https://user-images.githubusercontent.com/16843577/49707064-a0bf...
+ <caption/>
+ </screenshot>
+ </screenshots>
+ <translation/>
+ <developer_name>The Chromium Authors</developer_name>
+ <url
type="homepage">https://github.com/Eloston/ungoogled-chromiu...
+ <url
type="bugtracker">https://github.com/Eloston/ungoogled-chrom...
+ <url
type="faq">https://ungoogled-software.github.io/ungoogled-chromium-wiki/faq</url>
+</component>
diff --git a/chromium-vaapi.sh b/chromium-browser-privacy.sh
similarity index 90%
rename from chromium-vaapi.sh
rename to chromium-browser-privacy.sh
index d01dba8..20c04f6 100644
--- a/chromium-vaapi.sh
+++ b/chromium-browser-privacy.sh
@@ -13,7 +13,7 @@ CHROMIUM_DISTRO_FLAGS=()
export CHROME_WRAPPER="$(readlink -f "$0")"
HERE="`dirname "$CHROME_WRAPPER"`"
-export CHROME_DESKTOP="chromium-vaapi.desktop"
+export CHROME_DESKTOP="chromium-browser-privacy.desktop"
# We include some xdg utilities next to the binary, and we want to prefer them
# over the system versions when we know the system versions are very old. We
# detect whether the system xdg utilities are sufficiently new to be likely to
@@ -58,6 +58,9 @@ CHROMIUM_DISTRO_FLAGS+=" --enable-plugins \
--enable-user-scripts \
--enable-features=WebRTCPipeWireCapturer \
--enable-printing \
- --enable-sync"
+ --disable-sync \
+ --disable-background-networking \
+ --force-local-ntp \
+ --disallow-signin"
exec -a "$0" "@@CHROMIUMDIR@@/$(basename "$0" | sed
's/\.sh$//')" $CHROMIUM_DISTRO_FLAGS "$@"
diff --git a/chromium-vaapi.spec b/chromium-browser-privacy.spec
similarity index 97%
rename from chromium-vaapi.spec
rename to chromium-browser-privacy.spec
index e870323..cde2f69 100644
--- a/chromium-vaapi.spec
+++ b/chromium-browser-privacy.spec
@@ -54,12 +54,12 @@
# Enable building with ozone support
%global ozone 0
##############################Package Definitions######################################
-Name: chromium-vaapi
+Name: chromium-browser-privacy
Version: 76.0.3809.132
Release: 2%{?dist}
-Summary: A Chromium web browser with video decoding acceleration
+Summary: Chromium, sans integration with Google
License: BSD and LGPLv2+ and ASL 2.0 and IJG and MIT and GPLv2+ and ISC and OpenSSL
and (MPLv1.1 or GPLv2 or LGPLv2)
-URL:
https://www.chromium.org/Home
+URL:
https://github.com/Eloston/ungoogled-chromium
%if %{freeworld}
Source0:
https://commondatastorage.googleapis.com/chromium-browser-official/chromi...
%else
@@ -182,6 +182,8 @@ Recommends: libva-utils
# This build should be only available to amd64
ExclusiveArch: x86_64
# Define Patches here ##
+# Use ~/.config/ungoogled-chromium instead of ~/.config/chromium
+Patch300: chromium-default-user-data-dir.patch
# Enable video acceleration on chromium for Linux
Patch1: enable-vaapi.patch
# Enable support for widevine
@@ -221,7 +223,15 @@ Patch85: chromium-quiche-gcc9.patch
%description
-chromium-vaapi is an open-source web browser, powered by WebKit (Blink)
+chromium-browser-privacy is an ungoogled-chromium distribution.
+
+ungoogled-chromium is Chromium, sans integration with Google. It also features
+some tweaks to enhance privacy, control, and transparency (almost all of which
+require manual activation or enabling).
+
+ungoogled-chromium retains the default Chromium experience as closely as
+possible. Unlike other Chromium forks that have their own visions of a web
+browser, ungoogled-chromium is essentially a drop-in replacement for Chromium.
############################################PREP###########################################################
%prep
%setup -q -T -n ungoogled-chromium-%{ungoogled_chromium_revision} -b 300
@@ -233,6 +243,7 @@ python3 -B %{ungoogled_chromium_root}/utils/prune_binaries.py . \
%{ungoogled_chromium_root}/pruning.list
## Apply patches here ##
+%patch300 -p1 -b .udd
%patch1 -p1 -b .vaapi
%patch2 -p1 -b .widevine
%patch3 -p1 -b .fixvaapi
diff --git a/chromium-default-user-data-dir.patch b/chromium-default-user-data-dir.patch
new file mode 100644
index 0000000..23eccb6
--- /dev/null
+++ b/chromium-default-user-data-dir.patch
@@ -0,0 +1,14 @@
+Change default user data dir to ~/.config/ungoogled-chromium.
+https://github.com/Eloston/ungoogled-chromium/issues/568#issuecomment-433724920
+
+--- a/chrome/common/chrome_paths_linux.cc
++++ b/chrome/common/chrome_paths_linux.cc
+@@ -90,7 +90,7 @@ bool GetDefaultUserDataDirectory(base::F
+ #if defined(GOOGLE_CHROME_BUILD)
+ *result = config_dir.Append("google-chrome" +
GetChannelSuffixForDataDir());
+ #else
+- *result = config_dir.Append("chromium");
++ *result = config_dir.Append("ungoogled-chromium");
+ #endif
+ return true;
+ }