From d4264d7d66402e7643bd608d4a042d8276013b59 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Wed, 28 Jan 2015 17:49:34 +0100 Subject: [PATCH] Added helper for GNU IceCat --- helpers/DATA/icecat/aboutHome.xhtml | 117 +++++++ helpers/DATA/icecat/aboutIceCat.xhtml | 313 ++++++++++++++++++ helpers/DATA/icecat/bookmarks.html.in | 23 ++ .../searchplugins/trisquel-packages.xml | 9 + .../DATA/icecat/searchplugins/trisquel.xml | 9 + helpers/make-icecat | 64 ++++ 6 files changed, 535 insertions(+) create mode 100644 helpers/DATA/icecat/aboutHome.xhtml create mode 100644 helpers/DATA/icecat/aboutIceCat.xhtml create mode 100644 helpers/DATA/icecat/bookmarks.html.in create mode 100644 helpers/DATA/icecat/searchplugins/trisquel-packages.xml create mode 100644 helpers/DATA/icecat/searchplugins/trisquel.xml create mode 100644 helpers/make-icecat diff --git a/helpers/DATA/icecat/aboutHome.xhtml b/helpers/DATA/icecat/aboutHome.xhtml new file mode 100644 index 0000000..f1eae07 --- /dev/null +++ b/helpers/DATA/icecat/aboutHome.xhtml @@ -0,0 +1,117 @@ + + + + + + %htmlDTD; + + %globalDTD; + + %aboutHomeDTD; + + %browserDTD; +]> + + + + &abouthome.pageTitle; + + + + + + + + + + + +
+
+ + +
+
+ + + +
+
+ +
+ +
+ + + + + + diff --git a/helpers/DATA/icecat/aboutIceCat.xhtml b/helpers/DATA/icecat/aboutIceCat.xhtml new file mode 100644 index 0000000..34ddaaa --- /dev/null +++ b/helpers/DATA/icecat/aboutIceCat.xhtml @@ -0,0 +1,313 @@ + + + + + + %htmlDTD; + + %globalDTD; + + %aboutHomeDTD; + + %browserDTD; +]> + + + + &abouthome.pageTitle; + + + + + + + + + + + + +
+
+ + +
+
+
+ + +
+
+ +
+ +
+ +
+
+
+

Enabled privacy features:

+

The GNU IceCat web browser protects your freedom and your privacy!

+
+
+
+ +
+ + + + + + diff --git a/helpers/DATA/icecat/bookmarks.html.in b/helpers/DATA/icecat/bookmarks.html.in new file mode 100644 index 0000000..9767e59 --- /dev/null +++ b/helpers/DATA/icecat/bookmarks.html.in @@ -0,0 +1,23 @@ + + + +Bookmarks +

Bookmarks Menu

+ +

+

Bookmarks Toolbar

+
Add bookmarks to this folder to see them displayed on the Bookmarks Toolbar +

+


+
Trisquel GNU/Linux +
Wiki +
Donate +
Store +
+
GNU's not UNIX! +
GNU Planet +
Free Software Foundation +

+

