diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..2db2aed --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,12 @@ +version: 2 +jobs: + build: + docker: + - image: eyedeekay/builders + + steps: + - checkout + + - run: + name: Build + command: make zip diff --git a/Makefile b/Makefile index d387975..9e0e04c 100644 --- a/Makefile +++ b/Makefile @@ -1,31 +1,33 @@ +PREFIX:=/usr + default: zip install: uninstall - mkdir -p /usr/share/webext/i2psetproxy.js@eyedeekay.github.io \ - /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ - cp -rv options /usr/share/webext/i2psetproxy.js@eyedeekay.github.io/options - cp -rv icons /usr/share/webext/i2psetproxy.js@eyedeekay.github.io/icons - cp -rv _locales /usr/share/webext/i2psetproxy.js@eyedeekay.github.io/_locales - cp background.js /usr/share/webext/i2psetproxy.js@eyedeekay.github.io - cp proxy.js /usr/share/webext/i2psetproxy.js@eyedeekay.github.io - cp info.js /usr/share/webext/i2psetproxy.js@eyedeekay.github.io - cp content.js /usr/share/webext/i2psetproxy.js@eyedeekay.github.io - cp info.css /usr/share/webext/i2psetproxy.js@eyedeekay.github.io - cp window.html /usr/share/webext/i2psetproxy.js@eyedeekay.github.io - cp manifest.json /usr/share/webext/i2psetproxy.js@eyedeekay.github.io/ - cp README.md /usr/share/webext/i2psetproxy.js@eyedeekay.github.io - cp LICENSE /usr/share/webext/i2psetproxy.js@eyedeekay.github.io - ln -sf /usr/share/webext/i2psetproxy.js@eyedeekay.github.io \ - /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/i2psetproxy.js@eyedeekay.github.io + install -d $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io \ + $(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ + install -d options $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io/options + install -d icons $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io/icons + install -d _locales $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io/_locales + install background.js $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io + install proxy.js $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io + install info.js $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io + install content.js $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io + install info.css $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io + install window.html $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io + install manifest.json $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io/ + install README.md $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io + install LICENSE $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io + ln -sf $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io \ + $(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/i2psetproxy.js@eyedeekay.github.io uninstall: - rm -rf /usr/share/webext/i2psetproxy.js@eyedeekay.github.io \ - /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/i2psetproxy.js@eyedeekay.github.io + rm -rf $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io \ + $(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/i2psetproxy.js@eyedeekay.github.io clobber: rm -f ../i2psetproxy.js.zip ../i2p_proxy*.xpi -VERSION=1.28-sp +VERSION=1.27 xpi: mv ~/Downloads/i2p_proxy-$(VERSION)-an+fx.xpi ../i2psetproxy.js@eyedeekay.github.io.xpi @@ -45,7 +47,7 @@ profile-install: cp ./i2psetproxy.js@eyedeekay.github.io.xpi $(HOME)/.mozilla/firefox/.firefox.profile.i2p.default/extensions to-profile: - cp ./i2psetproxy.js@eyedeekay.github.io.xpi /usr/local/lib/firefox.profile.i2p/firefox.profile.i2p/extensions/ + cp ./i2psetproxy.js@eyedeekay.github.io.xpi $(PREFIX)/local/lib/firefox.profile.i2p/firefox.profile.i2p/extensions/ pi: profile-install @@ -63,4 +65,12 @@ libpolyfill: wget -O chromium/browser-polyfill.min.js https://unpkg.com/webextension-polyfill/dist/browser-polyfill.min.js fmt: - find . -name '*.js' -exec js-beautify -r -f {} \; + find . -name '*.js' -exec jsfmt -w {} \; + +deborig: + rm -rfv ../i2psetproxy.js-$(VERSION) + cp -rv . ../i2psetproxy.js-$(VERSION) + tar --exclude='./.git' -cvzf ../i2psetproxy.js-$(VERSION).tar.gz . + +deb: deborig + cd ../i2psetproxy.js-$(VERSION) && debuild -us -uc -rfakeroot diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..aff328c --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,8 @@ +i2psetproxy.js for Debian + +Please edit this to provide information specific to +this i2psetproxy.js Debian package. + + (Automatically generated by debmake Version 4.3.1) + + -- idk Thu, 01 Aug 2019 00:32:39 -0400 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3e726a1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +i2psetproxy.js (1.27-1) UNRELEASED; urgency=low + + * Initial release. Closes: #nnnn + + + -- idk Thu, 01 Aug 2019 00:32:39 -0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9654a9f --- /dev/null +++ b/debian/control @@ -0,0 +1,17 @@ +Source: i2psetproxy.js +Section: unknown +Priority: optional +Maintainer: idk +Build-Depends: debhelper (>=11~) +Standards-Version: 4.1.4 +Homepage: https://github.com/eyedeekay/i2psetproxy.js + +Package: i2psetproxy.js +Architecture: any +Multi-Arch: foreign +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: Plugin for configuring i2p in Firefox and Chromium + This is a webextension which safely configures a Browser on the + Debian operating system to use I2P. i2psetproxy.js users form + their own anonymity set, like TAILS users or Brave users do on + the Tor network. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a31321b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,66 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: i2psetproxy.js +Source: https://github.com/eyedeekay/i2psetproxy.js +# +# Please double check copyright with the licensecheck(1) command. + +Files: .gitignore + Makefile + README.md + _locales/en/messages.json + background.js + content.js + experiments/i2ptab.md + experiments/tunblink.md + i2psetproxy.js.png + i2psetproxy.js@eyedeekay.github.io.xpi + icons/toopie.png + info.css + info.js + manifest.json + options/options.css + options/options.js + privacy.js + proxy.js +Copyright: MIT +License: MIT + +Files: chromium/browser-polyfill.min.js +Copyright: __NO_COPYRIGHT__ in: chromium/browser-polyfill.min.js +License: MPL-2.0 + 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/. + +#---------------------------------------------------------------------------- +# xml and html files (skipped): +# window.html +# options/options.html + +#---------------------------------------------------------------------------- +# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following +# license/copyright files. + +#---------------------------------------------------------------------------- +# License file: LICENSE + MIT License + . + Copyright (c) 2019 idk + . + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..4a97dfa --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +# You must remove unused comment lines for the released package. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f3a66d5 --- /dev/null +++ b/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_install: + install -d $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io \ + $$(pwd)/debian/i2psetproxy.js/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ + install -d options $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io/options + install -d icons $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io/icons + install -d _locales $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io/_locales + install background.js $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io + install proxy.js $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io + install info.js $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io + install content.js $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io + install info.css $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io + install window.html $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io + install manifest.json $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io/ + install README.md $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io + install LICENSE $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io + ln -sf $$(pwd)/debian/i2psetproxy.js/usr/share/webext/i2psetproxy.js@eyedeekay.github.io \ + $$(pwd)/debian/i2psetproxy.js/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/i2psetproxy.js@eyedeekay.github.io 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/source/local-options b/debian/source/local-options new file mode 100644 index 0000000..00131ee --- /dev/null +++ b/debian/source/local-options @@ -0,0 +1,2 @@ +#abort-on-upstream-changes +#unapply-patches diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..9e7c0da --- /dev/null +++ b/debian/watch @@ -0,0 +1 @@ +version=3