From 641fc95383be633859e0c4cd1a22b95b3ef10c79 Mon Sep 17 00:00:00 2001 From: Joseph Benden Date: Thu, 18 Jul 2019 00:10:48 +0000 Subject: testing/thunderbird: new aport https://www.thunderbird.net/ Thunderbird email client with package for GPG encrypted email (Enigmail). Signed-off-by: Joseph Benden --- ...rences-disable-pEpAutoDownload-by-default.patch | 27 +++++++++++++++ testing/thunderbird-extension-enigmail/APKBUILD | 40 ++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 testing/thunderbird-extension-enigmail/0001-preferences-disable-pEpAutoDownload-by-default.patch create mode 100644 testing/thunderbird-extension-enigmail/APKBUILD (limited to 'testing/thunderbird-extension-enigmail') diff --git a/testing/thunderbird-extension-enigmail/0001-preferences-disable-pEpAutoDownload-by-default.patch b/testing/thunderbird-extension-enigmail/0001-preferences-disable-pEpAutoDownload-by-default.patch new file mode 100644 index 0000000000..afc10a9d67 --- /dev/null +++ b/testing/thunderbird-extension-enigmail/0001-preferences-disable-pEpAutoDownload-by-default.patch @@ -0,0 +1,27 @@ +From 83d412cf08d76fab5e79b6f261c3145372337d5e Mon Sep 17 00:00:00 2001 +From: Eli Schwartz +Date: Thu, 10 Jan 2019 11:38:38 -0500 +Subject: [PATCH] preferences: disable pEpAutoDownload by default + +Distributions should not automatically download this untrusted code; +should be opt-in by users or be packaged separately. +--- + package/prefs/defaultPrefs.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/package/prefs/defaultPrefs.js b/package/prefs/defaultPrefs.js +index d5ca1249..f8c10a47 100755 +--- a/package/prefs/defaultPrefs.js ++++ b/package/prefs/defaultPrefs.js +@@ -204,7 +204,7 @@ pref("extensions.enigmail.warnDownloadContactKeys", true); + pref("extensions.enigmail.wrapHtmlBeforeSend", true); + + // automatically download pepmda if it is available (without askin user) +-pref("extensions.enigmail.pEpAutoDownload", true); ++pref("extensions.enigmail.pEpAutoDownload", false); + + // holds the last result of the last check for pEp updates + pref("extensions.enigmail.pEpLastUpdate", 0); +-- +2.20.1 + diff --git a/testing/thunderbird-extension-enigmail/APKBUILD b/testing/thunderbird-extension-enigmail/APKBUILD new file mode 100644 index 0000000000..32eea13f24 --- /dev/null +++ b/testing/thunderbird-extension-enigmail/APKBUILD @@ -0,0 +1,40 @@ +# Maintainer: Joseph Benden + +pkgname=thunderbird-extension-enigmail +pkgver=2.0.12 +pkgrel=0 +pkgdesc="OpenPGP message encryption and authentication for Thunderbird" +url="https://www.enigmail.net/" +arch="noarch" +license="MPL-2.0 AND GPL-3.0-or-later" +depends="thunderbird gnupg" +makedepends="zip python2 perl" +options="!check" +source="https://www.enigmail.net/download/source/enigmail-${pkgver}.tar.gz + 0001-preferences-disable-pEpAutoDownload-by-default.patch" +builddir="${srcdir}/enigmail" + +build() { + ./configure + make -j1 # fails with -j greater than 1 +} + +package() { + if [[ -f package/install.rdf ]]; then + _extension_id="$(sed -n '/.*\(.*\)<\/em:id>.*/{s//\1/p;q}' build/dist/install.rdf)" + else + _extension_id="$(sed -n 's/.*"id": "\(.*\)".*/\1/p' build/dist/manifest.json)" + fi + _extension_dest="${pkgdir}/usr/lib/thunderbird/extensions/${_extension_id}" + # Should this extension be unpacked or not? + if grep -q 'true' build/dist/install.rdf 2>/dev/null; then + install -dm755 "${_extension_dest}" + cp -R build/dist/* "${_extension_dest}" + chmod -R ugo+rX "${_extension_dest}" + else + install -Dm644 build/enigmail-${pkgver}.xpi "${_extension_dest}.xpi" + fi +} + +sha512sums="f9f4f1ed4c7244280be2fade0ccb2f4b5e7075dd60f53953478ffb84012e687b7ac7bad489c0b0cb2d8937916c783fe9e1841174bf1e5bdb9ab8cb58b415db74 enigmail-2.0.12.tar.gz +4307c7b6bce7febba7a8186467c3bc93ec3428e1cd75cddad659e4d4a71832f1c8d46e4c811da38ff1dc38b1961a82bd84e7c90b7c63ce080be49ce69571c016 0001-preferences-disable-pEpAutoDownload-by-default.patch" -- cgit v1.2.3