Reorganize files

This commit is contained in:
Eloston
2018-12-30 01:26:59 +00:00
parent 9ccb23fbef
commit 97b5e48dcf
143 changed files with 1 additions and 15092 deletions

1
chromium_version.txt Normal file
View File

@@ -0,0 +1 @@
71.0.3578.98

View File

@@ -1,3 +0,0 @@
[bundle]
display_name = Arch Linux
depends = linux_rooted

View File

@@ -1 +0,0 @@
debian_buster/system/harfbuzz.patch

View File

@@ -1,2 +0,0 @@
[bundle]
display_name = Common across all bundles

View File

@@ -1,3 +0,0 @@
[bundle]
display_name = Debian 10 (buster)
depends = linux_rooted

View File

@@ -1,11 +0,0 @@
debian_buster/disable/openh264.patch
debian_buster/system/ffmpeg34.patch
debian_buster/system/harfbuzz.patch
debian_buster/system/openjpeg.patch
debian_buster/debianization/sandbox.patch
debian_buster/debianization/master-preferences.patch
ungoogled-chromium/linux/fix-nullptr-t-namespace.patch
ungoogled-chromium/linux/manpage.patch

View File

@@ -1,3 +0,0 @@
[bundle]
display_name = Debian 9.0 (stretch)
depends = linux_rooted

View File

@@ -1,2 +0,0 @@
rtc_libvpx_build_vp9=false
use_system_harfbuzz=false

View File

@@ -1,15 +0,0 @@
debian_buster/disable/openh264.patch
debian_stretch/system/vpx16.patch
debian_stretch/system/icu.patch
debian_stretch/system/ffmpeg.patch
debian_buster/system/ffmpeg34.patch
debian_buster/system/openjpeg.patch
debian_stretch/system/openjpeg21.patch
debian_buster/debianization/sandbox.patch
debian_buster/debianization/master-preferences.patch
ungoogled-chromium/linux/fix-libva1-compatibility.patch
ungoogled-chromium/linux/fix-nullptr-t-namespace.patch
ungoogled-chromium/linux/manpage.patch

View File

@@ -1,3 +0,0 @@
[bundle]
display_name = Linux build with minimal system dependencies
depends = common

View File

@@ -1 +0,0 @@
build/config/compiler/BUILD.gn

View File

@@ -1,5 +0,0 @@
custom_toolchain="//build/toolchain/linux/unbundle:default"
host_toolchain="//build/toolchain/linux/unbundle:default"
linux_use_bundled_binutils=false
optimize_for_size=false
use_kerberos=false

View File

@@ -1,5 +0,0 @@
ubuntu/no-new-ninja-flag.patch
ubuntu/relax-ninja-version-requirement.patch
opensuse/system-libdrm.patch
ungoogled-chromium/linux/manpage.patch
ungoogled-chromium/remove-fcomplete-member-pointers-cflag.patch

View File

@@ -1,3 +0,0 @@
[bundle]
display_name = Shared config among system-dependent Linux configs
depends = common

View File

@@ -1,22 +0,0 @@
custom_toolchain="//build/toolchain/linux/unbundle:default"
ffmpeg_branding="ChromeOS"
gold_path=""
goma_dir=""
host_toolchain="//build/toolchain/linux/unbundle:default"
link_pulseaudio=true
linux_use_bundled_binutils=false
optimize_for_size=false
use_allocator="none"
use_cups=true
use_custom_libcxx=false
use_gio=true
use_kerberos=false
use_libjpeg_turbo=true
use_openh264=false
use_pulseaudio=true
use_system_freetype=true
use_system_harfbuzz=true
use_system_lcms2=true
use_system_libjpeg=true
use_system_zlib=true
use_vaapi=true

View File

@@ -1,16 +0,0 @@
inox-patchset/chromium-vaapi-r18.patch
debian_buster/warnings/attribute.patch
debian_buster/gn/libcxx.patch
debian_buster/system/vpx.patch
debian_buster/system/icu.patch
debian_buster/system/jpeg.patch
debian_buster/system/nspr.patch
debian_buster/system/zlib.patch
debian_buster/system/event.patch
debian_buster/system/jsoncpp.patch
debian_buster/system/convertutf.patch
opensuse/system-libdrm.patch
ungoogled-chromium/linux/use-system-libraries-in-official-build.patch

View File

@@ -1 +0,0 @@
third_party/icu/common/icudtl.dat

View File

@@ -1,3 +0,0 @@
[bundle]
display_name = macOS
depends = common

View File

@@ -1,22 +0,0 @@
# Extra dependencies not included in the main Chromium source archive
# For now, the following are from the top level DEPS file which are needed for building to work
# Uses configparser.BasicInterpolation interpolation
# Google Toolbox for Mac, which is macOS-specific code needed for building
[google-toolbox-for-mac]
version = 3c3111d3aefe907c8c0f0e933029608d96ceefeb
url = https://github.com/google/google-toolbox-for-mac/archive/%(version)s.tar.gz
download_filename = google-toolbox-for-mac-%(version)s.tar.gz
strip_leading_dirs = google-toolbox-for-mac-%(version)s
sha512 = 609b91872d123f9c5531954fad2f434a6ccf709cee8ae05f7f584c005ace511d4744a95e29ea057545ed5e882fe5d12385b6d08c88764f00cd64f7f2a0837790
output_path = third_party/google_toolbox_for_mac/src
# Pre-built LLVM toolchain for convenience
[llvm]
version = 6.0.0
url = http://llvm.org/releases/%(version)s/clang+llvm-%(version)s-x86_64-apple-darwin.tar.xz
download_filename = clang+llvm-%(version)s-x86_64-apple-darwin.tar.xz
strip_leading_dirs = clang+llvm-%(version)s-x86_64-apple-darwin
sha512 = 5240c973f929a7f639735821c560505214a6f0f3ea23807ccc9ba3cf4bc4bd86852c99ba78267415672ab3d3563bc2b0a8495cf7119c3949e400c8c17b56f935
output_path = third_party/llvm-build/Release+Asserts

View File

@@ -1,7 +0,0 @@
ungoogled-chromium/macos/disable-symbol-order-verification.patch
ungoogled-chromium/macos/disable-crashpad-handler.patch
ungoogled-chromium/macos/fix-gn-safe_browsing.patch
ungoogled-chromium/macos/fix-mapped_file.patch
ungoogled-chromium/macos/fix-visibility.patch
ungoogled-chromium/macos/fix-older-sdk-declarations.patch
ungoogled-chromium/macos/fix-disk_image_type_sniffer_mac.patch

View File

@@ -1,4 +0,0 @@
[bundle]
display_name = openSUSE
depends = common
patches_outdated = true

View File

@@ -1,14 +0,0 @@
custom_toolchain="//build/toolchain/linux/unbundle:default"
gold_path=""
goma_dir=""
host_toolchain="//build/toolchain/linux/unbundle:default"
is_component_build=false
is_component_ffmpeg=true
link_pulseaudio=true
linux_use_bundled_binutils=false
use_aura=true
use_cups=true
use_custom_libcxx=false
use_kerberos=false
use_pulseaudio=true
use_vaapi=true

View File

@@ -1,6 +0,0 @@
ungoogled-chromium/linux/use-system-libraries-in-official-build.patch
opensuse/master-preferences.patch
opensuse/fix-kernel-user-namespace-crash.patch
opensuse/chromium-dma-buf.patch
opensuse/system-libdrm.patch

View File

@@ -1,3 +0,0 @@
[bundle]
display_name = Ubuntu 18.04 (bionic)
depends = linux_rooted

View File

@@ -1 +0,0 @@
use_system_harfbuzz=false

View File

@@ -1,10 +0,0 @@
debian_buster/disable/openh264.patch
debian_buster/system/ffmpeg34.patch
debian_buster/system/openjpeg.patch
debian_buster/debianization/sandbox.patch
debian_buster/debianization/master-preferences.patch
ungoogled-chromium/linux/fix-nullptr-t-namespace.patch
ungoogled-chromium/linux/manpage.patch

View File

@@ -1,3 +0,0 @@
[bundle]
display_name = Ubuntu 18.10 (cosmic)
depends = linux_rooted

View File

@@ -1 +0,0 @@
use_system_harfbuzz=false

View File

@@ -1,10 +0,0 @@
debian_buster/disable/openh264.patch
debian_buster/system/ffmpeg34.patch
debian_buster/system/openjpeg.patch
debian_buster/debianization/sandbox.patch
debian_buster/debianization/master-preferences.patch
ungoogled-chromium/linux/fix-nullptr-t-namespace.patch
ungoogled-chromium/linux/manpage.patch

View File

@@ -1,4 +0,0 @@
[bundle]
display_name = Microsoft Windows
depends = common
patches_outdated = true

View File

@@ -1,85 +0,0 @@
# Extra dependencies not included in the main Chromium source archive, and
# additional build utilities to replace Google-provided ones.
# Do note that utilities in here can be swapped with user-provided versions.
# Uses a heavily modified syzygy code base to build swapimport.exe
# Disabled import reordering for now since this is too much work to maintain
#[third_party/syzygy]
#version = bd0e67f571063e18e7200c72e6152a3a7e4c2a6d
#url = https://github.com/Eloston/syzygy/archive/{version}.tar.gz
#download_filename = syzygy-{version}.tar.gz
#strip_leading_dirs = syzygy-{version}
# Use a pre-built LLVM toolchain from LLVM for convenience
# Developer notes:
# * Releases of LLVM are available as "Clang for Windows (64-bit)" on LLVM's download page.
# * If the current stable version of LLVM is causing problems with the build, try
# matching Google's LLVM version (defined by the `CLANG_REVISION` variable in
# tools/clang/scripts/update.py by downloading a snapshot build at the version specified
# by `CLANG_REVISION` and `VERSION` constants in `tools/clang/scripts/update.py`.
# For example, revision 123456 of LLVM 9.8.7 64-bit Windows would be:
# `http://prereleases.llvm.org/win-snapshots/LLVM-9.8.7-r123456-win64.exe`
# (link derived from [LLVM Snapshot Builds](http://llvm.org/builds/))
[llvm]
version = 8.0.0-r339319
url = https://prereleases.llvm.org/win-snapshots/LLVM-%(version)s-win64.exe
# Uncomment the below instead when a new enough stable version of LLVM comes around
#url = https://releases.llvm.org/%(version)s/LLVM-%(version)s-win64.exe
download_filename = LLVM-%(version)s-win64.exe
sha512 = 495651b4378daff14a5ccd7ed338b41d9a68ccb2f2aeceabb30967ba3d8dd3fd99140be4ef00497c8721486dcc15a28898be03db9fe460da7f761f0425fe6064
extractor = 7z
output_path = third_party/llvm-build/Release+Asserts
# Pre-built GNU gperf from GnuWin32
[gperf]
version = 3.0.1
url = https://sourceforge.net/projects/gnuwin32/files/gperf/%(version)s/gperf-%(version)s-bin.zip/download
download_filename = gperf-%(version)s-bin.zip
sha512 = 3f2d3418304390ecd729b85f65240a9e4d204b218345f82ea466ca3d7467789f43d0d2129fcffc18eaad3513f49963e79775b10cc223979540fa2e502fe7d4d9
md5 = f67a2271f68894eeaa1984221d5ef5e5
extractor = 7z
output_path = third_party/gperf
# Pre-built GNU bison from GnuWin32
[bison-bin]
version = 2.4.1
url = https://sourceforge.net/projects/gnuwin32/files/bison/%(version)s/bison-%(version)s-bin.zip/download
download_filename = bison-%(version)s-bin.zip
md5 = 9d3ccf30fc00ba5e18176c33f45aee0e
sha512 = ea8556c2be1497db96c84d627a63f9a9021423041d81210776836776f1783a91f47ac42d15c46510718d44f14653a2e066834fe3f3dbf901c3cdc98288d0b845
extractor = 7z
output_path = third_party/bison
[bison-dep]
version = 2.4.1
url = https://sourceforge.net/projects/gnuwin32/files/bison/%(version)s/bison-%(version)s-dep.zip/download
download_filename = bison-%(version)s-dep.zip
md5 = 6558e5f418483b7c859643686008f475
sha512 = f1ca0737cce547c3e6f9b59202a31b12bbc5a5626b63032b05d7abd9d0f55da68b33ff6015c65ca6c15eecd35c6b1461d19a24a880abcbb4448e09f2fabe2209
extractor = 7z
output_path = third_party/bison
[bison-lib]
version = 2.4.1
url = https://sourceforge.net/projects/gnuwin32/files/bison/%(version)s/bison-%(version)s-lib.zip/download
download_filename = bison-%(version)s-lib.zip
md5 = c75406456f8d6584746769b1b4b828d6
sha512 = 7400aa529c6ec412a67de1e96ae5cf43f59694fca69106eec9c6d28d04af30f20b5d4d73bdb5b53052ab848c9fb2925db684be1cf45cbbb910292bf6d1dda091
extractor = 7z
output_path = third_party/bison
# Pre-built Ninja (build system)
[ninja]
version = 1.8.2
url = https://github.com/ninja-build/ninja/releases/download/v%(version)s/ninja-win.zip
download_filename = ninja-win-%(version)s.zip
sha512 = 9b9ce248240665fcd6404b989f3b3c27ed9682838225e6dc9b67b551774f251e4ff8a207504f941e7c811e7a8be1945e7bcb94472a335ef15e23a0200a32e6d5
extractor = 7z
output_path = third_party/ninja
# Pre-built git
[git]
version = 2.16.3
url = https://github.com/git-for-windows/git/releases/download/v%(version)s.windows.1/PortableGit-%(version)s-64-bit.7z.exe
download_filename = PortableGit-%(version)s-64-bit.7z.exe
sha256 = b8f321d4bb9c350a9b5e58e4330d592410ac6b39df60c5c25ca2020c6e6b273e
extractor = 7z
output_path = third_party/git

