summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-02-05 07:20:36 -0500
committerB Stack <bgstack15@gmail.com>2019-02-05 07:20:36 -0500
commit04c384a3047fd808e35d795efe381c4aca018074 (patch)
treec71e6d5d0d530cd41267b1644a05f6c7105a3be8
parentpalemoon dpkg with customizations (diff)
downloadstackrpms-04c384a3047fd808e35d795efe381c4aca018074.tar.gz
stackrpms-04c384a3047fd808e35d795efe381c4aca018074.tar.bz2
stackrpms-04c384a3047fd808e35d795efe381c4aca018074.zip
add bgstack15 customizations to rpm spec part 1
-rw-r--r--palemoon/bgstack15-prefs.js24
-rw-r--r--palemoon/palemoon.spec17
-rw-r--r--palemoon/small-icons.patch22
3 files changed, 63 insertions, 0 deletions
diff --git a/palemoon/bgstack15-prefs.js b/palemoon/bgstack15-prefs.js
new file mode 100644
index 0000000..ec7ab94
--- /dev/null
+++ b/palemoon/bgstack15-prefs.js
@@ -0,0 +1,24 @@
+// file: /usr/lib/palemoon/browser/defaults/preferences/bgstack15-prefs.js
+// reference:
+// https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig
+pref("browser.backspace_action", 0);
+pref("browser.allTabs.previews", false);
+pref("browser.ctrlTab.previews", false);
+pref("browser.download.useDownloadDir", true);
+pref("browser.newtab.choice", 1);
+pref("browser.newtabpage.storageVersion", 1);
+pref("browser.search.update", false);
+pref("browser.startup.page", 3);
+pref("browser.tabs.closeWindowWithLastTab", false);
+pref("captivedetect.canonicalURL", "http://127.0.0.1:9980");
+pref("extensions.enabledAddons", "%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:28.3.0");
+pref("extensions.shownSelectionUI", true);
+pref("extensions.update.autoUpdateDefault", false);
+pref("general.warnOnAboutConfig", false);
+pref("network.cookie.prefsMigrated", true);
+pref("network.stricttransportsecurity.preloadlist", false);
+pref("privacy.sanitize.migrateFx3Prefs", true);
+pref("security.cert_pinning.enforcement_level", 0);
+pref("services.sync.declinedEngines", "");
+pref("toolkit.telemetry.reportingpolicy.firstRun", false);
+pref("xpinstall.whitelist.add", "");
diff --git a/palemoon/palemoon.spec b/palemoon/palemoon.spec
index 59a0c69..0a8208b 100644
--- a/palemoon/palemoon.spec
+++ b/palemoon/palemoon.spec
@@ -2,6 +2,7 @@
%global dummy_package 0
%global pkgname palemoon
%global prettyname Pale Moon Web Browser
+%global stackrpms_custom 1
# additional repos to get python27 and devtoolset-7
# for el6 and el7: Software Collection;, for x86_64 only
@@ -38,6 +39,10 @@ Source0: https://github.com/MoonchildProductions/UXP/archive/PM%{version}_Releas
Source1: palemoon-mozconfig
Source2: palemoon.desktop
Source3: palemoon-mimeinfo.xml
+%if 0%{stackrpms_custom}
+Source4: bgstack15-prefs.js
+Patch0: small-icons.patch
+%endif
Packager: Bgstack15 <bgstack15@gmail.com>
%if "%{?scl_env}" != ""
@@ -84,6 +89,12 @@ and themes to make the browser truly your own.
%setup -q -n %{tarballdir}
%{__cp} %{SOURCE1} ./.mozconfig
+%if 0%{stackrpms_custom}
+echo please find file browser.xul for the patch -pNUM
+/bin/bash
+%patch0
+%endif
+
%build
%if "%{?scl_env}" != ""
thispwd=$( pwd )
@@ -204,6 +215,12 @@ filelist() {
popd
}
+%if 0%{stackrpms_custom}
+# use /usr/lib hardcoded because that is how palemoon uses it
+%{__install} -Dm0644 %{SOURCE4} \
+ %{buildroot}%{_prefix}/lib/%{pkgname}/browser/defaults/preferences/
+%endif
+
filelist file.lst %{pkgname} usr langpack
%clean
diff --git a/palemoon/small-icons.patch b/palemoon/small-icons.patch
new file mode 100644
index 0000000..fa6017f
--- /dev/null
+++ b/palemoon/small-icons.patch
@@ -0,0 +1,22 @@
+--- UXP-PM28.3.0_Release.orig/application/palemoon/base/content/browser.xul 2019-01-08 11:42:01.000000000 -0500
++++ UXP-PM28.3.0_Release/application/palemoon/base/content/browser.xul 2019-02-04 06:57:38.943983285 -0500
+@@ -355,7 +355,7 @@
+
+ <toolbox id="navigator-toolbox"
+ defaultmode="icons" mode="icons"
+- iconsize="large">
++ iconsize="small">
+ <!-- Menu -->
+ <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
+ defaultset="menubar-items"
+@@ -381,8 +381,8 @@
+ <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
+ toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
+ fullscreentoolbar="true" mode="icons" customizable="true"
+- iconsize="large"
+- defaultset="unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,bookmarks-menu-button,history-menu-button,downloads-button,window-controls"
++ iconsize="small"
++ defaultset="unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,bookmarks-menu-button,history-menu-button,downloads-button,window-controls"
+ context="toolbar-context-menu">
+
+ <toolbaritem id="unified-back-forward-button" class="chromeclass-toolbar-additional"
bgstack15