commit 323d5968d75ee57f68ab209c7a725be4958c37bb Author: meliurwen Date: Thu May 19 00:21:00 2022 +0200 Updating to version 101.0.4951.64 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..51f0a83 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +archive/ +tree/ +chromium-ungoogled-*.txz diff --git a/checksums/chromium-ungoogled-101.0.4951.64-x86_64-1alien.txz.md5 b/checksums/chromium-ungoogled-101.0.4951.64-x86_64-1alien.txz.md5 new file mode 100644 index 0000000..eef6c27 --- /dev/null +++ b/checksums/chromium-ungoogled-101.0.4951.64-x86_64-1alien.txz.md5 @@ -0,0 +1 @@ +1287a142fcbddae46f4b13e21d004d29 chromium-ungoogled-101.0.4951.64-x86_64-1alien.txz diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..dd88c6e --- /dev/null +++ b/debian/README @@ -0,0 +1,77 @@ +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. + +Widevine Extension +================== +Widevine is a non-free library that cannot be distributed directly by Debian. +If you would like chromium to use it, you need to obtain it from google first +and install it to one of these locations ~/.config/chromium/WidevineCdm/ or +/usr/lib/chromium/WidevineCdm/. + +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 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a6d1b50 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +chromium-ungoogled (96.0.4664.45) unstable; urgency=medium + + * Initial release. + + -- Meliurwen Sat, 11 Dec 2021 09:58:47 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3eeaa8f --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: chromium-ungoogled +Section: web +Priority: optional +Maintainer: Meliurwen +Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13), +Standards-Version: 4.6.1 +#Homepage: + +Package: chromium-ungoogled +Architecture: amd64 +Depends: + ${misc:Depends}, +Provides: + www-browser, + gnome-www-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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..1740edf --- /dev/null +++ b/debian/copyright @@ -0,0 +1,51 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: +Upstream-Name: chromium-ungoogled +Upstream-Contact: + +Files: + * +Copyright: + + +License: BSD-3-clause + +Files: + debian/* +Copyright: + 2022 Meliurwen +License: BSD-3-clause + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid picking licenses with terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. +# +# If you need, there are some extra license texts available in two places: +# /usr/share/debhelper/dh_make/licenses/ +# /usr/share/common-licenses/ diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..f49330c --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +tree/* / diff --git a/debian/postinst.ex b/debian/postinst.ex new file mode 100644 index 0000000..6a67aa3 --- /dev/null +++ b/debian/postinst.ex @@ -0,0 +1,12 @@ +#!/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-ungoogled 40 + update-alternatives --install /usr/bin/gnome-www-browser \ + gnome-www-browser /usr/bin/chromium-ungoogled 40 +fi + +#DEBHELPER# diff --git a/debian/prerm.ex b/debian/prerm.ex new file mode 100644 index 0000000..7104b83 --- /dev/null +++ b/debian/prerm.ex @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then + update-alternatives --remove x-www-browser /usr/bin/chromium-ungoogled + update-alternatives --remove gnome-www-browser /usr/bin/chromium-ungoogled +fi + +#DEBHELPER# diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..abde6ef --- /dev/null +++ b/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +%: + dh $@ + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/main.sh b/main.sh new file mode 100755 index 0000000..5a4270c --- /dev/null +++ b/main.sh @@ -0,0 +1,49 @@ +#!/bin/sh + +set -e + +prepare() { + mkdir archive && cd archive + + tar -xf "../${archive_pkg}" 2>/dev/null + + # Move a couple of things in order to conform to Debian's standards + mv usr/lib64 usr/lib + mv usr/man usr/share/ + + # Remove Slackware-specific folder + rm -rf install/ + + cd .. +} + +package() { + + cp -r archive/etc ${pkgdir}/ + cp -r archive/usr ${pkgdir}/ + + dch --newversion $pkgver --distribution unstable --controlmaint "New relase." + +} + +pkgver=101.0.4951.64 +srcdir="$PWD" + +archive_pkg="chromium-ungoogled-${pkgver}-x86_64-1alien.txz" + +if [ ! -f "${archive_pkg}" ]; then + curl -o "${archive_pkg}" "http://www.slackware.com/~alien/slackbuilds/chromium-ungoogled/pkg64/current/${archive_pkg}" +fi +if [ ! -f "checksums/${archive_pkg}.md5" ]; then + curl -o "checksums/${archive_pkg}.md5" "http://www.slackware.com/~alien/slackbuilds/chromium-ungoogled/pkg64/current/${archive_pkg}.md5" +fi + +cat "checksums/${archive_pkg}.md5" | md5sum -c + +prepare + +pkgdir="tree" + +package + +dpkg-buildpackage