summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2019-11-23 13:27:44 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2019-11-23 13:35:13 -0500
commitd53c05f2fdd379761902ef810d7a4635ae41d700 (patch)
treeaeff836f6375572da63de3c6454e973efa12cc2c /libre
parent8132834156be317d27fef1b3c66b1193e53c3b99 (diff)
downloadabslibre-d53c05f2fdd379761902ef810d7a4635ae41d700.tar.gz
abslibre-d53c05f2fdd379761902ef810d7a4635ae41d700.tar.bz2
abslibre-d53c05f2fdd379761902ef810d7a4635ae41d700.zip
[icedove-extension-enigmail]: upgrade to v2.1.3 (unpblished)
Diffstat (limited to 'libre')
-rw-r--r--libre/icedove-extension-enigmail/0001-preferences-disable-pEpAutoDownload-by-default.patch25
-rw-r--r--libre/icedove-extension-enigmail/PKGBUILD47
2 files changed, 52 insertions, 20 deletions
diff --git a/libre/icedove-extension-enigmail/0001-preferences-disable-pEpAutoDownload-by-default.patch b/libre/icedove-extension-enigmail/0001-preferences-disable-pEpAutoDownload-by-default.patch
index afc10a9d6..cb4dd1972 100644
--- a/libre/icedove-extension-enigmail/0001-preferences-disable-pEpAutoDownload-by-default.patch
+++ b/libre/icedove-extension-enigmail/0001-preferences-disable-pEpAutoDownload-by-default.patch
@@ -1,18 +1,31 @@
-From 83d412cf08d76fab5e79b6f261c3145372337d5e Mon Sep 17 00:00:00 2001
+From 03993708d4d1fb327f102f45d7aa4e9c4fa8237b Mon Sep 17 00:00:00 2001
From: Eli Schwartz <eschwartz@archlinux.org>
Date: Thu, 10 Jan 2019 11:38:38 -0500
-Subject: [PATCH] preferences: disable pEpAutoDownload by default
+Subject: [PATCH] preferences: disable pEpAutoDownload by default and avoid p=p
Distributions should not automatically download this untrusted code;
should be opt-in by users or be packaged separately.
+
+Additionally, we are an advanced distro and should generally avoid p=p
+in favor of the user's PGP keys. Moreover, p=p is undocumented and seems
+to lead to unintuitive use of the wrong PGP keys in new installations.
---
- package/prefs/defaultPrefs.js | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
+ package/prefs/defaultPrefs.js | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/prefs/defaultPrefs.js b/package/prefs/defaultPrefs.js
-index d5ca1249..f8c10a47 100755
+index d5ca1249..f7ddc864 100755
--- a/package/prefs/defaultPrefs.js
+++ b/package/prefs/defaultPrefs.js
+@@ -14,7 +14,7 @@
+ // 0: force using Enigmail
+ // 1: automatic mode (use pEp if Enigmail and S/MIME are not configured for any identity)
+ // 2: force using pEp
+-pref("extensions.enigmail.juniorMode", 1);
++pref("extensions.enigmail.juniorMode", 0);
+
+ // the last configured Enigmail version
+ pref("extensions.enigmail.configuredVersion", "");
@@ -204,7 +204,7 @@ pref("extensions.enigmail.warnDownloadContactKeys", true);
pref("extensions.enigmail.wrapHtmlBeforeSend", true);
@@ -23,5 +36,5 @@ index d5ca1249..f8c10a47 100755
// holds the last result of the last check for pEp updates
pref("extensions.enigmail.pEpLastUpdate", 0);
--
-2.20.1
+2.23.0
diff --git a/libre/icedove-extension-enigmail/PKGBUILD b/libre/icedove-extension-enigmail/PKGBUILD
index 974f23652..fde4788f8 100644
--- a/libre/icedove-extension-enigmail/PKGBUILD
+++ b/libre/icedove-extension-enigmail/PKGBUILD
@@ -8,12 +8,20 @@
# Contributor (Arch): Hinrich Harms <arch hinrich de>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+# parabola changes and rationale:
+# * allow building arch-dependent versioned packages
+# * apply dependency version constraints
+
+
_pkgname=thunderbird-extension-enigmail
pkgname=icedove-extension-enigmail
-pkgver=2.0.9
+_pkgver_x86_64=2.1.3 # this is actually an 'any' package
+_pkgver_i686=2.0.9 # but our different arches do not always roll at the same speed
+_pkgver_armv7h=2.0.9
+eval "pkgver=\$_pkgver_${CARCH}"
pkgrel=1
pkgdesc="OpenPGP message encryption and authentication for Icedove"
-arch=('any')
+arch=('armv7h' 'i686' 'x86_64')
url="https://www.enigmail.net/"
license=('MPL' 'GPL3')
makedepends=('zip' 'python2' 'perl')
@@ -22,11 +30,22 @@ conflicts=($_pkgname)
provides=($_pkgname)
source=("https://www.enigmail.net/download/source/enigmail-${pkgver}.tar.gz"{,.asc}
"0001-preferences-disable-pEpAutoDownload-by-default.patch")
-sha512sums=('2053148b0e5e763dfc1f8decff0fea2a40ebd306e4844440bd9a3ced4e1f7ff2f16bccf72f85e73b7c51b40629489ad125b9bc166558e3b4144038ba45fcb197'
+sha512sums=('270c46c282af9e8770ea509c55b0bc315ce715839b1751aa1a0b1ed8374e7ec93333bf8a6d4112adcbacc526d481ad2b276dc12099c48cc9c22fc8409de8d6d0'
'SKIP'
- '4307c7b6bce7febba7a8186467c3bc93ec3428e1cd75cddad659e4d4a71832f1c8d46e4c811da38ff1dc38b1961a82bd84e7c90b7c63ce080be49ce69571c016')
+ 'baebd963400574db89be747a4419534f945bdc64136d4014656ff98a9615a23984bca724da3f3840670979aab08ce441eee067921e21d0cb216938a20ed785b2')
validpgpkeys=('4F9F89F5505AC1D1A260631CDB1187B9DD5F693B') # Patrick Brunschwig <patrick@enigmail.net>
+
+_version_constraint() # (dep_pkgname)
+{
+ local dep_pkgname=$1
+ local version=$(pacman -S --print-format='%v' ${dep_pkgname} | tail -n 1)
+ version=${version%-*}
+ local version_inc=${version%.*}.$(( ${version##*.} + 1 ))
+
+ echo -n "${dep_pkgname}>=${version}" "${dep_pkgname}<${version_inc}"
+}
+
prepare() {
cd "${srcdir}"/enigmail
@@ -39,26 +58,26 @@ build() {
cd "${srcdir}"/enigmail
./configure
- # https://gitlab.com/enigmail/enigmail/merge_requests/34
- make -j1 XPI_MODULE_VERS=${pkgver} # fails with -j greater than 1
+ make -j1 # fails with -j greater than 1
}
package() {
- depends=('icedove' '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)"
+ depends+=( $(_version_constraint 'icedove') \
+ $(_version_constraint 'gnupg' ) )
+
+ if ! _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' build-tb/dist/install.rdf 2>/dev/null)" ||
+ [[ -z $_extension_id ]]; then
+ _extension_id="$(sed -n 's/.*"id": "\(.*\)".*/\1/p' build-tb/dist/manifest.json)"
fi
_extension_dest="${pkgdir}/usr/lib/icedove/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
+ if grep -q '<em:unpack>true</em:unpack>' build-tb/dist/install.rdf 2>/dev/null; then
install -dm755 "${_extension_dest}"
- cp -R build/dist/* "${_extension_dest}"
+ cp -R build-tb/dist/* "${_extension_dest}"
chmod -R ugo+rX "${_extension_dest}"
else
- install -Dm644 build/enigmail-${pkgver}.xpi "${_extension_dest}.xpi"
+ install -Dm644 build-tb/enigmail-${pkgver}.xpi "${_extension_dest}.xpi"
fi
}