main/{postmarketos => mobile}-config-firefox: replace (MR 1492)
New version does not just support Firefox 68 (firefox-esr in Alpine 3.12), which is going to be EOL soon. It also supports the new ESR 78 (firefox-esr in Alpine edge, soon also in 3.12, supported until ~2021-04) and 79 (current stable "rapid release" version; firefox in Alpine edge). The source was moved to a dedicated git repo, so other distributions can also use it. Keep the distro-specific links here in a separate HTML file, so they can be modified without changing mobile-config-firefox.git. Related: https://gitlab.com/postmarketOS/mobile-config-firefox
This commit is contained in:
parent
d84e4b4ade
commit
56b9ddc27e
6 changed files with 33 additions and 163 deletions
29
main/mobile-config-firefox/APKBUILD
Normal file
29
main/mobile-config-firefox/APKBUILD
Normal file
|
@ -0,0 +1,29 @@
|
|||
pkgname=mobile-config-firefox
|
||||
pkgver=1.0.0
|
||||
pkgrel=0
|
||||
pkgdesc="Firefox tweaks for mobile and privacy"
|
||||
url="https://gitlab.com/postmarketOS/mobile-config-firefox"
|
||||
source="
|
||||
https://gitlab.com/postmarketOS/mobile-config-firefox/-/archive/$pkgver/mobile-config-firefox-$pkgver.tar.bz2
|
||||
distro_links.html
|
||||
"
|
||||
arch="noarch"
|
||||
license="GPL-3.0-or-later"
|
||||
options="!check" # No tests
|
||||
replaces="postmarketos-config-firefox"
|
||||
provides="postmarketos-config-firefox"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cp "$srcdir/distro_links.html" "$builddir/src/homepage"
|
||||
}
|
||||
|
||||
build() {
|
||||
make DISTRO=postmarketOS
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
sha512sums="c98dd6c77aaf5fbba4189e9d3edc8b3edd2dcd54848b06f53173aa965ab35f4f6e2ed24c56d53547a4b45ff2286c309400214f38f55ed35de581afbc1a95f41a mobile-config-firefox-1.0.0.tar.bz2
|
||||
b99713e30add88f532870430a3c9122faf7e932356cdbe1faa571b661088ce00665a5e499f1873688e58c014b741235571b67efa3df2228b5f3e39972d6f35e3 distro_links.html"
|
4
main/mobile-config-firefox/distro_links.html
Normal file
4
main/mobile-config-firefox/distro_links.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<p class="distro-links">
|
||||
<a href="https://postmarketos.org/blog">blog</a> -
|
||||
<a href="https://wiki.postmarketos.org/">wiki</a>
|
||||
</p>
|
|
@ -1,21 +0,0 @@
|
|||
pkgname=postmarketos-config-firefox
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="Firefox tweaks for mobile and privacy (works best with Firefox ESR)"
|
||||
url="https://postmarketos.org"
|
||||
source="home.html policies.json prefs.js"
|
||||
arch="noarch"
|
||||
license="GPL-3.0-or-later"
|
||||
options="!check"
|
||||
|
||||
package() {
|
||||
install -Dm644 "$srcdir/prefs.js" \
|
||||
"$pkgdir/usr/lib/firefox/defaults/pref/pmos-prefs.js"
|
||||
install -Dm644 "$srcdir/policies.json" \
|
||||
"$pkgdir/etc/firefox/policies/policies.json"
|
||||
install -Dm644 "$srcdir/home.html" \
|
||||
"$pkgdir/usr/share/postmarketos-config-firefox/home.html"
|
||||
}
|
||||
sha512sums="eb25ab01db4e489c0427ffaabfb7e4b3d208a5cff675c6d4b4ea4a51f4b3eb3b48461e7b2add266e2b25cfedf79bfb5537947e7b85aa7f0647ea6be1ceac1b47 home.html
|
||||
04a5477dd4fbfe47ace1993b6a1e9b48be6d26b4ccc4e0933e1e783409d70d918982d7012475537b434acf7c31cfa1eed53a6a4526b62bba94ff1537197ced93 policies.json
|
||||
3bf448484fa75e54d0b1ad48718424b3175a662467965480c7c89e9b3e15927e2e1773d0076590a50c6f0802855fc21d7c62bda27982fc06af8e5538050bc4ed prefs.js"
|
|
@ -1,94 +0,0 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Welcome to Firefox on postmarketOS</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
h1, h2 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-weight: normal;
|
||||
color: #555;
|
||||
}
|
||||
h1 {
|
||||
font-size: 1.8em;
|
||||
margin-top: 40px;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
h2 {
|
||||
margin-top: 30px;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
p, ul{
|
||||
margin-top:0;
|
||||
line-height:180%;
|
||||
}
|
||||
a {
|
||||
color:#009900;
|
||||
background: #eeeeee;
|
||||
border-bottom: 2px solid #009900;
|
||||
text-decoration: none;
|
||||
padding: 2px;
|
||||
}
|
||||
.top-links {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.text {
|
||||
margin-top: 30px;
|
||||
font-size: 1.0em;
|
||||
}
|
||||
.text a {
|
||||
background: none;
|
||||
text-decoration: underline;
|
||||
border-bottom: none;
|
||||
color: black;
|
||||
padding: 0px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>
|
||||
Welcome to Firefox on postmarketOS
|
||||
</h1>
|
||||
<p class="top-links">
|
||||
<a href="https://postmarketos.org/blog">blog</a> -
|
||||
<a href="https://wiki.postmarketos.org/">wiki</a>
|
||||
</p>
|
||||
<p class="text">
|
||||
This is the desktop version of Firefox, but with a
|
||||
<a href="https://postmarketos.org/firefox-cfg">
|
||||
mobile-friendly configuration</a>. Try zooming and
|
||||
scrolling with your fingers!
|
||||
</p>
|
||||
<h2>How to install add-ons</h2>
|
||||
<p class="text">
|
||||
Use the official
|
||||
<a href="https://addons.mozilla.org/en-US/android/">add-on website</a>
|
||||
from Mozilla. Take care, some add-ons require a lot of access to your
|
||||
data and may not be respectful of your privacy. Here is a free software
|
||||
add-on that we trust:
|
||||
</p>
|
||||
<ul>
|
||||
<li> <a href="https://addons.mozilla.org/en-US/android/addon/ublock-origin/">uBlock Origin</a>:
|
||||
a wide-spectrum content blocker, that prevents most
|
||||
websites from wasting <i>your</i> resources (time,
|
||||
traffic, battery, CPU and RAM).
|
||||
</ul>
|
||||
|
||||
<h2>How to change settings</h2>
|
||||
<p class="text">
|
||||
Read on to set a different homepage, search engine or change other
|
||||
options. Tap the collapsed menu icon on the top right, then select
|
||||
<i>Preferences</i>. Tap the same icon again and decrease the
|
||||
<i>Zoom</i> level to <i>50%</i>, so the page becomes readable. Next,
|
||||
tap the category of the setting you want to change on the left —
|
||||
house for <i>Homepage</i>, magnifying glass for <i>Search</i>. Finally,
|
||||
change the desired setting on the right.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
"policies": {
|
||||
|
||||
"DisableDeveloperTools": true,
|
||||
"DisableFirefoxScreenshots": true,
|
||||
"DisableFirefoxStudies": true,
|
||||
"DisableTelemetry": true,
|
||||
"NewTabPage": false,
|
||||
"NoDefaultBookmarks": true,
|
||||
"OverrideFirstRunPage": "",
|
||||
"OverridePostUpdatePage": "",
|
||||
|
||||
"Homepage": {
|
||||
"URL": "file:///usr/share/postmarketos-config-firefox/home.html",
|
||||
"Locked": false,
|
||||
"StartPage": "homepage"
|
||||
},
|
||||
|
||||
"SearchEngines": {
|
||||
"Default": "DuckDuckGo"
|
||||
},
|
||||
|
||||
"UserMessaging": {
|
||||
"WhatsNew": false,
|
||||
"ExtensionRecommendations": false,
|
||||
"FeatureRecommendations": false,
|
||||
"UrlbarInterventions": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
/** Firefox tweaks for postmarketOS **/
|
||||
|
||||
// Select a mobile user agent for firefox (same as tor browser on android)
|
||||
pref('general.useragent.override', 'Mozilla/5.0 (Android 6.0; Mobile; rv:68.0) Gecko/20100101 Firefox/68.0');
|
||||
|
||||
// Enable android-style pinch-to-zoom
|
||||
pref('dom.w3c.touch_events.enabled', true);
|
||||
pref('apz.allow_zooming', true);
|
||||
pref('apz.allow_double_tap_zooming', true);
|
||||
|
||||
// Move all buttons to the overflow menu and remove spacers around the address bar
|
||||
pref("browser.uiCustomization.state", "{\"placements\":{\"widget-overflow-fixed-list\":[\"stop-reload-button\",\"home-button\",\"library-button\",\"fxa-toolbar-menu-button\",\"sidebar-button\",\"downloads-button\"],\"nav-bar\":[\"back-button\",\"forward-button\",\"urlbar-container\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[\"tabbrowser-tabs\",\"new-tab-button\",\"alltabs-button\"],\"PersonalToolbar\":[\"personal-bookmarks\"]},\"seen\":[\"developer-button\"],\"dirtyAreaCache\":[\"nav-bar\",\"toolbar-menubar\",\"TabsToolbar\",\"PersonalToolbar\",\"widget-overflow-fixed-list\"],\"currentVersion\":16,\"newElementCount\":4}");
|
||||
|
||||
// Disable search suggestions
|
||||
pref('browser.search.suggest.enabled', false);
|
||||
|
||||
// Empty new tab page: faster, less distractions
|
||||
pref('browser.newtabpage.enabled', false);
|
Loading…
Reference in a new issue