Date: Wednesday, September 4, 2019 @ 23:07:12 Author: eschwartz Revision: 508122
archrelease: copy trunk to community-any Added: thunderbird-extension-enigmail/repos/community-any/0001-preferences-disable-pEpAutoDownload-by-default.patch (from rev 508121, thunderbird-extension-enigmail/trunk/0001-preferences-disable-pEpAutoDownload-by-default.patch) thunderbird-extension-enigmail/repos/community-any/PKGBUILD (from rev 508121, thunderbird-extension-enigmail/trunk/PKGBUILD) Deleted: thunderbird-extension-enigmail/repos/community-any/0001-preferences-disable-pEpAutoDownload-by-default.patch thunderbird-extension-enigmail/repos/community-any/PKGBUILD -----------------------------------------------------------+ 0001-preferences-disable-pEpAutoDownload-by-default.patch | 54 ++--- PKGBUILD | 123 +++++------- 2 files changed, 88 insertions(+), 89 deletions(-) Deleted: 0001-preferences-disable-pEpAutoDownload-by-default.patch =================================================================== --- 0001-preferences-disable-pEpAutoDownload-by-default.patch 2019-09-04 23:06:53 UTC (rev 508121) +++ 0001-preferences-disable-pEpAutoDownload-by-default.patch 2019-09-04 23:07:12 UTC (rev 508122) @@ -1,27 +0,0 @@ -From 83d412cf08d76fab5e79b6f261c3145372337d5e Mon Sep 17 00:00:00 2001 -From: Eli Schwartz <eschwa...@archlinux.org> -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 - Copied: thunderbird-extension-enigmail/repos/community-any/0001-preferences-disable-pEpAutoDownload-by-default.patch (from rev 508121, thunderbird-extension-enigmail/trunk/0001-preferences-disable-pEpAutoDownload-by-default.patch) =================================================================== --- 0001-preferences-disable-pEpAutoDownload-by-default.patch (rev 0) +++ 0001-preferences-disable-pEpAutoDownload-by-default.patch 2019-09-04 23:07:12 UTC (rev 508122) @@ -0,0 +1,27 @@ +From 83d412cf08d76fab5e79b6f261c3145372337d5e Mon Sep 17 00:00:00 2001 +From: Eli Schwartz <eschwa...@archlinux.org> +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 + Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-09-04 23:06:53 UTC (rev 508121) +++ PKGBUILD 2019-09-04 23:07:12 UTC (rev 508122) @@ -1,62 +0,0 @@ -# Maintainer: Eli Schwartz <eschwa...@archlinux.org> -# Contributor: Daniel Landau <daniel.lan...@iki.fi> -# Contributor: Einhard Leichtfuß <algu...@respiranto.de> -# Contributor: Xyne -# Contributor: David Manouchehri <d...@32t.ca> -# Contributor: Alexander Fehr <pizzapunk gmail com> -# Contributor: Thomas Jost <schnouki schnouki net> -# Contributor: Hinrich Harms <arch hinrich de> - -pkgname=thunderbird-extension-enigmail -pkgver=2.0.12 -pkgrel=1 -pkgdesc="OpenPGP message encryption and authentication for Thunderbird" -arch=('any') -url="https://www.enigmail.net/" -license=('MPL' 'GPL3') -makedepends=('zip' 'python2' 'perl') -replaces=('thunderbird-enigmail') -source=("https://www.enigmail.net/download/source/enigmail-${pkgver}.tar.gz"{,.asc} - "0001-preferences-disable-pEpAutoDownload-by-default.patch") -sha512sums=('f9f4f1ed4c7244280be2fade0ccb2f4b5e7075dd60f53953478ffb84012e687b7ac7bad489c0b0cb2d8937916c783fe9e1841174bf1e5bdb9ab8cb58b415db74' - 'SKIP' - '4307c7b6bce7febba7a8186467c3bc93ec3428e1cd75cddad659e4d4a71832f1c8d46e4c811da38ff1dc38b1961a82bd84e7c90b7c63ce080be49ce69571c016') -b2sums=('3db6f595c14e02cfdc71bebc763d05926dc6e0abf4668d132fd0ce43204e681de5fce45db752c4f49b231bd7e217b75c0f23d4a7e204fa9a3a51f1c8097fb63d' - 'SKIP' - 'feb16236a5e5f19a7b7b3259d204732e8a9a5fee78726c5bae67d7a998c10edc89d2131acaa44c6d524ab346670b8b969e0ffd5b8f3fafe0b5b7ae90a1984764') -validpgpkeys=('4F9F89F5505AC1D1A260631CDB1187B9DD5F693B') # Patrick Brunschwig <patr...@enigmail.net> - -prepare() { - cd "${srcdir}"/enigmail - - # Using vendor settings via /usr/lib/thunderbird/defaults/preferences/enigmail.js - # does not seem to work. - patch -p1 -i ../0001-preferences-disable-pEpAutoDownload-by-default.patch -} - -build() { - cd "${srcdir}"/enigmail - - ./configure - make -j1 # fails with -j greater than 1 -} - -package() { - depends=('thunderbird' 'gnupg') - cd "${srcdir}"/enigmail - - if [[ -f package/install.rdf ]]; then - _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/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 '<em:unpack>true</em:unpack>' 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 -} Copied: thunderbird-extension-enigmail/repos/community-any/PKGBUILD (from rev 508121, thunderbird-extension-enigmail/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-09-04 23:07:12 UTC (rev 508122) @@ -0,0 +1,61 @@ +# Maintainer: Eli Schwartz <eschwa...@archlinux.org> +# Contributor: Daniel Landau <daniel.lan...@iki.fi> +# Contributor: Einhard Leichtfuß <algu...@respiranto.de> +# Contributor: Xyne +# Contributor: David Manouchehri <d...@32t.ca> +# Contributor: Alexander Fehr <pizzapunk gmail com> +# Contributor: Thomas Jost <schnouki schnouki net> +# Contributor: Hinrich Harms <arch hinrich de> + +pkgname=thunderbird-extension-enigmail +pkgver=2.1.2 +pkgrel=1 +pkgdesc="OpenPGP message encryption and authentication for Thunderbird" +arch=('any') +url="https://www.enigmail.net/" +license=('MPL' 'GPL3') +makedepends=('zip' 'python2' 'perl') +replaces=('thunderbird-enigmail') +source=("https://www.enigmail.net/download/source/enigmail-${pkgver}.tar.gz"{,.asc} + "0001-preferences-disable-pEpAutoDownload-by-default.patch") +sha512sums=('c76dcdb0561ee6e94ab19c2ed8cddac71297ffc9ad14ac3d37cd8966cc4111cbc74d1b01ccaa044acef699de27a2cc7ba1ade7a31db8ab930095722ffc62be93' + 'SKIP' + '4307c7b6bce7febba7a8186467c3bc93ec3428e1cd75cddad659e4d4a71832f1c8d46e4c811da38ff1dc38b1961a82bd84e7c90b7c63ce080be49ce69571c016') +b2sums=('335c7569e2c46dde645c8992cd7017dc57a0174e109ddada2719cb60de010c8ca3691c1d31e8435986b459936bd1602153e462fb5f93d7ffd1244ea867d8d3bc' + 'SKIP' + 'feb16236a5e5f19a7b7b3259d204732e8a9a5fee78726c5bae67d7a998c10edc89d2131acaa44c6d524ab346670b8b969e0ffd5b8f3fafe0b5b7ae90a1984764') +validpgpkeys=('4F9F89F5505AC1D1A260631CDB1187B9DD5F693B') # Patrick Brunschwig <patr...@enigmail.net> + +prepare() { + cd "${srcdir}"/enigmail + + # Using vendor settings via /usr/lib/thunderbird/defaults/preferences/enigmail.js + # does not seem to work. + patch -p1 -i ../0001-preferences-disable-pEpAutoDownload-by-default.patch +} + +build() { + cd "${srcdir}"/enigmail + + ./configure + make -j1 # fails with -j greater than 1 +} + +package() { + depends=('thunderbird>=68' 'gnupg') + cd "${srcdir}"/enigmail + + if ! _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' build/dist/install.rdf 2>/dev/null)" || + [[ -z $_extension_id ]]; then + _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 '<em:unpack>true</em:unpack>' 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 +}