diff --git a/helpers/DATA/icecat/searchplugins/trisquel-packages.xml b/helpers/DATA/icecat/searchplugins/trisquel-packages.xml new file mode 100644 index 0000000..3d336ea --- /dev/null +++ b/helpers/DATA/icecat/searchplugins/trisquel-packages.xml @@ -0,0 +1,9 @@ + +Trisquel Packages +Search packages.trisquel.info +UTF-8 +data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACi0lEQVQ4jY2T3UtTARiH92/0DxR0E10EZTeBF3VhBEqF9EEXUURUpn2AmohNS60oUrRMQ1D86ItKKz+atjmd25w5S82zlXPOqfNsc27nzOPOeboQJlakL/xuXnifi+d9Xx1bLEVZxTHhxzjsRZJXkn3dVob9gQhp+d1kFhs5rv9C6s1ufnjEjQDHhJ+bNXbOlJsprHfwyxdMAgrrHbzvcxONxXF7F6l47eRUaR+qqq4BWgwCO85+5KjeyMm7Jraf62DnhU5aDZMA3KodJByR0DSNmjdDCFML7L/Wy4IYQReNxUm52oXB7sEzG6Lb5sEx7uNgXi8pOT04JuYwO308bB3mrclNfbuTFoNAWoGJmLSCzusPcij3M6GlGJUvhzDYpymuH6Tvq5cDuX0cKzHjW1jCMxtk1DWPecRLZqkFfcPwmoNgOMrhgl5m5sJJu2UNVqZnRY7oLaSXWDlRZuFGjZ3LlVYOFpg5c6+fxVB0XeLjV07OP7LwosfFs7YxGjvGsI3Nkl5iJTW/nz3Zvey+1Mm+rA7y6uyEI9LGNWqahlOY59Ogh1HXPAA51Va2ne4gv86GazqQlPhn/fMOFCXB3qxOMu+YCASXud80RNFzC7Yx/9YAYijKrotd1LZP8OTtKG6viCSvcL16AGF6cXNATFohJbubqnffefruG+M/51FVlWaDQE3b+OYAgOyqQTKKTATEZT6YXQieAOXNIzR2Tf4N0DQNVVVZXV1FURQURcHrF8m4beTsgwFaewTKm0c4qjcy5RNJJBJJoTpN04jH40QiEUKhEKIoJuOemuFBs40rFWbuN9kYFzwEg0HC4TCSJK3/QiKRQJZlZFkmHo//N7IsI0kSiqKgaRq/AbKDgxgo7zYPAAAAAElFTkSuQmCC +http://packages.trisquel.info/ + + + diff --git a/helpers/DATA/icecat/searchplugins/trisquel.xml b/helpers/DATA/icecat/searchplugins/trisquel.xml new file mode 100644 index 0000000..610d8a9 --- /dev/null +++ b/helpers/DATA/icecat/searchplugins/trisquel.xml @@ -0,0 +1,9 @@ + +Trisquel +Trisquel GNU/Linux +UTF-8 +data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACi0lEQVQ4jY2T3UtTARiH92/0DxR0E10EZTeBF3VhBEqF9EEXUURUpn2AmohNS60oUrRMQ1D86ItKKz+atjmd25w5S82zlXPOqfNsc27nzOPOeboQJlakL/xuXnifi+d9Xx1bLEVZxTHhxzjsRZJXkn3dVob9gQhp+d1kFhs5rv9C6s1ufnjEjQDHhJ+bNXbOlJsprHfwyxdMAgrrHbzvcxONxXF7F6l47eRUaR+qqq4BWgwCO85+5KjeyMm7Jraf62DnhU5aDZMA3KodJByR0DSNmjdDCFML7L/Wy4IYQReNxUm52oXB7sEzG6Lb5sEx7uNgXi8pOT04JuYwO308bB3mrclNfbuTFoNAWoGJmLSCzusPcij3M6GlGJUvhzDYpymuH6Tvq5cDuX0cKzHjW1jCMxtk1DWPecRLZqkFfcPwmoNgOMrhgl5m5sJJu2UNVqZnRY7oLaSXWDlRZuFGjZ3LlVYOFpg5c6+fxVB0XeLjV07OP7LwosfFs7YxGjvGsI3Nkl5iJTW/nz3Zvey+1Mm+rA7y6uyEI9LGNWqahlOY59Ogh1HXPAA51Va2ne4gv86GazqQlPhn/fMOFCXB3qxOMu+YCASXud80RNFzC7Yx/9YAYijKrotd1LZP8OTtKG6viCSvcL16AGF6cXNATFohJbubqnffefruG+M/51FVlWaDQE3b+OYAgOyqQTKKTATEZT6YXQieAOXNIzR2Tf4N0DQNVVVZXV1FURQURcHrF8m4beTsgwFaewTKm0c4qjcy5RNJJBJJoTpN04jH40QiEUKhEKIoJuOemuFBs40rFWbuN9kYFzwEg0HC4TCSJK3/QiKRQJZlZFkmHo//N7IsI0kSiqKgaRq/AbKDgxgo7zYPAAAAAElFTkSuQmCC + + + + diff --git a/helpers/make-icecat b/helpers/make-icecat new file mode 100644 index 0000000..7e91bf0 --- /dev/null +++ b/helpers/make-icecat @@ -0,0 +1,64 @@ +#!/bin/sh +# +# Copyright (C) 2015 Ruben Rodriguez +# +# 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 2 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, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +VERSION=1 +EXTERNAL='deb-src http://devel.trisquel.info/icecat/repo/ ./' +SIGNKEY="D7E04784" + +. ./config + +ICEATVERSION=$(head -n1 debian/changelog |sed 's/.*(//; s/).*//') + +cat << EOF >> browser/app/profile/icecat.js +// Preferences for the Get Add-ons panel +pref ("extensions.webservice.discoverURL", "https://trisquel.info/browser_plain"); +pref ("extensions.getAddons.search.url", "https://trisquel.info/browser_plain"); + +// PFS url +pref("pfs.datasource.url", "http://trisquel.info/sites/pfs.php?mime=%PLUGIN_MIMETYPE%"); +pref("pfs.filehint.url", "http://trisquel.info/sites/pfs.php?mime=%PLUGIN_MIMETYPE%"); + +// I'm feeling Ducky. +pref("keyword.URL", "https://duckduckgo.com/html?t=trisquel&q=!+"); +pref("browser.search.defaultenginename", "DuckDuckGo"); +pref("browser.search.order.extra.duckduckgo", "DuckDuckGo"); +EOF + +find . -type f |grep duckduckgo |xargs sed -i '/value/s/gnu/trisquel/' + +cat << EOF > debian/distribution.ini +[Global] +id=trisquel +version=$ICEATVERSION +about=IceCat for Trisquel GNU/Linux + +[Preferences] +app.distributor = "trisquel" +app.distributor.channel = "trisquel" +app.partner.ubuntu = "trisquel" +EOF + +cp $DATA/searchplugins/* debian/searchplugins +cp $DATA/aboutIceCat.xhtml extensions/gnu/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml +cp $DATA/bookmarks.html.in browser/locales/generic/profile/bookmarks.html.in +cp $DATA/aboutHome.xhtml browser/base/content/abouthome/aboutHome.xhtml + +changelog "Customized for Trisquel" + +compile