From 1ea0d7ed97407c8bee75869ea157ad2828b7449a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Mar 2021 17:44:24 +0100 Subject: Adding debian version 7.5.1+dfsg-1. Signed-off-by: Daniel Baumann --- debian/changelog | 10 +++++ debian/control | 29 +++++++++++++ debian/copyright | 49 ++++++++++++++++++++++ .../debian/0001-disable-first-run-page.patch | 31 ++++++++++++++ debian/patches/series | 1 + debian/rules | 28 +++++++++++++ debian/source/format | 1 + debian/watch | 4 ++ debian/webext-foxyproxy.docs | 1 + debian/webext-foxyproxy.links | 2 + 10 files changed, 156 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/patches/debian/0001-disable-first-run-page.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch create mode 100644 debian/webext-foxyproxy.docs create mode 100644 debian/webext-foxyproxy.links diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..2eaeb7d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,10 @@ +foxyproxy-firefox-extension (7.5.1+dfsg-1) sid; urgency=medium + + * Initial upload to sid (Closes: #985147). + * Removed embedded fonts-font-awesome copy and replacing it with symlinks + to use the one from the system. + * Removed ~65MB archived xpi files of previous foxyproxy versions included + in the git repository. + * Adding patch to disable first run page. + + -- Daniel Baumann Sat, 13 Mar 2021 16:38:34 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..713c5c0 --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: foxyproxy-firefox-extension +Section: web +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: + debhelper-compat (= 13), +Rules-Requires-Root: no +Standards-Version: 4.5.1 +Homepage: https://github.com/foxyproxy/firefox-extension +Vcs-Browser: https://git.progress-linux.org/packages/fuchur-extras/foxyproxy-firefox-extension +Vcs-Git: https://git.progress-linux.org/packages/fuchur-extras/foxyproxy-firefox-extension + +Package: webext-foxyproxy +Section: web +Architecture: all +Depends: + fonts-font-awesome, + ${misc:Depends}, +Recommends: + firefox (>= 57) | firefox-esr (>= 57), +Enhances: + firefox, + firefox-esr, +Description: Advanced proxy management for Firefox + FoxyProxy is an advanced proxy management tool that completely replaces + Firefox's limited proxying capabilities. + . + It features automatically switching the internet connection across one or more + proxy servers based on URL patterns. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..5d15531 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,49 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: firefox-extension +Upstream-Contact: Eric Jung +Source: https://github.com/foxyproxy/firefox-extension/releases +Files-excluded: archive, src/styles/fontawesome-*.css, src/styles/fonts/* + +Files: * +Copyright: 2019-2020 Eric Jung +License: GPL-2 + +Files: src/scripts/jscolor-*.js +Copyright: 2010-2015 Jan Odvarko +License: GPL-3 + +Files: debian/* +Copyright: 2021 Daniel Baumann +License: GPL-2 + +License: GPL-2 + 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, version 2 of the License. + . + 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 . + . + The complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +License: GPL-3 + 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, version 3 of the License. + . + 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 . + . + The complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-3 file. diff --git a/debian/patches/debian/0001-disable-first-run-page.patch b/debian/patches/debian/0001-disable-first-run-page.patch new file mode 100644 index 0000000..d259a81 --- /dev/null +++ b/debian/patches/debian/0001-disable-first-run-page.patch @@ -0,0 +1,31 @@ +Author: Daniel Baumann +Description: Silencing first run/update page. + +diff -Naurp foxyproxy-firefox-extension.orig/src/scripts/background.js foxyproxy-firefox-extension/src/scripts/background.js +--- foxyproxy-firefox-extension.orig/src/scripts/background.js 2020-07-29 20:43:31.000000000 +0200 ++++ foxyproxy-firefox-extension/src/scripts/background.js 2021-03-13 17:58:11.959638800 +0100 +@@ -49,17 +49,6 @@ chrome.webRequest.onAuthRequired.addList + chrome.webRequest.onCompleted.addListener(clearPending, {urls: ['*://*/*']}); + chrome.webRequest.onErrorOccurred.addListener(clearPending, {urls: ['*://*/*']}); + +-chrome.runtime.onInstalled.addListener((details) => { // Installs Update Listener +- // reason: install | update | browser_update | shared_module_update +- switch (true) { +- +- case details.reason === 'install': +- case details.reason === 'update' && /^(3\.|4\.|5\.5|5\.6)/.test(details.previousVersion): +- chrome.tabs.create({url: '/about.html?welcome'}); +- break; +- } +-}); +- + // ----------------- User Preference ----------------------- + chrome.storage.local.get(null, result => { + // browserVersion is not used & runtime.getBrowserInfo() is not supported on Chrome +@@ -272,4 +261,4 @@ function clearPending(request) { + } + + delete authPending[request.requestId]; // no error +-} +\ No newline at end of file ++} diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..9aa7e39 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian/0001-disable-first-run-page.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..7064850 --- /dev/null +++ b/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f + +FIREFOX_ID := {ec8030f7-c20a-464f-9b0e-13a3a9e97384} +EXTENSION_ID := foxyproxy@eric.h.jung + +SHELL := sh -e + +%: + dh ${@} + +override_dh_auto_install: + mkdir -p debian/webext-foxyproxy/usr/share/webext + cp -a src debian/webext-foxyproxy/usr/share/webext/foxyproxy + + # fonts-font-awesome + sed -i -e 's|styles/fontawesome-.*.css|styles/font-awesome.min.css|g' debian/webext-foxyproxy/usr/share/webext/foxyproxy/*.html + +execute_before_dh_link: + mkdir -p debian/webext-foxyproxy/usr/share/mozilla/extensions/${FIREFOX_ID} + ln -s /usr/share/webext/foxyproxy debian/webext-foxyproxy/usr/share/mozilla/extensions/${FIREFOX_ID}/${EXTENSION_ID} + +execute_after_dh_missing: + # fonts-font-awesome + @if grep -qs -r 'styles/fontawesome-.*.css' debian/webext-foxyproxy/usr/share/webext/foxyproxy; \ + then \ + echo "E: found remaining references to embedded fonts-font-awesome, aborting."; \ + exit 1; \ + fi diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..5469ff0 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/firefox-extension-$1\.tar\.gz/ \ +dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$// \ +https://github.com/foxyproxy/firefox-extension/releases .*/v?(\d\S+)\.tar\.gz diff --git a/debian/webext-foxyproxy.docs b/debian/webext-foxyproxy.docs new file mode 100644 index 0000000..330eabf --- /dev/null +++ b/debian/webext-foxyproxy.docs @@ -0,0 +1 @@ +pattern-specifications.md diff --git a/debian/webext-foxyproxy.links b/debian/webext-foxyproxy.links new file mode 100644 index 0000000..5e677e0 --- /dev/null +++ b/debian/webext-foxyproxy.links @@ -0,0 +1,2 @@ +/usr/share/fonts-font-awesome/css/font-awesome.min.css /usr/share/webext/foxyproxy/styles/font-awesome.min.css +/usr/share/fonts-font-awesome/fonts /usr/share/webext/foxyproxy/styles/fonts -- cgit v1.2.3