Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • trisquel/package-helpers
  • aklis/package-helpers
  • leny2010/package-helpers
  • fr33domlover/package-helpers
  • Legimet/package-helpers
  • ralphtheninja/package-helpers
  • damo22/package-helpers
  • wherrfrye/package-helpers
  • habs/package-helpers
  • pehjota/package-helpers
  • kpengboy/package-helpers
  • alvaro/package-helpers
  • salman/package-helpers
  • pabloyoyoista/package-helpers
  • mixalis/package-helpers
  • jorgesumle/package-helpers
  • a_slacker_here/package-helpers
  • chaosmonk/package-helpers
  • Beformed/package-helpers
  • dknight/package-helpers
  • proninyaroslav/package-helpers
  • adfeno/package-helpers
  • snd/package-helpers
  • davidpgil/package-helpers
  • diopon/package-helpers
  • ruben/package-helpers
  • bandali/package-helpers
  • joshaspinall/package-helpers
  • GNUtoo/package-helpers
  • Ark74/package-helpers
  • dragestil/package-helpers
  • bill-auger/package-helpers
  • andi89gi/package-helpers
  • Fikar/package-helpers
  • davidl/package-helpers
  • jas/package-helpers
  • parodper/package-helpers
  • David_Hedlund/package-helpers
  • dinomug/package-helpers
  • bf/package-helpers
  • hartkemd/package-helpers
  • del111/package-helpers
  • jxself/package-helpers
  • JacobK/package-helpers