View File

@@ -1,4 +0,0 @@
chrome_pgo_phase=0
full_wpo_on_official=false
rtc_use_lto=false
target_cpu="x64"

View File

@@ -1,10 +0,0 @@
ungoogled-chromium/windows/windows-disable-reorder-fix-linking.patch
ungoogled-chromium/windows/windows-fix-missing-include-es_parser_adts-cc.patch
ungoogled-chromium/windows/windows-disable-win-build-output.patch
ungoogled-chromium/windows/windows-disable-orderfile.patch
ungoogled-chromium/windows/windows-disable-rcpy.patch
ungoogled-chromium/windows/windows-fix-building-without-safebrowsing.patch
ungoogled-chromium/windows/windows-fix-enum-conflict.patch
ungoogled-chromium/windows/windows-fix-building-gn.patch
ungoogled-chromium/windows/windows-disable-encryption.patch
ungoogled-chromium/windows/windows-disable-machine-id.patch

View File

@@ -1,230 +0,0 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Simple package script generator.
"""
import argparse
import re
import shutil
import string
import subprocess
from pathlib import Path
from buildkit.common import (ENCODING, BuildkitAbort, get_logger, validate_and_get_ini,
get_chromium_version, get_release_revision)
from buildkit.third_party import schema
# Constants
_ROOT_DIR = Path(__file__).resolve().parent
_PACKAGING_ROOT = _ROOT_DIR / 'packaging'
_PKGMETA = _PACKAGING_ROOT / 'pkgmeta.ini'
_TEMPLATE_SUFFIX = '.ungoogin'
_PKGMETA_SCHEMA = schema.Schema({
schema.Optional(schema.And(str, len)): {
schema.Optional('depends'): schema.And(str, len),
schema.Optional('buildkit_copy'): schema.And(str, len),
}
})
# Classes
class _BuildFileStringTemplate(string.Template):
"""
Custom string substitution class
Inspired by
http://stackoverflow.com/questions/12768107/string-substitutions-using-templates-in-python
"""
pattern = r"""
{delim}(?:
(?P<escaped>{delim}) |
_(?P<named>{id}) |
{{(?P<braced>{id})}} |
(?P<invalid>{delim}((?!_)|(?!{{)))
)
""".format(
delim=re.escape("$ungoog"), id=string.Template.idpattern)
# Methods
def _process_templates(template_files, build_file_subs):
"""
Recursively substitute '$ungoog' strings in template_files and
remove the suffix
template_files is an iterable of pathlib.Path
"""
for old_path in template_files:
new_path = old_path.with_name(old_path.stem)
old_path.replace(new_path)
with new_path.open('r+', encoding=ENCODING) as new_file:
content = _BuildFileStringTemplate(new_file.read()).substitute(**build_file_subs)
new_file.seek(0)
new_file.write(content)
new_file.truncate()
def _get_current_commit_or_tag():
"""
Returns a string of the current commit hash, or the tag name based
on version.ini if the script is not in a git repo.
It assumes "git" is in PATH, and that buildkit is run within a git repository.
Raises BuildkitAbort if invoking git fails.
"""
# Use presence of .git directory to determine if using git or not
# since git will be aggressive in finding a git repository otherwise
if not (Path(__file__).parent / '.git').exists(): #pylint: disable=no-member
# Probably not in a git checkout; extrapolate tag name based on
# version.ini
return '{}-{}'.format(get_chromium_version(), get_release_revision())
result = subprocess.run(['git', 'rev-parse', '--verify', 'HEAD'],
stdout=subprocess.PIPE,
universal_newlines=True,
cwd=str(Path(__file__).resolve().parent))
if result.returncode:
get_logger().error('Unexpected return code %s', result.returncode)
get_logger().error('Command output: %s', result.stdout)
raise BuildkitAbort()
return result.stdout.strip('\n')
def _get_package_dir_list(package, pkgmeta):
"""
Returns a list of pathlib.Path to packaging directories to be copied,
ordered by dependencies first.
Raises FileNotFoundError if a package directory cannot be found.
"""
package_list = list()
current_name = package
while current_name:
package_list.append(_PACKAGING_ROOT / current_name)
if not package_list[-1].exists(): #pylint: disable=no-member
raise FileNotFoundError(package_list[-1])
if current_name in pkgmeta and 'depends' in pkgmeta[current_name]:
current_name = pkgmeta[current_name]['depends']
else:
break
package_list.reverse()
return package_list
def _get_package_files(package_dir_list):
"""Yields tuples of relative and full package file paths"""
resolved_files = dict()
for package_dir in package_dir_list:
for file_path in package_dir.rglob('*'):
relative_path = file_path.relative_to(package_dir)
resolved_files[relative_path] = file_path
yield from sorted(resolved_files.items())
def _get_buildkit_copy(package, pkgmeta):
"""
Returns a pathlib.Path relative to the output directory to copy buildkit and bundles to,
otherwise returns None if buildkit does not need to be copied.
"""
while package:
if package in pkgmeta:
if 'buildkit_copy' in pkgmeta[package]:
return Path(pkgmeta[package]['buildkit_copy'])
if 'depends' in pkgmeta[package]:
package = pkgmeta[package]['depends']
else:
break
else:
break
return None
def _validate_and_get_args(parser):
"""
Helper for main()
Validates and returns arguments
"""
args = parser.parse_args()
if not args.destination.parent.exists():
parser.error('Destination parent directory "{}" does not exist'.format(
args.destination.parent))
if not _PACKAGING_ROOT.exists(): #pylint: disable=no-member
parser.error('Cannot find "packaging" directory next to this script')
packaging_dir = _PACKAGING_ROOT / args.name
if not packaging_dir.exists():
parser.error('Packaging "{}" does not exist'.format(args.name))
if not _PKGMETA.exists(): #pylint: disable=no-member
parser.error('Cannot find pkgmeta.ini in packaging directory')
return args
def _copy_buildkit_files(args, pkgmeta, files, dirs):
"""Helper for main()"""
buildkit_copy_relative = _get_buildkit_copy(args.name, pkgmeta)
if buildkit_copy_relative is None:
return
for file_name in files:
if not (args.destination / buildkit_copy_relative).exists():
(args.destination / buildkit_copy_relative).mkdir()
shutil.copy(
str(_ROOT_DIR / file_name), str(args.destination / buildkit_copy_relative / file_name))
for dir_name in dirs:
if (args.destination / buildkit_copy_relative / dir_name).exists():
shutil.rmtree(str(args.destination / buildkit_copy_relative / dir_name))
shutil.copytree(
str(_ROOT_DIR / dir_name), str(args.destination / buildkit_copy_relative / dir_name))
def main():
"""CLI Entrypoint"""
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('name', help='Name of packaging to generate')
parser.add_argument('destination', type=Path, help='Directory to store packaging files')
args = _validate_and_get_args(parser)
if not args.destination.exists():
args.destination.mkdir()
# Copy packaging files to destination
pkgmeta = validate_and_get_ini(_PKGMETA, _PKGMETA_SCHEMA)
template_files = set()
for relative_path, actual_path in _get_package_files(_get_package_dir_list(args.name, pkgmeta)):
target_path = args.destination / relative_path
if actual_path.is_dir():
if not target_path.exists():
target_path.mkdir()
shutil.copymode(str(actual_path), str(target_path))
else:
shutil.copy(str(actual_path), str(target_path))
if target_path.suffix.lower() == _TEMPLATE_SUFFIX:
template_files.add(target_path)
# Substitute template files
packaging_subs = dict(
chromium_version=get_chromium_version(),
release_revision=get_release_revision(),
current_commit_or_tag=_get_current_commit_or_tag(),
)
_process_templates(template_files, packaging_subs)
# Copy buildkit and config files, if necessary
_copy_buildkit_files(
args,
pkgmeta,
files=('version.ini', 'run_buildkit_cli.py'),
dirs=('buildkit', 'config_bundles', 'patches'))
if __name__ == '__main__':
main()

View File

@@ -1,183 +0,0 @@
# Derived from PKGBUILD for Inox
# Original Inox PKGBUILD authors:
# Maintainer: Michael Egger <gcarq@archlinux.info>
# Contributor: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=ungoogled-chromium
pkgver=$ungoog{chromium_version}
pkgrel=$ungoog{release_revision}
_launcher_ver=6
pkgdesc="Modifications to Google Chromium for removing Google integration and enhancing privacy, control, and transparency"
arch=('x86_64')
url="https://github.com/Eloston/ungoogled-chromium"
license=('BSD')
depends=('gtk3' 'nss' 'alsa-lib' 'xdg-utils' 'libxss' 'libcups' 'libgcrypt'
'ttf-font' 'systemd' 'dbus' 'libpulse' 'pciutils' 'json-glib'
'desktop-file-utils' 'hicolor-icon-theme' 'jsoncpp')
makedepends=('python' 'python2' 'gperf' 'yasm' 'mesa' 'ninja' 'git'
'clang' 'lld' 'gn' 'llvm' 'libva' 'quilt')
optdepends=('pepper-flash: support for Flash content'
'kdialog: needed for file dialogs in KDE'
'gnome-keyring: for storing passwords in GNOME keyring'
'kwallet: for storing passwords in KWallet'
'libva-intel-driver: for hardware video acceleration with Intel GPUs'
'libva-mesa-driver: for hardware video acceleration with AMD/ATI GPUs'
'libva-vdpau-driver: for hardware video acceleration with NVIDIA GPUs')
provides=('chromium')
conflicts=('chromium')
source=(https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$pkgver.tar.xz
chromium-launcher-$_launcher_ver.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver.tar.gz
'https://github.com/Eloston/ungoogled-chromium/archive/$ungoog{current_commit_or_tag}.tar.gz')
sha256sums=($(curl -sL https://commondatastorage.googleapis.com/chromium-browser-official/chromium-${pkgver}.tar.xz.hashes | grep sha256 | cut -d ' ' -f3)
'04917e3cd4307d8e31bfb0027a5dce6d086edb10ff8a716024fbb8bb0c7dccf1'
'SKIP')
# Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
# Keys are the names in the above script; values are the dependencies in Arch
declare -gA _system_libs=(
[ffmpeg]=ffmpeg
[flac]=flac
[fontconfig]=fontconfig
[freetype]=freetype2
[harfbuzz-ng]=harfbuzz
[icu]=icu
[libdrm]=
[libevent]=libevent
[libjpeg]=libjpeg
#[libpng]=libpng # https://crbug.com/752403#c10
[libvpx]=libvpx
[libwebp]=libwebp
[libxml]=libxml2
[libxslt]=libxslt
[opus]=opus
[re2]=re2
[snappy]=snappy
[yasm]=
[zlib]=minizip
)
_unwanted_bundled_libs=(
${!_system_libs[@]}
${_system_libs[libjpeg]+libjpeg_turbo}
)
depends+=(${_system_libs[@]})
prepare() {
local _buildkit_cli="$srcdir/$pkgname-$ungoog{current_commit_or_tag}/run_buildkit_cli.py"
local _config_bundle="$srcdir/$pkgname-$ungoog{current_commit_or_tag}/config_bundles/archlinux"
cd "$srcdir/chromium-$pkgver"
msg2 'Pruning binaries'
python "$_buildkit_cli" prune -b "$_config_bundle" ./
msg2 'Applying patches'
python "$_buildkit_cli" patches apply -b "$_config_bundle" ./
msg2 'Applying domain substitution'
python "$_buildkit_cli" domains apply -b "$_config_bundle" -c domainsubcache.tar.gz ./
# Force script incompatible with Python 3 to use /usr/bin/python2
sed -i '1s|python$|&2|' third_party/dom_distiller_js/protoc_plugins/*.py
# Remove bundled libraries for which we will use the system copies; this
# *should* do what the remove_bundled_libraries.py script does, with the
# added benefit of not having to list all the remaining libraries
local _lib
for _lib in ${_unwanted_bundled_libs[@]}; do
find -type f -path "*third_party/$_lib/*" \
\! -path "*third_party/$_lib/chromium/*" \
\! -path "*third_party/$_lib/google/*" \
\! -path './base/third_party/icu/*' \
\! -path './third_party/crashpad/crashpad/third_party/zlib/zlib_crashpad.h' \
\! -path './third_party/pdfium/third_party/freetype/include/pstables.h' \
\! -path './third_party/yasm/run_yasm.py' \
\! -regex '.*\.\(gn\|gni\|isolate\)' \
-delete
done
python2 build/linux/unbundle/replace_gn_files.py \
--system-libraries "${!_system_libs[@]}"
}
build() {
make -C chromium-launcher-$_launcher_ver
cd "$srcdir/chromium-$pkgver"
if check_buildoption ccache y; then
# Avoid falling back to preprocessor mode when sources contain time macros
export CCACHE_SLOPPINESS=time_macros
fi
export CC=clang
export CXX=clang++
export AR=llvm-ar
export NM=llvm-nm
mkdir -p out/Default
local _buildkit_cli="$srcdir/$pkgname-$ungoog{current_commit_or_tag}/run_buildkit_cli.py"
local _config_bundle="$srcdir/$pkgname-$ungoog{current_commit_or_tag}/config_bundles/archlinux"
python "$_buildkit_cli" gnargs print -b "$_config_bundle" \
> "$srcdir/chromium-$pkgver/out/Default/args.gn"
# Facilitate deterministic builds (taken from build/config/compiler/BUILD.gn)
CFLAGS+=' -Wno-builtin-macro-redefined'
CXXFLAGS+=' -Wno-builtin-macro-redefined'
CPPFLAGS+=' -D__DATE__= -D__TIME__= -D__TIMESTAMP__='
msg2 'Configuring Chromium'
gn gen out/Default --script-executable=/usr/bin/python2 --fail-on-unused-args
msg2 'Building Chromium'
ninja -C out/Default chrome chrome_sandbox chromedriver
}
package() {
cd chromium-launcher-$_launcher_ver
make PREFIX=/usr DESTDIR="$pkgdir" install
install -Dm644 LICENSE \
"$pkgdir/usr/share/licenses/chromium/LICENSE.launcher"
cd "$srcdir/chromium-$pkgver"
install -D out/Default/chrome "$pkgdir/usr/lib/chromium/chromium"
install -Dm4755 out/Default/chrome_sandbox "$pkgdir/usr/lib/chromium/chrome-sandbox"
ln -s /usr/lib/$pkgname/chromedriver "$pkgdir/usr/bin/chromedriver"
install -Dm644 chrome/installer/linux/common/desktop.template \
"$pkgdir/usr/share/applications/chromium.desktop"
install -Dm644 chrome/app/resources/manpage.1.in \
"$pkgdir/usr/share/man/man1/chromium.1"
sed -i \
-e "s/@@MENUNAME@@/Chromium/g" \
-e "s/@@PACKAGE@@/chromium/g" \
-e "s/@@USR_BIN_SYMLINK_NAME@@/chromium/g" \
"$pkgdir/usr/share/applications/chromium.desktop" \
"$pkgdir/usr/share/man/man1/chromium.1"
cp \
out/Default/{chrome_{100,200}_percent,resources}.pak \
out/Default/{*.bin,chromedriver} \
"$pkgdir/usr/lib/chromium/"
install -Dm644 -t "$pkgdir/usr/lib/chromium/locales" out/Default/locales/*.pak
if [[ -z ${_system_libs[icu]+set} ]]; then
cp out/Default/icudtl.dat "$pkgdir/usr/lib/chromium/"
fi
for size in 22 24 48 64 128 256; do
install -Dm644 "chrome/app/theme/chromium/product_logo_$size.png" \
"$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png"
done
for size in 16 32; do
install -Dm644 "chrome/app/theme/default_100_percent/chromium/product_logo_$size.png" \
"$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png"
done
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/chromium/LICENSE"
}
# vim:set ts=2 sw=2 et:

View File

@@ -1,15 +0,0 @@
files
*.log
*.substvars
.debhelper
debhelper-build-stamp
ungoogled-chromium
ungoogled-chromium-l10n
ungoogled-chromium-shell
ungoogled-chromium-driver
ungoogled-chromium-common
ungoogled-chromium-sandbox
scripts/mk-origtargz

View File

@@ -1,70 +0,0 @@
Command-line Flags
==================
Chromium has an extensive set of command-line flags that change rapidly, so
it's not really practical to include documentation in the package. This page
is kept relatively up to date with that information:
http://peter.sh/experiments/chromium-command-line-switches
Omnibox Search
==============
The omnibox search feature, which sends information entered into the url
entry bar to a selected search provider, can be disabled by setting
"disabled" "disabled" "http://%s" as the three fields and then selecting
"Make default" in the Default search settings dialog:
chrome://settings/searchEngines
Built-in Extensions
===================
The debian package disables most built-in upstream extensions by default
since users have stated concern about enabled features that they have not
specifically requested. This includes things like Google Hangouts, etc.
There are two exceptions, the pdfium extension for viewing pdf files
directly in the browser and the two-factor authentication extension.
If you would like to use one of the upstream built-ins that are currently
disabled, please edit debian/rules to enable it and rebuild the package
from source. See debian bug #886358 for more information.
Debugging
=========
To produce meaningful debugging information, please install the chromium-dbgsym
package and launch chromium with the "-g" flag.
$ chromium -g
If you try to install chromium-dbgsym and it fails, you may not have Debian's
dbgsym package repository configured and enabled. To set this up, first as
root add one or more of the following lines to your /etc/apt/sources.list file
(select the one appropriate to the Debian release you are using):
deb http://debug.mirrors.debian.org/debian-debug stable-debug main
deb http://debug.mirrors.debian.org/debian-debug testing-debug main
deb http://debug.mirrors.debian.org/debian-debug unstable-debug main
Then execute these commands (also as root):
# apt update
# apt install chromium-dbgsym
Information about installing dbgsym packages can be found on the Debian wiki:
http://wiki.debian.org/AutomaticDebugPackages
Additional information about debugging chromium can also be found on the Debian
wiki, but it is often out of date:
http://wiki.debian.org/Chromium/Debugging
Running as Root
===============
First of all, this is a very bad idea for a large number of reasons, so please
do not do this unless you really know what you are doing. However, if you want
to accept the risks, you can use the --no-sandbox command line argument to be
able to run chromium as root:
# chromium --no-sandbox

View File

@@ -1,9 +0,0 @@
List all of the flags that can be passed to gn
$ ./out/Release/gn args --list out/Release
use_system_sqlite=true
enable_wayland_server=true
enable_reporting=false
build/linux/sysroot_scripts

View File

@@ -1,5 +0,0 @@
ungoogled-chromium ($ungoog{chromium_version}-$ungoog{release_revision}~buster) buster; urgency=medium
* Built against $ungoog{current_commit_or_tag}
-- ungoogled-chromium Authors <maintainer@null> Sun, 29 Jul 2018 00:00:00 +0000

View File

@@ -1,139 +0,0 @@
[Desktop Entry]
Version=1.0
Name=Chromium Web Browser
Name[ast]=Restolador web Chromium
Name[ca]=Navegador web Chromium
Name[de]=Chromium-Webbrowser
Name[es]=Navegador web Chromium
Name[fr]=Navigateur Web Chromium
Name[gl]=Navegador web Chromium
Name[he]=דפדפן האינטרנט Chromium
Name[hr]=Chromium web preglednik
Name[hu]=Chromium webböngésző
Name[id]=Peramban Web Chromium
Name[it]=Browser web Chromium
Name[ja]=Chromium ウェブ・ブラウザ
Name[ko]=Chromium 웹 브라우저
Name[pt_BR]=Chromium Navegador da Internet
Name[ru]=Веб-браузер Chromium
Name[sl]=Chromium spletni brskalnik
Name[sv]=Webbläsaren Chromium
Name[ug]=Chromium توركۆرگۈ
Name[zh_CN]=Chromium 网页浏览器
Name[zh_HK]=Chromium 網頁瀏覽器
Name[zh_TW]=Chromium 網頁瀏覽器
GenericName=Web Browser
GenericName[ar]=متصفح الشبكة
GenericName[ast]=Restolador web
GenericName[bg]=Уеб браузър
GenericName[bn]=ওয়েব ব্রাউজার
GenericName[ca]=Navegador web
GenericName[cs]=WWW prohlížeč
GenericName[da]=Browser
GenericName[de]=Webbrowser
GenericName[el]=Περιηγητής ιστού
GenericName[en_GB]=Web Browser
GenericName[es]=Navegador web
GenericName[et]=Veebibrauser
GenericName[fi]=WWW-selain
GenericName[fil]=Web Browser
GenericName[fr]=Navigateur Web
GenericName[gl]=Navegador web
GenericName[gu]=વેબ બ્રાઉઝર
GenericName[he]=דפדפן אינטרנט
GenericName[hi]=वेब ब्राउज़र
GenericName[hr]=Web preglednik
GenericName[hu]=Webböngésző
GenericName[id]=Peramban Web
GenericName[it]=Browser web
GenericName[ja]=ウェブ・ブラウザ
GenericName[kn]=ಜಾಲ ವೀಕ್ಷಕ
GenericName[ko]=웹 브라우저
GenericName[lt]=Žiniatinklio naršyklė
GenericName[lv]=Tīmekļa pārlūks
GenericName[ml]=വെബ് ബ്രൌസര്‍
GenericName[mr]=वेब ब्राऊजर
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[or]=ଓ୍ବେବ ବ୍ରାଉଜର
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador da Internet
GenericName[ro]=Navigator de Internet
GenericName[ru]=Веб-браузер
GenericName[sk]=WWW prehliadač
GenericName[sl]=Spletni brskalnik
GenericName[sr]=Интернет прегледник
GenericName[sv]=Webbläsare
GenericName[ta]=இணைய உலாவி
GenericName[te]=మహాతల అన్వేషి
GenericName[th]=เว็บเบราว์เซอร์
GenericName[tr]=Web Tarayıcı
GenericName[ug]=توركۆرگۈ
GenericName[uk]=Навігатор Тенет
GenericName[vi]=Bộ duyệt Web
GenericName[zh_CN]=网页浏览器
GenericName[zh_HK]=網頁瀏覽器
GenericName[zh_TW]=網頁瀏覽器
Comment=Access the Internet
Comment[ar]=الدخول إلى الإنترنت
Comment[ast]=Accesu a Internet
Comment[bg]=Достъп до интернет
Comment[bn]=ইন্টারনেটটি অ্যাক্সেস করুন
Comment[ca]=Accediu a Internet
Comment[cs]=Přístup k internetu
Comment[da]=Få adgang til internettet
Comment[de]=Internetzugriff
Comment[el]=Πρόσβαση στο Διαδίκτυο
Comment[en_GB]=Access the Internet
Comment[es]=Acceda a Internet
Comment[et]=Pääs Internetti
Comment[fi]=Käytä internetiä
Comment[fil]=I-access ang Internet
Comment[fr]=Explorer le Web
Comment[gl]=Acceda a Internet
Comment[gu]=ઇંટરનેટ ઍક્સેસ કરો
Comment[he]=גישה לאינטרנט
Comment[hi]=इंटरनेट तक पहुंच स्थापित करें
Comment[hr]=Pristupite Internetu
Comment[hu]=Az internet elérése
Comment[id]=Akses Internet
Comment[it]=Accesso a Internet
Comment[ja]=インターネットにアクセス
Comment[kn]=ಇಂಟರ್ನೆಟ್ ಅನ್ನು ಪ್ರವೇಶಿಸಿ
Comment[ko]=인터넷에 연결합니다
Comment[lt]=Interneto prieiga
Comment[lv]=Piekļūt internetam
Comment[ml]=ഇന്റര്‍‌നെറ്റ് ആക്‌സസ് ചെയ്യുക
Comment[mr]=इंटरनेटमध्ये प्रवेश करा
Comment[nb]=Gå til Internett
Comment[nl]=Verbinding maken met internet
Comment[or]=ଇଣ୍ଟର୍ନେଟ୍ ପ୍ରବେଶ କରନ୍ତୁ
Comment[pl]=Skorzystaj z internetu
Comment[pt]=Aceder à Internet
Comment[pt_BR]=Acessar a internet
Comment[ro]=Accesaţi Internetul
Comment[ru]=Доступ в Интернет
Comment[sk]=Prístup do siete Internet
Comment[sl]=Dostop do interneta
Comment[sr]=Приступите Интернету
Comment[sv]=Surfa på Internet
Comment[ta]=இணையத்தை அணுகுதல்
Comment[te]=ఇంటర్నెట్‌ను ఆక్సెస్ చెయ్యండి
Comment[th]=เข้าถึงอินเทอร์เน็ต
Comment[tr]=İnternet'e erişin
Comment[ug]=ئىنتېرنېتنى زىيارەت قىلىش
Comment[uk]=Доступ до Інтернету
Comment[vi]=Truy cập Internet
Comment[zh_CN]=访问互联网
Comment[zh_HK]=連線到網際網路
Comment[zh_TW]=連線到網際網路
Exec=/usr/bin/chromium %U
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=chromium
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;application/x-mimearchive;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=chromium
StartupNotify=true

View File

@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE default-apps SYSTEM "gnome-da-list.dtd">
<default-apps>
<web-browsers>
<web-browser>
<name>Chromium</name>
<executable>chromium</executable>
<command>/usr/bin/chromium %s</command>
<icon-name>chromium</icon-name>
<run-in-terminal>false</run-in-terminal>
<netscape-remote>true</netscape-remote>
<tab-command>/usr/bin/chromium %s</tab-command>
<win-command>/usr/bin/chromium --new-window %s</win-command>
</web-browser>
</web-browsers>
</default-apps>

View File

@@ -1,33 +0,0 @@
debian/files
Makefile
third_party/flot/*.js
base/third_party/libevent/BUILD.gn
build/secondary/third_party/libjpeg_turbo/BUILD.gn
third_party/re2/BUILD.gn
third_party/icu/BUILD.gn
third_party/flac/BUILD.gn
third_party/zlib/BUILD.gn
third_party/opus/BUILD.gn
third_party/snappy/BUILD.gn
third_party/ffmpeg/BUILD.gn
third_party/libxml/BUILD.gn
third_party/libdrm/BUILD.gn
third_party/libpng/BUILD.gn
third_party/libvpx/BUILD.gn
third_party/libwebp/BUILD.gn
third_party/libjpeg/BUILD.gn
third_party/libxslt/BUILD.gn
third_party/freetype/BUILD.gn
third_party/fontconfig/BUILD.gn
third_party/harfbuzz-ng/harfbuzz.gni
third_party/yasm/yasm_assemble.gni
build/config/freetype/freetype.gni
third_party/yasm/run_yasm.py
tools/gn/base/numerics/safe_math_arm_impl.h
tools/gn/base/numerics/safe_conversions_arm_impl.h

View File

@@ -1 +0,0 @@
10

View File

@@ -1,222 +0,0 @@
Source: ungoogled-chromium
Section: web
Priority: optional
Maintainer: ungoogled-chromium Maintainers <github@null.invalid>
Vcs-Git: https://github.com/Eloston/ungoogled-chromium.git
Vcs-Browser: https://github.com/Eloston/ungoogled-chromium
Homepage: https://github.com/Eloston/ungoogled-chromium
Rules-Requires-Root: no
Build-Depends:
debhelper (>= 11),
clang-7,
lld-7,
llvm-7-dev,
python,
python3,
pkg-config,
ninja-build,
python-jinja2,
ca-certificates,
gsettings-desktop-schemas-dev,
wget,
flex,
yasm,
xvfb,
wdiff,
gperf,
bison,
valgrind,
xz-utils,
x11-apps,
xfonts-base,
libglew-dev,
libgl1-mesa-dev,
libglu1-mesa-dev,
libegl1-mesa-dev,
libgles2-mesa-dev,
mesa-common-dev,
libxt-dev,
libre2-dev,
libgbm-dev,
libpng-dev,
libxss-dev,
libelf-dev,
libvpx-dev (>= 1.7.0),
libpci-dev,
libcap-dev,
libdrm-dev,
libicu-dev,
libffi-dev,
libkrb5-dev,
libexif-dev,
libflac-dev,
libudev-dev,
libopus-dev,
libwebp-dev,
libxtst-dev,
libsrtp-dev,
libjpeg-dev,
libxml2-dev,
libgtk-3-dev,
libxslt1-dev,
liblcms2-dev,
libpulse-dev,
libpam0g-dev,
libsnappy-dev,
libavutil-dev,
libavcodec-dev (>= 7),
libavformat-dev,
libglib2.0-dev,
libasound2-dev,
libjsoncpp-dev,
libspeechd-dev (>= 0.8.3),
libminizip-dev,
libhunspell-dev,
libharfbuzz-dev (>= 2.1.1),
libusb-1.0-0-dev,
libopenjp2-7-dev,
libmodpbase64-dev,
libnss3-dev (>= 3.12.3),
libnspr4-dev (>= 2:4.9),
libcups2-dev (>= 1.5.0),
libevent-dev (>= 1.4.13),
libjs-jquery,
libjs-jquery-flot,
libgcrypt20-dev,
libva-dev,
fonts-ipafont-gothic,
fonts-ipafont-mincho,
Standards-Version: 4.2.1
Package: ungoogled-chromium
Architecture: i386 amd64 arm64 armhf
Built-Using: ${Built-Using}
Depends:
${misc:Depends},
${shlibs:Depends},
ungoogled-chromium-common (= ${binary:Version}),
Recommends:
ungoogled-chromium-sandbox,
Suggests:
ungoogled-chromium-l10n,
ungoogled-chromium-shell,
ungoogled-chromium-driver,
Provides:
www-browser,
gnome-www-browser,
Breaks:
chromium-lwn4chrome (<= 1.0-2),
chromium-tt-rss-notifier (<= 0.5.2-2),
chromium,
chromium-browser,
Conflicts:
libnettle4,
libsecret-1-0 (<< 0.18),
libgl1-mesa-swx11,
Replaces:
chromium,
chromium-browser,
Description: web browser
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package contains the web browser component.
Package: ungoogled-chromium-l10n
Architecture: all
Section: localization
Depends:
${misc:Depends},
ungoogled-chromium (>= ${source:Version}),
ungoogled-chromium (<< ${source:Version}.1~),
Replaces:
chromium-l10n,
Breaks:
chromium-l10n,
Description: web browser - language packs
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package contains language packages for:
am, ar, bg, bn, ca, cs, da, de, el, en-GB, es-419, es, et, fi, fil, fr, gu, he,
hi, hr, hu, id, it, ja, kn, ko, lt, lv, ml, mr, nb, nl, pl, pt-BR, pt-PT,
ro, ru, sk, sl, sr, sv, sw, ta, te, th, tr, uk, vi, zh-CN, zh-TW
Package: ungoogled-chromium-shell
Architecture: i386 amd64 arm64 armhf
Depends:
${misc:Depends},
${shlibs:Depends},
ungoogled-chromium-common (= ${binary:Version}),
Replaces:
chromium-shell,
Breaks:
chromium-shell,
Description: web browser - minimal shell
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package provides a minimal version of the chromium user interface
(the content shell).
Package: ungoogled-chromium-driver
Architecture: i386 amd64 arm64 armhf
Depends:
${misc:Depends},
${shlibs:Depends},
ungoogled-chromium (= ${binary:Version}),
Replaces:
chromedriver,
chromium-driver,
Breaks:
chromium-driver,
Description: web browser - WebDriver support
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package provides a bridge between the browser component and the selenium
automatic webdriver.
.
See http://code.google.com/p/selenium/wiki/ChromeDriver for details.
Package: ungoogled-chromium-common
Architecture: i386 amd64 arm64 armhf
Depends:
${misc:Depends},
x11-utils,
xdg-utils,
Recommends:
upower,
libu2f-udev,
libva1,
libgl1-mesa-dri,
ungoogled-chromium-sandbox,
fonts-liberation,
notification-daemon,
Breaks:
ungoogled-chromium (<< 60.0.3112.72-1),
chromium-common,
Replaces:
ungoogled-chromium (<< 60.0.3112.72-1),
chromium-common,
Description: web browser - common resources used by ungoogled-chromium packages
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package contains resources that are in common to different
ungoogled-chromium packages.
Package: ungoogled-chromium-sandbox
Architecture: i386 amd64 arm64 armhf
Depends:
${misc:Depends},
${shlibs:Depends},
Breaks:
chromium (<< ${binary:Version}),
Replaces:
chromium (<< ${binary:Version}),
Description: web browser - setuid security sandbox for ungoogled-chromium
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package contains the setuid chromium sandbox.

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
Any files placed in this directory will be sourced prior to executing chromium.

View File

@@ -1,19 +0,0 @@
# A set of command line flags that we want to set by default.
# Do not hide any extensions in the about:extensions dialog
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --show-component-extension-options"
# Change the disk cache directory
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disk-cache-dir=/tmp/ungoogled-chromium-disk-cache"
# Disable component updates
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-component-update"
# Don't use the GPU blacklist (bug #802933)
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --ignore-gpu-blacklist"
# Don't display any warnings about not being the default browser
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --no-default-browser-check"
# Disable the builtin media router (bug #833477)
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --media-router=0"

View File

@@ -1,5 +0,0 @@
# remote extensions on by default
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-remote-extensions"
# load all of the extensions installed to /usr/share/chromium/extensions
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --load-extension=`ls -dm /usr/share/chromium/extensions/* 2>/dev/null | tr -d '\n'`"

View File

@@ -1,87 +0,0 @@
{
"alternate_error_pages": {
"enabled": false
},
"autofill": {
"enabled": false
},
"distribution": {
"import_bookmarks": false,
"make_chrome_default": false,
"make_chrome_default_for_user": false,
"create_all_shortcuts": true,
"show_welcome_page": false,
"verbose_logging": true,
"skip_first_run_ui": true,
"suppress_first_run_default_browser_prompt": true
},
"background_mode": {
"enabled": false
},
"browser": {
"show_home_button": true,
"check_default_browser" : false,
"clear_data": {
"browsing_history": false,
"cache": true,
"download_history": false,
"form_data": true,
"hosted_apps_data": true,
"passwords": true,
"time_period": 4
},
"clear_lso_data_enabled": false,
"custom_chrome_frame": false,
"has_seen_welcome_page": true,
"enable_spellchecking": true
},
"bookmark_bar": {
"show_on_all_tabs": true
},
"default_apps_install_state": 2,
"dns_prefetching": {
"enabled": false
},
"download": {
"directory_upgrade": true,
"extensions_to_open": "",
"prompt_for_download": true
},
"net": {
"network_prediction_options": 2
},
"profile": {
"content_settings": {
"clear_on_exit_migrated": true
},
"default_content_settings": {
"cookies": 4,
"geolocation": 2,
"media-stream": 2,
"mouselock": 2,
"notifications": 2,
"plugins": 3,
"ppapi-broker": 2
},
"password_manager_enabled": false
},
"safebrowsing": {
"enabled": false
},
"savefile": {
"type": 2
},
"search": {
"suggest_enabled": false
},
"translate": {
"enabled": false
},
"hardware": {
"audio_capture_enabled": false
},
"default_apps": "noinstall",
"hide_web_store_icon": true,
"homepage_is_newtabpage": true
}

View File

@@ -1,14 +0,0 @@
Please submit all non-packaging issues (feature requests, etc.) to the upstream
bug tracker first (http://www.crbug.com). Please also include a link to your
upstream report in the Debian bug submission to make it more straightforward to
keep track of issues. Thank you!
If you experience crashes, please read this wiki page to get a useful backtrace:
http://wiki.debian.org/Chromium/Debugging
Please, if you have apps, extensions, or plugins (like flash player) installed,
remove them temporarily to see if the problem goes away first (before submitting
your bug report). Look at these urls to see what you currently have installed:
chrome://apps
chrome://plugins
chrome://extensions

View File

@@ -1,185 +0,0 @@
#!/usr/bin/make -f
# enable verbose build messages
export DH_VERBOSE=1
# enable all build hardening flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
# indicate that binary targets do not require root
export DEB_RULES_REQUIRES_ROOT=no
# use system LLVM via unbundling
export AR=llvm-ar-7
export NM=llvm-nm-7
export CC=clang-7
export CXX=clang++-7
# hack to allow clang to find the default cfi_blacklist.txt
export CXXFLAGS+=-resource-dir=$(shell clang-7 --print-resource-dir) \
export CPPFLAGS+=-resource-dir=$(shell clang-7 --print-resource-dir) \
export CFLAGS+=-resource-dir=$(shell clang-7 --print-resource-dir) \
# more verbose linker output
export LDFLAGS+=-Wl,--stats
# extra flags to reduce warnings that aren't very useful
export CXXFLAGS+=-Wno-pedantic \
-Wno-unused-function \
-Wno-unused-variable \
-Wno-deprecated-declarations \
# ignore warnings for minor mistakes that are too common
export CXXFLAGS+=-Wno-return-type \
# set the appropriate cpu architecture
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifeq (i386,$(DEB_HOST_ARCH))
defines+=host_cpu=\"x86\"
endif
ifeq (amd64,$(DEB_HOST_ARCH))
defines+=host_cpu=\"x64\"
endif
ifeq (arm64,$(DEB_HOST_ARCH))
defines+=host_cpu=\"arm64\"
endif
ifeq (armhf,$(DEB_HOST_ARCH))
defines+=host_cpu=\"arm\" arm_use_neon=false
endif
config_bundle=debian/scripts/ungoogled-chromium/config_bundles/$(shell cat debian/ungoogled-config-bundle)
# add gn flags from config bundle
defines+=$(shell debian/scripts/get-gnargs-shell $(config_bundle))
# some notes about embedded libraries
# can't use system nss since net/third_party/nss is heavily patched
# can't use system ots (open text *summarizer*) since that's not google's ots (open text *sanitizer*)
# handle parallel build options
njobs=1
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
njobs=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif
# paths to files needed by flot
flotpaths=/usr/share/javascript/jquery/*min.js \
/usr/share/javascript/jquery-flot/*min.js \
buildkit_cli=debian/scripts/ungoogled-chromium/run_buildkit_cli.py
domsubcache=debian/scripts/ungoogled-chromium/domsubcache.tar.gz
%:
dh $@
out/Release/gn:
mkdir -p out/Release || true
cp base/numerics/safe_conversions_arm_impl.h base/numerics/safe_math_arm_impl.h tools/gn/base/numerics
./tools/gn/bootstrap/bootstrap.py --skip-generate-buildfiles -j$(njobs) -o out/Release/gn
override_dh_auto_configure:
# output compiler information
$(CXX) --version
# put yasm script in the location expected by gn
ln -sf ../pdfium/third_party/yasm/run_yasm.py third_party/yasm
# strip out system third_party libraries
# NOTE: Removing base/third_party/libevent/BUILD.gn and build/config/freetype/freetype.gni in scripts/unbundle
./debian/scripts/unbundle
# clean polymer files manually (debian/clean doesn't work on directories)
rm -rf third_party/catapult/third_party/polymer/components || true
# apply domain substitution
if [ ! -e $(domsubcache) ]; then python3 -B $(buildkit_cli) domains apply -b $(config_bundle) -c $(domsubcache) ./; fi
# use system flot
for file in $(flotpaths); do ln -sf $$file third_party/flot; done
# use polymer from chromium's top level third_party directory
ln -sf ../../../../third_party/polymer/v1_0/components-chromium third_party/catapult/third_party/polymer/components
override_dh_auto_build-arch: out/Release/gn
./out/Release/gn gen out/Release --args="$(defines)" --fail-on-unused-args
ninja -j$(njobs) -C out/Release chrome chrome_sandbox content_shell chromedriver
override_dh_auto_build-indep: out/Release/gn
./out/Release/gn gen out/Release --args="$(defines)" --fail-on-unused-args
ninja -j$(njobs) -C out/Release packed_resources
override_dh_prep:
# building is done by this step; remove domain substitution
if [ -e $(domsubcache) ]; then python3 -B $(buildkit_cli) domains revert -c $(domsubcache) ./; fi
dh_prep
override_dh_auto_install-arch:
cp out/Release/chrome out/Release/chromium
cp out/Release/content_shell out/Release/chromium-shell
cp out/Release/chrome_sandbox out/Release/chrome-sandbox
cp out/Release/locales/en-US.pak out/Release/resources
chmod 4755 out/Release/chrome-sandbox # suid sandbox
sed -e s/@@PACKAGE@@/chromium/g -e s/@@MENUNAME@@/Chromium/g \
< chrome/app/resources/manpage.1.in > out/Release/chromium.1
dh_auto_install
# update launcher script with build information
sed 's|@BUILD_DIST@|$(shell printf "%s %s/%s" $(shell lsb_release -si) $(shell lsb_release -sc) $(shell lsb_release -sr))|' \
< debian/scripts/chromium > debian/ungoogled-chromium/usr/bin/chromium
# move icons into /usr/share
./debian/scripts/icons
override_dh_auto_install-indep:
mv out/Release/locales/en-US.pak out/Release/en-US.pak.indepexclude || true
dh_auto_install
override_dh_fixperms:
dh_fixperms --exclude chrome-sandbox
override_dh_strip:
dh_strip --no-automatic-dbgsym # Do not build any debug packages
override_dh_gencontrol:
dh_gencontrol -- -VBuilt-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W libjs-jquery libjs-jquery-flot)"
override_dh_auto_clean:
rm -rf out
find . -name \*.pyc -execdir rm -f {} \;
dh_auto_clean
###################### upstream source downloading ############################
url=https://gsdview.appspot.com/chromium-browser-official
version=$(shell dpkg-parsechangelog -S Version | sed s/-.*//)
extract=chromium-$(version)
tarfile=$(extract).tar
tarball=$(tarfile).xz
debvers=../ungoogled-chromium_$(version)
origtxz=$(debvers).orig.tar.xz
removed=$(debvers).files-removed
seconds=$(debvers).seconds
get-orig-source:
if [ ! -e debian/patches ]; then python3 -B $(buildkit_cli) patches export -b $(config_bundle) debian/patches/; fi
wget -nv --show-progress -c $(url)/$(tarball) -O ../$(tarball)
cp /usr/share/perl5/Devscripts/MkOrigtargz.pm debian/scripts/mk-origtargz
patch -p1 < debian/scripts/mk-origtargz.patch
date +%s > $(seconds)
perl debian/scripts/mk-origtargz ../$(tarball) > $(removed)
echo $$(($$(date +%s) - $$(cat $(seconds)))) seconds
test ! -e $(extract) || rm -rf $(extract)
tar xf ../$(tarball)
python3 -B $(buildkit_cli) prune -b $(config_bundle) $(extract)
echo $$(($$(date +%s) - $$(cat $(seconds)))) seconds
while read line; do rm -rf $$line; done < $(removed)
cd $(extract) && ../debian/scripts/check-upstream
echo $$(($$(date +%s) - $$(cat $(seconds)))) seconds
test ! -e $(origtxz) || rm -f $(origtxz)
tar cf - $(extract) | xz -6 -T $(njobs) - > $(origtxz)
echo $$(($$(date +%s) - $$(cat $(seconds)))) seconds
rm -rf $(extract)
echo $$(($$(date +%s) - $$(cat $(seconds)))) seconds | tee seconds
@mv -f seconds $(seconds)
find debian/scripts/ungoogled-chromium/ -name __pycache__ -type d -exec rm -r {} +
setup-local-src:
mkdir ../download_cache || true
python3 -B $(buildkit_cli) downloads retrieve -b $(config_bundle) -c ../download_cache
python3 -B $(buildkit_cli) downloads unpack -b $(config_bundle) -c ../download_cache ./
python3 -B $(buildkit_cli) prune -b $(config_bundle) ./
python3 -B $(buildkit_cli) patches export -b $(config_bundle) debian/patches/

View File

@@ -1,23 +0,0 @@
#!/bin/sh
# check for reasonable symlinks
for file in $(find . -type l); do
# detect symlinks that don't link to anything
if ! realpath $file 1>/dev/null; then
echo "removing symlink linking to nothing: $file $(readlink $file)"
rm $file
fi
# detect symlinks that link outside the pwd
if [ -n "$(realpath $file | grep -v "^$(pwd)")" ]; then
echo "symlink outside of pwd: $file $(readlink $file)"
exit 1
fi
done
# check for prebuilt binary files
list=$(find . -type f -executable -not -empty | perl -lne 'print if -B')
if [ -n "$list" ]; then
echo "prebuilt binary files:"
echo "$list"
# exit 1
fi

View File

@@ -1,126 +0,0 @@
#!/bin/sh
# Chromium launcher
# Authors:
# Fabien Tassin <fta@sofaraway.org>
# License: GPLv2 or later
APPNAME=chromium
GDB=/usr/bin/gdb
LIBDIR=/usr/lib/$APPNAME
usage () {
echo "$APPNAME [-h|--help] [-g|--debug] [--temp-profile] [options] [URL]"
echo
echo " -g or --debug Start within $GDB"
echo " -h or --help This help screen"
echo " --temp-profile Start with a new and temporary profile"
echo " --enable-remote-extensions Allow extensions from remote sites"
echo
echo " Other supported options are:"
MANWIDTH=80 man chromium | sed -e '1,/OPTIONS/d; /ENVIRONMENT/,$d'
echo " See 'man chromium' for more details"
}
nosse2="\
The hardware on this system lacks support for the sse2 instruction set.
The upstream chromium project no longer supports this configuration.
For more information, please read and possibly provide input to their
bug tracking system at http://crbug.com/348761."
case `uname -m` in
i386|i586|i686|x86_64)
# Check whether this system supports sse2
if ! grep -q sse2 /proc/cpuinfo; then
xmessage "$nosse2"
exit 1
fi
;;
esac
# Source additional settings
for file in /etc/chromium.d/*; do
test $file = /etc/chromium.d/README || expr $file : .*\.dpkg > /dev/null || . $file
done
# Use the /usr/bin helper script for generated launchers
if test -z "$CHROME_WRAPPER"; then
export CHROME_WRAPPER="/usr/bin/$APPNAME"
fi
# Set the correct file name for the desktop file
export CHROME_DESKTOP="chromium.desktop"
# Set CHROME_VERSION_EXTRA text, which is displayed in the About dialog
DIST=`printf "%s %s/%s" $(lsb_release -si) $(lsb_release -sc) $(lsb_release -sr)`
BUILD_DIST="@BUILD_DIST@"
export CHROME_VERSION_EXTRA="built on $BUILD_DIST, running on $DIST"
# Add LIBDIR to LD_LIBRARY_PATH to load libffmpeg.so (if built as a component)
if [ -z "${LD_LIBRARY_PATH:+nonempty}" ] ; then
LD_LIBRARY_PATH=$LIBDIR
else
LD_LIBRARY_PATH=$LIBDIR:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH
want_debug=0
want_temp_profile=0
while [ $# -gt 0 ]; do
case "$1" in
-h | --help | -help )
usage
exit 0 ;;
-g | --debug )
want_debug=1
shift ;;
--temp-profile )
want_temp_profile=1
shift ;;
--enable-remote-extensions )
CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-remote-extensions"
shift ;;
-- ) # Stop option prcessing
shift
break ;;
* )
break ;;
esac
done
if [ $want_temp_profile -eq 1 ] ; then
TEMP_PROFILE=`mktemp -d`
CHROMIUM_FLAGS="$CHROMIUM_FLAGS --user-data-dir=$TEMP_PROFILE"
fi
if [ $want_debug -eq 1 ] ; then
if [ ! -x $GDB ] ; then
echo "Sorry, can't find usable $GDB. Please install it."
exit 1
fi
tmpfile=`mktemp /tmp/chromiumargs.XXXXXX` || { echo "Cannot create temporary file" >&2; exit 1; }
trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 0 1 2 3 13 15
echo "set args $CHROMIUM_FLAGS --single-process ${1+"$@"}" > $tmpfile
echo "# Env:"
echo "# LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
echo "# PATH=$PATH"
echo "# GTK_PATH=$GTK_PATH"
echo "# CHROMIUM_FLAGS=$CHROMIUM_FLAGS"
echo "$GDB $LIBDIR/$APPNAME -x $tmpfile"
$GDB "$LIBDIR/$APPNAME" -x $tmpfile
if [ $want_temp_profile -eq 1 ] ; then
rm -rf $TEMP_PROFILE
fi
exit $?
else
if [ $want_temp_profile -eq 0 ] ; then
exec $LIBDIR/$APPNAME $CHROMIUM_FLAGS "$@"
else
# we can't exec here as we need to clean-up the temporary profile
$LIBDIR/$APPNAME $CHROMIUM_FLAGS "$@"
rm -rf $TEMP_PROFILE
fi
fi

View File

@@ -1,3 +0,0 @@
#!/bin/sh -e
/usr/lib/chromium/chromium-shell $@

View File

@@ -1,15 +0,0 @@
#!/usr/bin/env python3
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'scripts' / 'ungoogled-chromium'))
from buildkit.config import ConfigBundle
sys.path.pop(0)
def _item_generataor(config_bundle):
for key, value in config_bundle.gn_flags.items():
yield '='.join((key, value.replace('"', '\\"')))
if __name__ == '__main__':
print(' '.join(_item_generataor(ConfigBundle(sys.argv[1]))), end='')

View File

@@ -1,9 +0,0 @@
#!/bin/sh
for file in $(find chrome/app/theme -name product_logo_[0-9]*.png -a ! -name *mono* | grep -v 200); do
size=$(basename $file | cut -d_ -f3 | sed s/\.png//)
dest=debian/ungoogled-chromium/usr/share/icons/hicolor/$size\x$size/apps
mkdir -p $dest
cp $file $dest/chromium.png
echo copied: $file to $dest/chromium.png
done

View File

@@ -1,20 +0,0 @@
--- b/debian/scripts/mk-origtargz
+++ a/debian/scripts/mk-origtargz
@@ -211,6 +212,11 @@
}
if ($deletecount or $self->config->force_repack) {
+ for my $filename (@to_delete) {
+ printf "$filename\n";
+ }
+ return $self->status(0);
+
$destfilebase = sprintf "%s_%s%s.%s.tar", $self->config->package,
$self->config->version, $self->config->repack_suffix,
$self->config->orig;
@@ -558,4 +563,4 @@
compression_get_property($self->config->compression, "file_ext");
}
-1;
+exit Devscripts::MkOrigtargz->new->do;

View File

@@ -1,58 +0,0 @@
#!/usr/bin/python3 -B
import os
import sys
import shutil
sys.path.append("build/linux/unbundle")
import replace_gn_files
def strip(path):
if os.path.exists(path):
for filename in os.listdir(path):
remove = True
for extension in ('.py','.gn','.gni','google','chromium'):
if filename.endswith(extension):
remove = False
if remove:
removal=os.path.join(path,filename)
print('removing: %s'%removal)
if os.path.isdir(removal):
shutil.rmtree(removal)
else:
os.remove(removal)
keepers = ('openh264', 'libjpeg')
# strip out regenerating files in each build
def remove_file(path):
if os.path.exists(path): os.remove(path)
remove_file('base/third_party/libevent/BUILD.gn')
remove_file('build/config/freetype/freetype.gni')
for lib,rule in replace_gn_files.REPLACEMENTS.items():
if lib not in keepers:
libdir = os.path.join('third_party',lib)
if os.path.exists(libdir):
# remove conflicting embedded third party source files
strip(libdir)
strip(os.path.dirname(rule))
# remove the gn file that builds the embedded library
if os.path.lexists(rule):
print('removing: %s'%rule)
os.remove(rule)
# create a symlink to the unbundle gn file
symlink = "ln -s "
path = os.path.split(rule)
if not os.path.exists(path[0]):
os.mkdir(path[0])
while path[0] != '':
path = os.path.split(path[0])
symlink += '../'
symlink += "build/linux/unbundle/%s.gn %s"%(lib,rule)
if os.system(symlink):
raise RuntimeError("error creating symlink",symlink)
# libjpeg_turbo is unlike all the others, so clean it manually here
strip('third_party/libjpeg_turbo')

View File

@@ -1 +0,0 @@
3.0 (quilt)

View File

@@ -1,7 +0,0 @@
# incorrectly flagged
source-is-missing tools/trace/trace_data.js
source-is-missing ui/webui/resources/js/jstemplate_compiled.js
# temporarily allowing (need to fix path in Files-Excluded)
license-problem-json-evil third_party/trace-viewer/tracing/third_party/tvcm/third_party/rjsmin/bench/jsmin.c
license-problem-json-evil third_party/trace-viewer/tracing/third_party/tvcm/third_party/rjsmin/bench/jsmin.py

View File

@@ -1 +0,0 @@
out/Release/*.bin usr/lib/chromium

View File

@@ -1 +0,0 @@
out/Release/chromedriver usr/bin

View File

@@ -1 +0,0 @@
out/Release/locales usr/lib/chromium

View File

@@ -1 +0,0 @@
out/Release/chrome-sandbox usr/lib/chromium

View File

@@ -1,2 +0,0 @@
# sandbox is intentionally suid
setuid-binary usr/lib/chromium/chrome-sandbox 4755 root/root

View File

@@ -1,6 +0,0 @@
debian/scripts/chromium-shell usr/bin
out/Release/chromium-shell usr/lib/chromium
out/Release/content_shell.pak usr/lib/chromium
out/Release/shell_resources.pak usr/lib/chromium

View File

@@ -1,2 +0,0 @@
# currently unavoidable embedded libraries
embedded-library usr/lib/chromium/chromium-shell: srtp

View File

@@ -1 +0,0 @@
report-with: ungoogled-chromium-common ungoogled-chromium-driver ungoogled-chromium-sandbox

View File

@@ -1,3 +0,0 @@
usr/bin
etc/chromium.d

View File

@@ -1,17 +0,0 @@
out/Release/chromium usr/lib/chromium
out/Release/chrome_*.pak usr/lib/chromium
out/Release/resources.pak usr/lib/chromium
out/Release/resources/en-US.pak usr/lib/chromium/locales
debian/presubj usr/share/bug/chromium
debian/chromium.xml usr/share/gnome-control-center/default-apps
debian/chromium.desktop usr/share/applications
debian/etc/README etc/chromium.d
debian/etc/extensions etc/chromium.d
debian/etc/default-flags etc/chromium.d
debian/etc/master_preferences etc/chromium

View File

@@ -1 +0,0 @@
usr/share/icons/hicolor/48x48/apps/chromium.png usr/share/pixmaps/chromium.png

View File

@@ -1,4 +0,0 @@
# currently unavoidable embedded libraries
embedded-library usr/lib/chromium/chromium: srtp
embedded-library usr/lib/chromium/chromium: lcms2
embedded-library usr/lib/chromium/chromium: sqlite

View File

@@ -1 +0,0 @@
out/Release/chromium.1

View File

@@ -1,12 +0,0 @@
#!/bin/sh
set -e
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
update-alternatives --install /usr/bin/x-www-browser \
x-www-browser /usr/bin/chromium 40
update-alternatives --install /usr/bin/gnome-www-browser \
gnome-www-browser /usr/bin/chromium 40
fi
#DEBHELPER#

View File

@@ -1,10 +0,0 @@
#!/bin/sh
set -e
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
update-alternatives --remove x-www-browser /usr/bin/chromium
update-alternatives --remove gnome-www-browser /usr/bin/chromium
fi
#DEBHELPER#

View File

@@ -1 +0,0 @@
debian_buster

View File

@@ -1,3 +0,0 @@
name: chromium
bug-database: http://crbug.com
cpe: cpe:/a:google:chrome

View File

@@ -1,5 +0,0 @@
ungoogled-chromium ($ungoog{chromium_version}-$ungoog{release_revision}~portable) stable; urgency=medium
* Built against $ungoog{current_commit_or_tag}
-- ungoogled-chromium Authors <maintainer@null> Sun, 29 Jul 2018 00:00:00 +0000

View File

@@ -1 +0,0 @@
debian/files

View File

@@ -1 +0,0 @@
9

View File

@@ -1,213 +0,0 @@
Source: ungoogled-chromium
Section: web
Priority: optional
Maintainer: ungoogled-chromium Maintainers <github@null.invalid>
Vcs-Git: https://github.com/Eloston/ungoogled-chromium.git
Vcs-Browser: https://github.com/Eloston/ungoogled-chromium
Homepage: https://github.com/Eloston/ungoogled-chromium
Build-Depends:
debhelper (>= 9),
clang-8,
lld-8,
llvm-8-dev,
python,
python3,
pkg-config,
ninja-build,
python-jinja2,
ca-certificates,
gsettings-desktop-schemas-dev,
wget,
flex,
yasm,
xvfb,
wdiff,
gperf,
bison,
valgrind,
xz-utils,
x11-apps,
xfonts-base,
libglew-dev,
libgl1-mesa-dev,
libglu1-mesa-dev,
libegl1-mesa-dev,
libgles2-mesa-dev,
mesa-common-dev,
libxt-dev,
libre2-dev,
libgbm-dev,
libpng-dev,
libxss-dev,
libelf-dev,
libpci-dev,
libcap-dev,
libdrm-dev,
libicu-dev,
libffi-dev,
libkrb5-dev,
libexif-dev,
libudev-dev,
libopus-dev,
libwebp-dev,
libxtst-dev,
libsrtp-dev,
libjpeg-dev,
libxml2-dev,
libgtk-3-dev,
libxslt1-dev,
liblcms2-dev,
libpulse-dev,
libpam0g-dev,
libsnappy-dev,
libavutil-dev,
libavcodec-dev (>= 7),
libavformat-dev,
libglib2.0-dev,
libasound2-dev,
libjsoncpp-dev,
libspeechd-dev,
libminizip-dev,
libhunspell-dev,
libharfbuzz-dev,
libusb-1.0-0-dev,
libmodpbase64-dev,
libnss3-dev (>= 3.12.3),
libnspr4-dev (>= 2:4.9),
libcups2-dev (>= 1.5.0),
libevent-dev (>= 1.4.13),
libgcrypt20-dev,
fonts-ipafont-gothic,
fonts-ipafont-mincho,
Standards-Version: 4.1.2
Package: ungoogled-chromium
Architecture: i386 amd64 arm64 armhf
Built-Using: ${Built-Using}
Depends:
${misc:Depends},
${shlibs:Depends},
ungoogled-chromium-common (= ${binary:Version}),
Recommends:
ungoogled-chromium-sandbox,
Suggests:
ungoogled-chromium-l10n,
ungoogled-chromium-shell,
ungoogled-chromium-driver,
Provides:
www-browser,
Breaks:
chromium-lwn4chrome (<= 1.0-2),
chromium-tt-rss-notifier (<= 0.5.2-2),
chromium,
chromium-browser,
Conflicts:
libnettle4,
libsecret-1-0 (<< 0.18),
libgl1-mesa-swx11,
Replaces:
chromium,
chromium-browser,
Description: web browser
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package contains the web browser component.
Package: ungoogled-chromium-l10n
Architecture: all
Section: localization
Depends:
${misc:Depends},
ungoogled-chromium (>= ${source:Version}),
ungoogled-chromium (<< ${source:Version}.1~),
Replaces:
chromium-l10n,
Breaks:
chromium-l10n,
Description: web browser - language packs
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package contains language packages for:
am, ar, bg, bn, ca, cs, da, de, el, en-GB, es-419, es, et, fi, fil, fr, gu, he,
hi, hr, hu, id, it, ja, kn, ko, lt, lv, ml, mr, nb, nl, pl, pt-BR, pt-PT,
ro, ru, sk, sl, sr, sv, sw, ta, te, th, tr, uk, vi, zh-CN, zh-TW
Package: ungoogled-chromium-shell
Architecture: i386 amd64 arm64 armhf
Depends:
${misc:Depends},
${shlibs:Depends},
ungoogled-chromium-common (= ${binary:Version}),
Replaces:
chromium-shell,
Breaks:
chromium-shell,
Description: web browser - minimal shell
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package provides a minimal version of the chromium user interface
(the content shell).
Package: ungoogled-chromium-driver
Architecture: i386 amd64 arm64 armhf
Depends:
${misc:Depends},
${shlibs:Depends},
ungoogled-chromium (= ${binary:Version}),
Replaces:
chromedriver,
chromium-driver,
Breaks:
chromium-driver,
Description: web browser - WebDriver support
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package provides a bridge between the browser component and the selenium
automatic webdriver.
.
See http://code.google.com/p/selenium/wiki/ChromeDriver for details.
Package: ungoogled-chromium-common
Architecture: i386 amd64 arm64 armhf
Depends:
${misc:Depends},
x11-utils,
xdg-utils,
Recommends:
upower,
libu2f-udev,
libgl1-mesa-dri,
ungoogled-chromium-sandbox,
fonts-liberation,
notification-daemon,
Breaks:
ungoogled-chromium (<< 60.0.3112.72-1),
chromium-common,
Replaces:
ungoogled-chromium (<< 60.0.3112.72-1),
chromium-common,
Description: web browser - common resources used by ungoogled-chromium packages
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package contains resources that are in common to different
ungoogled-chromium packages.
Package: ungoogled-chromium-sandbox
Architecture: i386 amd64 arm64 armhf
Depends:
${misc:Depends},
${shlibs:Depends},
Breaks:
chromium (<< ${binary:Version}),
Replaces:
chromium (<< ${binary:Version}),
Description: web browser - setuid security sandbox for ungoogled-chromium
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package contains the setuid chromium sandbox.

View File

@@ -1,179 +0,0 @@
#!/usr/bin/make -f
# enable verbose build messages
export DH_VERBOSE=1
# enable all build hardening flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
# indicate that binary targets do not require root
export DEB_RULES_REQUIRES_ROOT=no
# use system LLVM via unbundling
export AR=llvm-ar-8
export NM=llvm-nm-8
export CC=clang-8
export CXX=clang++-8
# hack to allow clang to find the default cfi_blacklist.txt
export CXXFLAGS+=-resource-dir=$(shell clang-8 --print-resource-dir) \
export CPPFLAGS+=-resource-dir=$(shell clang-8 --print-resource-dir) \
export CFLAGS+=-resource-dir=$(shell clang-8 --print-resource-dir) \
# more verbose linker output
export LDFLAGS+=-Wl,--stats
# extra flags to reduce warnings that aren't very useful
export CXXFLAGS+=-Wno-pedantic \
-Wno-unused-function \
-Wno-unused-variable \
-Wno-deprecated-declarations \
# ignore warnings for minor mistakes that are too common
export CXXFLAGS+=-Wno-return-type \
# set the appropriate cpu architecture
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifeq (i386,$(DEB_HOST_ARCH))
defines+=host_cpu=\"x86\"
endif
ifeq (amd64,$(DEB_HOST_ARCH))
defines+=host_cpu=\"x64\"
endif
ifeq (arm64,$(DEB_HOST_ARCH))
defines+=host_cpu=\"arm64\"
endif
ifeq (armhf,$(DEB_HOST_ARCH))
defines+=host_cpu=\"arm\" arm_use_neon=false
endif
config_bundle=debian/scripts/ungoogled-chromium/config_bundles/$(shell cat debian/ungoogled-config-bundle)
# add gn flags from config bundle
defines+=$(shell debian/scripts/get-gnargs-shell $(config_bundle))
# some notes about embedded libraries
# can't use system nss since net/third_party/nss is heavily patched
# can't use system ots (open text *summarizer*) since that's not google's ots (open text *sanitizer*)
# handle parallel build options
njobs=1
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
njobs=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif
buildkit_cli=debian/scripts/ungoogled-chromium/run_buildkit_cli.py
domsubcache=debian/scripts/ungoogled-chromium/domsubcache.tar.gz
%:
dh $@
out/Release/gn:
mkdir -p out/Release || true
cp base/numerics/safe_conversions_arm_impl.h base/numerics/safe_math_arm_impl.h tools/gn/base/numerics
./tools/gn/bootstrap/bootstrap.py --skip-generate-buildfiles -j$(njobs) -o out/Release/gn
override_dh_auto_configure:
# output compiler information
$(CXX) --version
# put yasm script in the location expected by gn
ln -sf ../pdfium/third_party/yasm/run_yasm.py third_party/yasm
# strip out system third_party libraries
# NOTE: Removing base/third_party/libevent/BUILD.gn and build/config/freetype/freetype.gni in scripts/unbundle
./debian/scripts/unbundle
# clean polymer files manually (debian/clean doesn't work on directories)
rm -rf third_party/catapult/third_party/polymer/components || true
# apply domain substitution
if [ ! -e $(domsubcache) ]; then python3 -B $(buildkit_cli) domains apply -b $(config_bundle) -c $(domsubcache) ./; fi
# use polymer from chromium's top level third_party directory
ln -sf ../../../../third_party/polymer/v1_0/components-chromium third_party/catapult/third_party/polymer/components
override_dh_auto_build-arch: out/Release/gn
./out/Release/gn gen out/Release --args="$(defines)" --fail-on-unused-args
ninja -j$(njobs) -C out/Release chrome chrome_sandbox content_shell chromedriver
override_dh_auto_build-indep: out/Release/gn
./out/Release/gn gen out/Release --args="$(defines)" --fail-on-unused-args
ninja -j$(njobs) -C out/Release packed_resources
override_dh_prep:
# building is done by this step; remove domain substitution
if [ -e $(domsubcache) ]; then python3 -B $(buildkit_cli) domains revert -c $(domsubcache) ./; fi
dh_prep
override_dh_auto_install-arch:
cp out/Release/chrome out/Release/chromium
cp out/Release/content_shell out/Release/chromium-shell
cp out/Release/chrome_sandbox out/Release/chrome-sandbox
cp out/Release/locales/en-US.pak out/Release/resources
chmod 4755 out/Release/chrome-sandbox # suid sandbox
sed -e s/@@PACKAGE@@/chromium/g -e s/@@MENUNAME@@/Chromium/g \
< chrome/app/resources/manpage.1.in > out/Release/chromium.1
dh_auto_install
# update launcher script with build information
sed 's|@BUILD_DIST@|$(shell printf "%s %s/%s" $(shell lsb_release -si) $(shell lsb_release -sc) $(shell lsb_release -sr))|' \
< debian/scripts/chromium > debian/ungoogled-chromium/usr/bin/chromium
# move icons into /usr/share
./debian/scripts/icons
override_dh_auto_install-indep:
mv out/Release/locales/en-US.pak out/Release/en-US.pak.indepexclude || true
dh_auto_install
override_dh_fixperms:
dh_fixperms --exclude chrome-sandbox
override_dh_strip:
dh_strip --no-automatic-dbgsym # Do not build any debug packages
override_dh_gencontrol:
dh_gencontrol -- -VBuilt-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W libjs-jquery libjs-jquery-flot)"
override_dh_auto_clean:
rm -rf out
find . -name \*.pyc -execdir rm -f {} \;
dh_auto_clean
###################### upstream source downloading ############################
url=https://gsdview.appspot.com/chromium-browser-official
version=$(shell dpkg-parsechangelog -S Version | sed s/-.*//)
extract=chromium-$(version)
tarfile=$(extract).tar
tarball=$(tarfile).xz
debvers=../ungoogled-chromium_$(version)
origtxz=$(debvers).orig.tar.xz
removed=$(debvers).files-removed
seconds=$(debvers).seconds
get-orig-source:
if [ ! -e debian/patches ]; then python3 -B $(buildkit_cli) patches export -b $(config_bundle) debian/patches/; fi
wget -nv --show-progress -c $(url)/$(tarball) -O ../$(tarball)
cp /usr/share/perl5/Devscripts/MkOrigtargz.pm debian/scripts/mk-origtargz
patch -p1 < debian/scripts/mk-origtargz.patch
date +%s > $(seconds)
perl debian/scripts/mk-origtargz ../$(tarball) > $(removed)
echo $$(($$(date +%s) - $$(cat $(seconds)))) seconds
test ! -e $(extract) || rm -rf $(extract)
tar xf ../$(tarball)
python3 -B $(buildkit_cli) prune -b $(config_bundle) $(extract)
echo $$(($$(date +%s) - $$(cat $(seconds)))) seconds
while read line; do rm -rf $$line; done < $(removed)
cd $(extract) && ../debian/scripts/check-upstream
echo $$(($$(date +%s) - $$(cat $(seconds)))) seconds
test ! -e $(origtxz) || rm -f $(origtxz)
tar cf - $(extract) | xz -6 -T $(njobs) - > $(origtxz)
echo $$(($$(date +%s) - $$(cat $(seconds)))) seconds
rm -rf $(extract)
echo $$(($$(date +%s) - $$(cat $(seconds)))) seconds | tee seconds
@mv -f seconds $(seconds)
find debian/scripts/ungoogled-chromium/ -name __pycache__ -type d -exec rm -r {} +
setup-local-src:
mkdir ../download_cache || true
python3 -B $(buildkit_cli) downloads retrieve -b $(config_bundle) -c ../download_cache
python3 -B $(buildkit_cli) downloads unpack -b $(config_bundle) -c ../download_cache ./
python3 -B $(buildkit_cli) prune -b $(config_bundle) ./
python3 -B $(buildkit_cli) patches export -b $(config_bundle) debian/patches/

View File

@@ -1,3 +0,0 @@
#!/usr/bin/python3 -B
print('Unbundling is disabled')

View File

@@ -1,6 +0,0 @@
out/Release/*.bin usr/lib/chromium
out/Release/icudtl.dat usr/lib/chromium
out/Release/libEGL.so usr/lib/chromium
out/Release/libGLESv2.so usr/lib/chromium
out/Release/xdg-mime usr/lib/chromium
out/Release/xdg-settings usr/lib/chromium

View File

@@ -1 +0,0 @@
linux_portable

View File

@@ -1,5 +0,0 @@
ungoogled-chromium ($ungoog{chromium_version}-$ungoog{release_revision}~stretch) stretch; urgency=medium
* Built against $ungoog{current_commit_or_tag}
-- ungoogled-chromium Authors <maintainer@null> Sun, 29 Jul 2018 00:00:00 +0000

View File

@@ -1,29 +0,0 @@
debian/files
Makefile
third_party/flot/*.js
base/third_party/libevent/BUILD.gn
build/secondary/third_party/libjpeg_turbo/BUILD.gn
third_party/re2/BUILD.gn
third_party/icu/BUILD.gn
third_party/flac/BUILD.gn
third_party/zlib/BUILD.gn
third_party/snappy/BUILD.gn
third_party/ffmpeg/BUILD.gn
third_party/libxml/BUILD.gn
third_party/libdrm/BUILD.gn
third_party/libpng/BUILD.gn
third_party/libvpx/BUILD.gn
third_party/libwebp/BUILD.gn
third_party/libjpeg/BUILD.gn
third_party/libxslt/BUILD.gn
third_party/freetype/BUILD.gn
third_party/fontconfig/BUILD.gn
third_party/yasm/yasm_assemble.gni
third_party/yasm/run_yasm.py
tools/gn/base/numerics/safe_math_arm_impl.h
tools/gn/base/numerics/safe_conversions_arm_impl.h

View File

@@ -1,220 +0,0 @@
Source: ungoogled-chromium
Section: web
Priority: optional
Maintainer: ungoogled-chromium Maintainers <github@null.invalid>
Vcs-Git: https://github.com/Eloston/ungoogled-chromium.git
Vcs-Browser: https://github.com/Eloston/ungoogled-chromium
Homepage: https://github.com/Eloston/ungoogled-chromium
Build-Depends:
debhelper (>= 10),
clang-7,
lld-7,
llvm-7-dev,
python,
python3,
pkg-config,
ninja-build,
python-jinja2,
ca-certificates,
gsettings-desktop-schemas-dev,
wget,
flex,
yasm,
xvfb,
wdiff,
gperf,
bison,
valgrind,
xz-utils,
x11-apps,
xfonts-base,
libglew-dev,
libgl1-mesa-dev,
libglu1-mesa-dev,
libegl1-mesa-dev,
libgles2-mesa-dev,
mesa-common-dev,
libxt-dev,
libre2-dev,
libgbm-dev,
libpng-dev,
libxss-dev,
libelf-dev,
libvpx-dev (<< 1.7.0),
libpci-dev,
libcap-dev,
libicu-dev,
libffi-dev,
libkrb5-dev,
libexif-dev,
libflac-dev,
libudev-dev,
libopus-dev,
libwebp-dev,
libxtst-dev,
libsrtp-dev,
libjpeg-dev,
libxml2-dev,
libgtk-3-dev,
libxslt1-dev,
liblcms2-dev,
libpulse-dev,
libpam0g-dev,
libsnappy-dev,
libavutil-dev,
libavcodec-dev (>= 7),
libavformat-dev,
libglib2.0-dev,
libasound2-dev,
libjsoncpp-dev,
libspeechd-dev (>= 0.8.3),
libminizip-dev,
libhunspell-dev,
libharfbuzz-dev,
libusb-1.0-0-dev,
libopenjp2-7-dev,
libmodpbase64-dev,
libnss3-dev (>= 3.12.3),
libnspr4-dev (>= 2:4.9),
libcups2-dev (>= 1.5.0),
libevent-dev (>= 1.4.13),
libjs-jquery,
libjs-jquery-flot,
libgcrypt20-dev,
libva-dev,
fonts-ipafont-gothic,
fonts-ipafont-mincho,
Standards-Version: 4.1.4
Package: ungoogled-chromium
Architecture: i386 amd64 arm64 armhf
Built-Using: ${Built-Using}
Depends:
${misc:Depends},
${shlibs:Depends},
ungoogled-chromium-common (= ${binary:Version}),
Recommends:
ungoogled-chromium-sandbox,
Suggests:
ungoogled-chromium-l10n,
ungoogled-chromium-shell,
ungoogled-chromium-driver,
Provides:
www-browser,
gnome-www-browser,
Breaks:
chromium-lwn4chrome (<= 1.0-2),
chromium-tt-rss-notifier (<= 0.5.2-2),
chromium,
chromium-browser,
Conflicts:
libnettle4,
libsecret-1-0 (<< 0.18),
libgl1-mesa-swx11,
Replaces:
chromium,
chromium-browser,
Description: web browser
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package contains the web browser component.
Package: ungoogled-chromium-l10n
Architecture: all
Section: localization
Depends:
${misc:Depends},
ungoogled-chromium (>= ${source:Version}),
ungoogled-chromium (<< ${source:Version}.1~),
Replaces:
chromium-l10n,
Breaks:
chromium-l10n,
Description: web browser - language packs
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package contains language packages for:
am, ar, bg, bn, ca, cs, da, de, el, en-GB, es-419, es, et, fi, fil, fr, gu, he,
hi, hr, hu, id, it, ja, kn, ko, lt, lv, ml, mr, nb, nl, pl, pt-BR, pt-PT,
ro, ru, sk, sl, sr, sv, sw, ta, te, th, tr, uk, vi, zh-CN, zh-TW
Package: ungoogled-chromium-shell
Architecture: i386 amd64 arm64 armhf
Depends:
${misc:Depends},
${shlibs:Depends},
ungoogled-chromium-common (= ${binary:Version}),
Replaces:
chromium-shell,
Breaks:
chromium-shell,
Description: web browser - minimal shell
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package provides a minimal version of the chromium user interface
(the content shell).
Package: ungoogled-chromium-driver
Architecture: i386 amd64 arm64 armhf
Depends:
${misc:Depends},
${shlibs:Depends},
ungoogled-chromium (= ${binary:Version}),
Replaces:
chromedriver,
chromium-driver,
Breaks:
chromium-driver,
Description: web browser - WebDriver support
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package provides a bridge between the browser component and the selenium
automatic webdriver.
.
See http://code.google.com/p/selenium/wiki/ChromeDriver for details.
Package: ungoogled-chromium-common
Architecture: i386 amd64 arm64 armhf
Depends:
${misc:Depends},
x11-utils,
xdg-utils,
Recommends:
upower,
libu2f-udev,
libva1,
libgl1-mesa-dri,
ungoogled-chromium-sandbox,
fonts-liberation,
notification-daemon,
Breaks:
ungoogled-chromium (<< 60.0.3112.72-1),
chromium-common,
Replaces:
ungoogled-chromium (<< 60.0.3112.72-1),
chromium-common,
Description: web browser - common resources used by ungoogled-chromium packages
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package contains resources that are in common to different
ungoogled-chromium packages.
Package: ungoogled-chromium-sandbox
Architecture: i386 amd64 arm64 armhf
Depends:
${misc:Depends},
${shlibs:Depends},
Breaks:
chromium (<< ${binary:Version}),
Replaces:
chromium (<< ${binary:Version}),
Description: web browser - setuid security sandbox for ungoogled-chromium
Web browser that aims to build a safer, faster, and more stable internet
browsing experience.
.
This package contains the setuid chromium sandbox.

View File

@@ -1,58 +0,0 @@
#!/usr/bin/python3
import os
import sys
import shutil
sys.path.append("build/linux/unbundle")
import replace_gn_files
def strip(path):
if os.path.exists(path):
for filename in os.listdir(path):
remove = True
for extension in ('.py','.gn','.gni','google','chromium'):
if filename.endswith(extension):
remove = False
if remove:
removal=os.path.join(path,filename)
print('removing: %s'%removal)
if os.path.isdir(removal):
shutil.rmtree(removal)
else:
os.remove(removal)
keepers = ('openh264', 'harfbuzz-ng', 'libjpeg')
# strip out regenerating files in each build
def remove_file(path):
if os.path.exists(path): os.remove(path)
remove_file('base/third_party/libevent/BUILD.gn')
remove_file('build/config/freetype/freetype.gni')
for lib,rule in replace_gn_files.REPLACEMENTS.items():
if lib not in keepers:
libdir = os.path.join('third_party',lib)
if os.path.exists(libdir):
# remove conflicting embedded third party source files
strip(libdir)
strip(os.path.dirname(rule))
# remove the gn file that builds the embedded library
if os.path.lexists(rule):
print('removing: %s'%rule)
os.remove(rule)
# create a symlink to the unbundle gn file
symlink = "ln -s "
path = os.path.split(rule)
if not os.path.exists(path[0]):
os.mkdir(path[0])
while path[0] != '':
path = os.path.split(path[0])
symlink += '../'
symlink += "build/linux/unbundle/%s.gn %s"%(lib,rule)
if os.system(symlink):
raise RuntimeError("error creating symlink",symlink)
# libjpeg_turbo is unlike all the others, so clean it manually here
strip('third_party/libjpeg_turbo')

View File

@@ -1 +0,0 @@
debian_stretch

View File

@@ -1,17 +0,0 @@
Thanks for using ungoogled-chromium! You have downloaded a Portable Linux build version $ungoog{chromium_version}-$ungoog{release_revision}
Before you run, you must setup your system so the browser's sandboxing will work. There are two options:
* Use the user namespace sandbox. This is the preferred option.
* Use the SUID sandbox. This should be used on systems that do not have support for user namespaces.
How to setup the SUID sandbox:
1. Rename "chrome_sandbox" to "chrome-sandbox"
2. Set the file mode to 4755
3. Set the group to root
How to setup the user namespace sandbox:
The kernel needs to be configured to allow user namespaces. The method to enable it varies per system. Sometimes it's enabled by default. If it's not, sometimes sysctl can be used to set kernel.unprivileged_userns_clone to 1. There may also be a way to set it via the /sys partition. Specific instructions should be found online.
Running the browser:
Once the sandbox is setup, the browser can be run by using the chrome-wrapper script.

View File

@@ -1,37 +0,0 @@
#!/bin/bash
set -eux
# Simple build script for Linux
BUNDLE=linux_portable
# Place download_cache next the source tree, which is usually build/src
DOWNLOAD_CACHE=$(dirname $(readlink -f $0))/../../download_cache
rm -rf out || true
mkdir out
mkdir out/Default
pushd $(dirname $(readlink -f $0))
mkdir $DOWNLOAD_CACHE || true
python3 -m buildkit downloads retrieve -b config_bundles/$BUNDLE -c $DOWNLOAD_CACHE
python3 -m buildkit downloads unpack -b config_bundles/$BUNDLE -c $DOWNLOAD_CACHE ../
python3 -m buildkit prune -b config_bundles/$BUNDLE ../
python3 -m buildkit patches apply -b config_bundles/$BUNDLE ../
python3 -m buildkit domains apply -b config_bundles/$BUNDLE -c domainsubcache.tar.gz ../
python3 -m buildkit gnargs print -b config_bundles/$BUNDLE > ../out/Default/args.gn
popd
# Set commands or paths to LLVM-provided tools outside the script via 'export ...'
# or before these lines
export AR=${AR:=llvm-ar}
export NM=${NM:=llvm-nm}
export CC=${CC:=clang}
export CXX=${CXX:=clang++}
# You may also set CFLAGS, CPPFLAGS, CXXFLAGS, and LDFLAGS
# See build/toolchain/linux/unbundle/ in the Chromium source for more details.
./tools/gn/bootstrap/bootstrap.py -o out/Default/gn --skip-generate-buildfiles
./out/Default/gn gen out/Default --fail-on-unused-args
ninja -C out/Default chrome chrome_sandbox chromedriver

View File

@@ -1,19 +0,0 @@
#!/bin/bash
set -eux
CURRENTDIR=$(dirname $(readlink -f $0))
pushd "$CURRENTDIR"
if [ ! -d "./AppImages" ]; then
mkdir ./AppImages
wget -c "https://github.com/AppImage/AppImages/raw/master/pkg2appimage" -P ./AppImages
chmod 755 ./AppImages/pkg2appimage
fi
cp ungoogled-chromium.yml AppImages/ungoogled-chromium.yml
cd AppImages
./pkg2appimage ungoogled-chromium.yml
mv out/*.AppImage ../ungoogled-chromium_$ungoog{chromium_version}-$ungoog{release_revision}_linux.AppImage
popd

View File

@@ -1,12 +0,0 @@
#!/bin/bash
set -eux
TARPREFIX=ungoogled-chromium_$ungoog{chromium_version}-$ungoog{release_revision}_linux
CURRENTDIR=$(dirname $(readlink -f $0))
# Assume source tree is outside this script's directory
ARCHIVE_OUTPUT="$CURRENTDIR/$TARPREFIX.tar.xz"
pushd "$CURRENTDIR"
python3 -m buildkit filescfg -c ../chrome/tools/build/linux/FILES.cfg --build-outputs ../out/Default archive -o "$ARCHIVE_OUTPUT" -i "$CURRENTDIR/README"
popd

View File

@@ -1,32 +0,0 @@
# AppImage Recipe for ungoogled-chromium
# Author: Intika
# Based upon the AppImage recipe for Chromium
#
# You can easily make your own using this recipe like this on a Debian/Ubuntu/Rhel system:
# wget -c "https://github.com/AppImage/AppImages/raw/master/pkg2appimage"
# bash -ex pkg2appimage ungoogled-chromium
app: ungoogled-chromium
ingredients:
package: libgconf2-4
dist: trusty
sources:
- deb http://us.archive.ubuntu.com/ubuntu/ trusty main universe
script:
- mkdir -p ./opt/google/chrome/ ; tar xf ../../../ungoogled-chromium_*_linux.tar.xz --strip-components=1 -C ./opt/google/chrome/
- mkdir -p usr/share/icons/hicolor/48x48/apps/
- cp ./opt/google/chrome/product_logo_48.png usr/share/icons/hicolor/48x48/apps/chromium-browser.png
- cp usr/share/icons/hicolor/48x48/apps/chromium-browser.png .
- wget -c "https://raw.githubusercontent.com/Eloston/ungoogled-chromium/master/packaging/opensuse/sources_template/chromium-browser.desktop" -O ungoogled-chromium.desktop
- sed -i -e 's|Exec=chromium|Exec=AppRun|g' ungoogled-chromium.desktop
- sed -i -e 's|Chromium|Chromium (ungoogled)|g' ungoogled-chromium.desktop
- sed -i -e 's|3.26|3.00|g' opt/google/chrome/chrome
- cat > ./AppRun <<\EOF
- #!/bin/sh
- HERE=$(dirname $(readlink -f "${0}"))
- export LD_LIBRARY_PATH="${HERE}"/usr/lib:$PATH
- "${HERE}"/opt/google/chrome/chrome --password-store=basic $@
- EOF
- chmod a+x ./AppRun

View File

@@ -1,31 +0,0 @@
#!/bin/bash -eux
# Simple build script for macOS
packaging_dir=$(dirname $(greadlink -f $0))
# Place download_cache next the source tree, which is usually build/src
cache="$packaging_dir/../../download_cache"
rm -rf out || true
mkdir -p out/Default
mkdir -p "$cache"
pushd "$packaging_dir"
python3 -m buildkit downloads retrieve -b config_bundles/macos -c "$cache"
python3 -m buildkit downloads unpack -b config_bundles/macos -c "$cache" ../
python3 -m buildkit prune -b config_bundles/macos ../
python3 -m buildkit patches apply -b config_bundles/macos ../
python3 -m buildkit domains apply -b config_bundles/macos -c domainsubcache.tar.gz ../
python3 -m buildkit gnargs print -b config_bundles/macos > ../out/Default/args.gn
popd
./tools/gn/bootstrap/bootstrap.py --build-path out/Default -o out/Default/gn --skip-generate-buildfiles
./out/Default/gn gen out/Default --fail-on-unused-args
ninja -C out/Default chrome chromedriver
chrome/installer/mac/pkg-dmg \
--sourcefile --source out/Default/Chromium.app \
--target "$packaging_dir/ungoogled-chromium_$ungoog{chromium_version}-$ungoog{release_revision}_macos.dmg" \
--volname Chromium --symlink /Applications:/Applications \
--format UDBZ --verbosity 2

Some files were not shown because too many files have changed in this diff Show More