summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2015-07-01 12:54:32 +0000
committerryoon <ryoon@pkgsrc.org>2015-07-01 12:54:32 +0000
commit9e24c8c42f84dc2dbe855e41104b3b15aa8734b7 (patch)
tree518f654775dfa5efa4653eed1698f309e19c9113 /mail
parent259026d02b7e97e6c376f6083dbe0d6caf4c192a (diff)
downloadpkgsrc-9e24c8c42f84dc2dbe855e41104b3b15aa8734b7.tar.gz
Import thunderbird-enigmail-1.8.2 as mail/thunderbird-enigmail.
Enigmail is a security extension to Mozilla Thunderbird and Seamonkey. It integrates the renowned OpenPGP standard provided by GnuPG. Sending and receiving encrypted and digitally signed email gets just simple using Enigmail. This is packaged in pkgsrc-wip by Kamil Rytarowski.
Diffstat (limited to 'mail')
-rw-r--r--mail/thunderbird-enigmail/DESCR5
-rw-r--r--mail/thunderbird-enigmail/Makefile15
-rw-r--r--mail/thunderbird-enigmail/Makefile.common52
-rw-r--r--mail/thunderbird-enigmail/PLIST27
-rw-r--r--mail/thunderbird-enigmail/distinfo6
-rw-r--r--mail/thunderbird-enigmail/patches/patch-ipc_src_Makefile15
6 files changed, 120 insertions, 0 deletions
diff --git a/mail/thunderbird-enigmail/DESCR b/mail/thunderbird-enigmail/DESCR
new file mode 100644
index 00000000000..25563cdf89e
--- /dev/null
+++ b/mail/thunderbird-enigmail/DESCR
@@ -0,0 +1,5 @@
+Enigmail is a security extension to Mozilla Thunderbird and Seamonkey.
+It integrates the renowned OpenPGP standard provided by GnuPG.
+
+Sending and receiving encrypted and digitally signed email gets just
+simple using Enigmail.
diff --git a/mail/thunderbird-enigmail/Makefile b/mail/thunderbird-enigmail/Makefile
new file mode 100644
index 00000000000..e315c6abf0c
--- /dev/null
+++ b/mail/thunderbird-enigmail/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2015/07/01 12:54:32 ryoon Exp $
+
+.include "Makefile.common"
+
+PKGNAME= thunderbird-${DISTNAME}
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= GnuPG support for mail/thunderbird
+
+# Minimal requirements are here: https://www.enigmail.net/download/source.php
+DEPENDS+= thunderbird>=31:../../mail/thunderbird
+
+# Path used during the install stage
+XPIDIR= ${PREFIX}/lib/thunderbird/extensions
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/thunderbird-enigmail/Makefile.common b/mail/thunderbird-enigmail/Makefile.common
new file mode 100644
index 00000000000..5012819dea3
--- /dev/null
+++ b/mail/thunderbird-enigmail/Makefile.common
@@ -0,0 +1,52 @@
+# $NetBSD: Makefile.common,v 1.1 2015/07/01 12:54:32 ryoon Exp $
+# used by mail/thunderbird-enigmail/Makefile
+# used by mail/seamonkey-enigmail/Makefile
+
+DISTNAME= enigmail-1.8.2
+CATEGORIES= mail security
+MASTER_SITES= http://www.mozilla-enigmail.org/download/source/
+
+HOMEPAGE= https://www.enigmail.net/
+LICENSE= (mpl-1.1 OR gnu-gpl-v2 OR gnu-lgpl-v2.1) AND mpl-2.0
+
+USE_TOOLS+= gmake perl sed unzip
+
+# It doesn't work -- noted also here:
+# https://aur.archlinux.org/packages/th/thunderbird-enigmail/PKGBUILD
+MAKE_JOBS_SAFE= no
+
+# Minimal requirements are here: https://www.enigmail.net/download/source.php
+DEPENDS+= gnupg-[0-9]*:../../security/gnupg
+
+DISTINFO_FILE= ${.CURDIR}/../../mail/thunderbird-enigmail/distinfo
+PATCHDIR= ${.CURDIR}/../../mail/thunderbird-enigmail/patches
+
+REPLACE_PERL+= config/getOsTarget.pl
+REPLACE_PERL+= util/fixlang.pl
+REPLACE_PERL+= util/make-lang-xpi.pl
+
+REPLACE_PYTHON+= util/checkFiles.py
+REPLACE_PYTHON+= util/header.py
+REPLACE_PYTHON+= util/typelib.py
+REPLACE_PYTHON+= util/header.py
+REPLACE_PYTHON+= util/xpidl.py
+REPLACE_PYTHON+= util/xpt.py
+
+WRKSRC= ${WRKDIR}/enigmail
+GNU_CONFIGURE= yes
+
+XPIVER= ${PKGVERSION_NOREV:C/.[0-9]+$//}
+ENIGMAILXPI= enigmail-${XPIVER}-${LOWER_OPSYS}-${MACHINE_GNU_ARCH}-gcc3.xpi
+XPIFILE= ${WRKSRC}/build/${ENIGMAILXPI}
+
+# Build instructions: https://www.enigmail.net/download/build_instructions.php
+# Installation of extensions: http://kb.mozillazine.org/Installing_extensions
+# Model installation: https://aur.archlinux.org/packages/th/thunderbird-enigmail/PKGBUILD
+do-install:
+ ${RUN} EMID=`${SED} -n '/.*<em:id>\\(.*\\)<\\/em:id>.*/{s//\\1/p;q}' \
+ ${WRKSRC}/package/install.rdf` && \
+ ${INSTALL_DATA_DIR} ${DESTDIR}${XPIDIR}/"$$EMID" && \
+ unzip -d ${DESTDIR}${XPIDIR}/"$$EMID" \
+ ${XPIFILE}
+
+.include "../../lang/python/application.mk"
diff --git a/mail/thunderbird-enigmail/PLIST b/mail/thunderbird-enigmail/PLIST
new file mode 100644
index 00000000000..fe22183872b
--- /dev/null
+++ b/mail/thunderbird-enigmail/PLIST
@@ -0,0 +1,27 @@
+@comment $NetBSD: PLIST,v 1.1 2015/07/01 12:54:32 ryoon Exp $
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome/enigmail.jar
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigMsgCompFields.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmail.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmail.xpt
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigprefs-service.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/mimeDecrypt.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/mimeEncrypt.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults/preferences/enigmail.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/commonFuncs.jsm
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/enigmailCommon.jsm
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/enigmailConvert.jsm
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/enigmailCore.jsm
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/fixExchangeMsg.jsm
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/gpgAgentHandler.jsm
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/installGnuPG.jsm
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/keyManagement.jsm
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/mimeVerify.jsm
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/passwordCheck.jsm
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/pipeConsole.jsm
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/subprocess.jsm
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/subprocess_worker_unix.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/subprocess_worker_win.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/platform/NetBSD_${MACHINE_ARCH}-gcc3/lib/libsubprocess-${MACHINE_ARCH}-gcc3.so
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/wrappers/gpg-agent-wrapper.sh
diff --git a/mail/thunderbird-enigmail/distinfo b/mail/thunderbird-enigmail/distinfo
new file mode 100644
index 00000000000..09b03051475
--- /dev/null
+++ b/mail/thunderbird-enigmail/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2015/07/01 12:54:32 ryoon Exp $
+
+SHA1 (enigmail-1.8.2.tar.gz) = 484158091985bb06ffa175348bafccea0250a348
+RMD160 (enigmail-1.8.2.tar.gz) = 7f691a485ec11b711d6fd4019425cf68dd511c07
+Size (enigmail-1.8.2.tar.gz) = 1604159 bytes
+SHA1 (patch-ipc_src_Makefile) = 0a2e7c33869fbe7d21e1a78faf15e60e93adcf7b
diff --git a/mail/thunderbird-enigmail/patches/patch-ipc_src_Makefile b/mail/thunderbird-enigmail/patches/patch-ipc_src_Makefile
new file mode 100644
index 00000000000..73ad82cc538
--- /dev/null
+++ b/mail/thunderbird-enigmail/patches/patch-ipc_src_Makefile
@@ -0,0 +1,15 @@
+$NetBSD: patch-ipc_src_Makefile,v 1.1 2015/07/01 12:54:32 ryoon Exp $
+
+Fix permissions of the .so file (add +x)
+
+--- ipc/src/Makefile.orig 2015-04-17 09:21:32.000000000 +0000
++++ ipc/src/Makefile
+@@ -73,7 +73,7 @@ $(libname): $(objfiles)
+ $(CC) $(LDFLAGS) -o $(libname) $(objfiles)
+
+ install: $(libname)
+- $(DEPTH)/util/install -m 644 $(DIST)/platform/$(OS_TARGET)_$(CPU_ARCH)/lib $^
++ $(DEPTH)/util/install -m 755 $(DIST)/platform/$(OS_TARGET)_$(CPU_ARCH)/lib $^
+
+ clean:
+ rm -f $(objfiles) $(libname) $(DIST)/platform/$(OS_TARGET)_$(CPU_ARCH)/lib/$(libname)