44 results
Show changes
Showing
with 1956 additions and 110 deletions
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="aboutWordmark"
x="0px"
......@@ -15,11 +8,18 @@
height="21.484577"
viewBox="0 0 121.3271 21.484577"
xml:space="preserve"
inkscape:version="1.0.2 (1.0.2+r75+1)"
sodipodi:docname="firefox-wordmark.svg"><metadata
inkscape:version="1.2 (1:1.2+202205241504+da316b6974)"
sodipodi:docname="firefox-wordmark.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata
id="metadata9"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
id="defs7" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
......@@ -30,13 +30,13 @@
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1918"
inkscape:window-height="1010"
inkscape:window-height="1008"
id="namedview5"
showgrid="false"
inkscape:zoom="3.4606064"
inkscape:cx="27.662416"
inkscape:cy="-18.237972"
inkscape:window-x="0"
inkscape:cx="27.885286"
inkscape:cy="-18.493869"
inkscape:window-x="1366"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="aboutWordmark"
......@@ -44,15 +44,35 @@
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" /><text
xml:space="preserve"
style="font-style:normal;font-weight:normal;line-height:0%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none"
x="-0.096652985"
y="21.208426"
id="text2986"><tspan
sodipodi:role="line"
id="tspan2988"
x="-0.096652985"
y="21.208426"
style="font-weight:bold;font-size:28.2779px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'Sans Bold';fill:#ffffff;fill-opacity:1">Abrowser</tspan></text>
fit-margin-bottom="0"
inkscape:showpageshadow="2"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1" /><g
aria-label="Abrowser"
id="text2986"
style="line-height:0%;letter-spacing:0px;word-spacing:0px;fill:#808080"><path
d="M 9.8724116,4.5426901 4.4046144,21.208426 H 0 L 7.4698947,1.1046055 H 10.272831 Z M 14.415102,21.208426 8.9334969,4.5426901 8.4916547,1.1046055 h 2.8305513 l 7.511318,20.1038205 z m -0.248537,-7.483703 v 3.244779 H 3.5485452 v -3.244779 z"
style="font-weight:bold;font-size:28.2779px;line-height:1.25;-inkscape-font-specification:'Sans Bold';fill:#808080"
id="path202" /><path
d="m 20.449009,0 h 3.97658 v 17.784148 l -0.40042,3.424278 h -3.57616 z m 13.434764,13.586648 v 0.289959 q 0,1.670715 -0.358997,3.06528 -0.345189,1.394564 -1.07699,2.416324 -0.731801,1.007953 -1.822599,1.574063 -1.07699,0.552303 -2.540593,0.552303 -1.366949,0 -2.374901,-0.552303 -0.994145,-0.552303 -1.670716,-1.560255 -0.676571,-1.007953 -1.090798,-2.361094 -0.414227,-1.353142 -0.621341,-2.95482 v -0.635148 q 0.207114,-1.601678 0.621341,-2.95482 0.414227,-1.3531417 1.090798,-2.3610942 0.676571,-1.0079525 1.670716,-1.5602552 0.994145,-0.5523028 2.347286,-0.5523028 1.47741,0 2.568208,0.5661103 1.104606,0.5523028 1.822599,1.5740629 0.731801,1.0079525 1.07699,2.402517 0.358997,1.380757 0.358997,3.051473 z m -3.97658,0.289959 v -0.289959 q 0,-0.9113 -0.138075,-1.712139 Q 29.64485,11.059863 29.327276,10.45233 29.009701,9.8309889 28.457399,9.4719921 27.918904,9.1129953 27.062834,9.1129953 q -0.814646,0 -1.380757,0.2761514 -0.56611,0.2761514 -0.938914,0.7732243 -0.358997,0.497072 -0.552303,1.18745 -0.179498,0.676571 -0.207114,1.491218 v 1.808791 q 0.04142,1.090798 0.358997,1.93306 0.331382,0.828454 0.994145,1.311719 0.676571,0.469457 1.753561,0.469457 0.842262,0 1.394565,-0.331381 0.552303,-0.331382 0.856069,-0.938915 0.317574,-0.607533 0.441842,-1.42218 0.124268,-0.828454 0.124268,-1.794983 z"
style="font-weight:bold;font-size:28.2779px;line-height:1.25;-inkscape-font-specification:'Sans Bold';fill:#808080"
id="path204" /><path
d="M 40.331907,9.5272224 V 21.208426 H 36.355328 V 6.2686362 h 3.741851 z m 4.501268,-3.3552392 -0.06904,3.6866209 q -0.289959,-0.041423 -0.704186,-0.069038 -0.40042,-0.041423 -0.731801,-0.041423 -0.842262,0 -1.463603,0.2209211 -0.607533,0.2071134 -1.02176,0.6213404 -0.400419,0.40042 -0.607533,1.007953 -0.193306,0.593725 -0.220921,1.353141 l -0.800839,-0.248536 q 0,-1.449795 0.289959,-2.664861 0.289959,-1.2288732 0.842262,-2.1401727 0.56611,-0.9112995 1.380757,-1.408372 0.814646,-0.4970725 1.864022,-0.4970725 0.331381,0 0.67657,0.05523 0.34519,0.041423 0.566111,0.1242681 z"
style="font-weight:bold;font-size:28.2779px;line-height:1.25;-inkscape-font-specification:'Sans Bold';fill:#808080"
id="path206" /><path
d="m 45.647822,13.890414 v -0.289959 q 0,-1.643101 0.469458,-3.023857 0.469457,-1.3945648 1.366949,-2.4163249 0.897492,-1.0217601 2.209211,-1.5878704 1.311719,-0.5799179 3.01005,-0.5799179 1.698331,0 3.023857,0.5799179 1.325527,0.5661103 2.223019,1.5878704 0.911299,1.0217601 1.380757,2.4163249 0.469457,1.380756 0.469457,3.023857 v 0.289959 q 0,1.629293 -0.469457,3.023858 -0.469458,1.380757 -1.380757,2.416324 -0.897492,1.02176 -2.209211,1.587871 -1.311719,0.56611 -3.01005,0.56611 -1.698331,0 -3.023858,-0.56611 -1.311719,-0.566111 -2.223018,-1.587871 -0.897492,-1.035567 -1.366949,-2.416324 -0.469458,-1.394565 -0.469458,-3.023858 z m 3.97658,-0.289959 v 0.289959 q 0,0.938915 0.165691,1.753561 0.165691,0.814647 0.524687,1.435987 0.372805,0.607534 0.96653,0.952723 0.593726,0.345189 1.449795,0.345189 0.828454,0 1.42218,-0.345189 0.593725,-0.345189 0.952722,-0.952723 0.358997,-0.62134 0.524687,-1.435987 0.179499,-0.814646 0.179499,-1.753561 v -0.289959 q 0,-0.911299 -0.179499,-1.712138 Q 55.465004,11.07367 55.092199,10.45233 54.733202,9.8171813 54.139477,9.4581846 53.545752,9.0991878 52.70349,9.0991878 q -0.842262,0 -1.435987,0.3589968 -0.579918,0.3589967 -0.952723,0.9941454 -0.358996,0.62134 -0.524687,1.435987 -0.165691,0.800839 -0.165691,1.712138 z"
style="font-weight:bold;font-size:28.2779px;line-height:1.25;-inkscape-font-specification:'Sans Bold';fill:#808080"
id="path208" /><path
d="M 66.511057,17.342306 69.61776,6.2686362 h 2.526785 L 71.329898,10.61802 68.223195,21.208426 H 66.110637 Z M 64.936994,6.2686362 67.160013,17.328499 67.367126,21.208426 H 64.881764 L 61.09849,6.2686362 Z M 74.988904,17.149 77.156692,6.2686362 h 3.852312 L 77.22573,21.208426 H 74.754175 Z M 72.489734,6.2686362 75.58263,17.259461 76.010664,21.208426 H 73.884299 L 70.777596,10.631828 69.990564,6.2686362 Z"
style="font-weight:bold;font-size:28.2779px;line-height:1.25;-inkscape-font-specification:'Sans Bold';fill:#808080"
id="path210" /><path
d="m 91.088532,17.079962 q 0,-0.428034 -0.248536,-0.773223 -0.248536,-0.34519 -0.925107,-0.635149 -0.662763,-0.303766 -1.919252,-0.552302 -1.132221,-0.248537 -2.112558,-0.621341 -0.96653,-0.386612 -1.684524,-0.925107 -0.704186,-0.538495 -1.104605,-1.270296 -0.40042,-0.745609 -0.40042,-1.698331 0,-0.9389149 0.40042,-1.767369 0.414227,-0.8284542 1.173643,-1.4636023 0.773224,-0.6489557 1.87783,-1.0079525 1.118413,-0.3728044 2.512977,-0.3728044 1.946867,0 3.341432,0.6213406 1.408372,0.6213406 2.15398,1.7121385 0.759417,1.0769904 0.759417,2.4577471 h -3.97658 q 0,-0.579918 -0.248536,-1.0355675 Q 90.453384,9.2786862 89.942504,9.0163424 89.445432,8.740191 88.644593,8.740191 q -0.662764,0 -1.146029,0.2347287 -0.483265,0.2209211 -0.745608,0.607533 -0.248537,0.3728043 -0.248537,0.8284543 0,0.345189 0.138076,0.62134 0.151883,0.262344 0.483265,0.483265 0.331382,0.220921 0.856069,0.414227 0.538495,0.179499 1.325527,0.331382 1.615485,0.331382 2.885782,0.869877 1.270296,0.524687 2.015905,1.435987 0.745608,0.897492 0.745608,2.361094 0,0.994145 -0.441842,1.822599 -0.441842,0.828454 -1.270296,1.449795 -0.828454,0.607533 -1.98829,0.952722 -1.146028,0.331382 -2.582015,0.331382 -2.084943,0 -3.534738,-0.745609 -1.435987,-0.745609 -2.181596,-1.891637 -0.731801,-1.159835 -0.731801,-2.374902 h 3.769466 q 0.02762,0.814647 0.414227,1.311719 0.40042,0.497073 1.007953,0.717994 0.621341,0.220921 1.339334,0.220921 0.773224,0 1.284104,-0.207113 0.51088,-0.220921 0.773224,-0.579918 0.276151,-0.372805 0.276151,-0.85607 z"
style="font-weight:bold;font-size:28.2779px;line-height:1.25;-inkscape-font-specification:'Sans Bold';fill:#808080"
id="path212" /><path
d="m 104.41283,21.484577 q -1.73975,0 -3.12051,-0.552303 -1.380755,-0.56611 -2.347285,-1.560255 -0.952722,-0.994145 -1.463602,-2.305864 -0.51088,-1.325527 -0.51088,-2.816744 v -0.552303 q 0,-1.698331 0.483265,-3.106703 0.483264,-1.4083718 1.380756,-2.4439395 0.9113,-1.0355676 2.209216,-1.5878704 1.29791,-0.5661103 2.9272,-0.5661103 1.58787,0 2.81674,0.5246876 1.22888,0.5246876 2.05733,1.4912174 0.84226,0.9665299 1.2703,2.3196712 0.42803,1.339335 0.42803,2.982435 v 1.656908 H 98.668884 v -2.651053 h 7.966966 v -0.303766 q 0,-0.828454 -0.30377,-1.47741 -0.28995,-0.6627634 -0.88368,-1.0493753 -0.59373,-0.3866119 -1.51883,-0.3866119 -0.78703,0 -1.35314,0.3451892 -0.56611,0.3451892 -0.92511,0.96653 -0.34519,0.62134 -0.52469,1.463602 -0.16569,0.828454 -0.16569,1.822599 v 0.552303 q 0,0.897492 0.24854,1.656908 0.26234,0.759416 0.7318,1.311719 0.48326,0.552303 1.15983,0.856069 0.69038,0.303767 1.56026,0.303767 1.07699,0 2.0021,-0.414227 0.93891,-0.428035 1.61548,-1.284104 l 1.93306,2.09875 q -0.46946,0.676571 -1.2841,1.297912 -0.80084,0.62134 -1.93306,1.02176 -1.13222,0.386612 -2.58202,0.386612 z"
style="font-weight:bold;font-size:28.2779px;line-height:1.25;-inkscape-font-specification:'Sans Bold';fill:#808080"
id="path214" /><path
d="M 116.78441,9.5272224 V 21.208426 h -3.97658 V 6.2686362 h 3.74186 z m 4.50127,-3.3552392 -0.069,3.6866209 q -0.28996,-0.041423 -0.70418,-0.069038 -0.40042,-0.041423 -0.7318,-0.041423 -0.84226,0 -1.46361,0.2209211 -0.60753,0.2071134 -1.02176,0.6213404 -0.40042,0.40042 -0.60753,1.007953 -0.1933,0.593725 -0.22092,1.353141 L 115.666,12.702963 q 0,-1.449795 0.28996,-2.664861 0.28996,-1.2288732 0.84226,-2.1401727 0.56611,-0.9112995 1.38076,-1.408372 0.81465,-0.4970725 1.86402,-0.4970725 0.33138,0 0.67657,0.05523 0.34519,0.041423 0.56611,0.1242681 z"
style="font-weight:bold;font-size:28.2779px;line-height:1.25;-inkscape-font-specification:'Sans Bold';fill:#808080"
id="path216" /></g>
</svg>
#filter substitution
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<html>
<head>
<meta charset="UTF-8">
<!-- These localization links are not automatically applied to any XHR
response body and must be applied manually as well. They are included
so that viewing the file directly shows the results. -->
<link rel="localization" href="branding/brand.ftl"/>
<link rel="localization" href="browser/profile/default-bookmarks.ftl"/>
<title data-l10n-id="default-bookmarks-title">default-bookmarks-title</title>
</head>
<body>
<h1 data-l10n-id="default-bookmarks-heading">default-bookmarks-heading</h1>
<dl><p>
<dt><h3 personal_toolbar_folder="true" data-l10n-id="default-bookmarks-toolbarfolder">Bookmarks Toolbar</h3></dt>
</dl>
</body>
</html>
--- a/browser/components/BrowserGlue.jsm 2019-12-19 12:45:18.535559096 -0500
+++ b/browser/components/BrowserGlue.jsm 2019-12-19 12:45:08.935572729 -0500
@@ -1580,6 +1580,19 @@
this._trackSlowStartup();
--- a/browser/components/BrowserGlue.sys.mjs 2023-02-07 01:52:32.000000000 -0600
+++ b//browser/components/BrowserGlue.sys.mjs_fix 2023-02-07 14:52:59.465762604 -0600
@@ -1637,6 +1637,19 @@
}
});
+ // Trisquel hack: if no user settings for tracking, default to strict instead of standard.
+ if (!
......
helpers/DATA/firefox/newtab/hnode.ico

1.37 KiB

helpers/DATA/firefox/newtab/hnode.png

62.3 KiB

diff --git a/browser/components/preferences/sync.inc.xhtml b/browser/components/preferences/sync.inc.xhtml
index 7d37d26..4ebbc06 100644
--- a/browser/components/preferences/sync.inc.xhtml
+++ b/browser/components/preferences/sync.inc.xhtml
@@ -35,22 +35,6 @@
</hbox>
</vbox>
</hbox>
- <label class="fxaMobilePromo" data-l10n-id="sync-mobile-promo">
- <html:img
- src="chrome://browser/skin/logo-android.svg"
- data-l10n-name="android-icon"
- class="androidIcon"/>
- <html:a
- data-l10n-name="android-link"
- class="fxaMobilePromo-android text-link" target="_blank"/>
- <html:img
- src="chrome://browser/skin/logo-ios.svg"
- data-l10n-name="ios-icon"
- class="iOSIcon"/>
- <html:a
- data-l10n-name="ios-link"
- class="fxaMobilePromo-ios text-link" target="_blank"/>
- </label>
</groupbox>
<vbox id="hasFxaAccount">
diff --git a/browser/locales/en-US/browser/preferences/preferences.ftl b/browser/locales/en-US/browser/preferences/preferences.ftl
index 1b29e8d..6f7566c 100644
--- a/browser/locales/en-US/browser/preferences/preferences.ftl
+++ b/browser/locales/en-US/browser/preferences/preferences.ftl
@@ -714,16 +714,6 @@ sync-signedout-account-signin2 =
.label = Sign in to { -sync-brand-short-name }…
.accesskey = i
-# This message contains two links and two icon images.
-# `<img data-l10n-name="android-icon"/>` - Android logo icon
-# `<a data-l10n-name="android-link">` - Link to Android Download
-# `<img data-l10n-name="ios-icon">` - iOS logo icon
-# `<a data-l10n-name="ios-link">` - Link to iOS Download
-#
-# They can be moved within the sentence as needed to adapt
-# to your language, but should not be changed or translated.
-sync-mobile-promo = Download Firefox for <img data-l10n-name="android-icon"/> <a data-l10n-name="android-link">Android</a> or <img data-l10n-name="ios-icon"/> <a data-l10n-name="ios-link">iOS</a> to sync with your mobile device.
-
## Sync Account - Signed in
sync-profile-picture =
diff --git a/browser/components/protections/content/vpn-card.mjs b/browser/components/protections/content/vpn-card.mjs
index 2417f1a641..698c48ccc3 100644
--- a/browser/components/protections/content/vpn-card.mjs
+++ b/browser/components/protections/content/vpn-card.mjs
@@ -23,22 +23,6 @@ export default class VPNCard {
vpnLink.addEventListener("click", () => {
this.doc.sendTelemetryEvent("click", "vpn_card_link");
});
- let androidVPNAppLink = document.getElementById(
- "vpn-google-playstore-link"
- );
- androidVPNAppLink.href = RPMGetStringPref(
- "browser.contentblocking.report.vpn-android.url"
- );
- androidVPNAppLink.addEventListener("click", () => {
- document.sendTelemetryEvent("click", "vpn_app_link_android");
- });
- let iosVPNAppLink = document.getElementById("vpn-app-store-link");
- iosVPNAppLink.href = RPMGetStringPref(
- "browser.contentblocking.report.vpn-ios.url"
- );
- iosVPNAppLink.addEventListener("click", () => {
- document.sendTelemetryEvent("click", "vpn_app_link_ios");
- });
const vpnBanner = this.doc.querySelector(".vpn-banner");
const exitIcon = vpnBanner.querySelector(".exit-icon");
......@@ -51,10 +51,18 @@ class RemoteSettings:
DUMPS_PATH_ABSOLUTE = arguments.MAIN_PATH / DUMPS_PATH_RELATIVE
_WRAPPER_NAME = 'data'
_LAST_MODIFIED_KEY_NAME = 'last_modified'
@classmethod
def get_collection_timestamp(cls, collection):
return max((record[cls._LAST_MODIFIED_KEY_NAME]
for record in collection.content), default=0)
@classmethod
def wrap(cls, processed):
return File(processed.path, {cls._WRAPPER_NAME: processed.content})
return File(processed.path,
{cls._WRAPPER_NAME: processed.content,
'timestamp': cls.get_collection_timestamp(processed)})
@classmethod
def unwrap(cls, parsed_jsons):
......@@ -88,13 +96,15 @@ class RemoteSettings:
while timestamp in timestamps:
timestamp += 1
timestamps.append(timestamp)
record['last_modified'] = timestamp
record[cls._LAST_MODIFIED_KEY_NAME] = timestamp
if parsed_schema is not None:
validate(record, schema=parsed_schema)
result.append(record)
result.sort(
key=lambda record: record[cls._LAST_MODIFIED_KEY_NAME], reverse=True)
cls.OUTPUT_PATH.parent.mkdir(parents=True, exist_ok=True)
return File(cls.OUTPUT_PATH, result)
......@@ -109,7 +119,7 @@ class RemoteSettings:
class Changes(RemoteSettings):
JSON_PATHS = tuple(RemoteSettings.DUMPS_PATH_ABSOLUTE.glob('*/*.json'))
OUTPUT_PATH = RemoteSettings.DUMPS_PATH_ABSOLUTE / 'monitor/changes.json'
OUTPUT_PATH = RemoteSettings.DUMPS_PATH_ABSOLUTE / 'monitor/changes'
@classmethod
def wrap(cls, processed):
......@@ -124,8 +134,8 @@ class Changes(RemoteSettings):
for collection in unwrapped_jsons:
if collection.path != RemoteSettings.DUMPS_PATH_ABSOLUTE / 'main/example.json':
latest_change = {}
latest_change['last_modified'] = max(
(record['last_modified'] for record in collection.content), default=0)
latest_change[cls._LAST_MODIFIED_KEY_NAME] = cls.get_collection_timestamp(
collection)
latest_change['bucket'] = collection.path.parent.name
latest_change['collection'] = collection.path.stem
changes.append(latest_change)
......
More info related to the change: https://hg.mozilla.org/mozilla-central/rev/5079bb7577182734823d6e4a3c468115d45a9dd9
--- a/browser/components/search/extensions/ddg/manifest.json 2023-04-06 23:48:16.983734806 -0600
+++ b/browser/components/search/extensions/ddg/manifest.json 2023-04-06 23:54:27.848103496 -0600
@@ -21,7 +21,7 @@
"name": "DuckDuckGo",
"search_url": "https://duckduckgo.com/",
"search_form": "https://duckduckgo.com/",
- "search_url_get_params": "t=ffab&q={searchTerms}",
+ "search_url_get_params": "q={searchTerms}",
"suggest_url": "https://ac.duckduckgo.com/ac/",
"suggest_url_get_params": "q={searchTerms}&type=list"
}
--- a/browser/components/search/extensions/ddg-html/manifest.json 2023-04-06 23:48:16.987734810 -0600
+++ b/browser/components/search/extensions/ddg-html/manifest.json 2023-04-06 23:55:19.080158907 -0600
@@ -21,7 +21,7 @@
"name": "DuckDuckGo (HTML)",
"search_url": "https://html.duckduckgo.com/html/",
"search_form": "https://html.duckduckgo.com/html/",
- "search_url_get_params": "t=ffab&q={searchTerms}",
+ "search_url_get_params": "q={searchTerms}",
"suggest_url": "https://ac.duckduckgo.com/ac/",
"suggest_url_get_params": "q={searchTerms}&type=list"
}
......@@ -232,7 +232,7 @@ pref("browser.onboarding.updatetour", "performance,library,singlesearch,customiz
pref("browser.onboarding.enabled", false);
// New tab settings
pref("browser.newtabpage.activity-stream.default.sites", "https://trisquel.info/,https://www.gnu.org/,https://www.fsf.org/,https://directory.fsf.org,https://libreplanet.org/,https://fsfe.org,https://www.wikipedia.org/wiki/,https://www.wikinews.org/wiki/");
pref("browser.newtabpage.activity-stream.default.sites", "https://trisquel.info/,https://www.gnu.org/,https://www.fsf.org/,https://directory.fsf.org,https://libreplanet.org/,https://fsfe.org,https://www.wikipedia.org/wiki/,https://www.h-node.org/");
pref("browser.newtabpage.activity-stream.showTopSites",true);
pref("browser.newtabpage.activity-stream.feeds.section.topstories",false);
pref("browser.newtabpage.activity-stream.feeds.snippets",false);
......
diff --git a/README.md b/README.md
index b7931bb..3fb54f4 100644
--- a/README.md
+++ b/README.md
@@ -26,28 +26,29 @@ tweaks, see the *Build Images* section below.
Freedom-maker supports building for the following targets:
-
-- *a20-olinuxino-lime*: A20 OLinuXino Lime's SD card
-- *a20-olinuxino-lime2*: A20 OLinuXino Lime2's SD card
-- *a20-olinuxino-micro*: A20 OLinuXino MICRO's SD card
-- *amd64*: Disk image for any machine with amd64 architecture
-- *banana-pro*: Banana Pro's SD card
-- *beaglebone*: BeagleBone Black's SD card
-- *cubieboard2*: Cubieboard2's SD card
-- *cubietruck*: Cubietruck's SD card
-- *i386*: Disk image for any machine with i386 architecture
-- *lamobo-r1*: Lamobo R1 aka BananaPi Router SD card
-- *pcduino3*: pcDuino3's SD card
-- *pine64-lts*: Pine64 LTS board's SD card
-- *pine64-plus*: Pine64+ board's SD card
-- *qemu-amd64*: 64-bit image for the Qemu virtualization tool
-- *qemu-i386*: 32-bit image for the Qemu virtualization tool
-- *raspberry2*: RasbperryPi 2's SD card
-- *raspberry3*: RasbperryPi 3's SD card
-- *raspberry3-b-plus*: RasbperryPi 3 Model B+'s SD card
-- *test*: build virtualbox i386 image and run diagnostics tests on it
-- *virtualbox-amd64*: 64-bit image for the VirtualBox virtualization tool
-- *virtualbox-i386*: 32-bit image for the VirtualBox virtualization tool
+| target | description |
+|-----------------------|-------------|
+| *a20-olinuxino-lime* | A20 OLinuXino Lime's SD card |
+| *a20-olinuxino-lime2* | A20 OLinuXino Lime2's SD card |
+| *a20-olinuxino-micro* | A20 OLinuXino MICRO's SD card |
+| *amd64* | Disk image for any machine with amd64 architecture |
+| *banana-pro* | Banana Pro's SD card |
+| *beaglebone* | BeagleBone Black's SD card |
+| *cubieboard2* | Cubieboard2's SD card |
+| *cubietruck* | Cubietruck's SD card |
+| *i386* | Disk image for any machine with i386 architecture |
+| *lamobo-r1* | Lamobo R1 aka BananaPi Router SD card |
+| *pcduino3* | pcDuino3's SD card |
+| *pine64-lts* | Pine64 LTS board's SD card |
+| *pine64-plus* | Pine64+ board's SD card |
+| *qemu-amd64* | 64-bit image for the Qemu virtualization tool |
+| *qemu-i386* | 32-bit image for the Qemu virtualization tool |
+| *raspberry2* | RasbperryPi 2's SD card |
+| *raspberry3* | RasbperryPi 3's SD card |
+| *raspberry3-b-plus* | RasbperryPi 3 Model B+'s SD card |
+| *test* | build virtualbox i386 image and run diagnostics tests on it |
+| *virtualbox-amd64* | 64-bit image for the VirtualBox virtualization tool |
+| *virtualbox-i386* | 32-bit image for the VirtualBox virtualization tool |
## Running Build
@@ -69,10 +70,12 @@ Freedom-maker supports building for the following targets:
to run "parted".
```
- $ sudo python3 -m freedommaker a20-olinuxino-lime2
+ $ sudo python3 -m freedommaker <TARGET>
```
+ where: &lt;TARGET&gt; is one of the 'Supported Targets' above.
+
Take a break from your computer - this takes some time. :)
-
+
To see the full list of options read the help-page:
```
$ python3 -m freedommaker --help
@@ -91,25 +94,47 @@ for this task. Otherwise follow the steps:
A. Unplug your card.
- B. Run "lsblk -p" to show which storage devices are connected to your system.
+ B. Run `lsblk -p` to show which storage devices are connected to your system.
+ For example, if your computer has one internal SATA storage device
+ (the most common configuration), it will be identified as */dev/sda*;
+ and the result may look similar to this:
+
+ $ lsblk -p
+ NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
+ /dev/sda 8:0 0 119.2G 0 disk
+ ├─/dev/sda1 8:1 0 2G 0 part /boot
+ ├─/dev/sda2 8:2 0 22.5G 0 part /
+ └─/dev/sda3 8:3 0 94.8G 0 part /home
+
+ C. Plug in your SDcard and run `lsblk -p` again. Find the new device and note
+ the name. For example, if the SDcard is unformatted (empty), the result may
+ look similar to this:
+
+ $ lsblk -p
+ NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
+ /dev/sda 8:0 0 119.2G 0 disk
+ ├─/dev/sda1 8:1 0 2G 0 part /boot
+ ├─/dev/sda2 8:2 0 22.5G 0 part /
+ └─/dev/sda3 8:3 0 94.8G 0 part /home
+ /dev/sdb 8:32 1 29.7G 0 disk
+
+ Or, if the SDcard is already formatted, it may look more like this:
- C. Plug your card in and run "lsblk -p" again. Find the new device and note
- the name.
-
$ lsblk -p
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- /dev/sdg 8:0 1 14.9G 0 disk
- /dev/nvme0n1 259:0 0 477G 0 disk
- ├─/dev/nvme0n1p1 259:1 0 512M 0 part /boot/efi
- ├─/dev/nvme0n1p2 259:2 0 244M 0 part /boot
- └─/dev/nvme0n1p3 259:3 0 476.2G 0 part
- └─/dev/mapper/nvme0n1p3_crypt 253:0 0 476.2G 0 crypt
- ├─/dev/mapper/mjw--t470--vg-root 253:1 0 468.4G 0 lvm /
- └─/dev/mapper/mjw--t470--vg-swap_1 253:2 0 7.8G 0 lvm [SWAP]
-
- D. In the above case, the disk that is newly inserted is available
- as */dev/sdg*. You can also verify the size (16 GB in this example).
- Carefully note this and use it in the copying step below.
+ NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
+ /dev/sda 8:0 0 119.2G 0 disk
+ ├─/dev/sda1 8:1 0 2G 0 part /boot
+ ├─/dev/sda2 8:2 0 22.5G 0 part /
+ └─/dev/sda3 8:3 0 94.8G 0 part /home
+ /dev/sdb 8:32 1 29.7G 0 disk
+ ├─/dev/sdb1 8:33 1 100M 0 part
+ └─/dev/sdb2 8:36 1 29.6G 0 part
+
+ D. In the above cases, the newly inserted SDcard is identified
+ as */dev/sdb*. To be more certain, you can compare the reported sizes
+ (approximately - the SDcard is 30 GB in this example - reported 29.7G).
+ Most importantly, */dev/sda*. is usually not the SDcard.
+ Carefully note this identifier and use it in the copying step below.
2. Copy the image to your card. Double check and make sure you don't
write to your computer's main storage (such as /dev/sda). Also
diff --git a/freedommaker/__main__.py b/freedommaker/__main__.py
index 9d29193..cb6a178 100644
--- a/freedommaker/__main__.py
+++ b/freedommaker/__main__.py
@@ -20,7 +20,15 @@
Module to provide ability to run this freedommaker package.
Run the package as:
- python3 -m freedommaker
+ $ sudo python3 -m freedommaker <TARGET>
+where:
+ <TARGET> is one of:
+ $ grep -r 'machine = ' freedommaker/builders/ | cut -d '=' -f 2
+eg:
+ $ sudo python3 -m freedommaker a20-olinuxino-lime2
+
+To see the full list of options read the help-page:
+ $ python3 -m freedommaker --help
"""
from .application import Application
diff --git a/freedommaker/builder.py b/freedommaker/builder.py
index 0f94d5c..8a13188 100644
--- a/freedommaker/builder.py
+++ b/freedommaker/builder.py
@@ -23,6 +23,8 @@ import os
from . import internal, library
+DISTRO_BRAND = 'Debian'
+
# initramfs-tools is a dependency for the kernel-image package. However, when
# kernel is not installed, as in case of Raspberry Pi image, explicit dependency
# is needed.
@@ -103,10 +105,11 @@ class ImageBuilder(object): # pylint: disable=too-many-instance-attributes
def _get_image_base_name(self):
"""Return the base file name of the final image."""
- free_tag = 'free' if self.free else 'nonfree'
+ free_tag = 'libre' if self.free else 'nonfree'
- return 'freedombox-{distribution}-{free_tag}_{build_stamp}_{machine}' \
+ return '{distro}freedombox-{distribution}-{free_tag}_{build_stamp}_{machine}' \
'-{architecture}'.format(
+ distro=DISTRO_BRAND.lower() + '-' if DISTRO_BRAND else '',
distribution=self.arguments.distribution, free_tag=free_tag,
build_stamp=self.arguments.build_stamp, machine=self.machine,
architecture=self.architecture)
diff --git a/README.md b/README.md
index 3fb54f4..8b01fbd 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,3 @@
-[![pipeline status](https://salsa.debian.org/freedombox-team/freedom-maker/badges/master/pipeline.svg)](https://salsa.debian.org/freedombox-team/freedom-maker/commits/master)
-[![Debian Unstable](https://badges.debian.net/badges/debian/unstable/freedom-maker/version.svg)](https://packages.debian.org/unstable/freedom-maker)
-[![Debian Testing](https://badges.debian.net/badges/debian/testing/freedom-maker/version.svg)](https://packages.debian.org/testing/freedom-maker)
-
# Freedom-Maker: The FreedomBox image builder
These scripts build FreedomBox-images for various supported hardware
@@ -13,9 +9,9 @@ during releases and for advanced users who intend to build their own
images. Regular users who wish to turn their devices into
FreedomBoxes should instead download the pre-built images.
-Get a pre-built image via https://freedombox.org/download/. There
+Get a pre-built image via https://cdimage.trisquel.info/trisquel-images/. There
are images available for all supported target devices. You also find
-the setup instructions on the [Wiki](https://wiki.debian.org/FreedomBox/).
+the setup instructions on the [Wiki](https://trisquel.info/en/wiki/FreedomBox/).
If you wish to create your own FreedomBox image, perhaps with some
tweaks, see the *Build Images* section below.
@@ -24,7 +20,7 @@ tweaks, see the *Build Images* section below.
## Supported Targets
-Freedom-maker supports building for the following targets:
+Trisquel Freedom-maker supports building for the following targets:
| target | description |
|-----------------------|-------------|
@@ -43,25 +39,18 @@ Freedom-maker supports building for the following targets:
| *pine64-plus* | Pine64+ board's SD card |
| *qemu-amd64* | 64-bit image for the Qemu virtualization tool |
| *qemu-i386* | 32-bit image for the Qemu virtualization tool |
-| *raspberry2* | RasbperryPi 2's SD card |
-| *raspberry3* | RasbperryPi 3's SD card |
-| *raspberry3-b-plus* | RasbperryPi 3 Model B+'s SD card |
-| *test* | build virtualbox i386 image and run diagnostics tests on it |
-| *virtualbox-amd64* | 64-bit image for the VirtualBox virtualization tool |
-| *virtualbox-i386* | 32-bit image for the VirtualBox virtualization tool |
## Running Build
-1. Fetch the git source of freedom-maker:
+1. Fetch the 'freedom-maker' source code:
```
- $ git clone https://salsa.debian.org/freedombox-team/freedom-maker.git
+ $ apt source freedom-maker
```
2. Install the required dependencies:
```shell
$ sudo apt install btrfs-progs debootstrap kpartx parted qemu-user-static sshpass
- $ cd freedom-maker
- $ sudo apt build-dep .
+ $ sudo apt build-dep freedom-maker
```
3. Build images:
@@ -70,6 +59,7 @@ Freedom-maker supports building for the following targets:
to run "parted".
```
+ $ cd $(find -type d -name 'freedom-maker-*')
$ sudo python3 -m freedommaker <TARGET>
```
where: &lt;TARGET&gt; is one of the 'Supported Targets' above.
diff --git a/debian/freedom-maker.1 b/debian/freedom-maker.1
index 60f3d86..820e84d 100644
--- a/debian/freedom-maker.1
+++ b/debian/freedom-maker.1
@@ -51,17 +51,17 @@ Size of the image to build
.PP
\fB\-\-build\-mirror\fR
.RS 4
-Debian mirror to use for building
+Trisquel mirror to use for building
.RE
.PP
\fB\-\-mirror\fR
.RS 4
-Debian mirror to use in built image
+Trisquel mirror to use in built image
.RE
.PP
\fB\-\-distribution\fR
.RS 4
-Debian release to use in built image
+Trisquel release to use in built image
.RE
.PP
\fB\-\-include\-source\fR
@@ -106,7 +106,7 @@ Force rebuild of images even when required image exists
.PP
\fBtargets\fR
.RS 4
-Image targets to build\&. Choose one or more of freedommaker, dreamplug, raspberry, raspberry2, beaglebone, cubieboard2, cubietruck, a20\-olinuxino\-lime, a20\-olinuxino\-lime2, a20\-olinuxino\-micro, i386, amd64, virtualbox\-i386, virtualbox\-amd64, qemu\-i386, qemu\-amd64, pcDuino3
+Image targets to build\&. Choose one or more of freedommaker, dreamplug, beaglebone, cubieboard2, cubietruck, a20\-olinuxino\-lime, a20\-olinuxino\-lime2, a20\-olinuxino\-micro, i386, amd64, qemu\-i386, qemu\-amd64, pcDuino3
.RE
.SH "EXAMPLES"
.PP
@@ -130,9 +130,9 @@ Build a FreedomBox image for the BeagleBone Single Board Computer\&.
.RS 4
.\}
.nf
-$ python3 \-m freedommaker dreamplug raspberry raspberry2
+$ python3 \-m freedommaker dreamplug
beaglebone cubieboard2 cubietruck a20\-olinuxino\-lime a20\-olinuxino\-lime2
- a20\-olinuxino\-micro i386 amd64 virtualbox\-i386 virtualbox\-amd64
+ a20\-olinuxino\-micro i386 amd64
qemu\-i386 qemu\-amd64 pcDuino3
.fi
.if n \{\
diff --git a/doc/freedom-maker.xml b/doc/freedom-maker.xml
index 74ce990..349a136 100644
--- a/doc/freedom-maker.xml
+++ b/doc/freedom-maker.xml
@@ -94,7 +94,7 @@
<term> <option>--build-mirror</option></term>
<listitem>
<para>
- Debian mirror to use for building
+ Trisquel mirror to use for building
</para>
</listitem>
</varlistentry>
@@ -102,7 +102,7 @@
<term> <option>--mirror</option></term>
<listitem>
<para>
- Debian mirror to use in built image
+ Trisquel mirror to use in built image
</para>
</listitem>
</varlistentry>
@@ -110,7 +110,7 @@
<term> <option>--distribution</option></term>
<listitem>
<para>
- Debian release to use in built image
+ Trisquel release to use in built image
</para>
</listitem>
</varlistentry>
diff --git a/freedommaker/application.py b/freedommaker/application.py
index dbe8ca0..0bebc35 100644
--- a/freedommaker/application.py
+++ b/freedommaker/application.py
@@ -94,15 +94,15 @@ class Application(object):
parser.add_argument(
'--build-mirror',
default=BUILD_MIRROR,
- help='Debian mirror to use for building')
+ help='Trisquel mirror to use for building')
parser.add_argument(
'--mirror',
default=MIRROR,
- help='Debian mirror to use in built image')
+ help='Trisquel mirror to use in built image')
parser.add_argument(
'--distribution',
default=DISTRIBUTION,
- help='Debian release to use in built image')
+ help='Trisquel release to use in built image')
parser.add_argument(
'--package',
action='append',
diff --git a/freedommaker/internal.py b/freedommaker/internal.py
index acc22d8..49bd4a9 100644
--- a/freedommaker/internal.py
+++ b/freedommaker/internal.py
@@ -275,9 +275,7 @@ class InternalBuilderBackend():
def _set_freedombox_disk_image_flag(self):
"""Set a flag to indicate that this is a FreedomBox image.
-
- And that FreedomBox is not installed using a Debian package.
-
+ And not a standard Trisquel system with the FreedomBox packages installed.
"""
library.run_in_chroot(
self.state, ['mkdir', '-p', '-m', '755', '/var/lib/freedombox'])
diff --git a/freedommaker/builder.py b/freedommaker/builder.py
index 8a13188..343af14 100644
--- a/freedommaker/builder.py
+++ b/freedommaker/builder.py
@@ -23,7 +23,7 @@ import os
from . import internal, library
-DISTRO_BRAND = 'Debian'
+DISTRO_BRAND = 'Trisquel'
# initramfs-tools is a dependency for the kernel-image package. However, when
# kernel is not installed, as in case of Raspberry Pi image, explicit dependency
diff --git a/freedommaker/application.py b/freedommaker/application.py
index 0bebc35..1c012da 100644
--- a/freedommaker/application.py
+++ b/freedommaker/application.py
@@ -30,9 +30,9 @@ import freedommaker
from .builder import ImageBuilder
IMAGE_SIZE = '3800M'
-BUILD_MIRROR = 'http://deb.debian.org/debian'
-MIRROR = 'http://deb.debian.org/debian'
-DISTRIBUTION = 'unstable'
+BUILD_MIRROR = 'http://us.archive.trisquel.info/trisquel'
+MIRROR = 'http://us.archive.trisquel.info/trisquel'
+DISTRIBUTION = 'nabia'
BUILD_DIR = 'build'
LOG_LEVEL = 'debug'
HOSTNAME = 'freedombox'
diff --git a/freedommaker/library.py b/freedommaker/library.py
index 9805278..d724053 100644
--- a/freedommaker/library.py
+++ b/freedommaker/library.py
@@ -484,14 +484,14 @@ deb-src {mirror} {distribution} {components}
updates_template = '''
deb {mirror} {distribution}-updates {components}
deb-src {mirror} {distribution}-updates {components}
-'''
- old_security_template = '''
-deb http://security.debian.org/debian-security/ {distribution}/updates {components}
-deb-src http://security.debian.org/debian-security/ {distribution}/updates {components}
'''
security_template = '''
-deb http://security.debian.org/debian-security/ {distribution}-security {components}
-deb-src http://security.debian.org/debian-security/ {distribution}-security {components}
+deb {mirror} {distribution}-security {components}
+deb-src {mirror} {distribution}-security {components}
+'''
+ backports_template = '''
+#deb {mirror} {distribution}-backports {components}
+#deb-src {mirror} {distribution}-backports {components}
'''
file_path = path_in_mount(state, 'etc/apt/sources.list')
with open(file_path, 'w') as file_handle:
@@ -500,8 +500,9 @@ deb-src http://security.debian.org/debian-security/ {distribution}-security {com
file_handle.write(updates_template.format(**values))
if distribution in ('bullseye', 'testing'):
file_handle.write(security_template.format(**values))
- else: # stable/buster
- file_handle.write(old_security_template.format(**values))
+ elif distribution in ('nabia'):
+ file_handle.write(security_template.format(**values))
+ file_handle.write(backports_template.format(**values))
run_in_chroot(state, ['apt-get', 'update'])
run_in_chroot(state, ['apt-get', 'clean'])
diff --git a/debian/control b/debian/control
index 21f77ce..f13aafd 100644
--- a/debian/control
+++ b/debian/control
@@ -41,7 +41,7 @@ Depends:
u-boot-tools,
xz-utils (>= 5.2.2),
Suggests:
- virtualbox
+ debootstrap
Description: FreedomBox image builder
FreedomBox is a personal cloud server which can be installed on single board
computers and Debian machines.
diff --git a/freedommaker/builders/__init__.py b/freedommaker/builders/__init__.py
index 4df3c3f..05e2f4d 100644
--- a/freedommaker/builders/__init__.py
+++ b/freedommaker/builders/__init__.py
@@ -35,10 +35,3 @@ from . import pine64_plus
from . import pine64_lts
from . import qemu_amd64
from . import qemu_i386
-from . import raspberry_pi_2
-from . import raspberry_pi_3
-from . import raspberry_pi_3_b_plus
-from . import raspberry_pi_with_uboot
-from . import vagrant
-from . import virtualbox_amd64
-from . import virtualbox_i386
diff --git a/freedommaker/builders/raspberry_pi_2.py b/freedommaker/builders/raspberry_pi_2.py
deleted file mode 100644
index 5821a94..0000000
--- a/freedommaker/builders/raspberry_pi_2.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# This file is part of Freedom Maker.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-"""
-Worker class to build Raspberry Pi 2 image.
-"""
-
-from .raspberry_pi_with_uboot import RaspberryPiWithUBoot
-
-
-class RaspberryPi2ImageBuilder(RaspberryPiWithUBoot):
- """Image builder for Raspberry Pi 2 target."""
- architecture = 'armhf'
- machine = 'raspberry2'
- boot_offset = '64mib'
- kernel_flavor = 'armmp'
- flash_kernel_name = 'Raspberry Pi 2 Model B'
- uboot_variant = 'rpi_2'
diff --git a/freedommaker/builders/raspberry_pi_3.py b/freedommaker/builders/raspberry_pi_3.py
deleted file mode 100644
index 0cfe209..0000000
--- a/freedommaker/builders/raspberry_pi_3.py
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# This file is part of Freedom Maker.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-"""
-Worker class to build Raspberry Pi 3 image.
-"""
-
-from .raspberry_pi_with_uboot import RaspberryPiWithUBoot
-
-
-class RaspberryPi3ImageBuilder(RaspberryPiWithUBoot):
- """Image builder for Raspberry Pi 3 target."""
- architecture = 'armhf'
- machine = 'raspberry3'
- free = False
- boot_offset = '64mib'
- kernel_flavor = 'armmp'
- flash_kernel_name = 'Raspberry Pi 3 Model B'
- uboot_variant = 'rpi_3_32b'
diff --git a/freedommaker/builders/raspberry_pi_3_b_plus.py b/freedommaker/builders/raspberry_pi_3_b_plus.py
deleted file mode 100644
index 35c778d..0000000
--- a/freedommaker/builders/raspberry_pi_3_b_plus.py
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# This file is part of Freedom Maker.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-"""
-Worker class to build Raspberry Pi 3 Model B+ image.
-"""
-
-from .raspberry_pi_3 import RaspberryPi3ImageBuilder
-
-
-class RaspberryPi3BPlusImageBuilder(RaspberryPi3ImageBuilder):
- """Image builder for Raspberry Pi 3 Model B+ target."""
- machine = 'raspberry3-b-plus'
- flash_kernel_name = 'Raspberry Pi 3 Model B+'
diff --git a/freedommaker/builders/raspberry_pi_with_uboot.py b/freedommaker/builders/raspberry_pi_with_uboot.py
deleted file mode 100644
index e983404..0000000
--- a/freedommaker/builders/raspberry_pi_with_uboot.py
+++ /dev/null
@@ -1,62 +0,0 @@
-#
-# This file is part of Freedom Maker.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-"""
-Base worker class to build Raspberry Pi 2 and 3 images.
-"""
-
-from .. import library
-from .arm import ARMImageBuilder
-
-
-class RaspberryPiWithUBoot(ARMImageBuilder):
- """Base image builder for Raspberry Pi 2 and 3 targets."""
- free = False
- uboot_variant = None
- firmware_filesystem_type = 'vfat'
- firmware_size = '60mib'
-
- def install_boot_loader(self, state):
- """Install the boot loader onto the image."""
- if not self.uboot_variant:
- raise NotImplementedError
-
- firmware_package = 'raspi-firmware'
- if self.arguments.distribution in ['buster', 'stable']:
- firmware_package = 'raspi3-firmware'
-
- script = '''
-set -e
-set -x
-set -o pipefail
-
-apt-get install --no-install-recommends -y dpkg-dev
-cd /tmp
-apt-get source {firmware_package}
-cp {firmware_package}*/boot/* /boot/firmware
-rm -rf {firmware_package}*
-cd /
-
-# remove unneeded firmware files
-rm -f /boot/firmware/fixup_*
-rm -f /boot/firmware/start_*
-
-# u-boot setup
-apt-get install -y u-boot-rpi
-cp /usr/lib/u-boot/{uboot_variant}/u-boot.bin /boot/firmware/kernel.img
-cp /usr/lib/u-boot/{uboot_variant}/u-boot.bin /boot/firmware/kernel7.img
-'''.format(firmware_package=firmware_package, uboot_variant=self.uboot_variant)
- library.run_in_chroot(state, ['bash', '-c', script])
diff --git a/freedommaker/builders/vagrant.py b/freedommaker/builders/vagrant.py
deleted file mode 100644
index f1243dd..0000000
--- a/freedommaker/builders/vagrant.py
+++ /dev/null
@@ -1,55 +0,0 @@
-#
-# This file is part of Freedom Maker.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-"""
-Worker class to build Vagrant images.
-"""
-
-import os
-
-from .. import library
-from .virtualbox_amd64 import VirtualBoxAmd64ImageBuilder
-
-
-class VagrantImageBuilder(VirtualBoxAmd64ImageBuilder):
- """Image builder for Vagrant package."""
- vagrant_extension = '.box'
-
- @classmethod
- def get_target_name(cls):
- """Return the name of the target for an image builder."""
- return 'vagrant'
-
- def build(self):
- """Run the image building process."""
- vm_file = self._replace_extension(self.image_file,
- self.vm_image_extension)
- vagrant_file = self._replace_extension(self.image_file,
- self.vagrant_extension)
-
- self.make_image()
- self.create_vm_file(self.image_file, vm_file)
- os.remove(self.image_file)
- self.vagrant_package(vm_file, vagrant_file)
-
- @staticmethod
- def vagrant_package(vm_file, vagrant_file):
- """Create a vagrant package from VM file."""
- library.run(
- ['bin/vagrant-package', '--output', vagrant_file, vm_file])
-
-
-
diff --git a/freedommaker/builders/virtualbox.py b/freedommaker/builders/virtualbox.py
deleted file mode 100644
index f5bac57..0000000
--- a/freedommaker/builders/virtualbox.py
+++ /dev/null
@@ -1,46 +0,0 @@
-#
-# This file is part of Freedom Maker.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-"""
-Base worker class to build VirtualBox images.
-"""
-
-import os
-
-from .. import library
-from .vm import VMImageBuilder
-
-
-class VirtualBoxImageBuilder(VMImageBuilder):
- """Base image builder for all VirtualBox targets."""
- vm_image_extension = '.vdi'
-
- @classmethod
- def get_target_name(cls):
- """Return the name of the target for an image builder."""
- if getattr(cls, 'architecture', None):
- return 'virtualbox-' + cls.architecture
-
- return None
-
- def create_vm_file(self, image_file, vm_file):
- """Create a VM file from image file."""
- try:
- os.remove(vm_file)
- except FileNotFoundError:
- pass
-
- library.run(['VBoxManage', 'convertdd', image_file, vm_file])
diff --git a/freedommaker/builders/virtualbox_amd64.py b/freedommaker/builders/virtualbox_amd64.py
deleted file mode 100644
index 90609e0..0000000
--- a/freedommaker/builders/virtualbox_amd64.py
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# This file is part of Freedom Maker.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-"""
-Worker class to build VirtualBox amd64 images.
-"""
-
-from .virtualbox import VirtualBoxImageBuilder
-
-
-class VirtualBoxAmd64ImageBuilder(VirtualBoxImageBuilder):
- """Image builder for all VirtualBox amd64 targets."""
- architecture = 'amd64'
- kernel_flavor = 'amd64'
diff --git a/freedommaker/builders/virtualbox_i386.py b/freedommaker/builders/virtualbox_i386.py
deleted file mode 100644
index a7846a7..0000000
--- a/freedommaker/builders/virtualbox_i386.py
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# This file is part of Freedom Maker.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-"""
-Worker class to build VirtualBox i386 images.
-"""
-
-from .virtualbox import VirtualBoxImageBuilder
-
-
-class VirtualBoxI386ImageBuilder(VirtualBoxImageBuilder):
- """Image builder for all VirtualBox i386 targets."""
- architecture = 'i386'
- kernel_flavor = '686'
Make sure to replace stable (strech) for "nabia" to the corresponding CODENAME on further releases
Also unstable to the corresponding dev release, aramo for nabia.
diff --git a/freedommaker/tests/test_library.py b/freedommaker/tests/test_library.py
index daf34c2..b58fc6d 100644
--- a/freedommaker/tests/test_library.py
+++ b/freedommaker/tests/test_library.py
@@ -438,13 +438,13 @@ modify x x
@patch('freedommaker.library.run')
def test_qemu_debootstrap(self, run):
"""Test debootstrapping using qemu."""
- library.qemu_debootstrap(self.state, 'i386', 'stretch', 'minbase',
- ['main', 'contrib'], ['p1', 'p2'],
- 'http://deb.debian.org/debian')
+ library.qemu_debootstrap(self.state, 'amd64', 'nabia', 'minbase',
+ ['main'], ['p1', 'p2'],
+ 'http://archive.trisquel.org/trisquel')
run.assert_called_with([
- 'qemu-debootstrap', '--arch=i386', '--variant=minbase',
- '--components=main,contrib', '--include=p1,p2', 'stretch',
- self.state['mount_point'], 'http://deb.debian.org/debian'
+ 'qemu-debootstrap', '--arch=amd64', '--variant=minbase',
+ '--components=main', '--include=p1,p2', 'nabia',
+ self.state['mount_point'], 'http://archive.trisquel.org/trisquel'
])
self.assertEqual(
@@ -566,31 +566,37 @@ ff02::2 ip6-allrouters
sources_path = self.state['mount_point'] + '/etc/apt/sources.list'
stable_content = '''
-deb http://deb.debian.org/debian stretch main
-deb-src http://deb.debian.org/debian stretch main
+deb http://archive.trisquel.org/trisquel nabia main
+deb-src http://archive.trisquel.org/trisquel nabia main
-deb http://deb.debian.org/debian stretch-updates main
-deb-src http://deb.debian.org/debian stretch-updates main
+deb http://archive.trisquel.org/trisquel nabia-updates main
+deb-src http://archive.trisquel.org/trisquel nabia-updates main
-deb http://security.debian.org/debian-security/ stretch/updates main
-deb-src http://security.debian.org/debian-security/ stretch/updates main
+deb http://archive.trisquel.org/trisquel nabia-security main
+deb-src http://archive.trisquel.org/trisquel nabia-security main
+
+#deb http://archive.trisquel.org/trisquel nabia-backports main
+#deb-src http://archive.trisquel.org/trisquel nabia-backports main
'''
with self.assert_file_change(sources_path, None, stable_content):
- library.setup_apt(self.state, 'http://deb.debian.org/debian',
- 'stretch', ['main'])
+ library.setup_apt(self.state, 'http://archive.trisquel.org/trisquel',
+ 'nabia', ['main'])
self.assertEqual(run.call_args_list, [
call(self.state, ['apt-get', 'update']),
call(self.state, ['apt-get', 'clean'])
])
- unstable_content = '''
-deb http://ftp.us.debian.org/debian unstable main contrib non-free
-deb-src http://ftp.us.debian.org/debian unstable main contrib non-free
+ aramo_content = '''
+deb http://archive.trisquel.org/trisquel aramo main
+deb-src http://archive.trisquel.org/trisquel aramo main
+
+deb http://archive.trisquel.org/trisquel aramo-updates main
+deb-src http://archive.trisquel.org/trisquel aramo-updates main
'''
- with self.assert_file_change(sources_path, None, unstable_content):
- library.setup_apt(self.state, 'http://ftp.us.debian.org/debian',
- 'unstable', ['main', 'contrib', 'non-free'])
+ with self.assert_file_change(sources_path, None, aramo_content):
+ library.setup_apt(self.state, 'http://archive.trisquel.org/trisquel',
+ 'aramo', ['main'])
@patch('freedommaker.library.run_in_chroot')
def test_setup_flash_kernel(self, run):
diff --git a/freedommaker/builders/a20.py b/freedommaker/builders/a20.py
index f543ae5..7f13c6d 100644
--- a/freedommaker/builders/a20.py
+++ b/freedommaker/builders/a20.py
@@ -25,7 +25,7 @@ from .arm import ARMImageBuilder
class A20ImageBuilder(ARMImageBuilder):
"""Base image builder for all Allwinner A20 board based targets."""
architecture = 'armhf'
- kernel_flavor = 'armmp-lpae'
+ kernel_flavor = 'generic'
boot_offset = '1mib'
u_boot_path = None
diff --git a/freedommaker/builders/a64.py b/freedommaker/builders/a64.py
index d0e59ec..00b1259 100644
--- a/freedommaker/builders/a64.py
+++ b/freedommaker/builders/a64.py
@@ -27,7 +27,7 @@ from .arm import ARMImageBuilder
class A64ImageBuilder(ARMImageBuilder):
"""Image builder for all Allwinner A64 board targets."""
architecture = 'arm64'
- kernel_flavor = 'arm64'
+ kernel_flavor = 'generic'
boot_offset = '1mib'
u_boot_target = None
diff --git a/freedommaker/builders/amd64.py b/freedommaker/builders/amd64.py
index 89c3862..cd15b36 100644
--- a/freedommaker/builders/amd64.py
+++ b/freedommaker/builders/amd64.py
@@ -24,4 +24,4 @@ from .amd_intel import AMDIntelImageBuilder
class AMD64ImageBuilder(AMDIntelImageBuilder):
"""Image builder for all amd64 targets."""
architecture = 'amd64'
- kernel_flavor = 'amd64'
+ kernel_flavor = 'generic'
diff --git a/freedommaker/builders/beaglebone.py b/freedommaker/builders/beaglebone.py
index 99a2d40..aca4a78 100644
--- a/freedommaker/builders/beaglebone.py
+++ b/freedommaker/builders/beaglebone.py
@@ -26,7 +26,7 @@ class BeagleBoneImageBuilder(ARMImageBuilder):
"""Image builder for BeagleBone target."""
architecture = 'armhf'
machine = 'beaglebone'
- kernel_flavor = 'armmp'
+ kernel_flavor = 'generic'
boot_offset = '2mib'
flash_kernel_name = 'TI AM335x BeagleBone Black'
flash_kernel_options = 'console=ttyO0'
diff --git a/freedommaker/builders/i386.py b/freedommaker/builders/i386.py
index df9d9a0..bf23c52 100644
--- a/freedommaker/builders/i386.py
+++ b/freedommaker/builders/i386.py
@@ -24,4 +24,4 @@ from .amd_intel import AMDIntelImageBuilder
class I386ImageBuilder(AMDIntelImageBuilder):
"""Image builder for all i386 targets."""
architecture = 'i386'
- kernel_flavor = '686'
+ kernel_flavor = 'generic'
diff --git a/freedommaker/builders/qemu_amd64.py b/freedommaker/builders/qemu_amd64.py
index 761a369..120caae 100644
--- a/freedommaker/builders/qemu_amd64.py
+++ b/freedommaker/builders/qemu_amd64.py
@@ -24,4 +24,4 @@ from .qemu import QemuImageBuilder
class QemuAmd64ImageBuilder(QemuImageBuilder):
"""Image builder for all Qemu amd64 targets."""
architecture = 'amd64'
- kernel_flavor = 'amd64'
+ kernel_flavor = 'generic'
diff --git a/freedommaker/builders/qemu_i386.py b/freedommaker/builders/qemu_i386.py
index 6b478b2..e8bca34 100644
--- a/freedommaker/builders/qemu_i386.py
+++ b/freedommaker/builders/qemu_i386.py
@@ -24,4 +24,4 @@ from .qemu import QemuImageBuilder
class QemuI386ImageBuilder(QemuImageBuilder):
"""Image builder for all Qemu i386 targets."""
architecture = 'i386'
- kernel_flavor = '686'
+ kernel_flavor = 'generic'
......@@ -74,6 +74,12 @@
border-width: 1px 1px 1px 0px;
}
/* fix no cursor on dark theme*/
.caja-desktop.view .entry,
.caja-navigation-window .view .entry {
caret-color: #000;
}
/****************
* Mate-Panel *
****************/
......
#ifndef _COMMON_H
#define _COMMON_H
#include<iostream>
#include<string>
#include<string.h>
#include<fstream>
#include<unistd.h>
#include<sstream>
#include<vector>
#include<map>
#include<algorithm>
#include<sstream>
using namespace std;
typedef pair <string, string> STRING_STRING_PAIR;
typedef vector<STRING_STRING_PAIR> PAIR_VECTOR;
/** typedef struct _MODEL_DICT_ */
typedef struct _MODEL_DICT_ MODEL_DICT;
/** typedef map< string, MODEL_DICT> */
typedef map< string, MODEL_DICT> MODEL_DICT_MAP;
/** typedef vector <string> */
typedef vector <string> STRING_VECTOR;
/** typedef map<string, string> */
typedef map<string, string> STRING_PAIR;
/** @struct _MODEL_DICT_
* @brief This structure contains models.dat info
* @var _MODEL_DICT_::s_tech_class
* Member 's_tech_class' contains tech_class info
* @var _MODEL_DICT_::s_sub_class
* Member 's_sub_class' contains sub_class info
* @var _MODEL_DICT_::s_family_class
* Member 's_family_class' contains family_class info
* @var _MODEL_DICT_::s_normal_model_name
* Member 's_normal_model_name' contains update model_name info
* @var _MODEL_DICT_::s_plugin
* Member 's_plugin' contains plugin info
* @var _MODEL_DICT_::s_plugin_reason
* Member 's_plugin_reason' contains plugin-reason info
* @var _MODEL_DICT_::model_variants
* Member 'model_variants' contains vector info of model variants
*/
struct _MODEL_DICT_
{
string s_tech_class;
string s_sub_class;
string s_family_class;
string s_normal_model_name;
int s_plugin;
int s_plugin_reason;
STRING_VECTOR model_variants;
};
#endif